config: drop scripts that automake says are not independent
[gnulib.git] / ChangeLog
1 2012-06-27  Eric Blake  <eblake@redhat.com>
2
3         config: drop scripts that automake says are not independent
4         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
5         * build-aux/elisp-comp: Delete.
6         * build-aux/missing: Likewise.
7         * build-aux/ylwrap: Likewise.
8         * modules/elisp-comp: Likewise.
9         * MODULES.html.sh: Drop mention of elisp-comp.
10         * NEWS: Mention this.
11
12 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13
14         root-uid: new module
15         This is for portability to Tandem's NonStop Kernel.
16         * lib/root-uid.h, modules/root-uid: New files.
17         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
18         * lib/write-any-file.c, tests/test-sethostname2.c:
19         Include "root-uid.h".
20         * lib/euidaccess.c (euidaccess):
21         * lib/pt_chown.c (main):
22         * lib/unlinkdir.c (cannot_unlink_dir):
23         * lib/write-any-file.c (can_write_any_file):
24         * m4/mknod.m4 (gl_FUNC_MKNOD):
25         * tests/test-sethostname2.c (geteuid, main):
26         Don't assume ROOT_UID == 0.
27         * modules/euidaccess (Depends-on):
28         * modules/pt_chown (Depends-on):
29         * modules/sethostname-tests (Depends-on):
30         * modules/unlinkdir (Depends-on):
31         * modules/write-any-file (Depends-on):
32         Add root-uid.
33
34         regex: use locale-independent comparison for codeset name
35         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
36         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37         for codeset name.
38         * lib/regex_internal.h: Do not include <strings.h>, since we
39         no longer use strcasecmp.
40         * modules/regex (Depends-on): Remove strcase.
41
42 2012-06-23  Bruno Haible  <bruno@clisp.org>
43
44         getopt-posix: No longer guarantee that option processing is resettable.
45         * doc/posix-functions/getopt.texi: Drop description of problem with
46         internal state. Fix info about mingw and msvc9.
47         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
48         option processing by getopt(). Run three test programs instead of one.
49         Simplify cross-compilation guess.
50         * NEWS: Mention the change.
51         Reported by Rich Felker <dalias@aerifal.cx>.
52
53 2012-06-26  Bruno Haible  <bruno@clisp.org>
54
55         argp, regex: Ensure strcasecmp gets declared.
56         * lib/argp-help.c: Include <strings.h>.
57         * lib/regex_internal.h: Likewise.
58         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
59
60 2012-06-24  Bruno Haible  <bruno@clisp.org>
61
62         ptsname_r: Make it consistent with ptsname on AIX.
63         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
64         implementation as for OSF/1.
65         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
66         a pty master.
67
68         ptsname_r: Make it consistent with ptsname on OSF/1.
69         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
70         OSF/1.
71
72 2012-06-24  Bruno Haible  <bruno@clisp.org>
73
74         ttyname_r: Fix result on OSF/1, Solaris.
75         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
76
77 2012-06-24  Bruno Haible  <bruno@clisp.org>
78
79         ptsname_r: Add support for Solaris.
80         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
81         Solaris.
82
83         ptsname_r: Fix test failure on native Windows.
84         * modules/ptsname_r (Depends-on): Add isatty.
85
86         ptsname_r: Fix test failures on IRIX, Solaris.
87         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
88         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
89         accordingly.
90         * lib/ptsname_r.c: Include <fcntl.h>.
91         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
92         set errno if fd is invalid.
93         * tests/test-isatty.c (main): Update comments.
94
95 2012-06-24  Bruno Haible  <bruno@clisp.org>
96
97         ptsname test: Extend test.
98         * tests/test-ptsname.c: Include <errno.h>.
99         (main): Test behaviour with invalid file descriptor.
100
101 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102
103         time: fix obsolete comment
104         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
105         reference to HAVE_STRUCT_TIMESPEC in comment.
106
107 2012-06-23  Bruno Haible  <bruno@clisp.org>
108
109         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
111         does not handle abbreviated long options with equivalent
112         disambiguations, set gl_replace_getopt to yes.
113         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
114
115 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116
117         time_r: fix typo that always overrode localtime_r decl
118         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
119         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
120         not in a standard include.
121
122 2012-06-22  Bruno Haible  <bruno@clisp.org>
123
124         Write "Mac OS X" instead of "MacOS X".
125         * README: Write "Mac OS X" instead of "MacOS X".
126         * build-aux/bootstrap: Likewise.
127         * build-aux/install-reloc: Likewise.
128         * lib/acl-internal.h: Likewise.
129         * lib/acl_entries.c: Likewise.
130         * lib/argp-ba.c: Likewise.
131         * lib/argp-pv.c: Likewise.
132         * lib/config.charset: Likewise.
133         * lib/copy-acl.c: Likewise.
134         * lib/csharpexec.c: Likewise.
135         * lib/euidaccess.c: Likewise.
136         * lib/fbufmode.c: Likewise.
137         * lib/fflush.c: Likewise.
138         * lib/file-has-acl.c: Likewise.
139         * lib/filemode.h: Likewise.
140         * lib/fpurge.c: Likewise.
141         * lib/freadable.c: Likewise.
142         * lib/freadahead.c: Likewise.
143         * lib/freading.c: Likewise.
144         * lib/freadptr.c: Likewise.
145         * lib/freadseek.c: Likewise.
146         * lib/fseeko.c: Likewise.
147         * lib/fseterr.c: Likewise.
148         * lib/fsusage.c: Likewise.
149         * lib/fwritable.c: Likewise.
150         * lib/fwriting.c: Likewise.
151         * lib/get-rusage-as.c: Likewise.
152         * lib/get-rusage-data.c: Likewise.
153         * lib/getdomainname.c: Likewise.
154         * lib/idpriv-drop.c: Likewise.
155         * lib/idpriv-droptemp.c: Likewise.
156         * lib/localcharset.c: Likewise.
157         * lib/locale.in.h: Likewise.
158         * lib/localename.c: Likewise.
159         * lib/mbsrtowcs-state.c: Likewise.
160         * lib/nproc.c: Likewise.
161         * lib/passfd.c: Likewise.
162         * lib/posix_openpt.c: Likewise.
163         * lib/printf-parse.c: Likewise.
164         * lib/progreloc.c: Likewise.
165         * lib/safe-read.h: Likewise.
166         * lib/safe-write.h: Likewise.
167         * lib/sched.in.h: Likewise.
168         * lib/set-mode-acl.c: Likewise.
169         * lib/signal.in.h: Likewise.
170         * lib/stdint.in.h: Likewise.
171         * lib/stdio-impl.h: Likewise.
172         * lib/stdlib.in.h: Likewise.
173         * lib/strtod.c: Likewise.
174         * lib/sys_select.in.h: Likewise.
175         * lib/tcgetsid.c: Likewise.
176         * lib/unistd.in.h: Likewise.
177         * lib/unlockpt.c: Likewise.
178         * lib/vasnprintf.c: Likewise.
179         * lib/vma-iter.c: Likewise.
180         * lib/wcsrtombs-state.c: Likewise.
181         * m4/acl.m4: Likewise.
182         * m4/acosl.m4: Likewise.
183         * m4/asinl.m4: Likewise.
184         * m4/atanl.m4: Likewise.
185         * m4/c-stack.m4: Likewise.
186         * m4/cosl.m4: Likewise.
187         * m4/expl.m4: Likewise.
188         * m4/extensions.m4: Likewise.
189         * m4/fdatasync.m4: Likewise.
190         * m4/fmal.m4: Likewise.
191         * m4/frexp.m4: Likewise.
192         * m4/frexpf.m4: Likewise.
193         * m4/frexpl.m4: Likewise.
194         * m4/fsusage.m4: Likewise.
195         * m4/getdomainname.m4: Likewise.
196         * m4/getloadavg.m4: Likewise.
197         * m4/getopt.m4: Likewise.
198         * m4/gettext.m4: Likewise.
199         * m4/gnulib-common.m4: Likewise.
200         * m4/intdiv0.m4: Likewise.
201         * m4/intlmacosx.m4: Likewise.
202         * m4/largefile.m4: Likewise.
203         * m4/ldexpl.m4: Likewise.
204         * m4/link-follow.m4: Likewise.
205         * m4/locale-ar.m4: Likewise.
206         * m4/locale-fr.m4: Likewise.
207         * m4/locale-ja.m4: Likewise.
208         * m4/locale-tr.m4: Likewise.
209         * m4/locale-zh.m4: Likewise.
210         * m4/locale_h.m4: Likewise.
211         * m4/lock.m4: Likewise.
212         * m4/logl.m4: Likewise.
213         * m4/mathfunc.m4: Likewise.
214         * m4/minus-zero.m4: Likewise.
215         * m4/mktime.m4: Likewise.
216         * m4/mmap-anon.m4: Likewise.
217         * m4/multiarch.m4: Likewise.
218         * m4/nanosleep.m4: Likewise.
219         * m4/nocrash.m4: Likewise.
220         * m4/poll.m4: Likewise.
221         * m4/printf-frexpl.m4: Likewise.
222         * m4/printf.m4: Likewise.
223         * m4/signbit.m4: Likewise.
224         * m4/sinl.m4: Likewise.
225         * m4/sqrtl.m4: Likewise.
226         * m4/strerror_r.m4: Likewise.
227         * m4/tanl.m4: Likewise.
228         * m4/threadlib.m4: Likewise.
229         * m4/ttyname_r.m4: Likewise.
230         * m4/unlink.m4: Likewise.
231         * m4/visibility.m4: Likewise.
232         * m4/wcwidth.m4: Likewise.
233         * tests/minus-zero.h: Likewise.
234         * tests/test-alloca-opt.c: Likewise.
235         * tests/test-copy-acl.sh: Likewise.
236         * tests/test-copy-file.sh: Likewise.
237         * tests/test-fdatasync.c: Likewise.
238         * tests/test-file-has-acl.sh: Likewise.
239         * tests/test-flock.c: Likewise.
240         * tests/test-fsync.c: Likewise.
241         * tests/test-localename.c: Likewise.
242         * tests/test-malloca.c: Likewise.
243         * tests/test-nonblocking-pipe.h: Likewise.
244         * tests/test-nonblocking-socket.h: Likewise.
245         * tests/test-openpty.c: Likewise.
246         * tests/test-posix_openpt.c: Likewise.
247         * tests/test-ptsname.c: Likewise.
248         * tests/test-ptsname_r.c: Likewise.
249         * tests/test-sameacls.c: Likewise.
250         * tests/test-select.h: Likewise.
251         * tests/test-set-mode-acl.sh: Likewise.
252         * tests/test-snprintf-posix.h: Likewise.
253         * tests/test-sprintf-posix.h: Likewise.
254         * tests/test-strtod.c: Likewise.
255         * tests/test-time.c: Likewise.
256         * tests/test-vasnprintf-posix.c: Likewise.
257         * tests/test-vasprintf-posix.c: Likewise.
258         * doc/acl-resources.txt: Likewise.
259         * doc/**/*.texi: Likewise.
260         Reported by Max Horn <max@quendi.de>.
261
262 2012-06-22  Bruno Haible  <bruno@clisp.org>
263
264         grantpt: Relax requirement regarding invalid file descriptors.
265         * lib/grantpt.c: Don't include <fcntl.h>.
266         (grantpt): Don't verify the validity of the file descriptor.
267         * modules/grantpt (Depends-on): Remove fcntl-h.
268         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
269         file descriptors.
270         * doc/posix-functions/grantpt.texi: Document more platforms on which
271         grantpt succeeds for invalid file descriptors.
272         Reported by Rich Felker <dalias@aerifal.cx>.
273
274 2012-06-22  Bruno Haible  <bruno@clisp.org>
275
276         fbufmode test: Don't test unportable behaviour.
277         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
278         (main): Invoke it three times.
279         Reported by Szabolcs Nagy <nsz@port70.net>
280         and Rich Felker <dalias@aerifal.cx>.
281
282 2012-06-21  Bruno Haible  <bruno@clisp.org>
283
284         gnulib-tool: Refactor inctests variable.
285         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
286         (func_modules_transitive_closure,
287         func_modules_transitive_closure_separately,
288         func_import, func_create_testdir): Update.
289
290         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
291         * gnulib-tool: Accept option --without-tests.
292         (func_usage): Document --without-tests option. Rearrange.
293         (inctests): Normalize according to the mode.
294         * NEWS: Mention the change.
295         Suggested by Simon Josefsson.
296
297 2012-06-21  Bruce Korb  <bkorb@gnu.org>
298
299         parse-duration test: Avoid spurious output.
300         * tests/test-parse-duration.sh: Reindent with leading tabs.
301
302 2012-06-21  Jim Meyering  <meyering@redhat.com>
303
304         maint: disable the strncpy prohibition
305         * cfg.mk: Do not prohibit strncpy here.
306
307 2012-06-21  Bruno Haible  <bruno@clisp.org>
308
309         nonblocking: Avoid compilation error on mingw64.
310         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
311         fscanf.
312         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
313         * modules/vfscanf (configure.ac): Likewise.
314         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
315         definition only if stdio.h has prepared it.
316         Reported by Daniel P. Berrange <berrange@redhat.com>.
317
318 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
319
320         gnulib-tool: Use readlink if it is available.
321         * gnulib-tool (func_readlink): Choose function more appropriately.
322
323 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
324
325         posixtm-tests: port to buggy compiler
326         Problem reported by Simon Josefsson in
327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
328         * modules/posixtm-tests (Depends-on): Add stdint.
329         * tests/test-posixtm.c (struct posixtm_test.t_expected):
330         Now of type int_least64_t, not int64_t, both because that's
331         what INT64_C returns and because int_least64_t works even
332         on 72-bit hosts.
333         (T): Use INT64_C on constants outside the traditional int range,
334         to work around compiler bug noted by Simon.
335
336         mktime: fix integer overflow in 'configure'-time test
337         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
338         after integer overflow.  Problem reported by Rich Felker in
339         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
340         Also, don't look for further instances of a bug if we've already
341         found one instance; this helps 'configure' run faster.
342
343 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
344
345         tmpfile, clean-temp: Fix invocation of GetVersionEx.
346         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
347         GetVersionEx correctly.
348         * lib/clean-temp.c (supports_delete_on_close): Likewise.
349
350 2012-06-20  Bruno Haible  <bruno@clisp.org>
351
352         fdopen: Allow implementations that don't reject invalid fd arguments.
353         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
354         succeeds.
355         Reported by Rich Felker <dalias@aerifal.cx>.
356
357 2012-06-20  Simon Josefsson  <simon@josefsson.org>
358
359         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
360         bring in LIBINTL.
361
362 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
363
364         init.sh: do not rely on autoupated PWD
365         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
366         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
367         Although Nelson's bug was not necessarily fixed by this patch,
368         it seems wise to make the change for safety.
369         * tests/init.sh (path_prepend_): Do not rely on PWD updating
370         automagically after 'cd'; this is not reliable on older shells.
371         (setup_): Fail if we cannot cd to temporary directory.
372
373 2012-06-19  Bruno Haible  <bruno@clisp.org>
374
375         stat, fstat: Avoid warnings on mingw64.
376         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
377         redefining.
378         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
379         Reported by Daniel P. Berrange <berrange@redhat.com>.
380
381 2012-06-19  Bruno Haible  <bruno@clisp.org>
382
383         stdioext: Add support for musl libc.
384
385         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
386         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
387
388         * m4/fseterr.m4: New file.
389         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
390         function exists.
391         * modules/fseterr (Files): Add m4/fseterr.m4.
392         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
393         __fseterr does not exist.
394         (Makefile.am): Remove fseterr.c from lib_SOURCES.
395
396         * lib/freadable.h: Update comment.
397
398         * lib/fwritable.h: Update comment.
399
400         * lib/freading.h: Update comment.
401
402         * lib/fwriting.h: Update comment.
403
404         * m4/freadahead.m4: New file.
405         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
406         that function exists.
407         * modules/freadahead (Files): Add m4/freadahead.m4.
408         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
409         __freadahead does not exist.
410         (Makefile.am): Remove freadahead.c from lib_SOURCES.
411
412         * m4/freadptr.m4: New file.
413         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
414         function exists.
415         * modules/freadptr (Files): Add m4/freadptr.m4.
416         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
417         __freadptr does not exist.
418         (Makefile.am): Remove freadptr.c from lib_SOURCES.
419
420         * m4/freadseek.m4: New file.
421         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
422         exists.
423         * modules/freadseek (Files): Add m4/freadseek.m4.
424         (configure.ac): Invoke gl_FUNC_FREADSEEK.
425
426         * lib/fpurge.c (fpurge): Update comment.
427
428         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
429
430 2012-06-19  Bruno Haible  <bruno@clisp.org>
431
432         *printf-posix: Put more info into config.log.
433         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
434         exit code into config.log.
435
436 2012-06-19  Bruno Haible  <bruno@clisp.org>
437
438         getopt-gnu: Fix exit code overflow in autoconf test.
439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
440         to keep them below < 128.
441
442 2012-06-17  Jim Meyering  <meyering@redhat.com>
443
444         maint.mk: fix typo in code to derive GPG key at release time
445         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
446
447 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
448
449         regex: avoid warning when pointers are not long
450         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
451         and uintptr_t, not long, for portability to hosts where pointers and
452         long have different sizes.  Issue noted by Daniel P. Berrange in
453         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
454         and fix suggested by Bruno Haible in
455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
456
457 2012-06-17  Bruno Haible  <bruno@clisp.org>
458
459         dummy: Relicense into the public domain.
460         * modules/dummy (License): Set to "public domain".
461         Suggested by Reuben Thomas.
462
463 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
464
465         announce-gen: VPATH issues
466         * build-aux/announce-gen (--srcdir): New option, used to trim the
467         $srcdir part of the path from $builddir to NEWS.
468         * top/maint.mk (announcement): Adjust.
469
470 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
471
472         gnu-web-doc-update: VPATH builds
473         * build-aux/gnu-web-doc-update (--builddir): New option.
474         Revamp the handling of options.
475         Prefer $(...) to `...`.
476         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
477         the template, and it is GNU mktemp specific.
478         Prefer set -e to long series of &&.
479         Restore the initial git branch, not "master".
480         Properly initialize submodules (don't rely only on bootstrap).
481         Do not reconfigure blindly, use config.status.
482         * top/README-release: Update instructions for gnu-web-doc-update.
483
484 2012-06-11  Jim Meyering  <meyering@redhat.com>
485
486         maint.mk: revert most of the previous change re "all these"
487         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
488         For rationale, see the discussion at
489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
490
491 2012-06-10  Karl Berry  <karl@gnu.org>
492
493         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
494
495         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
496
497 2012-06-10  Bruce Korb  <bkorb@gnu.org>
498
499         parse-duration: Relicense under LGPLv2+.
500         * modules/parse-duration (License): Change to LGPLv2+.
501
502 2012-06-10  Jim Meyering  <meyering@redhat.com>
503
504         maint.mk: prohibit common grammar error: "all these"
505         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
506         the list of prohibited word sequences.  It should be "all of these".
507         * lib/tempname.c (__gen_tempname): Fix one of them.
508
509 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
510
511         do-release-commit-and-tag: support VPATH builds
512         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
513         (noteworthy): Defined earlier to factor its value.
514         (noteworthy_stub): New.
515         Use it to factor.
516         (help_version): Split into...
517         (help, version): these.
518         Adjust the option processing part.
519         Support "--option=value" in addition to "--option value".
520         (builddir): New.
521         (--builddir): New option.
522         * top/README-release: Document this.
523         Reword slightly so that the reader cannot understand that he
524         has to do these steps before calling do-release-commit-and-tag.
525
526 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
527
528         readme-release: also require announce-gen and maintainer-makefile
529         * modules/readme-release (Depends-on): here.
530         * modules/announce-gen, modules/do-release-commit-and-tag,
531         modules/gnu-web-doc-update, modules/maintainer-makefile
532         (Description): Point to readme-release.
533
534 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
535
536         maint.mk: fix VPATH issues.
537         * top/maint.mk (news-check): GNU Make understand $< very well.
538         (release-prep): NEWS is in $(srcdir).
539
540 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
541
542         readme-release: require the promoted modules.
543         * modules/readme-release (Depends-on): Add
544         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
545         in this text.
546
547 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
548             Bruno Haible  <bruno@clisp.org>
549
550         error, strerror-override: Support mingw64 from Fedora 17.
551         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
552         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
553         EINPROGRESS.
554         * lib/strerror-override.h (strerror_override): Test it.
555         * lib/strerror-override.c (strerror_override): Likewise.
556         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
557
558 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
559             Bruno Haible  <bruno@clisp.org>
560
561         error, strerror-override: Support mingw64 from Fedora 17.
562         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
563         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
564         * lib/strerror-override.h (strerror_override): Test it.
565         * lib/strerror-override.c (strerror_override): Likewise.
566
567 2012-06-03  Bruno Haible  <bruno@clisp.org>
568
569         error, strerror-override: Support new errno values from POSIX:2008.
570         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
571         ENOTRECOVERABLE.
572         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
573         platforms.
574         * lib/strerror-override.c (strerror_override): Conditionalize the
575         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
576         * lib/strerror-override.h (strerror_override): Declare also if
577         GNULIB_defined_EOWNERDEAD is defined.
578         * tests/test-errno.c (e130, e131): New variables.
579         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
580         ENOTRECOVERABLE.
581         Reported by Paolo Bonzini.
582
583 2012-05-31  Jim Meyering  <meyering@redhat.com>
584
585         savewd: add missing dependency on sys_wait module
586         * modules/savewd (Depends-on): Add sys_wait, needed at least
587         for MSVC.  Report and suggested change by Michael Goffioul.
588
589 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
590
591         system-quote-tests: port to CentOS 5
592         Problem reported by Tom G. Christensen in
593         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
594         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
595
596 2012-05-29  Jim Meyering  <meyering@redhat.com>
597
598         maint: fix typos in comments and ChangeLog
599         Culprits identified and fixed mostly automatically using these commands:
600         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
601         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
602         using http://github.com/lyda/misspell-check
603         * ChangeLog: Fix typos.
604         * doc/solaris-versions: Likewise.
605         * lib/regexec.c (re_search_stub): Likewise.
606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
607
608 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
609
610         manywarnings: remove duplicate -Wmultichar entry
611         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
612         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
613         so keep the entry marked as documented.
614
615 2012-05-27  Karl Berry  <karl@gnu.org>
616
617         * config/srclist.txt (mktime.c): remove last libc sync,
618         perhaps just temporarily.
619
620 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
621
622         regex: don't assume uint64_t or uint32_t
623         * lib/regcomp.c (init_word_char): Don't assume that the types
624         uint64_t and uint32_t exist.  The C standard doesn't guarantee
625         them, and on some 32-bit compilers there is no uint64_t.
626         Problem reported by Gianluigi Tiesi in
627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
628
629 2012-05-25  Jim Meyering  <meyering@redhat.com>
630
631         maint.mk: add strncpy-prohibiting syntax-check rule
632         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
633
634 2012-05-24  Jim Meyering  <meyering@redhat.com>
635
636         maint.mk: compute $(gpg_key_ID) more portably
637         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
638         That use of sed is not portable to some fringe systems.
639         Reported by Paul Eggert in
640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
641
642 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
643
644         mktime: sync from glibc
645         * config/srclist.txt: Uncomment mktime.c.
646         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
647         First, indent with tabs, since glibc uses tabs and doesn't want to
648         change and we'd rather be identical to glibc.  Also, two small
649         coding changes:
650         (isdst_differ): Use &&, not &, as && is the usual style.
651         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
652         for clarity.
653
654 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
655
656         announce-gen: du -h is more portable than du --human
657         * build-aux/announce-gen (sizes): Invoke du with -h instead
658         of --human.  Accept leading white space in its output.
659
660 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
661
662         announce-gen: Improve diagnostics.
663         * build-aux/announce-gen: When parsing command line options,
664         prefer "announce-gen: option --release-type requires an argument"
665         to "Option release-type requires an argument".
666
667 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
668
669         maint.mk: gpg_key_ID: use sed more portably
670         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
671         the closing brace.
672         (refresh-po): Fuse two sed invocations into one.
673
674 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
675
676         gitlog-to-changelog: support the log message format used in Bison.
677         * build-aux/gitlog-to-changelog: Support --strip-tab and
678         --strip-cherry-picked.
679
680 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
681
682         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
683         the rest of the current time slice to another thread in the current
684         process. So if the thread that feeds the file decscriptor we're
685         polling is not in the current process, we get busy-waiting.
686         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
687         Patch from Theodore Leblond.
688         * lib/select.c: Split polling out of the loop that sets the output
689         fd_sets.  Check for zero result and loop if the wait timeout is
690         infinite.
691
692 2012-05-21  Simon Josefsson  <simon@josefsson.org>
693
694         select: Fix build error on IRIX 6.5.
695         * lib/select.c: Include stddef.h for NULL.
696
697 2012-05-21  Simon Josefsson  <simon@josefsson.org>
698
699         gc: fix libgcrypt detection on older machines.
700         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
701         copyright years because the file has been distributed every year
702         since it was created.
703
704 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
705
706         crypto: fix bug in large buffer handling
707         Problem reported by Serge Belyshev for glibc in
708         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
709         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
710         * lib/md4.c (md4_process_block):
711         * lib/md5.c (md5_process_block):
712         * lib/sha1.c (sha1_process_block):
713         * lib/sha256.c (sha256_process_block):
714         Don't assume the buffer length is less than 2**32.
715         * lib/sha512.c (sha512_process_block): Likewise.
716         Here, the bug is present only in the rare case where the host does
717         not support uint64_t or where size_t is wider than 64 bits.
718         Use u64size to work around the problems.
719         * lib/u64.h (u64size): New macro.
720
721 2012-05-15  Pádraig Brady  <P@draigBrady.com>
722
723         fsusage: fix block size returned on older Linux 2.6
724
725         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
726         which is available since Linux 2.6.
727         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
728         when the member is available so it can be used as a fallback.
729         * doc/posix-functions/statvfs.texi: Mention the hang issue
730         on Linux < 2.6.36.
731
732 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
733
734         bootstrap: suppress stderr chatter
735         * build-aux/bootstrap (insert_sorted_if_absent, main program):
736         Omit unnecessary chatter to stderr.  The main program chatter
737         was there only inadvertantly.
738
739         bootstrap: .gitignore files created by autopoint, libtool
740         I ran into this problem when bootstrapping the latest diffutils.
741         After './bootstrap', 'git status' reported lots of untracked files
742         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
743         autopoint and do not need to be version-controlled.
744         * build-aux/bootstrap: Put into .gitignore the files that
745         autopoint and libtool create, by keeping track of files that exist
746         after but not before these programs are run.
747         (version_controlled_file): Move up.  2nd arg is now full file
748         name, not base name; this is more convenient.  Put CVS at the end,
749         as it's now somewhat deprecated.
750
751 2012-05-14  Jim Meyering  <meyering@redhat.com>
752
753         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
754         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
755         definition.  Reported by Bruno Haible.
756
757 2012-05-13  Bruno Haible  <bruno@clisp.org>
758             Paul Eggert  <eggert@cs.ucla.edu>
759
760         binary-io: Define set_binary_mode function.
761         * lib/binary-io.h (set_binary_mode): New function.
762         (SET_BINARY): Define in terms of set_binary_mode.
763         * modules/binary-io (configure.ac): Require AC_C_INLINE.
764         * tests/test-binary-io.c (main): Accept an argument, and test either
765         set_binary_mode or SET_BINARY depending on the argument.
766         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
767         argument. Clean up also t-bin-out0.tmp.
768
769 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
770
771         bootstrap: take advantage of POSIX shell features
772
773         The 'bootstrap' script offered by Gnulib script already uses POSIX
774         shell features (like $((...)) arithmetic expansions) that are not
775         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
776         means that bootstrap must already be run using a proper POSIX shell,
777         which will thus provide more features, like ${var#pattern} parameter
778         expansion or inversion of a command exit status with '!'.  We can
779         thus use these features to improve the clarity and the performances
780         of the bootstrap script.
781
782         Suggested by Eric Blake.
783
784         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
785         of sed/expr plus command substitutions, to save some forks.  While
786         we are at it, prefer the POSIX $(...) form of command substitution,
787         rather than the legacy form `...` (since the former is visually
788         clearer and interacts better with quoting), and prefer the idiom:
789           "if ! CMD; then ACTION ..."
790         over the idiom:
791           "if CMD; then :; else ACTION ..."
792         which was required by legacy Bourne shells not supporting '!'.
793
794 2012-05-12  Bruno Haible  <bruno@clisp.org>
795
796         system-quote: Add more comments.
797         * lib/system-quote.h: Add more comments about wilcards and limitations.
798         Suggested by Eli Zaretskii <eliz@gnu.org>.
799
800         sh-quote, system-quote: Add comments about wildcards.
801         * lib/sh-quote.h: Clarify what happens with wildcard characters.
802         * lib/system-quote.h: Likewise.
803         Reported by Eli Zaretskii <eliz@gnu.org>.
804
805 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
806
807         fsusage: check for GNU/Linux statvfs problem dynamically
808         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
809         Define STAT_STATFS2_BSIZE too, since in this case the code now
810         checks dynamically whether statvfs is reliable, falling back on
811         Linux-style statfs otherwise.
812         (statvfs_works): New function, for dynamically testing statvfs.
813         (get_fs_usage) [STAT_STATVFS]: Use it.
814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
815         statvfs on GNU/Linux hosts, since it's now done dynamically.
816
817 2012-05-10  Bruno Haible  <bruno@clisp.org>
818
819         system-quote, execute, spawn-pipe: Escape '?' on Windows.
820         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
821         '?' character.
822         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
823         * tests/test-system-quote-main.c (check_all): Check also strings like
824         "??????????".
825         Reported by Eli Zaretskii <eliz@gnu.org>.
826
827 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
828
829         _Noreturn: port config.h to gcc -Wundef
830         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
831         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
832         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
833
834 2012-05-10  Bruno Haible  <bruno@clisp.org>
835
836         system-quote: Refactor.
837         * lib/system-quote.h (system_quote_copy): Fix comment.
838         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
839         New functions, extracted from system_quote_copy.
840         (system_quote_length, system_quote_copy): Use these functions.
841         Reported by Paul Eggert.
842
843 2012-05-08  Bruno Haible  <bruno@clisp.org>
844
845         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
846         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
847
848 2012-05-08  Bruno Haible  <bruno@clisp.org>
849
850         Tests for module 'system-quote'.
851         * modules/system-quote-tests: New file.
852         * tests/test-system-quote.sh: New file.
853         * tests/test-system-quote-main.c: New file.
854         * tests/test-system-quote-child.c: New file.
855
856         New module 'system-quote'.
857         * lib/system-quote.h: New file.
858         * lib/system-quote.c: New file.
859         * modules/system-quote: New file.
860
861 2012-05-08  Bruno Haible  <bruno@clisp.org>
862
863         sh-quote: Make C++ safe and allow multiple inclusion.
864         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
865         declarations in extern "C".
866
867 2012-05-08  Bruno Haible  <bruno@clisp.org>
868
869         sh-quote tests: Make tests stricter.
870         * tests/test-sh-quote.c (check_one): Check the return value of
871         shell_quote_copy.
872         (main): Check a string with a CR character. Check a string that
873         contains UCHAR_MAX.
874
875 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
876
877         warnings.m4: provide a means to specify the program to compile.
878         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
879         (gl_WARN_ADD): here.
880         Use gl_AS_VAR_APPEND.
881         Support an argument to specify the program to compile.
882         (gl_WARN_ADD): Accept an argument to specify the program to compile.
883         AC_SUBST the WARN_CFLAGS when they are used.
884         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
885         leave this to gl_WARN_ADD.
886
887 2012-05-08  Eric Blake  <eblake@redhat.com>
888
889         doc: recommendations on gettext version
890         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
891         choice between versions.
892         * DEPENDENCIES (gettext): Cover both approaches.
893
894 2012-05-08  Jim Meyering  <meyering@redhat.com>
895
896         init.sh: explain why EXEEXT support uses aliases rather than functions
897         * tests/init.sh: Add a comment.
898
899         init.sh: don't let bash aliases interfere with tests
900         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
901         is bash.  This avoids problems for those who alias standard commands to
902         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
903         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
904
905 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
906
907         stdint: be more consistent with glibc, SunOS libc
908         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
909         (gl_int_fast16_t, gl_uint_fast16_t)
910         (gl_int_fast32_t, gl_uint_fast32_t)
911         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
912         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
913         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
914         Be consistent with glibc by default, and with SunOS 5.10 and later
915         if __sun is defined.  This lessens the likelihood of clashes if
916         code compiled for older hosts is combined with code compiled for
917         newer ones.  Problem reported by Niels Möller in
918         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
919
920 2012-05-07  Eric Blake  <eblake@redhat.com>
921
922         isatty: relax license to LGPLv2+
923         * modules/isatty (License): Relax license.
924
925 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
926
927         stat-size: comment fix
928         * lib/stat-size.h: Remove obsolete comment about indenting.
929
930 2012-05-06  Bruno Haible  <bruno@clisp.org>
931
932         Tests for module 'sh-quote'.
933         * modules/sh-quote-tests: New file.
934         * tests/test-sh-quote.c: New file.
935
936 2012-05-06  Bruno Haible  <bruno@clisp.org>
937
938         sh-quote: Improve shell_quote_argv's signature.
939         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
940         * lib/sh-quote.c (shell_quote_argv): Likewise.
941
942 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
943
944         stdint: document issues with int_fast8_t etc.
945         * doc/posix-headers/stdint.texi (stdint.h): Say that other
946         stdint.h substitutes may define these types differently.  See
947         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
948
949 2012-05-05  Bruno Haible  <bruno@clisp.org>
950
951         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
953         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
954         or 'guessing no (mishandles large arguments)'.
955
956 2012-05-05  Bruno Haible  <bruno@clisp.org>
957
958         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
959         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
960         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
961         set gl_cv_func_link_follows_symlink to "guessing no".
962
963 2012-05-05  Bruno Haible  <bruno@clisp.org>
964
965         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
966         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
967         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
968         "guessing no".
969         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
970
971 2012-05-05  Bruno Haible  <bruno@clisp.org>
972
973         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
975         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
976         set gl_cv_struct_dirent_d_ino to "guessing yes".
977
978 2012-05-05  Bruno Haible  <bruno@clisp.org>
979
980         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
981         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
982         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
983         "guessing yes".
984
985 2012-05-05  Bruno Haible  <bruno@clisp.org>
986
987         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
988         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
989         compiling to a glibc system, set gl_cv_func_signbit and
990         gl_cv_func_signbit_gcc to "guessing yes".
991
992 2012-05-05  Bruno Haible  <bruno@clisp.org>
993
994         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
995         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
996         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
997         to "guessing yes".
998         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
999         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1000
1001 2012-05-05  Bruno Haible  <bruno@clisp.org>
1002
1003         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1004         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1005         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1006         gl_cv_func_realpath_works to "guessing yes".
1007
1008 2012-05-05  Bruno Haible  <bruno@clisp.org>
1009
1010         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1012         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1013
1014 2012-05-04  Bruno Haible  <bruno@clisp.org>
1015
1016         Tweak last commit.
1017         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1018         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1019
1020 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         unistd_h: make it easier to avoid sys_types_h
1023         This is useful for Emacs, which has its own method of porting to
1024         Windows, and which therefore does not need the sys_types_h module.
1025         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1026         code moved here from gl_SYS_TYPES_H.
1027         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1028         using the code directly.
1029         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1030         gl_SYS_TYPES_H.
1031         * modules/sys_types (Files):
1032         * modules/unistd (Files): Add m4/off_t.m4.
1033
1034 2012-05-03  Bruno Haible  <bruno@clisp.org>
1035
1036         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1037         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1038         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1039         "guessing yes" or "guessing no".
1040         (gl_FUNC_LSTAT): Update.
1041         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1042         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1043         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1044
1045 2012-05-03  Bruno Haible  <bruno@clisp.org>
1046
1047         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1048         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1049         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1050         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1051         cross-compiling, choose the first alternative on glibc systems.
1052         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1053
1054 2012-05-03  Bruno Haible  <bruno@clisp.org>
1055
1056         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1057         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1058         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1059
1060 2012-05-03  Bruno Haible  <bruno@clisp.org>
1061
1062         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1063         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1064
1065 2012-05-03  Bruno Haible  <bruno@clisp.org>
1066
1067         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1068         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1069         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1070         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1071         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1072         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1073         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1074         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1075         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1076         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1077         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1078         gl_cv_func_chown_ctime_works to "guessing yes".
1079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1080         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1081         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1082         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1083         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1085         compiling to glibc systems, set gl_cv_func_open_directory_works to
1086         "guessing yes".
1087         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1088         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1089         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1090         "guessing yes".
1091         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1092         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1093         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1094         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1095         "guessing yes".
1096         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1097         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1098         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1099         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1100         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1101         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1102         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1103         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1104         "guessing yes".
1105         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1106         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1107         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1108         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1109         "guessing yes".
1110         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1111         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1112         "guessing yes".
1113         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1114         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1115         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1116         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1117         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1118         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1119         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1120         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1121         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1122         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1123         "guessing yes".
1124         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1125         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1126         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1127         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1128         "guessing yes".
1129         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1130         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1131         "guessing yes".
1132         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1133         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1134         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1135         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1136         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1137         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1138         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1139         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1140         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1141         "guessing yes".
1142         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1143         compiling to glibc systems, set gl_cv_func_mknod_works to
1144         "guessing yes".
1145         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1146         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1147         "guessing yes".
1148         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1149         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1150         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1151         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1152         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1153         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1154         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1155         compiling to glibc systems, set gl_cv_func_svid_putenv to
1156         "guessing yes".
1157         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1158         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1159         "guessing yes".
1160         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1161         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1162         "guessing yes".
1163         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1164         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1165         to "guessing yes".
1166         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1167         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1168         to "guessing yes".
1169         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1170         compiling to glibc systems, set gl_cv_func_rmdir_works to
1171         "guessing yes".
1172         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1173         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1174         gl_cv_func_unlink_parent_fails to "guessing yes".
1175         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1176         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1177         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1178         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1179         gl_cv_func_rename_dest_works to "guessing yes".
1180         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1181         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1182         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1183         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1184         "guessing yes".
1185         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1186         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1187         "guessing yes".
1188         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1189         compiling to glibc systems, set gl_cv_func_setenv_works to
1190         "guessing yes".
1191         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1192         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1193         "guessing yes".
1194         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1195         compiling to glibc systems, set gl_cv_func_sleep_works to
1196         "guessing yes".
1197         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1198         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1199         "guessing yes".
1200         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1201         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1202         "guessing yes".
1203         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1204         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1205         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1206         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1207         "guessing yes".
1208         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1209         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1210         "guessing yes".
1211         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1212         compiling to glibc systems, set gl_cv_func_usleep_works to
1213         "guessing yes".
1214         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1215         compiling to glibc systems, set gl_cv_func_futimesat_works to
1216         "guessing yes".
1217
1218 2012-05-03  Bruno Haible  <bruno@clisp.org>
1219
1220         Say "guessing yes" or "guessing no" when cross-compiling.
1221         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1222         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1224         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1225         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1226         am_cv_func_working_getline to "guessing yes" or "guessing no".
1227         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1228         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1229         (gl_FUNC_MEMMEM): When cross-compiling, set
1230         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1232         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1234         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1235         "guessing no".
1236         (gl_FUNC_STRCASESTR): When cross-compiling, set
1237         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1239         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1240         (gl_FUNC_STRSTR): When cross-compiling, set
1241         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1242         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1243         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1244         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1245         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1246
1247 2012-05-01  Bruno Haible  <bruno@clisp.org>
1248
1249         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1251         * build-aux/reloc-ldflags: Likewise.
1252         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1253
1254 2012-05-01  Bruno Haible  <bruno@clisp.org>
1255
1256         gnulib-tool: Remove transitional code.
1257         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1258         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1259
1260 2012-05-01  Bruno Haible  <bruno@clisp.org>
1261
1262         getcwd: Fix misindentation.
1263         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1264
1265 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         exclude: process exclude and include directives in order
1268         This restores the pre-2009 behavior, and is part of a fix of a
1269         grep bug reported by Quentin Arce in
1270         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1271         * lib/exclude.c (struct exclude): Remove 'tail' member.
1272         (new_exclude_segment): Prepend the new segment instead of appending.
1273         Return void, since that's now more convenient.
1274         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1275         (file_name_matches): Renamed from excluded_file_name_p.
1276         (file_pattern_matches, file_name_matches):
1277         Return true if the pattern matches, not if it excludes.
1278         All callers changed.
1279         (excluded_file_name): Process the list in reverse order;
1280         since the list is now reversed this restores the pre-2009 behavior.
1281         (add_exclude): Adjust to new reversed-order list.  Use local var
1282         rather than macro, for clarity.
1283         * tests/test-exclude7.sh: Adjust to corrected behavior.
1284
1285         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1286         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1287         it's not possible here.  Handle the case of \ at end of pattern
1288         without dumping core.
1289         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1290
1291         _Noreturn: future-proof non-GNU and non-MSVC compilers
1292         * build-aux/snippet/_Noreturn.h (_Noreturn):
1293         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1294         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1295         C11 or later.  This is more likely to work with random future C
1296         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1298
1299         exclude: handle wildcards with FNM_EXTMATCH
1300         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1301         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1302         comment that "has wildcards" really means "has or may have
1303         wildcards".  Simplify by avoiding the need to call strcspn.
1304
1305 2012-04-29  Bruno Haible  <bruno@clisp.org>
1306
1307         gnulib-tool: Fix list of authors.
1308         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1309
1310 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1311
1312         bootstrap: support Automake-NG in $buildreq
1313         * bootstrap (check_versions): Handle automake and aclocal from
1314         Automake-NG specially.  They can be specified as respectively
1315         the "automake-ng" and "aclocal-ng" requirements.
1316
1317 2012-04-25  Eric Blake  <eblake@redhat.com>
1318
1319         bootstrap: only force latest Makefile.in.in for gettext module
1320         * build-aux/bootstrap (with_gettext): Only install latest
1321         Makefile.in.in for projects requesting bleeding edge gettext.
1322
1323 2012-04-22  Bruno Haible  <bruno@clisp.org>
1324
1325         doc: Mention reason for replacement on glibc/Linux systems.
1326         * doc/posix-functions/dprintf.texi: Mention the problem with special
1327         'long double' values.
1328         * doc/posix-functions/fprintf.texi: Likewise.
1329         * doc/posix-functions/printf.texi: Likewise.
1330         * doc/posix-functions/snprintf.texi: Likewise.
1331         * doc/posix-functions/sprintf.texi: Likewise.
1332         * doc/posix-functions/vdprintf.texi: Likewise.
1333         * doc/posix-functions/vfprintf.texi: Likewise.
1334         * doc/posix-functions/vprintf.texi: Likewise.
1335         * doc/posix-functions/vsnprintf.texi: Likewise.
1336         * doc/posix-functions/vsprintf.texi: Likewise.
1337         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1338         platforms with F_DUPFD_CLOEXEC problems.
1339         * doc/posix-functions/glob.texi: Mention which platforms are affected
1340         by the problem with symbolic links.
1341         * doc/posix-functions/linkat.texi: Mention the problem with
1342         AT_SYMLINK_FOLLOW on Linux.
1343
1344 2012-04-22  Bruno Haible  <bruno@clisp.org>
1345
1346         pwrite: Don't replace on all platforms.
1347         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1348
1349 2012-04-22  Bruno Haible  <bruno@clisp.org>
1350
1351         rint* tests: Avoid gcc warnings.
1352         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1353         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1354         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1355
1356 2012-04-21  Bruno Haible  <bruno@clisp.org>
1357
1358         users.txt: Update.
1359         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1360         switched from CVS to git, bzr, or svn.
1361
1362 2012-04-21  Bruno Haible  <bruno@clisp.org>
1363
1364         Large File Support for native Windows platforms.
1365
1366         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1367         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1368
1369         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1370         type.
1371         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1372         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1373         * doc/posix-headers/sys_types.texi: Mention the effect of the
1374         'largefile' module.
1375
1376         * lib/fcntl.in.h: Add comments about off_t.
1377         * modules/fcntl-h (Depends-on): Add sys_types.
1378
1379         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1380         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1381         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1382         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1383         * modules/unistd (Depends-on): Add sys_types.
1384         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1385
1386         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1387         instead of lseek.
1388         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1389         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1390         * modules/lseek (Depends-on): Add sys_types.
1391
1392         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1393         msvc-nothrow.h.
1394         (SetFileSize): New function.
1395         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1396         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1397         if Large File Support is requested.
1398         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1399         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1400
1401         * lib/stdio.in.h: Add comments about off_t.
1402         * modules/stdio (Depends-on): Add sys_types.
1403
1404         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1405         instead of ftello.
1406         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1407         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1408         (gl_PREREQ_FTELLO): New macro.
1409         * modules/ftello (Depends-on): Add sys_types.
1410         (configure.ac): Incoke gl_PREREQ_FTELLO.
1411
1412         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1413         instead of fseeko.
1414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1415         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1416         (gl_PREREQ_FSEEKO): New macro.
1417         * modules/fseeko (Depends-on): Add sys_types.
1418         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1419
1420         * lib/sys_stat.in.h: Add comments about off_t.
1421         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1422         64-bit integer for st_size in 'struct stat'.
1423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1424         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1425         * modules/sys_stat (Depends-on): Add sys_types.
1426         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1427
1428         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1429         instead of stat or _stat.
1430
1431         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1432         'struct _stati64' instead of fstat and 'struct stat'.
1433         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1434         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1435
1436         Reported by Ray Satiro <raysatiro@yahoo.com>.
1437
1438 2012-04-19  Eric Blake  <eblake@redhat.com>
1439
1440         bootstrap: accommodate older libtool
1441         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1442         Reported by Daniel P. Berrange.
1443
1444 2012-04-19  Jim Meyering  <meyering@redhat.com>
1445
1446         announce-gen: avoid failure due to lack of Digest::SHA1
1447         Even with the preferred Digest::SHA available, this script
1448         would fail when the backup module, Digest::SHA1, was not installed.
1449         * build-aux/announce-gen: Quote the conditional use of "use".
1450         Reported by Reuben Thomas in:
1451         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1452
1453         bootstrap: don't let a user's CDPATH setting affect this script
1454         When CDPATH is set, cd will sometimes generate output.
1455         When "cd" is run in a subshell whose output matters, that
1456         surprising-to-some output can cause malfunction.
1457         Unsetting CDPATH turns off this shell "feature."
1458         * build-aux/bootstrap (CDPATH): Unset.
1459         Reported by Reuben Thomas in:
1460         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1461         and inspired by his patch here:
1462         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1463
1464 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1465         and Jim Meyering  <meyering@redhat.com>
1466
1467         maint.mk: catch "see @xref{}" and similar
1468         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1469         prohibit "See also @xref{", "Also see @pxref{", and similar.
1470
1471 2012-04-16  Jim Meyering  <meyering@redhat.com>
1472
1473         bootstrap: really use gnulib's po/Makefile.in.in
1474         * build-aux/bootstrap: Correct the source file name in previous change.
1475         Reported by Akim Demaille.
1476
1477         configmake: correct minor inconsistency in Makefile rule
1478         * modules/configmake (Makefile.am): All other rules like this one
1479         run the final "mv -f ..." in the same backslash-continued command
1480         as the one that does everything else.  This one put the mv -f ...
1481         command on a separate, non-backslash-continued line.
1482         Make it like the others.
1483
1484         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1485         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1486         the one from gettext.  Reported by Akim Demaille.
1487
1488 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1489
1490         Fix recursion of install-* into po directories.
1491         Bison's install-pdf bug reported by Hans Aberg at
1492         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1493         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1494         (install-info, install-pdf, install-ps): New targets.
1495
1496 2012-04-16  Jim Meyering  <meyering@redhat.com>
1497
1498         maint: avoid spurious "make sc_maint" failure
1499         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1500         exempt all *.class file names, for lib/javaversion.class.
1501
1502 2012-04-15  Bruno Haible  <bruno@clisp.org>
1503
1504         lseek: Make configure test independent of environment.
1505         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1506         Windows, we know that lseek() on pipes is broken; skip the runtime
1507         test.
1508
1509 2012-04-14  Bruno Haible  <bruno@clisp.org>
1510
1511         stat: Bypass buggy override in mingw64.
1512         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1513         * lib/stat.c (stat) [mingw64]: Define to _stat.
1514         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1515
1516 2012-04-14  Bruno Haible  <bruno@clisp.org>
1517
1518         pathmax: Fix compilation error on MSVC 9.
1519         * modules/pathmax (Depends-on): Add unistd.
1520
1521 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         README: document pointer comparison assumption
1524         * README (Portability guidelines): Document assumption about
1525         pointer comparisons, in response to a recent bug-gnulib comment by
1526         Jeffrey Kegler.
1527
1528 2012-04-12  Bruno Haible  <bruno@clisp.org>
1529
1530         Tests for module 'getrusage'.
1531         * modules/getrusage-tests: New file.
1532         * tests/test-getrusage.c: New file.
1533
1534         New module 'getrusage'.
1535         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1536         warn-on-use.h.
1537         (getrusage): New declaration.
1538         * lib/getrusage.c: New file.
1539         * m4/getrusage.m4: New file.
1540         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1541         is declared.
1542         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1543         HAVE_GETRUSAGE.
1544         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1545         snippet/c++defs, snippet/warn-on-use.
1546         (Makefile.am): Update generation of sys/resource.h. Substitute
1547         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1548         * modules/getrusage: New file.
1549         * doc/posix-functions/getrusage.texi: Mention the new module.
1550
1551 2012-04-12  Bruno Haible  <bruno@clisp.org>
1552
1553         Tests for module 'sys_resource'.
1554         * modules/sys_resource-tests: New file.
1555         * tests/test-sys_resource.c: New file.
1556
1557         New module 'sys_resource'.
1558         * lib/sys_resource.in.h: New file.
1559         * m4/sys_resource_h.m4: New file.
1560         * modules/sys_resource: New file.
1561         * doc/posix-headers/sys_resource.texi: Mention the new module.
1562
1563 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1564
1565         ioctl: Fix compilation error on mingw.
1566         * lib/ioctl.c: Include <windows.h>.
1567         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1568
1569 2012-04-04  Jim Meyering  <meyering@redhat.com>
1570
1571         regex: correct #pragma guard expression
1572         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1573         not 4.3.  Correct its cpp guard expression.
1574
1575 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         regex: remove unnecessary type punning
1578         Problem reported by Vladimir Serbinenko in
1579         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1580         * lib/regex.h (struct re_pattern_buffer): Change the type of
1581         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1582         Fix comment to match code.
1583         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1584         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1585         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1586         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1587         (set_regs):
1588         Omit no-longer-necessary casts.
1589
1590 2012-04-03  Bruno Haible  <bruno@clisp.org>
1591
1592         Tests for module 'ilogbl'.
1593         * modules/ilogbl-tests: New file.
1594         * tests/test-ilogbl.c: New file.
1595
1596         New module 'ilogbl'.
1597         * lib/math.in.h (ilogbl): New declaration.
1598         * lib/ilogbl.c: New file.
1599         * m4/ilogbl.m4: New file.
1600         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1602         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1603         Split sed invocation, to avoid the limit of 100 substitutions of
1604         HP-UX 'sed'.
1605         * modules/ilogbl: New file.
1606         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1607         * doc/posix-functions/ilogbl.texi: Mention the new module.
1608
1609 2012-04-03  Bruno Haible  <bruno@clisp.org>
1610
1611         Tests for module 'ilogbf'.
1612         * modules/ilogbf-tests: New file.
1613         * tests/test-ilogbf.c: New file.
1614
1615         New module 'ilogbf'.
1616         * lib/math.in.h (ilogbf): New declaration.
1617         * lib/ilogbf.c: New file.
1618         * m4/ilogbf.m4: New file.
1619         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1621         REPLACE_ILOGBF.
1622         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1623         REPLACE_ILOGBF.
1624         * modules/ilogbf: New file.
1625         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1626         * doc/posix-functions/ilogbf.texi: Mention the new module.
1627
1628 2012-04-03  Bruno Haible  <bruno@clisp.org>
1629
1630         Tests for module 'ilogb'.
1631         * modules/ilogb-tests: New file.
1632         * tests/test-ilogb.c: New file.
1633         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1634         tests/test-logb-ieee.h.
1635
1636         New module 'ilogb'.
1637         * lib/math.in.h (ilogb): New declaration.
1638         * lib/ilogb.c: New file.
1639         * m4/ilogb.m4: New file.
1640         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1642         REPLACE_ILOGB.
1643         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1644         REPLACE_ILOGB.
1645         * modules/ilogb: New file.
1646         * tests/test-math-c++.cc: Check the declaration of ilogb.
1647         * doc/posix-functions/ilogb.texi: Mention the new module.
1648
1649 2012-04-03  Bruno Haible  <bruno@clisp.org>
1650
1651         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1652         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1653         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1654         (main): Check their values.
1655         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1656         problem.
1657
1658 2012-04-03  Bruno Haible  <bruno@clisp.org>
1659
1660         Tests for module 'logbl-ieee'.
1661         * modules/logbl-ieee-tests: New file.
1662         * tests/test-logbl-ieee.c: New file.
1663
1664         New module 'logbl-ieee'.
1665         * modules/logbl-ieee: New file.
1666
1667         Tests for module 'logb-ieee'.
1668         * modules/logb-ieee-tests: New file.
1669         * tests/test-logb-ieee.c: New file.
1670
1671         New module 'logb-ieee'.
1672         * modules/logb-ieee: New file.
1673
1674         Tests for module 'logbf-ieee'.
1675         * modules/logbf-ieee-tests: New file.
1676         * tests/test-logbf-ieee.c: New file.
1677         * tests/test-logb-ieee.h: New file.
1678
1679         New module 'logbf-ieee'.
1680         * modules/logbf-ieee: New file.
1681
1682 2012-04-03  Bruno Haible  <bruno@clisp.org>
1683
1684         Tests for module 'logbl'.
1685         * modules/logbl-tests: New file.
1686         * tests/test-logbl.c: New file.
1687
1688         New module 'logbl'.
1689         * lib/math.in.h (logbl): New declaration.
1690         * lib/logbl.c: New file.
1691         * m4/logbl.m4: New file.
1692         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1694         REPLACE_LOGBL.
1695         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1696         REPLACE_LOGBL.
1697         * modules/logbl: New file.
1698         * tests/test-math-c++.cc: Check the declaration of logbl.
1699         * doc/posix-functions/logbl.texi: Mention the new module.
1700
1701 2012-04-02  Bruno Haible  <bruno@clisp.org>
1702
1703         Tests for module 'logbf'.
1704         * modules/logbf-tests: New file.
1705         * tests/test-logbf.c: New file.
1706
1707         New module 'logbf'.
1708         * lib/math.in.h (logbf): New declaration.
1709         * lib/logbf.c: New file.
1710         * m4/logbf.m4: New file.
1711         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1713         REPLACE_LOGBF.
1714         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1715         REPLACE_LOGBF.
1716         * modules/logbf: New file.
1717         * tests/test-math-c++.cc: Check the declaration of logbf.
1718         * doc/posix-functions/logbf.texi: Mention the new module.
1719
1720 2012-04-02  Bruno Haible  <bruno@clisp.org>
1721
1722         logb tests: More tests.
1723         * tests/test-logb.h: New file, based on tests/test-logb.c and
1724         tests/test-frexp.h.
1725         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1726         (main): Just invoke test_function.
1727         * modules/logb-tests (Files): Add tests/test-logb.h,
1728         tests/minus-zero.h, tests/randomd.c.
1729         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1730
1731         logb: Provide replacement and workarounds.
1732         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1733         is 1.
1734         * lib/logb.c: New file.
1735         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1736         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1738         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1739         * modules/logb (Files): Add lib/logb.c.
1740         (Depends-on): Add isfinite, frexp, isnand.
1741         (configure.ac): Compile the replacement code logb.c if needed.
1742         * tests/test-math-c++.cc: Check the declaration of logb.
1743         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1744         with subnormal numbers.
1745
1746 2012-04-02  Bruno Haible  <bruno@clisp.org>
1747
1748         log10* tests: Speed up.
1749         * tests/test-log10.h (test_function): Reduce amount of random numbers
1750         to test.
1751
1752 2012-04-01  Bruno Haible  <bruno@clisp.org>
1753
1754         logf-ieee: Fix test whether logf works.
1755         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1756
1757 2012-04-01  Bruno Haible  <bruno@clisp.org>
1758
1759         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1760         * lib/log10l.c: Include <float.h>
1761         (log10l): On IRIX, normalize the +Infinity value.
1762         * modules/log10l (Depends-on): Add 'float'.
1763         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1764         +Infinity.
1765
1766         log10f-ieee: Work around test failure on NetBSD 5.1.
1767         * m4/log10f-ieee.m4: New file.
1768         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1769         test whether log10f works with a negative argument. Replace it if not.
1770         * lib/log10f.c (log10f): For negative arguments, return NaN.
1771         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1772         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1773         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1774
1775         log10f-ieee: Work around test failure on Solaris 9.
1776         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1777         (configure.ac): Require gl_FUNC_LOG10F.
1778
1779         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1780         * m4/log10-ieee.m4: New file.
1781         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1782         whether log10 works with a negative argument. Replace it if not.
1783         * lib/log10.c (log10): For negative arguments, return NaN.
1784         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1785         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1786         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1787
1788         Tests for module 'log10l-ieee'.
1789         * modules/log10l-ieee-tests: New file.
1790         * tests/test-log10l-ieee.c: New file.
1791
1792         New module 'log10l-ieee'.
1793         * modules/log10l-ieee: New file.
1794
1795         Tests for module 'log10-ieee'.
1796         * modules/log10-ieee-tests: New file.
1797         * tests/test-log10-ieee.c: New file.
1798
1799         New module 'log10-ieee'.
1800         * modules/log10-ieee: New file.
1801
1802         Tests for module 'log10f-ieee'.
1803         * modules/log10f-ieee-tests: New file.
1804         * tests/test-log10f-ieee.c: New file.
1805         * tests/test-log10-ieee.h: New file.
1806
1807         New module 'log10f-ieee'.
1808         * modules/log10f-ieee: New file.
1809
1810 2012-04-01  Bruno Haible  <bruno@clisp.org>
1811
1812         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1813         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1814         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1815         workaround.
1816         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1817         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1819         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1820         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1821         (Depends-on): Update conditions.
1822         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1823         IRIX 6.5, OSF/1 5.1 problems.
1824
1825 2012-04-01  Bruno Haible  <bruno@clisp.org>
1826
1827         log10f: Work around OSF/1 5.1 bug.
1828         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1829         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1830         workaround.
1831         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1832         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1834         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1835         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1836         (Depends-on): Update conditions.
1837         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1838
1839 2012-04-01  Bruno Haible  <bruno@clisp.org>
1840
1841         log10: Work around OSF/1 5.1 bug.
1842         * lib/math.in.h (log10): New declaration.
1843         * lib/log10.c: New file.
1844         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1845         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1846         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1848         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1849         * modules/log10 (Files): Add lib/log10.c.
1850         (Depends-on): Add math.
1851         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1852         * tests/test-math-c++.cc: Check the declaration of log10.
1853         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1854
1855 2012-03-31  Bruno Haible  <bruno@clisp.org>
1856
1857         log10l tests: More tests.
1858         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1859         tests/minus-zero.h, tests/randoml.c.
1860         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1861         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1862         (main): Invoke test_function.
1863
1864         log10f tests: More tests.
1865         * modules/log10f-tests (Files): Add tests/test-log10.h,
1866         tests/minus-zero.h, tests/randomf.c.
1867         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1868         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1869         (main): Invoke test_function.
1870
1871         log10 tests: More tests.
1872         * tests/test-log10.h: New file.
1873         * modules/log10-tests (Files): Add tests/test-log10.h,
1874         tests/minus-zero.h, tests/randomd.c.
1875         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1876         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1877         (main): Invoke test_function.
1878
1879 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1880
1881         fflush: Fix syntax error.
1882         * lib/fflush.c: Include unused-parameter.h, needed for
1883         _GL_UNUSED_PARAMETER.
1884         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1885
1886 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1887
1888         regex: pacify GCC when compiling GRUB
1889         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1890         a diagnostic.  Reported by Vladimir Serbinenko in
1891         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1892
1893 2012-03-29  Eric Blake  <eblake@redhat.com>
1894
1895         stdio: don't assume gets any more
1896         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1897         support.
1898         * modules/stdio (Makefile.am): Likewise.
1899         * lib/stdio-read.c (gets): Likewise.
1900         * tests/test-stdio-c++.cc: Likewise.
1901         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1902         * lib/stdio.in.h (gets): Make warning occur in more places.
1903         * doc/posix-functions/gets.texi (gets): Update documentation.
1904         Reported by Christer Solskogen.
1905
1906         maint.mk: fix syntax checks without exclusions
1907         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1908         Reported by Daniel P. Berrange.
1909
1910         strerror_r: avoid compiler warning
1911         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1912         level.
1913
1914         fflush: avoid compiler warning
1915         * lib/fflush.c (update_fpos_cache): Mark variables that are
1916         potentially unused.
1917
1918 2012-03-25  Bruno Haible  <bruno@clisp.org>
1919
1920         Tests for module 'localeconv'.
1921         * modules/localeconv-tests: New file.
1922         * tests/test-localeconv.c: New file.
1923
1924         New module 'localeconv'.
1925         * lib/locale.in.h (localeconv): New declaration.
1926         * lib/localeconv.c: New file.
1927         * m4/localeconv.m4: New file.
1928         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1929         REPLACE_LOCALECONV.
1930         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1931         REPLACE_LOCALECONV.
1932         * modules/localeconv: New file.
1933         * modules/nl_langinfo (Depends-on): Add localeconv.
1934         * modules/human (Depends-on): Likewise.
1935         * doc/posix-functions/localeconv.texi: Mention the new module.
1936
1937 2012-03-25  Bruno Haible  <bruno@clisp.org>
1938
1939         locale: Provide a complete 'struct lconv'.
1940         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1941         'struct lconv' does not contain int_p_cs_precedes.
1942         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1943         * doc/posix-headers/locale.texi: Update.
1944
1945         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1946         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1947         * doc/posix-headers/locale.texi: Update.
1948
1949         locale: Provide a working 'struct lconv'.
1950         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1951         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1952         'struct lconv' does not even contain decimal_point.
1953         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1954         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1955         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1956         * doc/posix-headers/locale.texi: Mention the problems with
1957         'struct lconv'.
1958         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1959
1960 2012-03-24  Bruno Haible  <bruno@clisp.org>
1961
1962         Enable common subexpression optimization in GCC.
1963         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1964         macros.
1965         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1966         GCC attribute 'const'.
1967         (uc_locale_language): Declare with GCC attribute 'pure'.
1968         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1969         with GCC attribute 'const'.
1970         * lib/unictype.in.h (uc_is_general_category_withtable,
1971         uc_combining_class, uc_combining_class_name,
1972         uc_combining_class_long_name, uc_bidi_class_name,
1973         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1974         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1975         uc_decimal_value, uc_digit_value, uc_numeric_value,
1976         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1977         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1978         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1979         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1980         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1981         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1982         Declare with GCC attribute 'const'.
1983         (uc_general_category_name, uc_general_category_long_name,
1984         uc_general_category_byname, uc_general_category,
1985         uc_is_general_category, uc_combining_class_byname,
1986         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1987         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1988         Declare with GCC attribute 'pure'.
1989         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1990         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1991         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1992         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1993         with GCC attribute 'pure'.
1994         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1995         'const'.
1996         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1997         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1998         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1999         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2000         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2001         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2002         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2003         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2004         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2005         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2006         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2007         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2008         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2009         GCC attribute 'pure'.
2010         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2011         'const'.
2012         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2013         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2014         u32_strwidth): Declare with GCC attribute 'pure'.
2015
2016         Enable common subexpression optimization in GCC.
2017         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2018         (alphasort): Declare with GCC attribute 'pure'.
2019         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2020         (atoll): Declare with GCC attribute 'pure'.
2021         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2022         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2023         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2024         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2025         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2026         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2027         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2028
2029 2012-03-24  Bruno Haible  <bruno@clisp.org>
2030
2031         gnulib-tool: Avoid unintended error output from 'cmp'.
2032         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2033         "cmp -s", not "cmp > /dev/null".
2034
2035 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2036
2037         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2038
2039         It's not just Automake versions < 1.9b that creates an empty
2040         pkgdatadir at installation time if pkgdata_DATA is specified
2041         to empty; modern automake versions do this as well, at least
2042         until automake 1.11.4 (not yet released at the moment of writing,
2043         but soon to appear).  That behaviour was generally considered a
2044         feature rather than a bug, at least until this discussion:
2045         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2046
2047         See also automake bugs #10997 and #11030.
2048
2049         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2050         reference to relevant automake bug numbers.
2051         (func_emit_tests_Makefile_am): Likewise.
2052
2053 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2054
2055         announce-gen: use Digest::SHA when possible
2056         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2057         back to Digest::SHA1 if necessary.
2058
2059 2012-03-20  Jim Meyering  <meyering@redhat.com>
2060
2061         tests: avoid gcc warnings about argv vs. const initializers
2062         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2063         warnings about discarding 'const' qualifier from pointer target type.
2064         * tests/test-posix_spawn2.c (main): Likewise.
2065
2066 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2067
2068         README-release: simplify slightly
2069         * top/README-release: Run "git checkout master" only once.
2070
2071 2012-03-15  Mark Wielaard  <mark@klomp.org>
2072
2073         git-merge-changelog: add specific example on how to use with hg.
2074         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2075
2076 2012-03-18  Mark Wielaard  <mark@klomp.org>
2077
2078         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2079
2080 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2081
2082         git-version-gen: don't let "prefix" envvar cause trouble
2083         * build-aux/git-version-gen (prefix): Initialize properly,
2084         so as not to use a value specified via the environment.
2085         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2086
2087 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2088
2089         regex: diagnose too-large repeat counts in EREs
2090         Previously, the code did not diagnose the too-large repeat count
2091         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2092         as if it were 'b\{1000000000}', which is unexpected.
2093         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2094         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2095         is a reasonable one for this problem.  Another option would be to
2096         create a new REG_OVERFLOW error for repeat counts that are too large.
2097         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2098         count is too large, so that the caller can distinguish the two cases.
2099         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2100         "Too large" return code, and that repeat counts are one example of this.
2101
2102 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2103
2104         doc: some glibc x32 integer width issues
2105         * doc/posix-headers/sys_types.texi (sys/types.h):
2106         * doc/posix-headers/time.texi (time.h):
2107         Mention that glibc x32 does not conform to POSIX in a couple of
2108         areas related to integer widths.
2109
2110 2012-03-15  Bruno Haible  <bruno@clisp.org>
2111
2112         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2113         * lib/fma.c (VOLATILE): New macro.
2114         (FUNC): Use it to work around a GCC compiler bug.
2115
2116 2012-03-13  Bruno Haible  <bruno@clisp.org>
2117
2118         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2119         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2120         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2121         REPLACE_HYPOTL to 1.
2122         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2123
2124 2012-03-13  Bruno Haible  <bruno@clisp.org>
2125
2126         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2127         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2128         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2129         REPLACE_REMAINDERL to 1.
2130         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2131         bug.
2132
2133 2012-03-13  Bruno Haible  <bruno@clisp.org>
2134
2135         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2136         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2137         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2138         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2139         too big rounding errors.
2140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2141         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2142         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2143         (Depends-on): Update conditions.
2144         * tests/test-sqrtl.c (my_ldexpl): New function.
2145         (main): Add test of a particular value.
2146         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2147
2148 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2149
2150         doc: Update timer_* platform portability notes.
2151         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2152         that always return ENOSYS.
2153         * doc/posix-functions/timer_delete.texi: Likewise.
2154         * doc/posix-functions/timer_gettime.texi: Likewise.
2155         * doc/posix-functions/timer_settime.texi: Likewise.
2156
2157 2012-03-13  Bruno Haible  <bruno@clisp.org>
2158
2159         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2160         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2161         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2162         REPLACE_CBRTL to 1.
2163         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2164
2165 2012-03-13  Bruno Haible  <bruno@clisp.org>
2166
2167         remainderl: Avoid compilation error on AIX >= 5.2.
2168         * lib/math.in.h (remainderl): Undefine macro from the system header.
2169
2170 2012-03-13  Bruno Haible  <bruno@clisp.org>
2171
2172         Avoid compilation errors with MSVC option -fp:strict.
2173         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2174         * lib/cbrtf.c: Likewise.
2175         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2176
2177 2012-03-12  Bruno Haible  <bruno@clisp.org>
2178
2179         uninorm: Don't crash in out-of-memory conditions.
2180         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2181         gracefully.
2182         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2183         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2184
2185 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2186
2187         quote: fix syntax-check
2188         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2189         also exports quote_quoting_options.
2190
2191 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2192
2193         Collapse list of copyright years to ranges.  See
2194         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2195         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2196         build-aux/csharpexec.sh.in, build-aux/gnupload,
2197         build-aux/install-reloc, build-aux/javacomp.sh.in,
2198         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2199         build-aux/move-if-change, build-aux/reloc-ldflags,
2200         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2201
2202 2012-03-11  Bruno Haible  <bruno@clisp.org>
2203
2204         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2205         * m4/log2f-ieee.m4: New file.
2206         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2207         whether log2f works with a minus zero argument. Replace it if not.
2208         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2209         (Depends-on): Add log2-ieee.
2210         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2211         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2212
2213         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2214         * m4/log2-ieee.m4: New file.
2215         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2216         whether log2 works with a minus zero argument. Replace it if not.
2217         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2218         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2219         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2220
2221         Tests for module 'log2l-ieee'.
2222         * modules/log2l-ieee-tests: New file.
2223         * tests/test-log2l-ieee.c: New file.
2224
2225         New module 'log2l-ieee'.
2226         * modules/log2l-ieee: New file.
2227
2228         Tests for module 'log2-ieee'.
2229         * modules/log2-ieee-tests: New file.
2230         * tests/test-log2-ieee.c: New file.
2231
2232         New module 'log2-ieee'.
2233         * modules/log2-ieee: New file.
2234
2235         Tests for module 'log2f-ieee'.
2236         * modules/log2f-ieee-tests: New file.
2237         * tests/test-log2f-ieee.c: New file.
2238         * tests/test-log2-ieee.h: New file.
2239
2240         New module 'log2f-ieee'.
2241         * modules/log2f-ieee: New file.
2242
2243 2012-03-11  Bruno Haible  <bruno@clisp.org>
2244
2245         Tests for module 'log2l'.
2246         * modules/log2l-tests: New file.
2247         * tests/test-log2l.c: New file.
2248
2249         New module 'log2l'.
2250         * lib/math.in.h (log2l): New declaration.
2251         * lib/log2l.c: New file.
2252         * m4/log2l.m4: New file.
2253         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2255         REPLACE_LOG2L.
2256         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2257         REPLACE_LOG2L.
2258         * modules/log2l: New file.
2259         * tests/test-math-c++.cc: Check the declaration of log2l.
2260         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2261         and OSF/1 problems.
2262
2263 2012-03-11  Bruno Haible  <bruno@clisp.org>
2264
2265         Tests for module 'log2f'.
2266         * modules/log2f-tests: New file.
2267         * tests/test-log2f.c: New file.
2268
2269         New module 'log2f'.
2270         * lib/math.in.h (log2f): New declaration.
2271         * lib/log2f.c: New file.
2272         * m4/log2f.m4: New file.
2273         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2275         REPLACE_LOG2F.
2276         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2277         REPLACE_LOG2F.
2278         * modules/log2f: New file.
2279         * tests/test-math-c++.cc: Check the declaration of log2f.
2280         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2281         and OSF/1 and Cygwin problems.
2282
2283 2012-03-11  Bruno Haible  <bruno@clisp.org>
2284
2285         Tests for module 'log2'.
2286         * modules/log2-tests: New file.
2287         * tests/test-log2.c: New file.
2288         * tests/test-log2.h: New file.
2289
2290         New module 'log2'.
2291         * lib/math.in.h (log2): New declaration.
2292         * lib/log2.c: New file.
2293         * m4/log2.m4: New file.
2294         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2296         REPLACE_LOG2.
2297         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2298         REPLACE_LOG2.
2299         * modules/log2: New file.
2300         * tests/test-math-c++.cc: Check the declaration of log2.
2301         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2302         and OSF/1 and Cygwin problems.
2303
2304 2012-03-11  Bruno Haible  <bruno@clisp.org>
2305
2306         exp2* tests: More tests.
2307         * tests/test-exp2.h (test_function): Test all integral arguments that
2308         don't need to overflow or denormalized numbers.
2309         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2310         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2311         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2312
2313 2012-03-10  Bruno Haible  <bruno@clisp.org>
2314
2315         log1pl-ieee: Work around test failure on AIX 7.1.
2316         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2317
2318         log1pl-ieee: Work around test failure on IRIX 6.5.
2319         * m4/log1pl-ieee.m4: New file.
2320         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2321         test whether log1pl works with a minus zero argument. Replace it if
2322         not.
2323         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2325         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2326         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2327         (Depends-on): Update conditions.
2328         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2329         m4/signbit.m4.
2330         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2331         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2332
2333         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2334         * m4/log1pf-ieee.m4: New file.
2335         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2336         test whether log1pf works with a minus zero argument. Replace it if
2337         not.
2338         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2339         m4/signbit.m4.
2340         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2341         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2342
2343         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2344         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2345         (configure.ac): Require gl_FUNC_LOG1PF.
2346
2347         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2348         * m4/log1p-ieee.m4: New file.
2349         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2350         whether log1p works with a minus zero argument. Replace it if not.
2351         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2353         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2354         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2355         (Depends-on): Update conditions.
2356         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2357         m4/signbit.m4.
2358         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2359         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2360
2361         Tests for module 'log1pl-ieee'.
2362         * modules/log1pl-ieee-tests: New file.
2363         * tests/test-log1pl-ieee.c: New file.
2364
2365         New module 'log1pl-ieee'.
2366         * modules/log1pl-ieee: New file.
2367
2368         Tests for module 'log1p-ieee'.
2369         * modules/log1p-ieee-tests: New file.
2370         * tests/test-log1p-ieee.c: New file.
2371
2372         New module 'log1p-ieee'.
2373         * modules/log1p-ieee: New file.
2374
2375         Tests for module 'log1pf-ieee'.
2376         * modules/log1pf-ieee-tests: New file.
2377         * tests/test-log1pf-ieee.c: New file.
2378         * tests/test-log1p-ieee.h: New file.
2379
2380         New module 'log1pf-ieee'.
2381         * modules/log1pf-ieee: New file.
2382
2383 2012-03-10  Bruno Haible  <bruno@clisp.org>
2384
2385         Tests for module 'log1pl'.
2386         * modules/log1pl-tests: New file.
2387         * tests/test-log1pl.c: New file.
2388
2389         New module 'log1pl'.
2390         * lib/math.in.h (log1pl): New declaration.
2391         * lib/log1pl.c: New file.
2392         * m4/log1pl.m4: New file.
2393         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2395         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2396         * modules/log1pl: New file.
2397         * tests/test-math-c++.cc: Check the declaration of log1pl.
2398         * doc/posix-functions/log1pl.texi: Mention the new module.
2399
2400 2012-03-10  Bruno Haible  <bruno@clisp.org>
2401
2402         Tests for module 'log1pf'.
2403         * modules/log1pf-tests: New file.
2404         * tests/test-log1pf.c: New file.
2405
2406         New module 'log1pf'.
2407         * lib/math.in.h (log1pf): New declaration.
2408         * lib/log1pf.c: New file.
2409         * m4/log1pf.m4: New file.
2410         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2412         REPLACE_LOG1PF.
2413         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2414         REPLACE_LOG1PF.
2415         * modules/log1pf: New file.
2416         * tests/test-math-c++.cc: Check the declaration of log1pf.
2417         * doc/posix-functions/log1pf.texi: Mention the new module.
2418
2419 2012-03-10  Bruno Haible  <bruno@clisp.org>
2420
2421         log1p tests: More tests.
2422         * tests/test-log1p.h: New file.
2423         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2424         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2425         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2426         (main): Invoke test_function.
2427
2428         log1p: Provide replacement for Minix and MSVC.
2429         * lib/math.in.h (log1p): New declaration.
2430         * lib/log1p.c: New file.
2431         * m4/log1p.m4: New file.
2432         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2434         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2435         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2436         (Depends-on): Add math, isnand, log, round.
2437         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2438         HAVE_LOG1P is 0.
2439         * tests/test-math-c++.cc: Check the declaration of log1p.
2440         * doc/posix-functions/log1p.texi: Mention the replacement.
2441
2442 2012-03-10  Bruno Haible  <bruno@clisp.org>
2443
2444         math tests: Small simplification.
2445         * tests/test-exp.h (test_function): Use the same err_bound for
2446         'double' on platforms with sizeof (long double) == sizeof (double)
2447         than on platforms with sizeof (long double) > sizeof (double).
2448         * tests/test-exp2.h (test_function): Likewise.
2449         * tests/test-expm1.h (test_function): Likewise.
2450         * tests/test-log.h (test_function): Likewise.
2451
2452 2012-03-10  Bruno Haible  <bruno@clisp.org>
2453
2454         Fix some comments.
2455         * lib/expl.c: Fix an ambiguous comment.
2456         * lib/expm1.c: Likewise.
2457         * lib/expm1l.c: Likewise.
2458         * lib/exp2.c: Likewise.
2459         * lib/exp2l.c: Likewise.
2460
2461 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         regex: allow inclusion of <regex.h> before <limits.h>
2464         Without this patch, portable programs had to include <limits.h> before
2465         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2466         I ran into this problem with a test version of GNU grep on Solaris 8.
2467         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2468         This is done conditionally so that this change can be merged
2469         back to glibc.
2470         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2471         using the included regex.
2472
2473         fts: depend on fdopendir
2474         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2475         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2476         problem was introduced when fdopendir was split out.
2477
2478 2012-03-10  Bruno Haible  <bruno@clisp.org>
2479
2480         Remove unused variables.
2481         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2482         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2483
2484 2012-03-10  Bruno Haible  <bruno@clisp.org>
2485
2486         isnanf-nolibm: Fix last commit.
2487         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2488
2489         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2490         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2491
2492 2012-03-10  Bruno Haible  <bruno@clisp.org>
2493
2494         logf-ieee: Work around test failure on NetBSD 5.1.
2495         * m4/logf-ieee.m4: New file.
2496         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2497         whether logf works with a negative argument. Replace it if not.
2498         * lib/logf.c (logf): For negative arguments, return NaN.
2499         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2500         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2501         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2502
2503         logf-ieee: Work around test failure on Solaris 9.
2504         * modules/logf-ieee (Depends-on): Add log-ieee.
2505         (configure.ac): Require gl_FUNC_LOGF.
2506
2507         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2508         * m4/log-ieee.m4: New file.
2509         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2510         log works with a negative argument. Replace it if not.
2511         * lib/log.c (log): For negative arguments, return NaN.
2512         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2513         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2514         * doc/posix-functions/log.texi: Mention the log-ieee module.
2515
2516         Tests for module 'logl-ieee'.
2517         * modules/logl-ieee-tests: New file.
2518         * tests/test-logl-ieee.c: New file.
2519
2520         New module 'logl-ieee'.
2521         * modules/logl-ieee: New file.
2522
2523         Tests for module 'log-ieee'.
2524         * modules/log-ieee-tests: New file.
2525         * tests/test-log-ieee.c: New file.
2526
2527         New module 'log-ieee'.
2528         * modules/log-ieee: New file.
2529
2530         Tests for module 'logf-ieee'.
2531         * modules/logf-ieee-tests: New file.
2532         * tests/test-logf-ieee.c: New file.
2533         * tests/test-log-ieee.h: New file.
2534
2535         New module 'logf-ieee'.
2536         * modules/logf-ieee: New file.
2537
2538 2012-03-10  Bruno Haible  <bruno@clisp.org>
2539
2540         log: Fix bug introduced on 2012-03-09.
2541         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2542
2543 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2544
2545         timer-time: link explicitly with pthreads on glibc
2546         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2547         to support static linking, when newer glibc is
2548         detected, as that contains pthread emulation of
2549         POSIX timer functions where required.
2550         * modules/timer-time: Depend on threadlib to
2551         pull in the appropriate library to link.
2552
2553 2012-03-10  Bruno Haible  <bruno@clisp.org>
2554
2555         log* tests: More tests.
2556         * tests/test-log.h: New file.
2557         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2558         (main): Invoke test_function.
2559         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2560         (main): Invoke test_function.
2561         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2562         (main): Invoke test_function.
2563         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2564         tests/randomd.c.
2565         (Makefile.am): Add randomd.c to test_log_SOURCES.
2566         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2567         tests/randomf.c.
2568         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2569         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2570         tests/randoml.c.
2571         (Depends-on): Add 'float'.
2572         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2573
2574 2012-03-09  Bruno Haible  <bruno@clisp.org>
2575
2576         logl: Work around OSF/1 5.1 bug.
2577         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2578         * lib/logl.c (logl): If logl exists, use it and provide just the
2579         workaround.
2580         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2581         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2583         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2584         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2585         (Depends-on): Update conditions.
2586         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2587
2588 2012-03-09  Bruno Haible  <bruno@clisp.org>
2589
2590         logf: Work around OSF/1 5.1 bug.
2591         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2592         * lib/logf.c (logf): If logf exists, use it and provide just the
2593         workaround.
2594         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2595         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2597         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2598         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2599         (Depends-on): Update conditions.
2600         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2601
2602 2012-03-09  Bruno Haible  <bruno@clisp.org>
2603
2604         log: Work around OSF/1 5.1 bug.
2605         * lib/math.in.h (log): New declaration.
2606         * lib/log.c: New file.
2607         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2608         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2609         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2611         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2612         * modules/log (Files): Add lib/log.c.
2613         (Depends-on): Add math.
2614         (configure.ac): If REPLACE_LOG is 1, compile an override.
2615         * tests/test-math-c++.cc: Check the declaration of log.
2616         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2617
2618 2012-03-09  Jim Meyering  <meyering@redhat.com>
2619
2620         readtokens.c: adjust wording in a comment
2621         * lib/readtokens.c: Insert omitted "that" in a comment.
2622
2623 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         modechange: add notations +40, 00440, etc.
2626         * lib/modechange.c (mode_compile): Support new notations
2627         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2628
2629 2012-03-08  Bruno Haible  <bruno@clisp.org>
2630
2631         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2632         * m4/exp2l-ieee.m4: New file.
2633         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2634         test whether exp2l works with a NaN argument and with a negative
2635         infinity argument. Replace it if not.
2636         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2638         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2639         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2640         (Depends-on): Update conditions.
2641         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2642         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2643         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2644
2645         Tests for module 'exp2l-ieee'.
2646         * modules/exp2l-ieee-tests: New file.
2647         * tests/test-exp2l-ieee.c: New file.
2648
2649         New module 'exp2l-ieee'.
2650         * modules/exp2l-ieee: New file.
2651
2652         Tests for module 'exp2-ieee'.
2653         * modules/exp2-ieee-tests: New file.
2654         * tests/test-exp2-ieee.c: New file.
2655
2656         New module 'exp2-ieee'.
2657         * modules/exp2-ieee: New file.
2658
2659         Tests for module 'exp2f-ieee'.
2660         * modules/exp2f-ieee-tests: New file.
2661         * tests/test-exp2f-ieee.c: New file.
2662         * tests/test-exp2-ieee.h: New file.
2663
2664         New module 'exp2f-ieee'.
2665         * modules/exp2f-ieee: New file.
2666
2667 2012-03-08  Bruno Haible  <bruno@clisp.org>
2668
2669         Tests for module 'exp2l'.
2670         * modules/exp2l-tests: New file.
2671         * tests/test-exp2l.c: New file.
2672
2673         New module 'exp2l'.
2674         * lib/math.in.h (exp2l): New declaration.
2675         * lib/exp2l.c: New file.
2676         * lib/expl-table.c: New file, extracted from lib/expl.c.
2677         * lib/expl.c (gl_expl_table): New declaration.
2678         (expl): Remove expl_table. Update reference.
2679         * m4/exp2l.m4: New file.
2680         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2682         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2683         * modules/exp2l: New file.
2684         * modules/expl (Files): Add lib/expl-table.c.
2685         (configure.ac): Compile also expl-table.c.
2686         * tests/test-math-c++.cc: Check the declaration of exp2l.
2687         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2688         problem.
2689
2690 2012-03-08  Bruno Haible  <bruno@clisp.org>
2691
2692         Tests for module 'exp2f'.
2693         * modules/exp2f-tests: New file.
2694         * tests/test-exp2f.c: New file.
2695
2696         New module 'exp2f'.
2697         * lib/math.in.h (exp2f): New declaration.
2698         * lib/exp2f.c: New file.
2699         * m4/exp2f.m4: New file.
2700         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2702         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2703         * modules/exp2f: New file.
2704         * tests/test-math-c++.cc: Check the declaration of exp2f.
2705         * doc/posix-functions/exp2f.texi: Mention the new module and the
2706         IRIX problem.
2707
2708 2012-03-08  Bruno Haible  <bruno@clisp.org>
2709
2710         Tests for module 'exp2'.
2711         * modules/exp2-tests: New file.
2712         * tests/test-exp2.c: New file.
2713         * tests/test-exp2.h: New file.
2714
2715         New module 'exp2'.
2716         * lib/math.in.h (exp2): New declaration.
2717         * lib/exp2.c: New file.
2718         * m4/exp2.m4: New file.
2719         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2721         REPLACE_EXP2.
2722         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2723         REPLACE_EXP2.
2724         * modules/exp2: New file.
2725         * tests/test-math-c++.cc: Check the declaration of exp2.
2726         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2727         and OpenBSD problems.
2728
2729 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2730
2731         savedir: fix comment typo
2732         * lib/savedir.c (savedirstream): Fix typo in comment.
2733
2734 2012-03-08  Bruno Haible  <bruno@clisp.org>
2735
2736         test-readtokens.c: use const; remove unwarranted cast
2737         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2738
2739 2012-03-08  Bruno Haible  <bruno@clisp.org>
2740
2741         fmal: Avoid compilation error on AIX.
2742         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2743         AIX 5.2..7.1.
2744
2745 2012-03-08  Bruno Haible  <bruno@clisp.org>
2746
2747         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2748         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2749         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2750         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2751         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2752         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2753         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2754
2755 2012-03-08  Bruno Haible  <bruno@clisp.org>
2756
2757         remainderf: Override buggy system function on IRIX 6.5.
2758         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2759         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2760         when it exists.
2761         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2762
2763 2012-03-08  Jim Meyering  <meyering@redhat.com>
2764
2765         test-readtokens.c: avoid const-related compilation warnings
2766         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2767
2768 2012-03-07  Jim Meyering  <meyering@redhat.com>
2769             Bruno Haible  <bruno@clisp.org>
2770
2771         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2772         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2773         tests/randomd.c.
2774         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2775         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2776         tests/randoml.c.
2777         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2778
2779 2012-03-07  Bruno Haible  <bruno@clisp.org>
2780
2781         expm1l: Avoid compilation error on AIX.
2782         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2783         AIX 5.2..7.1.
2784
2785 2012-03-07  Bruno Haible  <bruno@clisp.org>
2786
2787         expm1l: Don't override undeclared system function on IRIX 6.5.
2788         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2789         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2790         it exists. Set HAVE_DECL_EXPM1L.
2791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2792         HAVE_EXPM1L.
2793         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2794         HAVE_EXPM1L.
2795         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2796
2797 2012-03-07  Bruno Haible  <bruno@clisp.org>
2798
2799         remainderl: Don't override undeclared system function on IRIX 6.5.
2800         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2801         HAVE_REMAINDERL.
2802         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2803         declared when it exists. Set HAVE_DECL_REMAINDERL.
2804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2805         not HAVE_REMAINDERL.
2806         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2807         HAVE_REMAINDERL.
2808         * doc/posix-functions/remainderl.texi: Mention missing declaration
2809         problem.
2810
2811 2012-03-07  Bruno Haible  <bruno@clisp.org>
2812
2813         rintf: Don't override undeclared system function on IRIX 6.5.
2814         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2815         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2816         exists. Set HAVE_DECL_RINTF.
2817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2818         HAVE_RINTF.
2819         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2820         HAVE_RINTF.
2821         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2822
2823 2012-03-07  Bruno Haible  <bruno@clisp.org>
2824
2825         roundl: Avoid compilation error on AIX.
2826         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2827         AIX 5.2..7.1.
2828
2829 2012-03-07  Bruno Haible  <bruno@clisp.org>
2830
2831         roundl: Don't override undeclared system function on IRIX 6.5.
2832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2833         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2834         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2835         * modules/roundl (configure.ac): For replacement code, test
2836         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2837         (Depends-on): Update conditions.
2838         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2839
2840 2012-03-07  Bruno Haible  <bruno@clisp.org>
2841
2842         roundf: Don't override undeclared system function on IRIX 6.5.
2843         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2844         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2845         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2846         * modules/roundf (configure.ac): For replacement code, test
2847         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2848         (Depends-on): Update conditions.
2849         * modules/roundf-ieee (Depends-on): Update conditions.
2850         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2851
2852 2012-03-07  Bruno Haible  <bruno@clisp.org>
2853
2854         round: Don't override undeclared system function on IRIX 6.5.
2855         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2856         argument.
2857         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2858         also when it is not declared. Set HAVE_ROUND. For replacement code,
2859         test HAVE_ROUND, not HAVE_DECL_ROUND.
2860         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2861         not HAVE_DECL_ROUND.
2862         (Depends-on): Update conditions.
2863         * modules/round-ieee (Depends-on): Update conditions.
2864         * doc/posix-functions/round.texi: Mention the IRIX problem.
2865
2866 2012-03-07  Bruno Haible  <bruno@clisp.org>
2867
2868         copysignf: Don't override undeclared system function on IRIX 6.5.
2869         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2870         HAVE_COPYSIGNF.
2871         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2872         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2874         not HAVE_COPYSIGNF.
2875         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2876         HAVE_COPYSIGNF.
2877         * doc/posix-functions/copysignf.texi: Mention missing declaration
2878         problem.
2879
2880 2012-03-07  Jim Meyering  <meyering@redhat.com>
2881
2882         readtokens: add tests
2883         * modules/readtokens-tests: New file.
2884         * tests/test-readtokens.c: New file.
2885
2886 2012-03-07  Jim Meyering  <meyering@redhat.com>
2887
2888         quotearg: the module must now include quote.h
2889         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2890         So must the module.
2891         * modules/quotearg (Files): Add quote.h.
2892
2893 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2894
2895         readtokens: avoid core dumps with unusual calling patterns
2896         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2897         * lib/readtokens.c: Include limits.h.
2898         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2899         (readtoken): Don't cache the delimiters; the cache code was buggy
2900         if !delim && saved_delim, or if the new n_delim differs from the old.
2901         Also, it wasn't thread-safe.
2902
2903 2012-03-07  Bruno Haible  <bruno@clisp.org>
2904
2905         quote: Adhere to common module description layout.
2906         * modules/quote (Makefile.am): Add back empty section.
2907
2908 2012-03-06  Akim Demaille  <demaille@gostai.com>
2909
2910         quote: fuse into quotearg
2911         This patch is made for the benefit of Bison.
2912         quote does not leave the choice of the quoting style to the user.
2913         quoting_style provides poor customizability, yet quoting_options,
2914         which is very rich, is hidden inside quotearg.c.  So in order to
2915         allow quote customization, move its implementation to quotearg.c.
2916         * lib/quote.c: Remove.
2917         * modules/quote: Adjust.
2918         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2919         warning: provide all the members of literal structs.
2920         (quote_quoting_options): New.
2921         (quote, quote_n): Import implementation from quote.c.
2922         * lib/quote.h: Import the comments from quote.c.
2923         (quote_quoting_options): New.
2924
2925 2012-03-06  Bruno Haible  <bruno@clisp.org>
2926
2927         Tests for module 'expm1l-ieee'.
2928         * modules/expm1l-ieee-tests: New file.
2929         * tests/test-expm1l-ieee.c: New file.
2930
2931         New module 'expm1l-ieee'.
2932         * modules/expm1l-ieee: New file.
2933
2934         Tests for module 'expm1f-ieee'.
2935         * modules/expm1f-ieee-tests: New file.
2936         * tests/test-expm1f-ieee.c: New file.
2937
2938         New module 'expm1f-ieee'.
2939         * modules/expm1f-ieee: New file.
2940
2941         Tests for module 'expm1-ieee'.
2942         * modules/expm1-ieee-tests: New file.
2943         * tests/test-expm1-ieee.c: New file.
2944         * tests/test-expm1-ieee.h: New file.
2945
2946         New module 'expm1-ieee'.
2947         * modules/expm1-ieee: New file.
2948         * m4/expm1-ieee.m4: New file.
2949         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2950         whether expm1 works with a minus zero argument. Replace it if not.
2951         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2953         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2954         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2955         (Depends-on): Update conditions.
2956         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2957         AIX problem.
2958
2959 2012-03-06  Bruno Haible  <bruno@clisp.org>
2960
2961         Work around expm1f bug on IRIX 6.5.
2962         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2963         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2964         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2965         not work.
2966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2967         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2968         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2969         (Depends-on): Update conditions.
2970         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2971
2972 2012-03-06  Bruno Haible  <bruno@clisp.org>
2973
2974         Tests for module 'expm1l'.
2975         * modules/expm1l-tests: New file.
2976         * tests/test-expm1l.c: New file.
2977
2978         New module 'expm1l'.
2979         * lib/math.in.h (expm1l): New declaration.
2980         * lib/expm1l.c: New file.
2981         * m4/expm1l.m4: New file.
2982         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2984         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2985         * modules/expm1l: New file.
2986         * tests/test-math-c++.cc: Check the declaration of expm1l.
2987         * doc/posix-functions/expm1l.texi: Mention the new module.
2988
2989 2012-03-06  Bruno Haible  <bruno@clisp.org>
2990
2991         Tests for module 'expm1f'.
2992         * modules/expm1f-tests: New file.
2993         * tests/test-expm1f.c: New file.
2994
2995         New module 'expm1f'.
2996         * lib/math.in.h (expm1f): New declaration.
2997         * lib/expm1f.c: New file.
2998         * m4/expm1f.m4: New file.
2999         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3001         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3002         * modules/expm1f: New file.
3003         * tests/test-math-c++.cc: Check the declaration of expm1f.
3004         * doc/posix-functions/expm1f.texi: Mention the new module.
3005
3006 2012-03-06  Bruno Haible  <bruno@clisp.org>
3007
3008         Tests for module 'expm1'.
3009         * modules/expm1-tests: New file.
3010         * tests/test-expm1.c: New file.
3011         * tests/test-expm1.h: New file.
3012
3013         New module 'expm1'.
3014         * lib/math.in.h (expm1): New declaration.
3015         * lib/expm1.c: New file.
3016         * m4/expm1.m4: New file.
3017         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3019         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3020         * modules/expm1: New file.
3021         * tests/test-math-c++.cc: Check the declaration of expm1.
3022         * doc/posix-functions/expm1.texi: Mention the new module.
3023
3024 2012-03-06  Bruno Haible  <bruno@clisp.org>
3025
3026         math: Ensure declarations of math functions.
3027         * modules/acosf (Depends-on): Add 'extensions'.
3028         * modules/asinf (Depends-on): Likewise.
3029         * modules/atan2f (Depends-on): Likewise.
3030         * modules/atanf (Depends-on): Likewise.
3031         * modules/cbrt (Depends-on): Likewise.
3032         * modules/cbrtf (Depends-on): Likewise.
3033         * modules/cbrtl (Depends-on): Likewise.
3034         * modules/copysignf (Depends-on): Likewise.
3035         * modules/copysignl (Depends-on): Likewise.
3036         * modules/cosf (Depends-on): Likewise.
3037         * modules/coshf (Depends-on): Likewise.
3038         * modules/expf (Depends-on): Likewise.
3039         * modules/fabsf (Depends-on): Likewise.
3040         * modules/fabsl (Depends-on): Likewise.
3041         * modules/fmaf (Depends-on): Likewise.
3042         * modules/fmal (Depends-on): Likewise.
3043         * modules/fmodf (Depends-on): Likewise.
3044         * modules/fmodl (Depends-on): Likewise.
3045         * modules/frexpf (Depends-on): Likewise.
3046         * modules/frexpl (Depends-on): Likewise.
3047         * modules/hypot (Depends-on): Likewise.
3048         * modules/hypotf (Depends-on): Likewise.
3049         * modules/hypotl (Depends-on): Likewise.
3050         * modules/ldexpf (Depends-on): Likewise.
3051         * modules/ldexpl (Depends-on): Likewise.
3052         * modules/log10f (Depends-on): Likewise.
3053         * modules/log10l (Depends-on): Likewise.
3054         * modules/log1p (Depends-on): Likewise.
3055         * modules/logb (Depends-on): Likewise.
3056         * modules/logf (Depends-on): Likewise.
3057         * modules/modff (Depends-on): Likewise.
3058         * modules/modfl (Depends-on): Likewise.
3059         * modules/powf (Depends-on): Likewise.
3060         * modules/remainderf (Depends-on): Likewise.
3061         * modules/remainderl (Depends-on): Likewise.
3062         * modules/rintf (Depends-on): Likewise.
3063         * modules/rintl (Depends-on): Likewise.
3064         * modules/sinf (Depends-on): Likewise.
3065         * modules/sinhf (Depends-on): Likewise.
3066         * modules/sqrtf (Depends-on): Likewise.
3067         * modules/tanf (Depends-on): Likewise.
3068         * modules/tanhf (Depends-on): Likewise.
3069         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3070         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3071         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3072         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3073         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3074         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3075         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3076         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3077         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3078         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3079         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3080         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3081         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3082         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3083         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3084         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3085         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3086         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3087         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3088         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3089         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3090         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3091         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3092         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3094         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3095         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3096         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3097         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3098         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3099         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3100         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3101         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3102         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3103         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3104         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3105         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3106         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3107         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3108         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3109         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3110
3111 2012-03-06  Bruno Haible  <bruno@clisp.org>
3112
3113         math: Update module names in warnings.
3114         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3115         tanl): Use specific module name in warn-on-use warning.
3116
3117 2012-03-06  Bruno Haible  <bruno@clisp.org>
3118
3119         expl: Simplify computation.
3120         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3121
3122 2012-03-05  Bruno Haible  <bruno@clisp.org>
3123
3124         exp* tests: More tests.
3125         * tests/test-exp.h: New file.
3126         * tests/test-exp.c: Include <float.h> and test-exp.h.
3127         (main): Invoke test_function.
3128         * tests/test-expf.c: Include <float.h> and test-exp.h.
3129         (main): Invoke test_function.
3130         * tests/test-expl.c: Include <float.h> and test-exp.h.
3131         (main): Invoke test_function.
3132         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3133         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3134         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3135         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3136         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3137         (Depends-on): Add 'float'.
3138         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3139
3140         expl: Fix precision of computed result.
3141         * lib/expl.c: Completely rewritten.
3142         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3143         (Maintainer): Add me.
3144         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3145
3146 2012-03-05  Bruno Haible  <bruno@clisp.org>
3147
3148         cbrt* tests: More tests.
3149         * tests/test-cbrt.h: New file.
3150         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3151         (main): Invoke test_function.
3152         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3153         (main): Invoke test_function.
3154         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3155         (main): Invoke test_function.
3156         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3157         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3158         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3159         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3160         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3161         (Depends-on): Add 'float'.
3162         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3163
3164 2012-03-05  Bruno Haible  <bruno@clisp.org>
3165
3166         hypot* tests: More tests.
3167         * tests/test-hypot.h: New file, partially extracted from
3168         tests/test-hypotl.c.
3169         * tests/test-hypot.c: Include test-hypot.h.
3170         (main): Invoke test_function.
3171         * tests/test-hypotf.c: Include test-hypot.h.
3172         (main): Invoke test_function.
3173         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3174         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3175         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3176         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3177         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3178         tests/randomf.c.
3179         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3180         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3181         tests/randoml.c.
3182         (Depends-on): Add 'fpucw', 'float'.
3183         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3184
3185 2012-03-05  Bruno Haible  <bruno@clisp.org>
3186
3187         fpucw: Doc about FreeBSD.
3188         * lib/fpucw.h: Mention FreeBSD in comments.
3189
3190 2012-03-04  Bruno Haible  <bruno@clisp.org>
3191
3192         sqrt* tests: More tests.
3193         * tests/test-sqrt.h: New file.
3194         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3195         (main): Invoke test_function.
3196         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3197         (main): Invoke test_function.
3198         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3199         (main): Invoke test_function.
3200         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3201         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3202         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3203         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3204         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3205         (Depends-on): Add 'float'.
3206         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3207
3208 2012-03-04  Bruno Haible  <bruno@clisp.org>
3209
3210         remainder* tests: More tests.
3211         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3212         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3213         (main): Invoke test_function.
3214         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3215         (main): Invoke test_function.
3216         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3217         (main): Invoke test_function.
3218         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3219         tests/randomd.c.
3220         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3221         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3222         tests/randomf.c.
3223         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3224         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3225         tests/randoml.c.
3226         (Depends-on): Add 'float'.
3227         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3228
3229 2012-03-04  Bruno Haible  <bruno@clisp.org>
3230
3231         remainder, remainderf, remainderl: Fix computation for large quotients.
3232         * lib/remainder.c: Completely rewritten.
3233         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3234         USE_FLOAT.
3235         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3236         USE_LONG_DOUBLE.
3237         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3238         isnand, isinf. Remove round, fma.
3239         * modules/remainderf (Files): Add lib/remainder.c.
3240         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3241         Remove roundf, fmaf.
3242         * modules/remainderl (Files): Add lib/remainder.c.
3243         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3244         isinf. Remove roundl, fmal.
3245         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3246         REMAINDER_LIBM.
3247         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3248         REMAINDERF_LIBM.
3249         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3250         REMAINDERL_LIBM.
3251
3252 2012-03-04  Bruno Haible  <bruno@clisp.org>
3253
3254         fmod* tests: More tests.
3255         * tests/test-fmod.h (my_ldexp): New function.
3256         (test_function): Reduce amount of random numbers to test. Add tests
3257         of very large quotients x / y.
3258         * tests/test-fmod.c (MAX_EXP): New macro.
3259         * tests/test-fmodf.c (MAX_EXP): Likewise.
3260         * tests/test-fmodl.c (MAX_EXP): Likewise.
3261
3262 2012-03-04  Bruno Haible  <bruno@clisp.org>
3263
3264         fmod, fmodl: Fix computation for large quotients x / y.
3265         * lib/fmod.c: Completely rewritten.
3266         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3267         USE_LONG_DOUBLE.
3268         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3269         isnand. Remove fma.
3270         * modules/fmodl (Files): Add lib/fmod.c.
3271         (Depends-on): Add float, isfinite, signbit, fabsl,
3272         frexpl, ldexpl, isnanl. Remove fma.
3273         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3274         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3275
3276 2012-03-03  Bruno Haible  <bruno@clisp.org>
3277
3278         fmod* tests: More tests.
3279         * tests/test-fmod.h: New file.
3280         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3281         (main): Invoke test_function.
3282         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3283         (main): Invoke test_function.
3284         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3285         (main): Invoke test_function.
3286         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3287         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3288         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3289         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3290         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3291         (Depends-on): Add 'float'.
3292         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3293
3294 2012-03-03  Bruno Haible  <bruno@clisp.org>
3295
3296         rint* tests: More tests.
3297         * tests/test-rint.h: New file, partially extracted from
3298         tests/test-rintl.c.
3299         * tests/test-rint.c: Include test-rint.h.
3300         (main): Invoke test_function.
3301         * tests/test-rintf.c: Include test-rint.h.
3302         (main): Invoke test_function.
3303         * tests/test-rintl.c: Include test-rint.h.
3304         (main): Invoke test_function.
3305         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3306         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3307         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3308         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3309         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3310         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3311
3312 2012-03-03  Bruno Haible  <bruno@clisp.org>
3313
3314         modf* tests: More tests.
3315         * tests/test-modf.h: New file.
3316         * tests/test-modf.c: Include <float.h> and test-modf.h.
3317         (main): Invoke test_function.
3318         * tests/test-modff.c: Include <float.h> and test-modf.h.
3319         (main): Invoke test_function.
3320         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3321         (main): Invoke test_function.
3322         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3323         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3324         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3325         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3326         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3327         (Depends-on): Add 'float'.
3328         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3329
3330 2012-03-03  Bruno Haible  <bruno@clisp.org>
3331
3332         fabs* tests: More tests.
3333         * tests/test-fabs.h: New file, partially extracted from
3334         tests/test-fabsl.c.
3335         * tests/test-fabs.c (RANDOM): New macro.
3336         * tests/test-fabsf.c (RANDOM): New macro.
3337         * tests/test-fabsl.c (RANDOM): New macro.
3338         * modules/fabs-tests (Files): Add tests/randomd.c.
3339         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3340         * modules/fabsf-tests (Files): Add tests/randomf.c.
3341         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3342         * modules/fabsl-tests (Files): Add tests/randoml.c.
3343         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3344
3345 2012-03-03  Bruno Haible  <bruno@clisp.org>
3346
3347         ldexp* tests: More tests.
3348         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3349         * tests/test-ldexp.c (RANDOM): New macro.
3350         * tests/test-ldexpf.c (RANDOM): New macro.
3351         * tests/test-ldexpl.c (RANDOM): New macro.
3352         * modules/ldexp-tests (Files): Add tests/randomd.c.
3353         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3354         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3355         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3356         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3357         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3358
3359 2012-03-03  Bruno Haible  <bruno@clisp.org>
3360
3361         frexp* tests: More tests.
3362         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3363         * tests/test-frexp.c (RANDOM): New macro.
3364         * tests/test-frexpf.c (RANDOM): New macro.
3365         * tests/test-frexpl.c (RANDOM): New macro.
3366         * modules/frexp-tests (Files): Add tests/randomd.c.
3367         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3368         * modules/frexpf-tests (Files): Add tests/randomf.c.
3369         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3370         * modules/frexpl-tests (Files): Add tests/randoml.c.
3371         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3372
3373 2012-03-03  Bruno Haible  <bruno@clisp.org>
3374
3375         Support for pseudo-random numbers in tests.
3376         * tests/randomf.c: New file.
3377         * tests/randomd.c: New file.
3378         * tests/randoml.c: New file.
3379         * tests/macros.h (randomf, randomd, randoml): New declarations.
3380
3381 2012-03-03  Bruno Haible  <bruno@clisp.org>
3382
3383         frexp* tests: Refactor.
3384         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3385         * tests/test-frexp.c: Include and use it.
3386         * tests/test-frexpf.c: Likewise.
3387         * tests/test-frexpl.c: Likewise.
3388         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3389         * modules/frexpf-tests (Files): Likewise.
3390         * modules/frexpl-tests (Files): Likewise.
3391
3392 2012-03-02  Jim Meyering  <meyering@redhat.com>
3393
3394         maint: don't specify XZ_OPT=-9ev in dist-related rule
3395         Using xz's -9 option is warranted only if you have a very large
3396         tarball (see xz's documentation for the sizes vs. presets), and
3397         requires 64MiB of memory at decompression time.
3398         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3399         Automake's default of just "-e" is fine.  Override on a
3400         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3401
3402 2012-03-01  Eric Blake  <eblake@redhat.com>
3403
3404         maint.mk: allow announcement for non-gnulib project
3405         * maint.mk (announcement): Skip gnulib version if not used.
3406
3407 2012-03-01  Jim Meyering  <meyering@redhat.com>
3408
3409         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3410         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3411         envvar settings cannot interfere.  Otherwise, setting envvars like
3412         prohibit=foo require=bar, etc. would cause spurious test failures.
3413
3414 2012-03-01  Eric Blake  <eblake@redhat.com>
3415
3416         maint.mk: add per-line exclusions to prohibitions
3417         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3418         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3419         (sc_const_long_option): Use it.
3420
3421 2012-03-01  Bruno Haible  <bruno@clisp.org>
3422
3423         Tests for module 'expl-ieee'.
3424         * modules/expl-ieee-tests: New file.
3425         * tests/test-expl-ieee.c: New file.
3426
3427         New module 'expl-ieee'.
3428         * modules/expl-ieee: New file.
3429
3430         Tests for module 'exp-ieee'.
3431         * modules/exp-ieee-tests: New file.
3432         * tests/test-exp-ieee.c: New file.
3433
3434         New module 'exp-ieee'.
3435         * modules/exp-ieee: New file.
3436
3437         Tests for module 'expf-ieee'.
3438         * modules/expf-ieee-tests: New file.
3439         * tests/test-expf-ieee.c: New file.
3440         * tests/test-exp-ieee.h: New file.
3441
3442         New module 'expf-ieee'.
3443         * modules/expf-ieee: New file.
3444
3445 2012-02-29  Bruno Haible  <bruno@clisp.org>
3446
3447         cbrtl-ieee: Work around test failure on IRIX 6.5.
3448         * m4/cbrtl-ieee.m4: New file.
3449         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3450         test whether cbrtl works with a minus zero argument. Replace it if not.
3451         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3453         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3454         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3455         (Depends-on): Update conditions.
3456         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3457         m4/signbit.m4.
3458         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3459         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3460         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3461
3462         Tests for module 'cbrtl-ieee'.
3463         * modules/cbrtl-ieee-tests: New file.
3464         * tests/test-cbrtl-ieee.c: New file.
3465
3466         New module 'cbrtl-ieee'.
3467         * modules/cbrtl-ieee: New file.
3468
3469         Tests for module 'cbrt-ieee'.
3470         * modules/cbrt-ieee-tests: New file.
3471         * tests/test-cbrt-ieee.c: New file.
3472
3473         New module 'cbrt-ieee'.
3474         * modules/cbrt-ieee: New file.
3475
3476         Tests for module 'cbrtf-ieee'.
3477         * modules/cbrtf-ieee-tests: New file.
3478         * tests/test-cbrtf-ieee.c: New file.
3479         * tests/test-cbrt-ieee.h: New file.
3480
3481         New module 'cbrtf-ieee'.
3482         * modules/cbrtf-ieee: New file.
3483
3484 2012-02-29  Bruno Haible  <bruno@clisp.org>
3485
3486         cbrtf: Work around bug in IRIX 6.5 system function.
3487         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3488         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3489         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3490         work.
3491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3492         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3493         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3494         (Depends-on): Update conditions.
3495         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3496
3497 2012-02-29  Bruno Haible  <bruno@clisp.org>
3498
3499         Tests for module 'cbrtl'.
3500         * modules/cbrtl-tests: New file.
3501         * tests/test-cbrtl.c: New file.
3502
3503         New module 'cbrtl'.
3504         * lib/math.in.h (cbrtl): New declaration.
3505         * lib/cbrtl.c: New file.
3506         * m4/cbrtl.m4: New file.
3507         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3509         HAVE_DECL_CBRTL.
3510         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3511         HAVE_DECL_CBRTL.
3512         * modules/cbrtl: New file.
3513         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3514         * doc/posix-functions/cbrtl.texi: Mention the new module.
3515
3516 2012-02-29  Bruno Haible  <bruno@clisp.org>
3517
3518         Tests for module 'cbrtf'.
3519         * modules/cbrtf-tests: New file.
3520         * tests/test-cbrtf.c: New file.
3521
3522         New module 'cbrtf'.
3523         * lib/math.in.h (cbrtf): New declaration.
3524         * lib/cbrtf.c: New file.
3525         * m4/cbrtf.m4: New file.
3526         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3528         HAVE_DECL_CBRTF.
3529         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3530         HAVE_DECL_CBRTF.
3531         * modules/cbrtf: New file.
3532         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3533         * doc/posix-functions/cbrtf.texi: Mention the new module.
3534
3535 2012-02-29  Bruno Haible  <bruno@clisp.org>
3536
3537         cbrt: Provide replacement on MSVC and Minix.
3538         * lib/math.in.h (cbrt): New declaration.
3539         * lib/cbrt.c: New file.
3540         * m4/cbrt.m4: New file.
3541         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3543         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3544         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3545         (Depends-on): Add dependencies.
3546         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3547         * tests/test-math-c++.cc: Check the declaration of cbrt.
3548         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3549         replacement.
3550
3551 2012-02-29  Bruno Haible  <bruno@clisp.org>
3552
3553         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3554         * m4/hypotl-ieee.m4: New file.
3555         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3556         test whether hypotl works with mixed NaN and Infinity arguments.
3557         Replace it if not.
3558         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3560         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3561         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3562         (Depends-on): Update conditions.
3563         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3564         (Depends-on): Add hypot-ieee.
3565         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3566         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3567
3568         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3569         * m4/hypotf-ieee.m4: New file.
3570         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3571         test whether hypotf works with mixed NaN and Infinity arguments.
3572         Replace it if not.
3573         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3574         (Depends-on): Add hypot-ieee.
3575         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3576         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3577
3578         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3579         * lib/math.in.h (hypot): New declaration.
3580         * lib/hypot.c: New file.
3581         * m4/hypot-ieee.m4: New file.
3582         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3583         whether hypot works with mixed NaN and Infinity arguments. Replace it
3584         if not.
3585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3586         REPLACE_HYPOT.
3587         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3588         * modules/hypot (Files): Add lib/hypot.c.
3589         (Depends-on): Add dependencies.
3590         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3591         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3592         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3593         * tests/test-math-c++.cc: Check the declaration of hypot.
3594         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3595
3596         Tests for module 'hypotl-ieee'.
3597         * modules/hypotl-ieee-tests: New file.
3598         * tests/test-hypotl-ieee.c: New file.
3599
3600         New module 'hypotl-ieee'.
3601         * modules/hypotl-ieee: New file.
3602
3603         Tests for module 'hypot-ieee'.
3604         * modules/hypot-ieee-tests: New file.
3605         * tests/test-hypot-ieee.c: New file.
3606
3607         New module 'hypot-ieee'.
3608         * modules/hypot-ieee: New file.
3609
3610         Tests for module 'hypotf-ieee'.
3611         * modules/hypotf-ieee-tests: New file.
3612         * tests/test-hypotf-ieee.c: New file.
3613         * tests/test-hypot-ieee.h: New file.
3614
3615         New module 'hypotf-ieee'.
3616         * modules/hypotf-ieee: New file.
3617
3618 2012-02-29  Bruno Haible  <bruno@clisp.org>
3619
3620         Remove unused variables.
3621         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3622         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3623         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3624         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3625
3626 2012-02-29  Eric Blake  <eblake@redhat.com>
3627
3628         termios: fix pid_t always, not just for tcgetsid
3629         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3630         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3631         just when building tcgetsid.
3632
3633 2012-02-29  Bruno Haible  <bruno@clisp.org>
3634
3635         Tests for module 'hypotl'.
3636         * modules/hypotl-tests: New file.
3637         * tests/test-hypotl.c: New file.
3638
3639         New module 'hypotl'.
3640         * lib/math.in.h (hypotl): New declaration.
3641         * lib/hypotl.c: New file.
3642         * m4/hypotl.m4: New file.
3643         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3645         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3646         * modules/hypotl: New file.
3647         * tests/test-math-c++.cc: Check the hypotl declaration.
3648         * doc/posix-functions/hypotl.texi: Mention the new module.
3649
3650 2012-02-29  Eric Blake  <eblake@redhat.com>
3651
3652         tcgetsid: fix cygwin header bug
3653         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3654
3655         docs: update cygwin progress
3656         * doc/posix-functions/llround.texi (llround): Added in cygwin
3657         1.7.8.
3658         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3659         * doc/glibc-functions/program_invocation_name.texi
3660         (program_invocation_name): Likewise.
3661         * doc/glibc-functions/program_invocation_short_name.texi
3662         (program_invocation_short_name): Likewise.
3663         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3664         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3665         Likewise.
3666         * doc/posix-functions/pthread_spin_destroy.texi
3667         (pthread_spin_destroy): Added in cygwin 1.7.10.
3668         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3669         Likewise.
3670         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3671         Likewise.
3672         * doc/posix-functions/pthread_spin_trylock.texi
3673         (pthread_spin_trylock): Likewise.
3674         * doc/posix-functions/pthread_spin_unlock.texi
3675         (pthread_spin_unlock): Likewise.
3676         * doc/posix-functions/pthread_setschedprio.texi
3677         (pthread_setschedprio): Likewise.
3678         * doc/posix-functions/pthread_attr_getstack.texi
3679         (pthread_attr_getstack): Likewise.
3680         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3681         (pthread_attr_getstackaddr): Likewise.
3682         * doc/glibc-functions/pthread_getattr_np.texi
3683         (pthread_getattr_np): Likewise.
3684         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3685         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3686         * doc/posix-functions/clock_settime.texi (clock_settime):
3687         Likewise.
3688         * doc/posix-functions/pthread_attr_getguardsize.texi
3689         (pthread_attr_getguardsize): Likewise.
3690         * doc/posix-functions/pthread_attr_setguardsize.texi
3691         (pthread_attr_setguardsize): Likewise.
3692         * doc/posix-functions/pthread_attr_setstack.texi
3693         (pthread_attr_setstack): Likewise.
3694         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3695         (pthread_attr_setstackaddr): Likewise.
3696         * doc/posix-functions/clock_getcpuclockid.texi
3697         (clock_getcpuclockid): Likewise.
3698         * doc/posix-functions/pthread_getcpuclockid.texi
3699         (pthread_getcpuclockid): Likewise.
3700         * doc/glibc-functions/error.texi (error): Likewise.
3701         * doc/glibc-functions/error_at_line.texi (error_at_line):
3702         Likewise.
3703         * doc/glibc-functions/error_message_count.texi
3704         (error_message_count): Likewise.
3705         * doc/glibc-functions/error_one_per_line.texi
3706         (error_one_per_line): Likewise.
3707         * doc/glibc-functions/error_print_progname.texi
3708         (error_print_progname): Likewise.
3709         * doc/posix-functions/pthread_condattr_getclock.texi
3710         (pthread_condattr_getclock): Likewise.
3711         * doc/posix-functions/pthread_condattr_setclock.texi
3712         (pthread_condattr_setclock): Likewise.
3713         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3714         Likewise.
3715         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3716         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3717         * doc/glibc-functions/get_current_dir_name.texi
3718         (get_current_dir_name): Likewise.
3719         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3720         Likewise.
3721         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3722         wrong return type.
3723         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3724         1.7.11.
3725
3726 2012-02-29  Bruno Haible  <bruno@clisp.org>
3727
3728         Tests for module 'hypotf'.
3729         * modules/hypotf-tests: New file.
3730         * tests/test-hypotf.c: New file.
3731
3732         New module 'hypotf'.
3733         * lib/math.in.h (hypotf): New declaration.
3734         * lib/hypotf.c: New file.
3735         * m4/hypotf.m4: New file.
3736         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3738         REPLACE_HYPOTF.
3739         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3740         REPLACE_HYPOTF.
3741         * modules/hypotf: New file.
3742         * tests/test-math-c++.cc: Check the hypotf declaration.
3743         * doc/posix-functions/hypotf.texi: Mention the new module.
3744
3745         hypot: Prepare for hypotf module.
3746         * m4/hypot.m4: New file.
3747         * modules/hypot (Files): Add m4/hypot.m4.
3748         (configure.ac): Invoke gl_FUNC_HYPOT.
3749
3750 2012-02-29  Bruno Haible  <bruno@clisp.org>
3751
3752         hypot tests: More tests.
3753         * tests/test-hypot.c: Include <float.h>.
3754         (main): Add tests about overflow and underflow.
3755
3756 2012-02-29  Bruno Haible  <bruno@clisp.org>
3757
3758         math code: Add comments.
3759         * lib/acosl.c: Add comment about related glibc source files.
3760         * lib/asinl.c: Likewise.
3761         * lib/atanl.c: Likewise.
3762         * lib/expl.c: Likewise.
3763         * lib/logl.c: Likewise.
3764         * lib/sincosl.c: Likewise.
3765         * lib/sinl.c: Likewise.
3766         * lib/tanl.c: Likewise.
3767         * lib/trigl.c: Likewise.
3768         * lib/cosl.c: Likewise. Fix comments.
3769
3770 2012-02-28  Bruno Haible  <bruno@clisp.org>
3771
3772         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3773         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3774         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3775         HUGE_VALL are defined.
3776         (numeric_equald): Renamed from numeric_equal.
3777         (numeric_equalf, numeric_equall): New functions.
3778         (main): Check also HUGE_VALF, HUGE_VALL.
3779         * modules/math-tests (Files): Add tests/macros.h.
3780         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3781         HUGE_VALL.
3782
3783 2012-02-28  Bruno Haible  <bruno@clisp.org>
3784
3785         doc: Move ISO C11 feature notes into POSIX chapters.
3786         * doc/posix-functions/aligned_alloc.texi: Renamed from
3787         doc/glibc-functions/aligned_alloc.texi.
3788         * doc/posix-functions/quick_exit.texi: Renamed from
3789         doc/glibc-functions/quick_exit.texi.
3790         * doc/posix-headers/uchar.texi: Renamed from
3791         doc/glibc-headers/uchar.texi.
3792         * doc/posix-functions/c16rtomb.texi: Renamed from
3793         doc/glibc-functions/c16rtomb.texi.
3794         * doc/posix-functions/c32rtomb.texi: Renamed from
3795         doc/glibc-functions/c32rtomb.texi.
3796         * doc/posix-functions/mbrtoc16.texi: Renamed from
3797         doc/glibc-functions/mbrtoc16.texi.
3798         * doc/posix-functions/mbrtoc32.texi: Renamed from
3799         doc/glibc-functions/mbrtoc32.texi.
3800         * doc/gnulib.texi: Update.
3801         (Glibc uchar.h): Remove section.
3802         Suggested by Eric Blake.
3803
3804 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3805
3806         stdnoreturn: port to MSVC better
3807         MSVC standard headers use __declspec(noreturn), so #define noreturn
3808         to empty on that platform.  Reported by Bruno Haible in
3809         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3810         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3811         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3812
3813 2012-02-28  Bruno Haible  <bruno@clisp.org>
3814
3815         doc: Mention new glibc headers and functions.
3816         * doc/glibc-headers/uchar.texi: New file.
3817         * doc/glibc-functions/aligned_alloc.texi: New file.
3818         * doc/glibc-functions/c16rtomb.texi: New file.
3819         * doc/glibc-functions/c32rtomb.texi: New file.
3820         * doc/glibc-functions/clock_adjtime.texi: New file.
3821         * doc/glibc-functions/fanotify_init.texi: New file.
3822         * doc/glibc-functions/fanotify_mark.texi: New file.
3823         * doc/glibc-functions/inet6_opt_append.texi: New file.
3824         * doc/glibc-functions/inet6_opt_find.texi: New file.
3825         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3826         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3827         * doc/glibc-functions/inet6_opt_init.texi: New file.
3828         * doc/glibc-functions/inet6_opt_next.texi: New file.
3829         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3830         * doc/glibc-functions/inet6_rth_add.texi: New file.
3831         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3832         * doc/glibc-functions/inet6_rth_init.texi: New file.
3833         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3834         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3835         * doc/glibc-functions/inet6_rth_space.texi: New file.
3836         * doc/glibc-functions/login.texi: New file.
3837         * doc/glibc-functions/mbrtoc16.texi: New file.
3838         * doc/glibc-functions/mbrtoc32.texi: New file.
3839         * doc/glibc-functions/name_to_handle_at.texi: New file.
3840         * doc/glibc-functions/ntp_gettimex.texi: New file.
3841         * doc/glibc-functions/open_by_handle_at.texi: New file.
3842         * doc/glibc-functions/prlimit.texi: New file.
3843         * doc/glibc-functions/process_vm_readv.texi: New file.
3844         * doc/glibc-functions/process_vm_writev.texi: New file.
3845         * doc/glibc-functions/recvmmsg.texi: New file.
3846         * doc/glibc-functions/scandirat.texi: New file.
3847         * doc/glibc-functions/sendmmsg.texi: New file.
3848         * doc/glibc-functions/setns.texi: New file.
3849         * doc/glibc-functions/timespec_get.texi: New file.
3850         * doc/gnulib.texi: Include them.
3851         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3852         sections.
3853         Reported by Eric Blake.
3854
3855 2012-02-28  Bruno Haible  <bruno@clisp.org>
3856
3857         Avoid compilation errors with MSVC option -fp:strict.
3858         * lib/floor.c: Use MSVC specific pragma fenv_access.
3859         * lib/ceil.c: Likewise.
3860         * lib/trunc.c: Likewise.
3861         * lib/round.c: Likewise.
3862         * lib/rint.c: Likewise.
3863         * lib/fma.c: Likewise.
3864         * lib/integer_length.c: Likewise.
3865         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3866         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3867         * tests/test-floor2.c: Likewise.
3868         * tests/test-floorf2.c: Likewise.
3869         * tests/test-ceil2.c: Likewise.
3870         * tests/test-ceilf2.c: Likewise.
3871         * tests/test-trunc2.c: Likewise.
3872         * tests/test-truncf2.c: Likewise.
3873         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3874
3875 2012-02-27  Bruno Haible  <bruno@clisp.org>
3876
3877         Tests for module 'sqrtl-ieee'.
3878         * modules/sqrtl-ieee-tests: New file.
3879         * tests/test-sqrtl-ieee.c: New file.
3880
3881         New module 'sqrtl-ieee'.
3882         * modules/sqrtl-ieee: New file.
3883
3884         Tests for module 'sqrt-ieee'.
3885         * modules/sqrt-ieee-tests: New file.
3886         * tests/test-sqrt-ieee.c: New file.
3887
3888         New module 'sqrt-ieee'.
3889         * modules/sqrt-ieee: New file.
3890
3891         Tests for module 'sqrtf-ieee'.
3892         * modules/sqrtf-ieee-tests: New file.
3893         * tests/test-sqrtf-ieee.c: New file.
3894         * tests/test-sqrt-ieee.h: New file.
3895
3896         New module 'sqrtf-ieee'.
3897         * modules/sqrtf-ieee: New file.
3898
3899 2012-02-27  Bruno Haible  <bruno@clisp.org>
3900
3901         remainderl-ieee: Work around test failure on OSF/1.
3902         * m4/remainderl-ieee.m4: New file.
3903         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3904         present, test whether remainderl works with a zero second argument.
3905         Replace it if not.
3906         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3908         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3909         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3910         (Depends-on): Update conditions.
3911         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3912         (Depends-on): Add remainder-ieee.
3913         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3914         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3915         module.
3916
3917         remainderf-ieee: Work around test failure on OSF/1.
3918         * m4/remainderf-ieee.m4: New file.
3919         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3920         present, test whether remainderf works with a zero second argument.
3921         Replace it if not.
3922         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3924         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3925         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3926         (Depends-on): Update conditions.
3927         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3928         (Depends-on): Add remainder-ieee.
3929         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3930         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3931         module.
3932
3933         remainder-ieee: Work around test failure on OSF/1.
3934         * m4/remainder-ieee.m4: New file.
3935         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3936         present, test whether remainder works with a zero second argument.
3937         Replace it if not.
3938         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3940         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3941         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3942         (Depends-on): Update dependencies.
3943         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3944         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3945         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3946
3947         Tests for module 'remainderl-ieee'.
3948         * modules/remainderl-ieee-tests: New file.
3949         * tests/test-remainderl-ieee.c: New file.
3950
3951         New module 'remainderl-ieee'.
3952         * modules/remainderl-ieee: New file.
3953
3954         Tests for module 'remainder-ieee'.
3955         * modules/remainder-ieee-tests: New file.
3956         * tests/test-remainder-ieee.c: New file.
3957
3958         New module 'remainder-ieee'.
3959         * modules/remainder-ieee: New file.
3960
3961         Tests for module 'remainderf-ieee'.
3962         * modules/remainderf-ieee-tests: New file.
3963         * tests/test-remainderf-ieee.c: New file.
3964         * tests/test-remainder-ieee.h: New file.
3965
3966         New module 'remainderf-ieee'.
3967         * modules/remainderf-ieee: New file.
3968
3969 2012-02-27  Bruno Haible  <bruno@clisp.org>
3970
3971         modff, modfl: Fix configure syntax error.
3972         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3973         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3974
3975 2012-02-27  Bruno Haible  <bruno@clisp.org>
3976
3977         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3978         * m4/fmodl-ieee.m4: New file.
3979         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3980         whether fmodl works with zero arguments. Replace it if not.
3981         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3982         (Depends-on): Add fmod-ieee.
3983         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3984         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3985
3986         fmodf-ieee: Work around test failure on OSF/1.
3987         * m4/fmodf-ieee.m4: New file.
3988         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3989         whether fmodf works with zero arguments. Replace it if not.
3990         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3992         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3993         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3994         (Depends-on): Update dependencies.
3995         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3996         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3997         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3998
3999         fmodf-ieee: Work around test failure on MSVC 9.
4000         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4001         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4002
4003         fmod-ieee: Work around test failures on OSF/1, mingw.
4004         * m4/fmod-ieee.m4: New file.
4005         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4006         whether fmod works with zero arguments. Replace it if not.
4007         * lib/math.in.h (fmod): New declaration.
4008         * lib/fmod.c: New file.
4009         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4011         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4012         * modules/fmod (Files): Add lib/fmod.c.
4013         (Depends-on): Add math, isinf, trunc, fma.
4014         (configure.ac): Arrange to compile lib/fmod.c if needed.
4015         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4016         m4/signbit.m4.
4017         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4018         * tests/test-math-c++.cc: Check the declaration of fmod.
4019         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4020
4021         fmodl-ieee: Fix test failures.
4022         * lib/fmodl.c (fmodl): Treat Inf specially.
4023         * modules/fmodl (Depends-on): Add isinf.
4024
4025         Tests for module 'fmodl-ieee'.
4026         * modules/fmodl-ieee-tests: New file.
4027         * tests/test-fmodl-ieee.c: New file.
4028
4029         New module 'fmodl-ieee'.
4030         * modules/fmodl-ieee: New file.
4031
4032         Tests for module 'fmod-ieee'.
4033         * modules/fmod-ieee-tests: New file.
4034         * tests/test-fmod-ieee.c: New file.
4035
4036         New module 'fmod-ieee'.
4037         * modules/fmod-ieee: New file.
4038
4039         Tests for module 'fmodf-ieee'.
4040         * modules/fmodf-ieee-tests: New file.
4041         * tests/test-fmodf-ieee.c: New file.
4042         * tests/test-fmod-ieee.h: New file.
4043
4044         New module 'fmodf-ieee'.
4045         * modules/fmodf-ieee: New file.
4046
4047 2012-02-27  Bruno Haible  <bruno@clisp.org>
4048
4049         Tests for module 'rintl-ieee'.
4050         * modules/rintl-ieee-tests: New file.
4051         * tests/test-rintl-ieee.c: New file.
4052
4053         New module 'rintl-ieee'.
4054         * modules/rintl-ieee: New file.
4055
4056         Tests for module 'rint-ieee'.
4057         * modules/rint-ieee-tests: New file.
4058         * tests/test-rint-ieee.c: New file.
4059
4060         New module 'rint-ieee'.
4061         * modules/rint-ieee: New file.
4062
4063         Tests for module 'rintf-ieee'.
4064         * modules/rintf-ieee-tests: New file.
4065         * tests/test-rintf-ieee.c: New file.
4066         * tests/test-rint-ieee.h: New file.
4067
4068         New module 'rintf-ieee'.
4069         * modules/rintf-ieee: New file.
4070
4071 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4072
4073         regex: re_search etc. should return -2 when memory exhausted
4074         This bug was uncovered when testing 'grep'.  Without the fix,
4075         re_search and friends return -1 when memory is exhausted, but -1
4076         means no match, and this causes grep to falsely report no-match
4077         instead of memory-exhaustion.  See
4078         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4079         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4080         trouble; this can occur if re_search_internal ran out of memory.
4081
4082 2012-02-26  Bruno Haible  <bruno@clisp.org>
4083
4084         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4085         * m4/modfl-ieee.m4: New file.
4086         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4087         whether modfl works with Inf. Replace it if not.
4088         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4090         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4091         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4092         (Depends-on): Update dependencies.
4093         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4094         m4/signbit.m4.
4095         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4096         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4097
4098         modfl-ieee: Fix dependencies.
4099         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4100
4101         modfl-ieee: Fix test failures.
4102         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4103         * modules/modfl (Depends-on): Add isfinite, isinf.
4104
4105         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4106         * m4/modff-ieee.m4: New file.
4107         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4108         whether modff works with NaN and Inf. Replace it if not.
4109         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4111         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4112         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4113         (Depends-on): Update dependencies.
4114         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4115         m4/signbit.m4.
4116         (Depends-on): Add modf-ieee.
4117         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4118         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4119
4120         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4121         * m4/modf-ieee.m4: New file.
4122         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4123         whether modf works with NaN and Inf. Replace it if not.
4124         * lib/math.in.h (modf): New declaration.
4125         * lib/modf.c: New file.
4126         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4128         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4129         * modules/modf (Files): Add lib/modf.c.
4130         (Depends-on): Add math, isfinite, trunc, isinf.
4131         (configure.ac): Addrange to compile lib/modf.c if needed.
4132         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4133         m4/signbit.m4.
4134         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4135         * tests/test-math-c++.cc: Check the declaration of modf.
4136         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4137
4138         Tests for module 'modfl-ieee'.
4139         * modules/modfl-ieee-tests: New file.
4140         * tests/test-modfl-ieee.c: New file.
4141
4142         New module 'modfl-ieee'.
4143         * modules/modfl-ieee: New file.
4144
4145         Tests for module 'modf-ieee'.
4146         * modules/modf-ieee-tests: New file.
4147         * tests/test-modf-ieee.c: New file.
4148
4149         New module 'modf-ieee'.
4150         * modules/modf-ieee: New file.
4151
4152         Tests for module 'modff-ieee'.
4153         * modules/modff-ieee-tests: New file.
4154         * tests/test-modff-ieee.c: New file.
4155         * tests/test-modf-ieee.h: New file.
4156
4157         New module 'modff-ieee'.
4158         * modules/modff-ieee: New file.
4159
4160 2012-02-26  Bruno Haible  <bruno@clisp.org>
4161
4162         Tests for module 'fabsl-ieee'.
4163         * modules/fabsl-ieee-tests: New file.
4164         * tests/test-fabsl-ieee.c: New file.
4165
4166         New module 'fabsl-ieee'.
4167         * modules/fabsl-ieee: New file.
4168
4169         Tests for module 'fabs-ieee'.
4170         * modules/fabs-ieee-tests: New file.
4171         * tests/test-fabs-ieee.c: New file.
4172
4173         New module 'fabs-ieee'.
4174         * modules/fabs-ieee: New file.
4175
4176         Tests for module 'fabsf-ieee'.
4177         * modules/fabsf-ieee-tests: New file.
4178         * tests/test-fabsf-ieee.c: New file.
4179         * tests/test-fabs-ieee.h: New file.
4180
4181         New module 'fabsf-ieee'.
4182         * modules/fabsf-ieee: New file.
4183
4184 2012-02-26  Bruno Haible  <bruno@clisp.org>
4185
4186         Tests for module 'fmal-ieee'.
4187         * modules/fmal-ieee-tests: New file.
4188         * tests/test-fmal-ieee.c: New file.
4189
4190         New module 'fmal-ieee'.
4191         * modules/fmal-ieee: New file.
4192
4193         Tests for module 'fma-ieee'.
4194         * modules/fma-ieee-tests: New file.
4195         * tests/test-fma-ieee.c: New file.
4196
4197         New module 'fma-ieee'.
4198         * modules/fma-ieee: New file.
4199
4200         Tests for module 'fmaf-ieee'.
4201         * modules/fmaf-ieee-tests: New file.
4202         * tests/test-fmaf-ieee.c: New file.
4203         * tests/test-fma-ieee.h: New file.
4204
4205         New module 'fmaf-ieee'.
4206         * modules/fmaf-ieee: New file.
4207
4208 2012-02-26  Bruno Haible  <bruno@clisp.org>
4209
4210         Tests for module 'ldexpl-ieee'.
4211         * modules/ldexpl-ieee-tests: New file.
4212         * tests/test-ldexpl-ieee.c: New file.
4213
4214         New module 'ldexpl-ieee'.
4215         * modules/ldexpl-ieee: New file.
4216
4217         Tests for module 'ldexp-ieee'.
4218         * modules/ldexp-ieee-tests: New file.
4219         * tests/test-ldexp-ieee.c: New file.
4220
4221         New module 'ldexp-ieee'.
4222         * modules/ldexp-ieee: New file.
4223
4224         Tests for module 'ldexpf-ieee'.
4225         * modules/ldexpf-ieee-tests: New file.
4226         * tests/test-ldexpf-ieee.c: New file.
4227         * tests/test-ldexp-ieee.h: New file.
4228
4229         New module 'ldexpf-ieee'.
4230         * modules/ldexpf-ieee: New file.
4231
4232 2012-02-26  Bruno Haible  <bruno@clisp.org>
4233
4234         Refactor frexp*-ieee tests.
4235         * tests/test-frexp-ieee.h: New file.
4236         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4237         (main): Just call test_function.
4238         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4239         (main): Just call test_function.
4240         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4241         (main): Just call test_function.
4242         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4243         * modules/frexp-ieee-tests (Files): Likewise.
4244         * modules/frexpl-ieee-tests (Files): Likewise.
4245
4246         Tests for module 'frexpl-ieee'.
4247         * modules/frexpl-ieee-tests: New file.
4248         * tests/test-frexpl-ieee.c: New file.
4249
4250         New module 'frexpl-ieee'.
4251         * modules/frexpl-ieee: New file.
4252
4253         Tests for module 'frexp-ieee'.
4254         * modules/frexp-ieee-tests: New file.
4255         * tests/test-frexp-ieee.c: New file.
4256
4257         New module 'frexp-ieee'.
4258         * modules/frexp-ieee: New file.
4259
4260         Tests for module 'frexpf-ieee'.
4261         * modules/frexpf-ieee-tests: New file.
4262         * tests/test-frexpf-ieee.c: New file.
4263
4264         New module 'frexpf-ieee'.
4265         * modules/frexpf-ieee: New file.
4266
4267 2012-02-26  Bruno Haible  <bruno@clisp.org>
4268
4269         roundl-ieee tests: More tests.
4270         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4271         (main): Add tests for [MX] shaded specification in POSIX.
4272         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4273         (Depends-on): Add isnanl-nolibm.
4274
4275         round-ieee tests: More tests.
4276         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4277         (main): Add tests for [MX] shaded specification in POSIX.
4278         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4279         (Depends-on): Add isnand-nolibm.
4280
4281         roundf-ieee tests: More tests.
4282         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4283         (main): Add tests for [MX] shaded specification in POSIX.
4284         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4285         (Depends-on): Add isnanf-nolibm.
4286
4287         truncl-ieee tests: More tests.
4288         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4289         (main): Add tests for [MX] shaded specification in POSIX.
4290         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4291         (Depends-on): Add isnanl-nolibm.
4292
4293         trunc-ieee tests: More tests.
4294         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4295         (main): Add tests for [MX] shaded specification in POSIX.
4296         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4297         (Depends-on): Add isnand-nolibm.
4298
4299         truncf-ieee tests: More tests.
4300         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4301         (main): Add tests for [MX] shaded specification in POSIX.
4302         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4303         (Depends-on): Add isnanf-nolibm.
4304
4305         ceill-ieee tests: More tests.
4306         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4307         (main): Add tests for [MX] shaded specification in POSIX.
4308         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4309         (Depends-on): Add isnanl-nolibm.
4310
4311         ceil-ieee tests: More tests.
4312         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4313         (main): Add tests for [MX] shaded specification in POSIX.
4314         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4315         (Depends-on): Add isnand-nolibm.
4316
4317         ceilf-ieee tests: More tests.
4318         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4319         (main): Add tests for [MX] shaded specification in POSIX.
4320         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4321         (Depends-on): Add isnanf-nolibm.
4322
4323         floorl-ieee tests: More tests.
4324         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4325         (main): Add tests for [MX] shaded specification in POSIX.
4326         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4327         (Depends-on): Add isnanl-nolibm.
4328
4329         floor-ieee tests: More tests.
4330         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4331         (main): Add tests for [MX] shaded specification in POSIX.
4332         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4333         (Depends-on): Add isnand-nolibm.
4334
4335         floorf-ieee tests: More tests.
4336         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4337         (main): Add tests for [MX] shaded specification in POSIX.
4338         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4339         (Depends-on): Add isnanf-nolibm.
4340
4341 2012-02-26  Bruno Haible  <bruno@clisp.org>
4342
4343         fpieee: More comments.
4344         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4345
4346 2012-02-25  Bruno Haible  <bruno@clisp.org>
4347
4348         Tests for module 'log10l'.
4349         * modules/log10l-tests: New file.
4350         * tests/test-log10l.c: New file.
4351         * tests/test-math-c++.cc: Check the declaration of log10l.
4352
4353         New module 'log10l'.
4354         * lib/math.in.h (log10l): New declaration.
4355         * lib/log10l.c: New file.
4356         * m4/log10l.m4: New file.
4357         * modules/log10l: New file.
4358         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4360         HAVE_DECL_LOG10L.
4361         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4362         HAVE_DECL_LOG10L.
4363         * doc/posix-functions/log10l.texi: Mention the new module.
4364
4365 2012-02-25  Bruno Haible  <bruno@clisp.org>
4366
4367         fmodl, remainder*: Avoid wrong results due to rounding errors.
4368         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4369         expected bounds.
4370         * lib/remainderf.c (remainderf): Likewise.
4371         * lib/remainder.c (remainder): Likewise.
4372         * lib/remainderl.c (remainderl): Likewise.
4373
4374 2012-02-25  Bruno Haible  <bruno@clisp.org>
4375
4376         Tests for module 'remainderl'.
4377         * modules/remainderl-tests: New file.
4378         * tests/test-remainderl.c: New file.
4379         * tests/test-math-c++.cc: Check the declaration of remainderl.
4380
4381         New module 'remainderl'.
4382         * lib/math.in.h (remainderl): New declaration.
4383         * lib/remainderl.c: New file.
4384         * m4/remainderl.m4: New file.
4385         * modules/remainderl: New file.
4386         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4388         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4389         HAVE_REMAINDERL.
4390         * doc/posix-functions/remainderl.texi: Mention the new module.
4391
4392 2012-02-25  Bruno Haible  <bruno@clisp.org>
4393
4394         Tests for module 'remainderf'.
4395         * modules/remainderf-tests: New file.
4396         * tests/test-remainderf.c: New file.
4397         * tests/test-math-c++.cc: Check the declaration of remainderf.
4398
4399         New module 'remainderf'.
4400         * lib/math.in.h (remainderf): New declaration.
4401         * lib/remainderf.c: New file.
4402         * m4/remainderf.m4: New file.
4403         * modules/remainderf: New file.
4404         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4406         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4407         HAVE_REMAINDERF.
4408         * doc/posix-functions/remainderf.texi: Mention the new module.
4409
4410 2012-02-25  Bruno Haible  <bruno@clisp.org>
4411
4412         remainder: Support for MSVC.
4413         * lib/math.in.h (remainder): New declaration.
4414         * lib/remainder.c: New file.
4415         * m4/remainder.m4: New file.
4416         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4417         (Depends-on): Add math, round, fma.
4418         (configure.ac): Use results of gl_FUNC_REMAINDER.
4419         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4421         HAVE_DECL_REMAINDER.
4422         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4423         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4424         * tests/test-math-c++.cc: Check the declaration of remainder.
4425         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4426         problems are fixed.
4427
4428 2012-02-25  Bruno Haible  <bruno@clisp.org>
4429
4430         Tests for module 'fmodl'.
4431         * modules/fmodl-tests: New file.
4432         * tests/test-fmodl.c: New file.
4433         * tests/test-math-c++.cc: Check the declaration of fmodl.
4434
4435         New module 'fmodl'.
4436         * lib/math.in.h (fmodl): New declaration.
4437         * lib/fmodl.c: New file.
4438         * m4/fmodl.m4: New file.
4439         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4441         REPLACE_FMODL.
4442         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4443         REPLACE_FMODL.
4444         * modules/fmodl: New file.
4445         * doc/posix-functions/fmodl.texi: Mention the new module.
4446
4447 2012-02-25  Bruno Haible  <bruno@clisp.org>
4448
4449         Tests for module 'modfl'.
4450         * modules/modfl-tests: New file.
4451         * tests/test-modfl.c: New file.
4452         * tests/test-math-c++.cc: Check the declaration of modfl.
4453
4454         New module 'modfl'.
4455         * lib/math.in.h (modfl): New declaration.
4456         * lib/modfl.c: New file.
4457         * m4/modfl.m4: New file.
4458         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4460         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4461         * modules/modfl: New file.
4462         * doc/posix-functions/modfl.texi: Mention the new module.
4463
4464 2012-02-25  Bruno Haible  <bruno@clisp.org>
4465
4466         Tests for module 'fabsl'.
4467         * modules/fabsl-tests: New file.
4468         * tests/test-fabsl.c: New file.
4469         * tests/test-math-c++.cc: Check the declaration of fabsl.
4470
4471         New module 'fabsl'.
4472         * lib/math.in.h (fabsl): New declaration.
4473         * lib/fabsl.c: New file.
4474         * m4/fabsl.m4: New file.
4475         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4477         REPLACE_FABSL.
4478         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4479         REPLACE_FABSL.
4480         * modules/fabsl: New file.
4481         * doc/posix-functions/fabsl.texi: Mention the new module.
4482
4483 2012-02-25  Bruno Haible  <bruno@clisp.org>
4484
4485         fabs tests: More tests.
4486         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4487         (zero): New variable.
4488         (main): Add tests for signed zero.
4489         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4490
4491         fabsf tests: More tests.
4492         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4493         (zero): New variable.
4494         (main): Add tests for signed zero.
4495         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4496
4497 2012-02-24  Bruno Haible  <bruno@clisp.org>
4498
4499         atanl: Provide function definition on MSVC.
4500         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4501         function pointer.
4502         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4503
4504 2012-02-24  Bruno Haible  <bruno@clisp.org>
4505
4506         acosl: Provide function definition on MSVC.
4507         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4508         function pointer.
4509         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4510
4511 2012-02-24  Bruno Haible  <bruno@clisp.org>
4512
4513         asinl: Provide function definition on MSVC.
4514         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4515         function pointer.
4516         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4517
4518 2012-02-24  Bruno Haible  <bruno@clisp.org>
4519
4520         tanl: Provide function definition on MSVC.
4521         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4522         function pointer.
4523         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4524
4525 2012-02-24  Bruno Haible  <bruno@clisp.org>
4526
4527         cosl: Provide function definition on MSVC.
4528         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4529         function pointer.
4530         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4531
4532 2012-02-24  Bruno Haible  <bruno@clisp.org>
4533
4534         sinl: Provide function definition on MSVC.
4535         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4536         function pointer.
4537         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4538
4539 2012-02-24  Bruno Haible  <bruno@clisp.org>
4540
4541         logl: Provide function definition on MSVC.
4542         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4543         function pointer.
4544         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4545
4546 2012-02-24  Bruno Haible  <bruno@clisp.org>
4547
4548         expl: Provide function definition on MSVC.
4549         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4550         function pointer.
4551         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4552
4553 2012-02-24  Bruno Haible  <bruno@clisp.org>
4554
4555         sqrtl: Provide function definition on MSVC.
4556         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4557         a function pointer.
4558         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4559
4560 2012-02-24  Bruno Haible  <bruno@clisp.org>
4561
4562         ceill: Provide function definition on MSVC.
4563         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4564         used as a function pointer.
4565         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4566
4567 2012-02-24  Bruno Haible  <bruno@clisp.org>
4568
4569         floorl: Provide function definition on MSVC.
4570         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4571         used as a function pointer.
4572         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4573
4574 2012-02-24  Bruno Haible  <bruno@clisp.org>
4575
4576         ceilf: Provide function definition on MSVC.
4577         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4578         used as a function pointer.
4579         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4580
4581 2012-02-24  Bruno Haible  <bruno@clisp.org>
4582
4583         floorf: Provide function definition on MSVC.
4584         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4585         used as a function pointer.
4586         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4587
4588 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4589
4590         stdnoreturn: new module
4591         This implements a replacement for C11's <stdnoreturn.h>.
4592         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4593         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4594         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4595         * tests/test-stdnoreturn.c: New files.
4596
4597 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4598
4599         regex: fix false multibyte matches in some regular expressions
4600         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4601         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4602         * lib/regex_internal.c (re_string_skip_chars):
4603         Fix miscomputation of remain_len that may cause incomplete
4604         multi-byte character and false match.
4605
4606 2012-02-24  Jim Meyering  <meyering@redhat.com>
4607
4608         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4609         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4610         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4611         Remove now-unnecessary str''cmp obfuscation.
4612         Suggested by Akim Demaille.
4613
4614 2012-02-24  Bruno Haible  <bruno@clisp.org>
4615
4616         streq: Rename macro.
4617         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4618         * NEWS: Mention the change.
4619         * lib/mbrtowc.c (mbrtowc): Update.
4620         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4621         * lib/wcwidth.c (wcwidth): Update.
4622         Suggested by Akim Demaille and Jim Meyering.
4623
4624 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         regex: fix typo in definition of MIN
4627         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4628         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4629
4630 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4631             Bruno Haible  <bruno@clisp.org>
4632
4633         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4634         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4635         entries into a stack-allocated buffer directly.
4636         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4637
4638 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4639             Bruno Haible  <bruno@clisp.org>
4640
4641         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4642
4643          - There were several instances of this pattern:
4644
4645              for (;;) {
4646                n = acl (f, GETACLCNT, 0, NULL);
4647                [ allocate an array A of size N ]
4648                if (acl (f, GETACL, n, a) == n)
4649                  break;
4650              }
4651
4652            This loop might never terminate if some other process is constantly
4653            manipulating the file's ACL.  The loop should be rewritten to
4654            terminate.
4655
4656          - The acl (... GETACLNT ...) call is merely an optimization; its value
4657            is merely a hint as to how big to make the array.  A better
4658            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4659            and just guess a reasonably-big size, growing the size and trying
4660            again if it's not large enough.  This guarantees termination, and
4661            saves a system call.
4662
4663         * lib/acl-internal.h: Include <limits.h>.
4664         (MIN, SIZE_MAX): New macros.
4665         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4666         a stack-allocated buffer, and use malloc if it does not fit. Don't
4667         use GETACLCNT.
4668         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4669
4670 2012-02-19  Bruno Haible  <bruno@clisp.org>
4671
4672         acl: Fix endless loop on Solaris with vxfs.
4673         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4674         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4675         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4676         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4677         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4678         Reported by Bill Jones in
4679         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4680
4681 2012-02-19  Bruno Haible  <bruno@clisp.org>
4682
4683         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4684         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4685         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4686         that this function returns 0 in some more cases.
4687
4688 2012-02-19  Bruno Haible  <bruno@clisp.org>
4689
4690         acl: Update doc references.
4691         * doc/acl-resources.txt: Update links to Solaris documentation.
4692
4693 2012-02-19  Bruno Haible  <bruno@clisp.org>
4694
4695         Fix test failure in many locales on Solaris 11.
4696         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4697         'tr' arguments.
4698         * tests/test-pipe-filter-ii1.c (main): Likewise.
4699         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4700         expressions in the C locale.
4701         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4702         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4703
4704 2012-02-19  Bruno Haible  <bruno@clisp.org>
4705
4706         gnulib-tool: Improve usage message.
4707         * gnulib-tool (func_usage): Move doc of --help and --version to the
4708         section "Operation modes".
4709
4710 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4711
4712         README-release: make it easier to execute commands
4713         * top/README-release: break commands out on to separate lines.
4714
4715 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4716
4717         GNUmakefile: simplify detection of unconfigured trees
4718         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4719         whether the tree make is being run from is already configured or
4720         not.  Related simplifications.
4721
4722 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4723
4724         * gnulib-tool (func_usage): Document --help and --version.
4725
4726 2012-02-11  Jim Meyering  <meyering@redhat.com>
4727
4728         bootstrap: don't exit 0 upon gnulib-tool failure
4729         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4730         its exit status, not 0.
4731
4732 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4733
4734         README-release: various improvements
4735         * top/README-release: Give a command to push changes for the
4736         release.  Add "distcheck" to list of other pre-release checks.
4737         Fix instance of "make stable" which should be "make TYPE".
4738
4739 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4740
4741         maint: replace FSF snail-mail addresses with URLs
4742         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4743         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4744         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4745         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4746         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4747         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4748         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4749         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4750         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4751         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4752         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4753         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4754         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4755         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4756         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4757         * lib/glthread/thread.c, lib/glthread/thread.h:
4758         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4759         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4760         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4761         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4762         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4763         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4764         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4765         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4766         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4767         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4768         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4769         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4770         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4771         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4772         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4773         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4774         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4775         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4776         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4777         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4778         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4779         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4780         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4781         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4782         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4783         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4784         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4785         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4786         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4787         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4788         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4789         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4790         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4791         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4792         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4793         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4794         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4795         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4796         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4797         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4798         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4799         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4800         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4801         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4802         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4803         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4804         * tests/test-poll.c, tests/test-quotearg-simple.c:
4805         * tests/test-quotearg.c, tests/test-quotearg.h:
4806         * tests/test-round-ieee.c, tests/test-round1.c:
4807         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4808         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4809         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4810         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4811         * tests/test-strerror.c, tests/test-strerror_r.c:
4812         * tests/test-strsignal.c, tests/test-strverscmp.c:
4813         * tests/test-xmemdup0.c:
4814         Replace FSF snail mail addresses with URLs, as per GNU coding
4815         standards.  See glibc bug
4816         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4817
4818 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4819
4820         README-release: capitalize a word and split a line
4821         * top/README-release: Fix punctuation and spacing.
4822
4823 2012-02-08  Akim Demaille  <demaille@gostai.com>
4824
4825         fatal-signal: use C prototypes (with explicit void).
4826         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4827         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4828
4829 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4830
4831         regex: spelling fix
4832         * lib/regexec.c: spelling fix
4833
4834         regex: rely on stdint.h for SIZE_MAX
4835         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4836
4837 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4838
4839         regex: merge glibc changes
4840
4841         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4842         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4843         (init_word_char): Work even if bitset words are not exactly 32 or
4844         64 bits wide.  Don't assume there are no padding bits.
4845         * lib/regex.c [_LIBC]: Do not include <config.h>.
4846         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4847         and -Wtype-limits.
4848         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4849         needless disagreement with glibc.  All uses changed.  Define it to
4850         1 only if _GNU_SOURCE, to match glibc.
4851         (_REG_RM_NAME): Remove; no longer needed, since the names in
4852         question are now all protected by __USE_GNU.
4853         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4854         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4855         * lib/regex_internal.h (MIN): New macro.
4856
4857         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4858         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4859
4860         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4861         * lib/regex_internal.c (re_string_fetch_byte_case):
4862         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4863         is miscompiled, and it turns out it is because of an incorrect
4864         attribute on re_string_fetch_byte_case.  Unlike
4865         re_string_peek_byte_case, this one is really not pure, it modifies
4866         memory (increments pstr->cur_idx), and with the pure attribute GCC
4867         assumed it doesn't and it cached the presumed value of
4868         regexp->cur_idx in a variable across the
4869          for (;; ++i)
4870            {
4871              if (i >= BRACKET_NAME_BUF_SIZE)
4872                return REG_EBRACK;
4873              if (token->type == OP_OPEN_CHAR_CLASS)
4874                ch = re_string_fetch_byte_case (regexp);
4875              else
4876                ch = re_string_fetch_byte (regexp);
4877              if (re_string_eoi(regexp))
4878                return REG_EBRACK;
4879              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4880                break;
4881              elem->opr.name[i] = ch;
4882            }
4883
4884         2011-11-29 Andreas Schwab <schwab@redhat.com>
4885         * lib/regcomp.c (build_equiv_class):
4886         Fix access after end of search string in regex matcher.
4887
4888         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4889         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4890
4891         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4892         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4893
4894         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4895         * lib/regcomp.c (parse_branch, parse_sub_exp):
4896         More regex memory leak fixes and tests.
4897         (parse_sub_exp, parse_bracket_exp):
4898         Fix memory leak for some invalid regular expressions.
4899
4900         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4901         * lib/regex_internal.c, lib/regexec.c:
4902         Fix unnecessary overallocation due to incomplete character.  When
4903         incomplete characters are found at the end of a string the code
4904         ran amok and allocated lots of memory.  Stricter limits are now in
4905         place.
4906
4907         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4908         * lib/regex.h: Update documentation.
4909
4910         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4911         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4912
4913         2010-05-05 Andreas Schwab <schwab@redhat.com>
4914         * lib/regexec.c (find_collation_sequence_value):
4915         Fix lookup of collation sequence value during regexp matching.
4916
4917         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4918         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4919
4920         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4921         * lib/regex.h: Cleanup namespace.
4922
4923         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4924         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4925
4926         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4927         * lib/regex_internal.h: Prevent some declarations and definitions
4928         to be seen when used in tests.
4929
4930         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4931         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4932         __libc_lock_* macros if not _LIBC.
4933         (struct re_dfa_t): Add lock.
4934
4935 2012-02-07  Eric Blake  <eblake@redhat.com>
4936
4937         maint.mk: also prohibit lower-case @var@
4938         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4939         lower case, like @top_srcdir@.
4940
4941 2012-02-04  Eric Blake  <eblake@redhat.com>
4942
4943         canonicalize: avoid uninitialized memory use
4944         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4945         random '/' left in dest.
4946         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4947
4948 2012-02-04  Bruno Haible  <bruno@clisp.org>
4949
4950         isatty: Fix test failure of ptsname_r on native Windows.
4951         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4952         and don't set errno.
4953         (isatty): Test first whether fd is valid. Set errno when returning 0.
4954
4955 2012-02-04  Bruno Haible  <bruno@clisp.org>
4956
4957         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4958         * tests/test-spawn-pipe-main.c: Include progname.h.
4959         (main): Invoke set_program_name.
4960         * modules/spawn-pipe-tests (Depends-on): Add progname.
4961
4962         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4963         * tests/test-nonblocking-socket-main.c: Include progname.h.
4964         (main): Invoke set_program_name.
4965         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4966
4967         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4968         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4969         (main): Invoke set_program_name.
4970         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4971
4972 2012-02-04  Eric Blake  <eblake@redhat.com>
4973
4974         canonicalize-lgpl: fix // handling
4975         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4976
4977         canonicalize: fix // handling
4978         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4979         /// to //, since only // is special.
4980
4981 2012-02-04  Bruno Haible  <bruno@clisp.org>
4982
4983         ioctl: Fix test failure on native Windows.
4984         * lib/ioctl.c: Include msvc-nothrow.h.
4985         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4986
4987 2012-02-04  Bruno Haible  <bruno@clisp.org>
4988
4989         fsync: Avoid test failure on native Windows.
4990         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4991         read-only.
4992
4993 2012-02-04  Bruno Haible  <bruno@clisp.org>
4994
4995         sys_select: Avoid syntax error on OpenBSD 5.0.
4996         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4997         currently being included, just include the system's <sys/select.h>.
4998
4999 2012-02-04  Bruno Haible  <bruno@clisp.org>
5000
5001         sys_select: Avoid syntax error on OpenBSD 5.0.
5002         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5003         <sys/select.h>, not before.
5004         Reported by Jiri B <jirib@devio.us>.
5005
5006 2012-02-04  Bruno Haible  <bruno@clisp.org>
5007
5008         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5009         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5010         global variables.
5011         * tests/test-get-rusage-data.c (main): Likewise.
5012         Reported by Jim Meyering.
5013
5014 2012-02-04  Bruno Haible  <bruno@clisp.org>
5015
5016         stdioext: Fix last commit.
5017         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5018
5019 2012-02-03  Bruno Haible  <bruno@clisp.org>
5020
5021         stdioext: Add tentative support for Plan9.
5022         * lib/stdio-impl.h: Include <errno.h>.
5023         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5024         * lib/freadable.c (freadable): Likewise.
5025         * lib/fwritable.c (fwritable): Likewise.
5026         * lib/fbufmode.c (fbufmode): Likewise.
5027         * lib/freading.c (freading): Likewise.
5028         * lib/fwriting.c (fwriting): Likewise.
5029         * lib/freadptr.c (freadptr): Likewise.
5030         * lib/freadseek.c (freadptrinc): Likewise.
5031         * lib/freadahead.c (freadahead): Likewise.
5032         * lib/fpurge.c (fpurge): Likewise.
5033         * lib/fseeko.c (rpl_fseeko): Likewise.
5034         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5035         Reported by Jens Staal <staal1978@gmail.com>.
5036
5037 2012-02-02  Jim Meyering  <meyering@redhat.com>
5038
5039         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5040         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5041         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5042         not even to try to add the attribute.  Instead, add a pragma to suppress
5043         the suggestion/warning.
5044
5045 2012-01-31  Karl Berry  <karl@gnu.org>
5046
5047         setstate doc: typo.
5048         * doc/posix-functions/setstate.texi (setstate): { not (.
5049
5050 2012-01-31  Bruno Haible  <bruno@clisp.org>
5051
5052         popen: Make more robust on Windows.
5053         * lib/popen.c: On native Windows, use the _popen based code even if
5054         HAVE_POPEN is set.
5055         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5056         environment variable on native Windows.
5057
5058 2012-01-30  Bruno Haible  <bruno@clisp.org>
5059
5060         pclose: Fix typo.
5061         * lib/stdio.in.h (pclose): Fix typo in warning message.
5062
5063 2012-01-30  Bruno Haible  <bruno@clisp.org>
5064
5065         doc about getlogin_r, setstate.
5066         * doc/posix-functions/getlogin_r.texi: List the incompatible
5067         declaration problem under "not fixed by gnulib".
5068         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5069         problem on Solaris 11 and other platforms.
5070
5071 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5072             Bruno Haible  <bruno@clisp.org>
5073
5074         poll tests: Make test more robust.
5075         * tests/test-poll.c: Include macros.h.
5076         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5077         return value of various I/O operations.
5078         * modules/poll-tests (Files): Add tests/macros.h.
5079
5080 2012-01-30  Bruno Haible  <bruno@clisp.org>
5081
5082         sys_stat: Fix support for mingw64 and MSVC.
5083         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5084         header files already do it.
5085         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5086         stat itself.
5087         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5088
5089 2012-01-30  Bruno Haible  <bruno@clisp.org>
5090
5091         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5093         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5094
5095 2012-01-29  Bruno Haible  <bruno@clisp.org>
5096
5097         quotearg: Fix test failure on MacOS X 10.5.
5098         * tests/test-quotearg-simple.c: Include localcharset.h.
5099         (main): If the locale encoding is not ASCII, bypass the tests of
5100         locale_quoting_style and clocale_quoting_style.
5101         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5102
5103 2012-01-29  Jim Meyering  <meyering@redhat.com>
5104
5105         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5106         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5107         detect uses of canonicalize_file_name.
5108
5109 2012-01-28  Bruno Haible  <bruno@clisp.org>
5110
5111         test-framework-sh: Fix test failure with AIX 7.1 diff.
5112         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5113         in column 1, like 'diff -c' does.
5114         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5115         whether 'diff -u' is used. Instead, test whether the output contains
5116         some '@' character.
5117
5118 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5119
5120         strtoimax: eliminate need for stdint.h, inttypes.h checks
5121         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5122         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5123         the prerequisites for a recently-introduced strtoimax test.
5124         I guess this might cause strtoimax to be replaced when not
5125         strictly necessary on older hosts, but this shouldn't introduce
5126         any bugs and it should make Emacs 'configure' faster on typical
5127         modern hosts.  Problem discovered when importing the latest gnulib
5128         to an Emacs test version.
5129         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5130
5131 2012-01-28  Bruno Haible  <bruno@clisp.org>
5132
5133         sys_time: Override 'struct timeval' on some native Windows platforms.
5134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5135         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5136         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5137         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5138         needs to be overridden.
5139         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5140         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5141         * tests/test-sys_select.c: Check that the tv_sec member has the same
5142         size as a 'time_t'.
5143         * tests/test-sys_time.c: Likewise.
5144         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5145         is set, set also REPLACE_GETTIMEOFDAY.
5146         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5147         convert the resulting 'struct timeval' before returning.
5148         * lib/select.c: Include <sys/time.h>.
5149         (select, timeval): Undefine at the right place.
5150         * modules/select (Depends-on): Add sys_time.
5151         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5152         some Windows platforms.
5153         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5154
5155 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5156
5157         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5158         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5159         an integer.
5160         * lib/fcntl.c (dupfd): Likewise.
5161         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5162
5163 2012-01-28  Bruno Haible  <bruno@clisp.org>
5164
5165         fcntl: Avoid compilation error on native Windows.
5166         * modules/fcntl (Depends-on): Add 'close'.
5167
5168 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5169
5170         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5171         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5172         pointer to an integer.
5173         * lib/poll.c (IsConsoleHandle): Likewise.
5174         * lib/isatty.c (IsConsoleHandle): Likewise.
5175
5176 2012-01-28  Jim Meyering  <meyering@redhat.com>
5177
5178         doc: clarify README-release
5179         * top/README-release: Clarify: you should make a point to have
5180         the latest stable versions of build tools in your PATH, and the
5181         reference to buildreq is solely for its list of tool names, not
5182         for its minimal-functional version numbers.
5183         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5184
5185         maint.mk: use more readable (yet functionally equivalent) quoting
5186         It is common to quote a single quote in a single quoted string like
5187         this:  '...'\''...'.  Unless you know the idiom, that looks like
5188         gibberish, so prefer to double-quote the string when possible.
5189         Then you can use a more readable, lone single quote: "...'..."
5190         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5191         "don't" is more readable than the equivalent 'don'\''t'.
5192         (sc_cast_of_x_alloc_return_value): Likewise.
5193         (sc_cast_of_alloca_return_value): Likewise.
5194         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5195         rather than '\'':'\''.
5196
5197 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5198
5199         stdalign: relax _Alignof and tighten _Alignas test
5200         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5201         as it was too strict: alignof must divide offsetof, but it need
5202         not equal offsetof.  Inspired by Joseph S. Myers's comment
5203         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5204         Conversely, tighten the _Alignas test a bit, as the resulting
5205         alignment must be exactly 8.
5206
5207 2012-01-27  Bruno Haible  <bruno@clisp.org>
5208
5209         stdalign: Document the last change.
5210         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5211
5212 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5213
5214         stdalign: check that alignof and offsetof are consistent
5215         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5216         Problem reported for gnulib by Richard W.M. Jones in
5217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5218
5219 2012-01-27  Jim Meyering  <meyering@redhat.com>
5220
5221         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5222         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5223         convert a sequence with gaps to the minimal containing range.
5224         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5225         * tests/test-update-copyright.sh: Test for this.
5226         The FSF confirmed it is ok to do this, assuming there is at
5227         least one significant change per year in the affected range:
5228         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5229
5230 2012-01-26  Bruno Haible  <bruno@clisp.org>
5231
5232         pipe2: refine doc about thread-safety
5233         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5234         multithread-safety problem.
5235         * doc/glibc-functions/accept4.texi: Likewise.
5236
5237 2012-01-26  Bruno Haible  <bruno@clisp.org>
5238
5239         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5240         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5241         In the test program, include <fcntl.h>, for O_RDONLY.
5242
5243 2012-01-26  Eric Blake  <eblake@redhat.com>
5244
5245         pipe2: document lack of thread-safety in replacement
5246         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5247         issue in replacement.
5248         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5249         Based on a report by Eric Wong.
5250
5251 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5252             Bruno Haible  <bruno@clisp.org>
5253
5254         malloca: Avoid warnings on x86_64 mingw64.
5255         * lib/malloca.c: Include <stdint.h>.
5256         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5257         * modules/malloca (Depends-on): Add stdint.
5258         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5259
5260 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         obstack: remove __STDC__ conditionals
5263         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5264         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5265         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5266         m4/include_next.m4 as the only gnulib-maintained places that still
5267         refer to __STDC__.
5268
5269 2012-01-24  Bruno Haible  <bruno@clisp.org>
5270
5271         havelib: Modern quoting.
5272         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5273         the recent change to the GNU coding standards.
5274
5275 2012-01-24  Bruno Haible  <bruno@clisp.org>
5276
5277         stdint: Improve support for Android.
5278         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5279         Reported by Simon Josefsson <simon@josefsson.org>.
5280
5281 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         doc: omit trailing empty lines from INSTALL etc.
5284         * doc/Makefile (INSTALL): Omit trailing empty lines.
5285         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5286         omit trailing empty lines.  This simplifies the build procedure.
5287
5288 2012-01-23  Jim Meyering  <meyering@redhat.com>
5289
5290         tests: avoid spurious warnings about gl_sockets_startup
5291         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5292         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5293         reporting a "statement with no effect".
5294         * tests/test-accept.c (main): Mark as "(void)".
5295         * tests/test-accept4.c (main): Likewise.
5296         * tests/test-bind.c (main): Likewise.
5297         * tests/test-connect.c (main): Likewise.
5298         * tests/test-getpeername.c (main): Likewise.
5299         * tests/test-getsockname.c (main): Likewise.
5300         * tests/test-getsockopt.c (main): Likewise.
5301         * tests/test-listen.c (main): Likewise.
5302         * tests/test-recv.c (main): Likewise.
5303         * tests/test-recvfrom.c (main): Likewise.
5304         * tests/test-send.c (main): Likewise.
5305         * tests/test-sendto.c (main): Likewise.
5306         * tests/test-setsockopt.c (main): Likewise.
5307         * tests/test-shutdown.c (main): Likewise.
5308
5309 2012-01-21  Bruno Haible  <bruno@clisp.org>
5310
5311         locale-fr.m4: Fix for Android.
5312         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5313         failure of the test program on Bionic libc.
5314
5315 2012-01-21  Jim Meyering  <meyering@redhat.com>
5316
5317         bootstrap: fail when bootstrap_post_import_hook fails
5318         Otherwise, it's far too easy to miss diagnostics emitted
5319         between gnulib-tool's output and that of running configure.
5320         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5321
5322 2012-01-17  Jim Meyering  <meyering@redhat.com>
5323
5324         maint: enable sc_trailing_blank
5325         * build-aux/pmccabe.css: Remove trailing blanks.
5326         * doc/acl-cygwin.txt: Likewise.
5327         * doc/gnu-oids.texi: Likewise
5328         * cfg.mk: Enable sc_trailing_blank.
5329         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5330
5331 2012-01-17  Jim Meyering  <meyering@redhat.com>
5332
5333         maint: enable sc_prohibit_openat_without_use
5334         * cfg.mk: Enable sc_prohibit_openat_without_use.
5335         Exempt lib/selinux-at.c.
5336
5337 2012-01-17  Jim Meyering  <meyering@redhat.com>
5338
5339         maint: enable sc_prohibit_cloexec_without_use
5340         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5341         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5342
5343 2012-01-17  Jim Meyering  <meyering@redhat.com>
5344
5345         maint: enable sc_prohibit_intprops_without_use
5346         * cfg.mk: Enable sc_prohibit_intprops_without_use
5347         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5348
5349 2012-01-17  Jim Meyering  <meyering@redhat.com>
5350
5351         maint: enable sc_prohibit_hash_pjw_without_use
5352         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5353         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5354         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5355         following " (".
5356
5357 2012-01-17  Jim Meyering  <meyering@redhat.com>
5358
5359         maint: enable double-word-prohibiting rule
5360         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5361         Exempt three files.
5362
5363 2012-01-17  Jim Meyering  <meyering@redhat.com>
5364
5365         maint: remove empty lines at EOF, but excluding modules/*
5366         Apply syntax rules at home as well as abroad.  Most changes
5367         were induced by running this:
5368           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5369             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5370             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5371         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5372         Exempt modules/* and two binary files.
5373         Also exempt doc/INSTALL*, per request from Bruno Haible.
5374         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5375         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5376         * doc/Copyright/request-assign.future: Likewise.
5377         * doc/Copyright/request-disclaim.changes: Likewise.
5378         * doc/INSTALL: Likewise.
5379         * doc/INSTALL.ISO: Likewise.
5380         * doc/INSTALL.UTF-8: Likewise.
5381         * doc/acl-cygwin.txt: Likewise.
5382         * doc/acl-resources.txt: Likewise.
5383         * doc/fdl-1.2.texi: Likewise.
5384         * doc/fdl-1.3.texi: Likewise.
5385         * doc/fdl.texi: Likewise.
5386         * lib/argp-pin.c: Likewise.
5387         * lib/round.c: Likewise.
5388         * lib/unicase/u16-totitle.c: Likewise.
5389         * lib/unictype/block_test.c: Likewise.
5390         * lib/uninorm/canonical-decomposition.c: Likewise.
5391         * m4/README: Likewise.
5392         * m4/relocatable-lib.m4: Likewise.
5393         * tests/test-isnand-nolibm.c: Likewise.
5394         * tests/test-isnand.c: Likewise.
5395         * tests/uninorm/NormalizationTest.txt: Likewise.
5396
5397 2012-01-17  Jim Meyering  <meyering@redhat.com>
5398
5399         maint: add framework to run syntax-check rules against gnulib sources
5400         * cfg.mk: New file, to disable all currently-failing tests.
5401         We'll enable them one by one, as they are made to pass.
5402         * Makefile (sc_maint): New rule.
5403
5404 2012-01-21  Bruno Haible  <bruno@clisp.org>
5405
5406         stdint: Add support for Android.
5407         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5408         include the system's <stdint.h>.
5409         Reported by Simon Josefsson <simon@josefsson.org>.
5410
5411 2012-01-19  Jim Meyering  <meyering@redhat.com>
5412
5413         bootstrap: add bootstrap_post_import_hook
5414         Bison does still need something like the gnulib_mk_hook whose
5415         invocation I had to remove along with slurp in commit 767ccd40.
5416         Technically, we could get along without it, but doing so would
5417         have required living with a warning and a mandatory post-bootstrap
5418         automake rerun.
5419         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5420         (bootstrap_post_import_hook): New function.
5421         Invoke it after gnulib-tool --import and before autoreconf.
5422
5423 2012-01-18  Jim Meyering  <meyering@redhat.com>
5424
5425         gitlog-to-changelog: don't use "no_"-prefixed variable name
5426         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5427         to enable both --cluster and --no-cluster.  Change variable name,
5428         s/\$no_cluster/$cluster/, and reverse usage to match.
5429
5430         gitlog-to-changelog: use "||", not "or" in expressions
5431         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5432         expressions.
5433
5434 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5435
5436         gitlog-to-changelog: new option --no-cluster
5437         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5438         clustering of adjacent commit messages.
5439
5440 2012-01-17  Jim Meyering  <meyering@redhat.com>
5441
5442         maint: spell file systems with two words, not one
5443         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5444         two words, not one.
5445
5446 2012-01-16  Jim Meyering  <meyering@redhat.com>
5447
5448         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5449         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5450
5451 2012-01-16  Eric Blake  <eblake@redhat.com>
5452
5453         bootstrap: cater to autoconf 2.59
5454         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5455         is not available.
5456
5457         bootstrap: properly check for libtool
5458         * build-aux/bootstrap (libtoolize): Also run libtool when older
5459         usage is detected.
5460
5461 2012-01-15  Bruno Haible  <bruno@clisp.org>
5462
5463         Improve support for MSVC 9.
5464         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5465         clashes on MSVC.
5466         * lib/fcntl.in.h: Likewise.
5467         * lib/stdlib.in.h: Likewise.
5468         * lib/sys_stat.in.h: Likewise.
5469
5470 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5471
5472         gnupload: we hold the master copy of this script now
5473         For motivation and more information, see:
5474         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5475         * build-aux/gnupload: Make it clear in the heading comments that the
5476         master copy of this file is maintained by gnulib.  Since we are at
5477         it, bump its copyright year and ...
5478         ($scriptversion): ... the date in its version.
5479         ($usage): Patches and bug reports should be sent to the gnulib list,
5480         not the automake one.
5481         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5482         anymore.
5483
5484 2012-01-15  Bruno Haible  <bruno@clisp.org>
5485
5486         Fix module 'random'.
5487         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5488         initstate, setstate are declared.
5489
5490 2012-01-14  Bruno Haible  <bruno@clisp.org>
5491
5492         Tests for module 'random'.
5493         * modules/random-tests: New file.
5494         * tests/test-random.c: New file, based on tests/test-random_r.c.
5495
5496         New module 'random'.
5497         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5498         declarations.
5499         * lib/random.c: New file, based on glibc/stdlib/random.c.
5500         * m4/random.m4: New file.
5501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5502         HAVE_RANDOM.
5503         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5504         * modules/random: New file.
5505         * config/srclist.txt: Add an entry for random.c.
5506         * doc/posix-functions/random.texi: Mention the 'random' module.
5507         * doc/posix-functions/initstate.texi: Likewise.
5508         * doc/posix-functions/setstate.texi: Likewise.
5509         * doc/posix-functions/srandom.texi: Likewise.
5510
5511 2012-01-12  Bruno Haible  <bruno@clisp.org>
5512
5513         random_r: Use common idioms.
5514         * lib/random_r.c: Include <stdlib.h> first.
5515
5516         random_r: Override incompatible API on AIX, OSF/1.
5517         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5518         Override the system function if REPLACE_RANDOM_R is 1.
5519         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5520         and OSF/1, set REPLACE_RANDOM_R.
5521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5522         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5523         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5524         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5525         * doc/glibc-functions/random_r.texi: Likewise.
5526         * doc/glibc-functions/setstate_r.texi: Likewise.
5527
5528         random_r: Support for MSVC 9.
5529         * lib/random_r.c: Include stdint.h, not inttypes.h.
5530
5531 2012-01-12  Eric Blake  <eblake@redhat.com>
5532
5533         inet_ntop: guard extra work by IF_LINT
5534         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5535         better code generation when not checking for warnings.
5536         Suggested by Paul Eggert and Jim Meyering.
5537
5538         strptime: fix regression on mingw
5539         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5540         Fix regression.  Reported by Bruno Haible.
5541
5542 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5543             Bruno Haible  <bruno@clisp.org>
5544
5545         copy-file: add error-code-returning variant.
5546         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5547         (qcopy_file_preserving): New declaration.
5548         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5549         copy_file_preserving. Change return type to 'int'. Don't emit an error
5550         message here.
5551         (copy_file_preserving): New function.
5552         * tests/test-copy-file.c: Include <stdlib.h>.
5553         (main): Test qcopy_file_preserving if the environment variable
5554         NO_STDERR_OUTPUT is set.
5555         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5556         with NO_STDERR_OUTPUT
5557         * tests/test-copy-file-2.sh: Likewise.
5558
5559 2012-01-10  Bruno Haible  <bruno@clisp.org>
5560
5561         copy-file: Use 'quote' module consistently.
5562         * lib/copy-file.c (copy_file_preserving): Use quote().
5563
5564         copy-file: Refactor.
5565         * lib/copy-file.c: Include quote.h.
5566         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5567         message here.
5568         * modules/copy-file (Depends-on): Add quote.
5569
5570         acl: Export qcopy_acl.
5571         * lib/acl.h (qcopy_acl): New declaration.
5572         * lib/copy-acl.c (qcopy_acl): Make non-static.
5573
5574         acl: Rename a local variable.
5575         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5576
5577         acl: Align return values of copy_acl and qcopy_acl.
5578         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5579         maybe < -1.
5580
5581 2012-01-11  Eric Blake  <eblake@redhat.com>
5582
5583         strptime: silence gcc warnings
5584         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5585         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5586         Reported by Daniel P. Berrange.
5587
5588         inet_ntop: silence gcc warning
5589         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5590         Reported by Daniel P. Berrange.
5591
5592 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5593
5594         getloadavg test: skip the test on GNU/Linux without /proc mounted
5595         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5596         file.  When /proc is not mounted, it always fails with ENOENT.
5597         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5598         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5599
5600 2012-01-10  Bruno Haible  <bruno@clisp.org>
5601
5602         regex: Avoid link error on MSVC 9.
5603         * modules/regex (Depends-on): Add wctype.
5604
5605 2012-01-10  Bruno Haible  <bruno@clisp.org>
5606
5607         doc: Mention --with-tests option.
5608         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5609         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5610         --with-tests.
5611         Reported by Reuben Thomas.
5612
5613 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5614
5615         users.txt: order package names lexicographically.
5616         * users.txt: Order package names lexicographically.
5617
5618 2012-01-10  Jim Meyering  <meyering@redhat.com>
5619
5620         maint.mk: fix description in comment
5621         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5622
5623         ignore-value: remove deprecated ignore_ptr function
5624         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5625         * NEWS: Note this.
5626
5627 2012-01-09  Jim Meyering  <meyering@redhat.com>
5628
5629         test-init.sh: avoid a subshell
5630         * tests/test-init.sh: Remove protective subshell.
5631         Suggested by Bernhard Voelker.  While a subshell is normally
5632         required to protect against older shells (Solaris, FreeBSD) that
5633         warn about a missing program before performing redirection, the
5634         shell-selection tests performed by init.sh probably exclude any
5635         offending shell.
5636
5637 2012-01-08  Bruno Haible  <bruno@clisp.org>
5638
5639         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5640         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5641         variable.
5642
5643 2012-01-08  Bruno Haible  <bruno@clisp.org>
5644
5645         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5646         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5647         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5648         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5649         macro.
5650         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5651         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5652         * lib/spawn_faction_addopen.c: Add workaround implementation if
5653         HAVE_WORKING_POSIX_SPAWN.
5654         * modules/spawn (Makefile): Substitute
5655         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5656         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5657         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5658         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5659         (Depends-on): Update conditions.
5660         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5661         the Solaris 11 bug.
5662
5663 2012-01-08  Bruno Haible  <bruno@clisp.org>
5664
5665         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5666         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5667         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5668         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5669         macro.
5670         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5671         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5672         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5673         HAVE_WORKING_POSIX_SPAWN.
5674         * modules/spawn (Makefile): Substitute
5675         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5676         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5677         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5678         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5679         (Depends-on): Update conditions.
5680         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5681         the Solaris 11 bug.
5682
5683 2012-01-08  Bruno Haible  <bruno@clisp.org>
5684
5685         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5686         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5687         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5689         HAVE_WORKING_POSIX_SPAWN.
5690         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5691         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5692         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5693         * lib/spawn_faction_addclose.c: Add workaround implementation if
5694         HAVE_WORKING_POSIX_SPAWN.
5695         * modules/spawn (Makefile): Substitute
5696         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5697         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5698         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5699         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5700         (Depends-on): Update conditions.
5701         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5702         the Solaris 11 bug.
5703
5704 2012-01-08  Bruno Haible  <bruno@clisp.org>
5705
5706         doc: Update for Solaris 11 2011-11.
5707         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5708         * m4/printf.m4: Update comments.
5709
5710 2012-01-08  Bruno Haible  <bruno@clisp.org>
5711
5712         mktime: Avoid compilation error on Solaris 11.
5713         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5714
5715 2012-01-08  Bruno Haible  <bruno@clisp.org>
5716
5717         doc: Small fix.
5718         * doc/posix-headers/nl_types.texi: Correct platforms list.
5719
5720 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5721
5722         Add lgpl-3.0 module.
5723         * MODULES.html.sh (Support for building documentation): Add
5724         lgpl-3.0.
5725         * modules/lgpl-3.0: New file.
5726
5727 2012-01-08  Jim Meyering  <meyering@redhat.com>
5728
5729         select.c: indent with spaces, not TABs
5730         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5731
5732 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5733
5734         quotearg: do not use grave accent for left quote
5735         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5736         locale_quoting_style.
5737         (quotearg_buffer_restyled): Fix example.
5738         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5739
5740 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5741
5742         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5743         Most programs do not have translation catalogs for English and much
5744         less separate catalogs for British and American English.  Drop the
5745         suggestion to translators about these two, and provide it
5746         automatically for Unicode locales.  Like most programs, even those
5747         using American English, we use single quotation marks.  This conflicts
5748         with the American typographic convention, but works better when you
5749         cite the entire error message within double quotes.  It also tries not
5750         to clash with established practice and with what non-gnulib programs
5751         will usually do.
5752         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5753         using an UTF-8 or GB-18030 locale.  The list of other locales with
5754         quotes was provided by Bruno Haible.
5755         (quotearg_buffer_restyled): Adjust instructions to translators.
5756         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5757         text, since this would be wrong when using Unicode.
5758         * modules/quotearg: Depend on c-strcaseeq.
5759
5760 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5761
5762         quotearg: fix Wikipedia link
5763         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5764
5765 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5766
5767         Fix for mingw with MSVC9.
5768         * m4/ld-version-script.m4: Check that compiler rejects version
5769         scripts with syntax errors.  Reported by Bruno Haible
5770         <bruno@clisp.org>.
5771
5772 2012-01-06  Bruno Haible  <bruno@clisp.org>
5773
5774         Talk about "native Windows API", not "Woe32".
5775         * lib/accept4.c: Update comments to mention native Windows.
5776         * lib/execute.c: Likewise.
5777         * lib/fatal-signal.c: Likewise.
5778         * lib/localcharset.c: Likewise.
5779         * lib/nanosleep.c: Likewise.
5780         * lib/nl_langinfo.c: Likewise.
5781         * lib/pclose.c: Likewise.
5782         * lib/pipe-filter-gi.c: Likewise.
5783         * lib/pipe-filter-ii.c: Likewise.
5784         * lib/pipe.c: Likewise.
5785         * lib/pipe2.c: Likewise.
5786         * lib/popen.c: Likewise.
5787         * lib/progreloc.c: Likewise.
5788         * lib/relocatable.c: Likewise.
5789         * lib/sigaction.c: Likewise.
5790         * lib/sigprocmask.c: Likewise.
5791         * lib/spawn-pipe.h: Likewise.
5792         * lib/spawn-pipe.c: Likewise.
5793         * lib/spawni.c: Likewise.
5794         * lib/stat-time.h: Likewise.
5795         * lib/w32spawn.h: Likewise.
5796         * tests/test-isatty.c: Likewise.
5797         * lib/config.charset: More comments.
5798         * doc/gnulib-intro.texi: Mention native Windows.
5799         * doc/posix-functions/_Exit_C99.texi: Likewise.
5800         * doc/posix-headers/fcntl.texi: Likewise.
5801
5802 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5803
5804         argp: Avoid crash if translator uses % characters in a translation.
5805         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5806         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5807
5808 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5809
5810         doc: C11 and C++11 are now official
5811         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5812         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5813         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5814         * modules/stdalign:
5815         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5816
5817 2012-01-06  Bruno Haible  <bruno@clisp.org>
5818
5819         uc-is-grapheme-break tests: Tweak.
5820         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5821         message.
5822
5823 2012-01-06  Bruno Haible  <bruno@clisp.org>
5824
5825         test-init.sh: correct the test for diff -u
5826         * tests/test-init.sh: Also redirect stdout to /dev/null.
5827
5828 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         Use ', not `, for quoting output.
5831         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5832         (print_changelog_deltas, get_tool_versions, main program):
5833         * build-aux/git-version-gen:
5834         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5835         * build-aux/move-if-change (help):
5836         * build-aux/useless-if-before-free (usage, main program):
5837         * check-module (parse_module_file, usage)
5838         (find_included_lib_files, check_module):
5839         * lib/argmatch.c (main) [TEST]:
5840         * lib/argp-help.c (_help):
5841         * lib/getopt1.c (main) [TEST]:
5842         * lib/git-merge-changelog.c (usage):
5843         * lib/xstrtol-error.c (xstrtol_error):
5844         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5845         * m4/argz.m4 (gl_FUNC_ARGZ):
5846         * m4/bison.m4 (gl_BISON):
5847         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5848         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5849         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5850         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5851         * m4/gc-random.m4 (gl_GC_RANDOM):
5852         * m4/intl.m4 (gt_CHECK_DECL):
5853         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5854         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5855         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5857         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5858         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5859         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5860         * tests/test-dirname.c (main):
5861         * tests/test-getpass.c (main):
5862         * tests/test-iconvme.c (main):
5863         * tests/test-parse-datetime.c (LOG):
5864         * tests/test-xstrtoimax.sh:
5865         * tests/test-xstrtol.sh:
5866         * tests/test-xstrtoll.sh:
5867         * tests/test-xstrtoumax.sh:
5868         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5869         * top/GNUmakefile (abort-due-to-no-makefile):
5870         Quote 'like this', not `like this', as per the recent change to
5871         the GNU coding standards.
5872
5873 2012-01-05  Bruno Haible  <bruno@clisp.org>
5874
5875         strtoimax: Don't force a replacement on systems where intmax_t is int.
5876         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5877         'intmax_t' is not larger than 'int'.
5878         Reported by Pádraig Brady <P@draigBrady.com>.
5879
5880 2012-01-05  Bruno Haible  <bruno@clisp.org>
5881
5882         doc: Mention NetBSD bugs.
5883         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5884         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5885
5886 2012-01-05  Bruno Haible  <bruno@clisp.org>
5887
5888         strtoumax tests: Enhance tests.
5889         * tests/test-strtoumax.c (main): Add tests for large values.
5890
5891 2012-01-05  Bruno Haible  <bruno@clisp.org>
5892
5893         strtoimax: Work around AIX 5.1 bug.
5894         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5895         definition.
5896         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5897         Set HAVE_STRTOIMAX.
5898         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5899         REPLACE_STRTOIMAX.
5900         * modules/inttypes-incomplete (Makefile.am): Substitute
5901         REPLACE_STRTOIMAX.
5902         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5903         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5904         (Depends-on): Update conditions.
5905         * tests/test-strtoimax.c (main): Add tests for large values.
5906         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5907
5908 2012-01-05  Bruno Haible  <bruno@clisp.org>
5909
5910         inttypes: Modernize.
5911         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5912         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5913         (Makefile.am): Update inttypes.h rule.
5914
5915 2012-01-05  Jim Meyering  <meyering@redhat.com>
5916
5917         init.sh: don't waste a subshell just to redirect stderr
5918         * tests/init.sh: In testing for diff -u and diff -c, use a
5919         stderr-redirecting exec inside `...` rather than a subshell.
5920
5921         test-init.sh: avoid failure on HP-UX 11.00
5922         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5923         resolves to diff -c or cmp.  Reported by Bruno Haible.
5924
5925 2012-01-05  Bruno Haible  <bruno@clisp.org>
5926
5927         Tests for module 'strtoull'.
5928         * modules/strtoull-tests: New file.
5929         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5930
5931 2012-01-05  Bruno Haible  <bruno@clisp.org>
5932
5933         Tests for module 'strtoll'.
5934         * modules/strtoll-tests: New file.
5935         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5936
5937 2012-01-05  Bruno Haible  <bruno@clisp.org>
5938
5939         Tests for module 'strtoul'.
5940         * modules/strtoul-tests: New file.
5941         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5942
5943 2012-01-05  Bruno Haible  <bruno@clisp.org>
5944
5945         Tests for module 'strtol'.
5946         * modules/strtol-tests: New file.
5947         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5948
5949 2012-01-04  Jim Meyering  <meyering@redhat.com>
5950
5951         test-init.sh: accommodate Solaris 5.10's different diff -u output
5952         * tests/test-init.sh: Also exempt @@ lines from the comparison
5953         of diff output, since Solaris 5.10 and GNU diff formats differ.
5954         Reported by Stefano Lattarini.
5955
5956 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         test-posixtm: don't assume signed integer wraparound
5959         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5960         after signed integer overflow.  Inspired by (though it may not
5961         fix) Bruno Haible's bug report in
5962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5963
5964         Spell out "Windows 9x" and "Windows XP".
5965         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5966         "Windows 9x" and "WinXP" with "Windows XP".
5967
5968 2012-01-04  Jim Meyering  <meyering@redhat.com>
5969
5970         test-vc-list-files-cvs.sh: remove obsolete comment
5971         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5972         double exit.  Now that's all encapsulated via skip_ and Exit.
5973
5974 2012-01-04  Bruno Haible  <bruno@clisp.org>
5975
5976         Talk about "native Windows API", not "Win32".
5977         * lib/classpath.c: Update comments to mention native Windows.
5978         * lib/csharpexec.c: Likewise.
5979         * lib/dup2.c: Likewise.
5980         * lib/error.c: Likewise.
5981         * lib/fcntl.c: Likewise.
5982         * lib/filename.h: Likewise.
5983         * lib/findprog.c: Likewise.
5984         * lib/get-rusage-as.c: Likewise.
5985         * lib/get-rusage-data.c: Likewise.
5986         * lib/getpagesize.c: Likewise.
5987         * lib/javaexec.c: Likewise.
5988         * lib/msvc-inval.c: Likewise.
5989         * lib/msvc-nothrow.c: Likewise.
5990         * lib/nanosleep.c: Likewise.
5991         * lib/nonblocking.c: Likewise.
5992         * lib/printf-parse.c: Likewise.
5993         * lib/setlocale.c: Likewise.
5994         * lib/sigaction.c: Likewise.
5995         * lib/strerror_r.c: Likewise.
5996         * lib/tmpdir.c: Likewise.
5997         * lib/vasnprintf.c: Likewise.
5998         * lib/w32spawn.h: Likewise.
5999         * lib/waitpid.c: Likewise.
6000         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6001         * m4/locale-ar.m4: Likewise.
6002         * m4/locale-fr.m4: Likewise.
6003         * m4/locale-ja.m4: Likewise.
6004         * m4/locale-tr.m4: Likewise.
6005         * m4/locale-zh.m4: Likewise.
6006         * m4/printf.m4: Likewise.
6007         * tests/test-cloexec.c: Likewise.
6008         * tests/test-copy-acl.sh: Likewise.
6009         * tests/test-copy-file.sh: Likewise.
6010         * tests/test-file-has-acl.sh: Likewise.
6011         * tests/test-set-mode-acl.sh: Likewise.
6012         * tests/test-dup-safer.c: Likewise.
6013         * tests/test-dup2.c: Likewise.
6014         * tests/test-dup3.c: Likewise.
6015         * tests/test-fcntl.c: Likewise.
6016         * tests/test-nonblocking-pipe.h: Likewise.
6017         * tests/test-nonblocking-socket.h: Likewise.
6018         * tests/test-pipe.c: Likewise.
6019         * tests/test-pipe2.c: Likewise.
6020         * tests/test-spawn-pipe-child.c: Likewise.
6021         * doc/acl-resources.txt: Likewise.
6022         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6023         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6024         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6025         * lib/localcharset.c: Update comments to mention native Windows.
6026         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6027         * lib/localename.c: Likewise.
6028         * lib/progreloc.c: Likewise.
6029         * lib/relocatable.c: Likewise.
6030         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6031         (windows_compute_revents): Renamed from win32_compute_revents.
6032         (windows_compute_revents_socket): Renamed from
6033         win32_compute_revents_socket.
6034         * lib/select.c: Update comments to mention native Windows.
6035         (windows_poll_handle): Renamed from win32_poll_handle.
6036         * m4/threadlib.m4: Update comments to mention native Windows.
6037         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6038         --enable-threads=windows instead of --enable-threads=win32. Set
6039         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6040         * lib/glthread/lock.h: Update comments to mention native Windows.
6041         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6042         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6043         USE_WIN32_THREADS.
6044         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6045         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6046         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6047         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6048         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6049         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6050         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6051         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6052         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6053         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6054         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6055         * tests/test-tls.c: Likewise.
6056         Rationale:
6057         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6058         on both 32-bit and 64-bit Windows systems.
6059         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6060         line of distinction is between "native Windows" on one side and Unix/
6061         POSIX systems on the other side. More details in
6062         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6063         Suggested by Paul Eggert.
6064
6065 2012-01-03  Bruno Haible  <bruno@clisp.org>
6066
6067         isatty: Support for MSVC 9.
6068         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6069         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6070         (_isatty_nothrow): New function.
6071         (isatty): Use it instead of _isatty.
6072         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6073         * lib/poll.c (IsConsoleHandle): Likewise.
6074         * lib/select.c (IsConsoleHandle): Likewise.
6075         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6076         (gl_PREREQ_ISATTY): New macro.
6077         * modules/isatty (Depends-on): Add msvc-inval.
6078         (configure.ac): Invoke gl_PREREQ_ISATTY.
6079
6080 2012-01-03  Jim Meyering  <meyering@redhat.com>
6081
6082         maint.mk: remove temporary transition aid from over 1.5 years ago
6083         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6084         purpose was to aid in the transition (avoiding silent malfunction)
6085         from that old name to the new _sc_search_regexp.  This shim was
6086         added by commit 219c504b.
6087
6088         init.sh: do not try to accommodate compare arguments starting with "-"
6089         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6090         compare arguments that start with "-".  Besides, we do not worry
6091         about this when invoking diff or cmp; why start now with sed?
6092         Using "--" to separate options from argument would trigger sed
6093         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6094         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6095
6096 2012-01-02  Bruno Haible  <bruno@clisp.org>
6097
6098         Enhance tests for module 'isatty'.
6099         * modules/isatty-tests (Depends-on): Add pipe-posix.
6100         * tests/test-isatty.c: Include <fcntl.h>.
6101         (DEV_NULL): New macro.
6102         (main): Test the resut of isatty() also on regular files, pipes, and
6103         /dev/null.
6104
6105         New module 'isatty'.
6106         * lib/unistd.in.h (isatty): New declaration.
6107         * lib/isatty.c: New file, based on an idea of
6108         Bastien Roucariès <roucaries.bastien@gmail.com>.
6109         * m4/isatty.m4: New file.
6110         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6111         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6112         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6113         REPLACE_ISATTY.
6114         * modules/isatty: New file.
6115         * doc/posix-functions/isatty.texi: Mention the new module.
6116         Suggested by Paolo Bonzini.
6117
6118 2012-01-02  Bruno Haible  <bruno@clisp.org>
6119
6120         canonicalize: Tweak 2011-12-29 commit.
6121         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6122         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6123
6124 2012-01-02  Jim Meyering  <meyering@redhat.com>
6125
6126         gitlog-to-changelog: describe input syntax in --help output
6127         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6128
6129         gitlog-to-changelog: fix typo in --help: show backslash before email @
6130         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6131         in sources, but not in actual output.
6132
6133 2011-12-30  Jim Meyering  <meyering@redhat.com>
6134
6135         gitlog-to-changelog: don't malfunction when name contains %-directive
6136         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6137         in a name string cause trouble.  E.g., with a user name of "%s",
6138         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6139
6140 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6141
6142         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6143         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6144         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6145         the "  (tiny change)" notation that is appended to the standard
6146         ChangeLog "date  name  email" header line.
6147
6148 2012-01-01  Jim Meyering  <meyering@redhat.com>
6149
6150         test-framework-sh: init.sh: fix "make dist" failure
6151         When using gnulib-tool's --with-tests option and any module that
6152         depends on test-framework-sh, "make dist" would fail due to the
6153         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6154         in the gltests directory, and not in the gllib/ directory.
6155         One way to work around that is to move the EXTRA_DIST += init.sh
6156         from the primary module to the -tests one:
6157         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6158         * modules/test-framework-sh (Makefile.am): ...not here.
6159         Reported by Tom G. Christensen in
6160         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6161
6162         version-etc: update copyright year reported by --version
6163         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6164
6165 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6166
6167         canonicalize: only stat() if required
6168         * lib/canonicalize.c (canonicalize_filename_mode):
6169         Avoid calling l?stat() when both CAN_MISSING,
6170         and CAN_NOLINKS are set, as we neither need
6171         to resolve symlinks or test component existence.
6172
6173 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         doc: cover st_ino issues once; add OpenVMS etc.
6176         * doc/posix-functions/stat.texi (stat):
6177         * doc/posix-functions/lstat.texi (lstat):
6178         * doc/posix-functions/fstatat.texi (fstatat):
6179         * doc/posix-functions/fstat.texi (fstat):
6180         Move general 'struct stat' stuff to sys_stat.texi,
6181         leaving behind a pointer.
6182         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6183         Merge duplicate info about 'struct stat' problems into here.
6184         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6185         and suggest partial workarounds.
6186
6187         same-inode: port to OpenVMS
6188         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6189         three st_ino values.
6190
6191 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6192
6193         canonicalize: fix references to stat() and lstat()
6194         * lib/canonicalize.c (canonicalize_filename_mode):
6195         Ensure references always resolve to a replacement
6196         function if required (even via a macro).
6197
6198 2011-12-30  Jim Meyering  <meyering@redhat.com>
6199
6200         gitlog-to-changelog: remove a little duplication
6201         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6202         rather than twice.
6203
6204 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6205
6206         canonicalize: add support for not resolving symlinks
6207         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6208         indicate we don't want to follow symlinks.  Also
6209         provide CAN_MODE_MASK to aid setting these existing
6210         mutually exclusive values.
6211         * lib/canonicalize.c (canonicalize_filename_mode):
6212         Extract the flags from can_mode parameter, which
6213         are currently just used to select between stat()
6214         and lstat().  Also ensure that mutually exclusive
6215         values are flagged immediately as invalid.
6216         * tests/test-canonicalize.c: Verify symlinks are
6217         not followed, and that invalid flag combinations
6218         are diagnosed.
6219
6220 2011-12-25  Jim Meyering  <meyering@redhat.com>
6221
6222         gitlog-to-changelog: do not clump multi-paragraph entries
6223         Identical header lines (date,name,email+coauthors) are suppressed,
6224         thus putting all entries with those same characteristics under
6225         a single header.  However, when a log entry consists of two or
6226         more paragraphs, it may not be clear where it starts and ends.
6227         This change makes it so that such an entry is always separated
6228         from others by a header line, even when that header would
6229         otherwise be suppressed.
6230         * build-aux/gitlog-to-changelog: Implement the above.
6231         Inspired by a related request from Stefano Lattarini in
6232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6233
6234 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         announce-gen: fix `cmd' typo in diagnostic
6237         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6238         diagnostic: a missing '$' meant that the command was not output.
6239
6240 2011-12-23  Jim Meyering  <meyering@redhat.com>
6241
6242         test-framework-sh: distribute init.sh
6243         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6244         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6245         fail due to the lack of init.sh.
6246
6247         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6248         * modules/atexit-tests: Rather than listing tests/init.sh,
6249         now that there's a module for it, simply depend on that new module.
6250         * modules/closein-tests: Likewise.
6251         * modules/exclude-tests: Likewise.
6252         * modules/getcwd-tests: Likewise.
6253         * modules/perror-tests: Likewise.
6254         * modules/pread-tests: Likewise.
6255         * modules/pwrite-tests: Likewise.
6256         * modules/vc-list-files-tests: Likewise.
6257         * modules/verify-tests: Likewise.
6258         * modules/xalloc-die-tests: Likewise.
6259         * modules/xstrtoimax-tests: Likewise.
6260         * modules/xstrtol-tests: Likewise.
6261         * modules/xstrtoll-tests: Likewise.
6262         * modules/xstrtoumax-tests: Likewise.
6263         * modules/yesno-tests: Likewise.
6264
6265 2011-12-22  Jim Meyering  <meyering@redhat.com>
6266
6267         test-framework-sh: add minimal tests of init.sh's compare function
6268         * modules/test-framework-sh-tests: New file.
6269         * tests/test-init.sh: New file.
6270
6271         test-framework-sh: new module
6272         * modules/test-framework-sh: New file.
6273         * MODULES.html.sh (Support for maintaining and releasing projects):
6274         List it.
6275
6276         init.sh: do not emit simulated diff output to stderr
6277         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6278
6279 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6280
6281         .gitignore: ignore gnulib.dvi and regex.info
6282         * doc/.gitignore:add gnulib.dvi and regex.info
6283
6284 2011-12-22  Jim Meyering  <meyering@redhat.com>
6285
6286         init.sh: correct previous change
6287         * tests/init.sh (compare): My previous change was wrong.
6288         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6289
6290         init.sh: avoid unwarranted test failure when using "set -e"
6291         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6292         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6293         a use like "compare exp out" would get evoke an unconditional failure.
6294
6295 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6296
6297         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6298         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6299         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6300         autoreconf that did not.
6301         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6302         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6303
6304 2011-12-17  Jim Meyering  <meyering@redhat.com>
6305
6306         bootstrap: remove some now-unneeded code
6307         This script arose back when gnulib-tool was young.
6308         Since then, it has seen improvements that render much of this
6309         script unnecessary.  In particular, it can now make symlinks
6310         to the files it uses.  Also, I no longer see as much value in
6311         marking files as read-only via comments.
6312         If you relied on the symlink-creation feature of the preceding
6313         version of this script, you can get most of that functionality
6314         by adding the --symlink option to the definition of
6315         gnulib_tool_option_extras in your bootstrap.conf file.
6316         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6317         Run autopoint and libtoolize *before* gnulib-tool.
6318         After it, run an abbreviated autoreconf, rather than a loop around
6319         all tools.
6320         (slirp, bt_mark_as_generated): Remove functions.
6321
6322 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6323
6324         ftoastr: fix typo
6325         * lib/ftoastr.h: Fix misspelling in comment.
6326
6327 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6328
6329         * top/README-release: fix punctuation.
6330
6331 2011-12-17  Jim Meyering  <meyering@redhat.com>
6332
6333         bootstrap: correct the recent buildreq change
6334         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6335         had no effect.
6336         * build-aux/bootstrap (buildreq): Bracket each search term with
6337         "*...*", so that the shell "case" statement works as intended.
6338         Add comments.
6339
6340 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6341
6342         build: let bootstrap resort to wget when downloading .po files
6343         * build-aux/bootstrap (download_po_files): Fallback to wget when
6344         downloading the .po files via rsync fails.  This is necessary to
6345         bootstrap from behind a strict firewall.
6346
6347 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6348
6349         stdint: don't assume C++11 when compiling with g++
6350         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6352         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6353         work also in C++ before C++11, as that improperly inhibits
6354         generating a substitute stdint.h for that case.
6355
6356 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6357
6358         alloca: protect comment from gnulib-tool
6359         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6360         that gnulib-tool doesn't think it's a license, and munge it to
6361         say "GCC version 3".
6362
6363 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6364
6365         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6366         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6367         $(abs_top_builddir) instead of $(top_builddir).
6368
6369 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6370
6371         strftime-tests: also test nanoseconds
6372         * tests/test-strftime.c (T): Add a test of %N.
6373
6374 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6375
6376         inttypes, stdint: add C++11 support
6377         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6378         when including inttypes.h and stdint.h.  Support this change to
6379         the standard.
6380         * doc/posix-headers/inttypes.texi (inttypes.h):
6381         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6382         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6383         Define if not defined already, for the benefit of pre-C++11 hosts.
6384         Define the standard format macros (e.g., PRId8) always.
6385         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6386         Likewise, if __cpluspus.  Define the standard constant and limit
6387         macros (e.g., INT8_C, INT8_MAX) always.
6388         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6389         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6390         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6391         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6392         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6393         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6394         Likewise.
6395
6396 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         nonblocking tests: Fix test failure on Linux/PPC.
6399         Suggested by Prerna Saxena in
6400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6401         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6402         Set to 1100000.
6403
6404 2011-12-12  Jim Meyering  <meyering@redhat.com>
6405
6406         argmatch: don't hard-code `' when listing valid option arguments
6407         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6408         use the quote function to add quotes.  Use fputs rather than
6409         fprintf for the format string with no format directive.
6410
6411 2011-12-07  Eric Blake  <eblake@redhat.com>
6412
6413         bootstrap: detect tools required by gnulib-tool
6414         * build-aux/bootstrap (buildreq): Provide minimum implicit
6415         dependencies.
6416         * DEPENDENCIES: Mention patch as a prereq.
6417
6418 2011-12-04  Bruno Haible  <bruno@clisp.org>
6419
6420         sethostname: Port to Windows platforms.
6421         * lib/sethostname.c: Provide an alternate implementation for Windows
6422         platforms.
6423         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6424         (main): Skip the test if sethostname() fails with EPERM. On Windows
6425         platforms, don't check the result of gethostname().
6426
6427 2011-12-04  Bruno Haible  <bruno@clisp.org>
6428             Jim Meyering  <meyering@redhat.com>
6429
6430         tests: Avoid spurious error message on platforms without mktemp program.
6431         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6432
6433 2011-12-04  Bruno Haible  <bruno@clisp.org>
6434
6435         sethostname: Fix documentation.
6436         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6437         "not fixed" section.
6438
6439 2011-12-03  Bruno Haible  <bruno@clisp.org>
6440
6441         gnulib-tool: Verify that the License field is present and non-empty.
6442         * gnulib-tool (func_get_license_raw): New function, extracted from
6443         func_get_license.
6444         (func_get_license): Use it. Warn if the module is not a test module and
6445         has no license.
6446         Suggested by Jim Meyering.
6447
6448 2011-12-03  Bruno Haible  <bruno@clisp.org>
6449
6450         sethostname tests: Fix link error on mingw.
6451         * tests/test-sethostname1.c: New file, extracted from
6452         tests/test-sethostname.c.
6453         * tests/test-sethostname2.c: New file, extracted from
6454         tests/test-sethostname.c.
6455         * tests/test-sethostname.c: Remove file.
6456         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6457         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6458         (Depends-on): Add gethostname.
6459         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6460         Link the latter with $(GETHOSTNAME_LIB).
6461
6462         sethostname tests: Fix compilation error on mingw.
6463         * tests/test-sethostname.c: Don't include <sys/types.h>.
6464         (geteuid): Use a dummy value without uid_t.
6465         * modules/sethostname-tests (Depends-on): Remove sys_types.
6466
6467         sethostname tests: Avoid a gcc warning.
6468         * tests/test-sethostname.c (main): Remove an unused variable.
6469
6470         Tweak last commit.
6471         * modules/sethostname-tests (Files): Sort by decreasing importance.
6472         (configure.ac): Check for geteuid.
6473         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6474         the test when there's nothing to test. Drop an unnecessary cast.
6475         Improve an error message. Verify that the final sethostname() call
6476         succeeds.
6477
6478 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6479
6480         Add a test suite for the sethostname module.
6481         * modules/sethostname-tests: New file.  A test program
6482         for the sethostname module.
6483         * tests/test-sethostname.c: Likewise.
6484
6485 2011-12-03  Bruno Haible  <bruno@clisp.org>
6486
6487         Tweak last commit.
6488         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6489         Fix preprocessor directives indentation. Fix typos.
6490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6491         * modules/unistd (Makefile): Likewise.
6492
6493 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6494
6495         Integrate the sethostname module into unistd.
6496         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6497         into the unistd.h header.
6498         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6499         preprocessor directives.
6500         * modules/unistd: Setup the Makefile substitutions of the
6501         SETHOSTNAME preprocessor directives.
6502
6503 2011-12-03  Bruno Haible  <bruno@clisp.org>
6504
6505         Tweak last commit.
6506         * lib/sethostname.c: Don't include <string.h>.
6507         (sethostname): No need to copy the argument string to the stack. Don't
6508         call clearerr. Preserve errno when fprintf failed.
6509         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6510         Don't invoke AC_REPLACE_FUNCS.
6511         * modules/sethostname (Link): Remove empty section.
6512         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6513         failure problem.
6514
6515 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6516
6517         New module 'sethostname'.
6518         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6519         for systems that lack it.
6520         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6521         sethostname declaration and function.
6522         * modules/sethostname: New file.  Define the sethostname module.
6523
6524 2011-12-03  Bruno Haible  <bruno@clisp.org>
6525
6526         Tweak last commit.
6527         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6528
6529 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6530
6531         Split the HOST_NAME_MAX detection into a separate m4 macro.
6532         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6533         macro so it can be used by the pending sethostname module.
6534
6535 2011-12-03  Bruno Haible  <bruno@clisp.org>
6536
6537         Fix module descriptions syntax.
6538         * modules/argv-iter (License): Fix syntax.
6539         * modules/di-set (License): Likewise.
6540         * modules/ino-map (License): Likewise.
6541         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6542
6543 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6544
6545         stdalign: port to Clang 3.0
6546         Problem reported by Simon Josefsson in
6547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6548         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6549         which has <stdalign.h> but which does not define alignof.
6550         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6551
6552 2011-12-01  Eric Blake  <eblake@redhat.com>
6553
6554         mktempd: silence dd usage
6555         * build-aux/mktempd (rand_bytes): Silence dd.
6556
6557 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6558
6559         manywarnings: Don't mention gcc version in docstring.
6560         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6561         Jim Meyering <meyering@redhat.com>.
6562
6563 2011-11-30  Jim Meyering  <meyering@redhat.com>
6564
6565         hash: mark a few floating point constants with "f" suffix
6566         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6567         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6568         floating point constants with "f", since they're destined to be
6569         saved/used as "float"s.
6570
6571 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6572
6573         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6574         * tests/test-float.c (test_long_double): Correct and re-enable the
6575         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6576
6577 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6578
6579         Avoid subtracting two pointers that don't point into the same block.
6580         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6581         only pointers into the same memory block are subtracted. We cannot
6582         assume that sizeof (ptrdiff_t) == sizeof (void *).
6583
6584 2011-11-29  Eric Blake  <eblake@redhat.com>
6585
6586         maint.mk: add syntax check for use of compare from init.sh
6587         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6588         moved here from coreutils.
6589
6590         manywarnings: drop -Wunsuffixed-float-constants
6591         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6592         '1.0D', which is the only way to silence this warning for 'double'.
6593
6594 2011-11-29  Jim Meyering  <meyering@redhat.com>
6595
6596         hash: mark compute_bucket_size with the pure attribute
6597         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6598
6599         quotearg, propername: correct pragma guard expression
6600         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6601         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6602
6603 2011-11-28  Jim Meyering  <meyering@redhat.com>
6604
6605         propername: do not mark proper_name with the const attribute
6606         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6607         since it examines data pointed to by its parameter.
6608         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6609         the suggestion from -Wsuggest-attribute=const.
6610
6611         propername: mark one more function as const
6612         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6613
6614 2011-11-27  Jim Meyering  <meyering@redhat.com>
6615
6616         mark functions with const and pure attributes
6617
6618         Mark functions per suggestions from gcc-4.6 when using these options:
6619         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6620         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6621         Follow these guidelines: when possible, apply the attribute to
6622         an extern declaration, not to its definition.  Apply it to the
6623         definition only when the definition is static.
6624         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6625         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6626         * lib/base64.h (isbase64): Likewise.
6627         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6628         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6629         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6630         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6631         (c_tolower, c_toupper): Likewise.
6632         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6633         * lib/chdir-long.c (find_non_slash): Likewise.
6634         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6635         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6636         * lib/file-type.h (file_type): Likewise.
6637         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6638         * lib/filevercmp.c (verrevcmp): Likewise.
6639         * lib/freadahead.h (freadahead): Likewise.
6640         * lib/fts.c (fts_maxarglen): Likewise.
6641         * lib/hash-pjw.h (hash_pjw): Likewise.
6642         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6643         * lib/hash.c (is_prime, next_prime): Likewise.
6644         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6645         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6646         (hash_table_ok, hash_get_first, hash_string): Likewise.
6647         (compute_bucket_size): Likewise.
6648         * lib/i-ring.h (i_ring_empty): Likewise.
6649         * lib/isnan.c (isnanl): Likewise.
6650         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6651         * lib/memcasecmp.h (memcasecmp): Likewise.
6652         * lib/memchr2.h (memchr2): Likewise.
6653         * lib/memcmp2.h (memcmp2): Likewise.
6654         * lib/parse-datetime.y (lookup_zone): Likewise.
6655         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6656         [!WINDOWS_SOCKETS]: Likewise.
6657         * lib/strnlen1.h (strnlen1): Likewise.
6658         * lib/uniwidth.in.h (uc_width): Likewise.
6659         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6660         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6661         (quoting_options_from_style): Add a comment.
6662         * lib/propername.h (proper_name): Add a comment.
6663
6664 2011-11-27  Bruno Haible  <bruno@clisp.org>
6665
6666         Remove unused macros from !_LIBC code in glibc-borrowed files.
6667         * lib/fnmatch.c (STRCOLL): Remove macro.
6668         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6669         * lib/glob.c (__stat, __readdir64): Remove macros.
6670         * lib/tempname.c (__open64, __xstat64): Remove macros.
6671         Suggested by Paul Eggert.
6672
6673 2011-11-27  Bruno Haible  <bruno@clisp.org>
6674
6675         getcwd: Fix link error on MSVC 9.
6676         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6677
6678 2011-11-27  Bruno Haible  <bruno@clisp.org>
6679
6680         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6681         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6682         HAVE_OPENDIR is 0.
6683         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6684         HAVE_CLOSEDIR is 0.
6685         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6686         is 0.
6687         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6688
6689 2011-11-27  Bruno Haible  <bruno@clisp.org>
6690
6691         getcwd: Fix bug from 2011-08-17.
6692         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6693         platforms that need it.
6694         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6695         code of 4 to be a failure, not a success. This ensures that
6696         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6697
6698 2011-11-27  Bruno Haible  <bruno@clisp.org>
6699
6700         binary-io tests: Avoid test failure on mingw when libtool is used.
6701         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6702         Don't verify the size of t-bin-out1.tmp here.
6703         * tests/test-binary-io.sh: Verify it here.
6704         Reported by Simon Josefsson.
6705
6706 2011-11-26  Bruno Haible  <bruno@clisp.org>
6707
6708         Fix conflict between two instantiations of module 'unistd'.
6709         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6710         ${include_guard_prefix} also in the autoconf snippet.
6711         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6713         GNULIB_UNISTD_H_GETOPT.
6714         * modules/getopt-posix (configure.ac): Set the
6715         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6716         * modules/getopt-gnu (configure.ac): Likewise.
6717         * modules/unistd (Makefile.am): Change the substitution value of
6718         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6719         Reported by Simon Josefsson.
6720
6721 2011-11-25  Bruno Haible  <bruno@clisp.org>
6722
6723         pagealign_alloc: Doc and comments.
6724         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6725         module.
6726         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6727
6728 2011-11-25  Jim Meyering  <meyering@redhat.com>
6729
6730         test-update-copyright.sh: avoid false-positive failure
6731         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6732         around false positive failure on Cygwin/Windows.  The latter was
6733         matching erroneously-created files with names like
6734         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6735
6736 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6737
6738         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6739         * m4/valgrind-tests.m4: Check that the parameters that will be
6740         used works, not just a subset of them.  Reported by Bruno Haible
6741         <bruno@clisp.org>.
6742
6743 2011-11-24  Jim Meyering  <meyering@redhat.com>
6744
6745         test-stdalign.c: comment out long double tests
6746         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6747         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6748         error: '_Alignas' specifiers cannot reduce alignment of \
6749         'static_longdouble_alignas'.
6750
6751 2011-11-22  Jim Meyering  <meyering@redhat.com>
6752
6753         init.sh: make "compare /dev/null FILE" output more readable
6754         * tests/init.sh (compare_): Document the preferred order of arguments.
6755         (emit_diff_u_header_): New function.
6756         (compare_dev_null_): Emit a simulated diff, rather than just the
6757         contents of the unexpected file.  Suggestion from Bruno Haible.
6758
6759 2011-11-21  Jim Meyering  <meyering@redhat.com>
6760             Eric Blake  <eblake@redhat.com>
6761
6762         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6763         * tests/init.sh: Make our compare function slightly more portable.
6764         Reported by Bruno Haible in
6765         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6766
6767 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6768
6769         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6770         before using it, in code that ends up in config.h.
6771
6772 2011-11-20  Bruno Haible  <bruno@clisp.org>
6773
6774         getcwd: Work around getcwd bug on AIX 5..7.
6775         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6776         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6777         Use a different value for gl_cv_func_getcwd_path_max. Move the
6778         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6779         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6780         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6781         Define HAVE_MINIMALLY_WORKING_GETCWD.
6782         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6783         where it is not even minimally working, that is, on AIX.
6784         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6785         m4/getcwd-path-max.m4.
6786         (main): Update exit code computation.
6787         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6788         getcwd does not handle long file names.
6789
6790 2011-11-20  Bruno Haible  <bruno@clisp.org>
6791
6792         getcwd: Fix bug from 2009-09-10.
6793         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6794         like "no".
6795
6796 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6797
6798         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6799
6800 2011-11-20  Bruno Haible  <bruno@clisp.org>
6801
6802         fma tests: Avoid shadowing local variables.
6803         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6804         expected.
6805
6806 2011-11-20  Bruno Haible  <bruno@clisp.org>
6807
6808         copysignf tests: Fix.
6809         * tests/test-copysignf.c: Fix signature check.
6810
6811 2011-11-20  Bruno Haible  <bruno@clisp.org>
6812
6813         fma: Remove unused code.
6814         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6815         unused macros.
6816
6817 2011-11-20  Bruno Haible  <bruno@clisp.org>
6818
6819         sethostname: Fix doc about AIX.
6820         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6821         sethostname; it has it.
6822
6823         sethostname: Mention more portability problems.
6824         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6825         problem.
6826         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6827
6828 2011-11-19  Bruno Haible  <bruno@clisp.org>
6829
6830         Depend on module fcntl-h when AT_FDCWD is used.
6831         * modules/utimens (Depends-on): Add fcntl-h.
6832         * modules/areadlinkat (Depends-on): Likewise.
6833         * modules/areadlinkat-with-size (Depends-on): Likewise.
6834         * modules/faccessat (Depends-on): Likewise.
6835         * modules/fchmodat (Depends-on): Likewise.
6836         * modules/fchownat (Depends-on): Likewise.
6837         * modules/getcwd (Depends-on): Likewise.
6838         * modules/mkdirat (Depends-on): Likewise.
6839         * modules/mkfifoat (Depends-on): Likewise.
6840         * modules/readlinkat (Depends-on): Likewise.
6841         * modules/symlinkat (Depends-on): Likewise.
6842         * modules/dup2-tests (Depends-on): Likewise.
6843         * modules/fdutimensat-tests (Depends-on): Likewise.
6844         * modules/futimens-tests (Depends-on): Likewise.
6845
6846 2011-11-19  Bruno Haible  <bruno@clisp.org>
6847
6848         euidaccess: Update a comment.
6849         * lib/euidaccess.c: Update comment about platforms with faccessat.
6850
6851 2011-11-19  Bruno Haible  <bruno@clisp.org>
6852
6853         openat: Fix file list.
6854         * modules/openat (Files): Remove lib/at-func.c.
6855
6856 2011-11-19  Bruno Haible  <bruno@clisp.org>
6857
6858         fstatat: Simplify.
6859         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6860         gnulib should define rpl_fstatat, there is a
6861         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6862
6863 2011-11-19  Bruno Haible  <bruno@clisp.org>
6864
6865         Ensure 'inline' can be used in tests/test-utimens-common.h.
6866         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6867         * modules/futimens-tests (configure.ac): Likewise.
6868         * modules/utimens-tests (configure.ac): Likewise.
6869         * modules/utimensat-tests (configure.ac): Likewise.
6870
6871 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6872
6873         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6874         not hash_insert0.
6875         (hash_insert_if_absent): Doc fix.
6876
6877 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6878
6879         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6880
6881 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6882
6883         test-getcwd: disambiguate exit status
6884         * tests/test-getcwd.c (test_long_name): Return 0..7.
6885         (main): Exit with an unambiguous exit status.  The old
6886         code yielded a mysterious mixture of two failure codes.
6887
6888         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6889         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6890         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6891         rpl_fstatat or fstatat.  This should fix the other problem
6892         reported by Kai Habel in
6893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6894         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6896         and I reproduced it on a Solaris 8 host we still have in production.
6897
6898 2011-11-18  Jim Meyering  <meyering@redhat.com>
6899
6900         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6901         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6902         Add a sentence to the comment.
6903         (hash_insert0): New function that simply calls hash_insert_if_absent.
6904         * lib/hash.h (hash_insert_if_absent): Declare it.
6905         (hash_insert0): Add deprecation attribute.
6906         (_GL_ATTRIBUTE_DEPRECATED): Define.
6907         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6908         not hash_insert0.
6909         * NEWS: Mention it, even though it's not really an incompatible change.
6910
6911 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6912
6913         openat: avoid compilation failure due to lack of <errno.h> inclusion
6914         * lib/openat.c: Include <errno.h>.
6915
6916 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6917
6918         * modules/getcwd (Depends-on): Add fdopendir.
6919         This fixes one of the two problems reported by Kai Habel in
6920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6921
6922         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6923         stdalign problem reported by Ian Beckwith in
6924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6925         * modules/crypto/gc-arcfour (Depends-on):
6926         Depend conditionally on crypto/arcfour.
6927         * modules/crypto/gc-arctwo (Depends-on):
6928         Depend conditionally on crypto/arctwo.
6929         * modules/crypto/gc-des (Depends-on):
6930         Depend conditionally on crypto/des.
6931         * modules/crypto/gc-hmac-md5 (Depends-on):
6932         Depend conditionally on crypto/hmac-md5.
6933         * modules/crypto/gc-hmac-sha1 (Depends-on):
6934         Depend conditionally on crypto/hmac-sha1.
6935         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6936         * modules/crypto/gc-md4 (Depends-on):
6937         Depend conditionally on crypto/md4.
6938         * modules/crypto/gc-md5 (Depends-on):
6939         Depend conditionally on crypto/md5.
6940         * modules/crypto/gc-rijndael (Depends-on):
6941         Depend conditionally on crypto/rijndael.
6942         * modules/crypto/gc-sha1 (Depends-on):
6943         Depend conditionally on crypto/sha1.
6944         * modules/crypto/gc-arcfour:
6945         * modules/crypto/gc-arctwo:
6946         * modules/crypto/gc-des:
6947         * modules/crypto/gc-hmac-md5:
6948         * modules/crypto/gc-hmac-sha1:
6949         * modules/crypto/gc-md2:
6950         * modules/crypto/gc-md4:
6951         * modules/crypto/gc-md5:
6952         * modules/crypto/gc-rijndael:
6953         * modules/crypto/gc-sha1:
6954         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6955         now that the conditional dependencies do the work for us.
6956
6957 2011-11-17  Jim Meyering  <meyering@redhat.com>
6958
6959         tests: factor st_ctime-comparison out of two headers
6960         * tests/test-utimens-common.h (ctime_compare): Define.
6961         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6962         * tests/test-lutimens.h (test_lutimens): Likewise.
6963         * tests/test-utimens.h (test_utimens): Likewise.
6964
6965         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6966         Invoke the test program via an init.sh-using wrapper.
6967         * tests/test-getcwd.sh: New file.
6968         * modules/getcwd-tests (Files): Add it.
6969         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6970
6971 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6972
6973         gitlog-to-changelog: support multi-author commits.
6974         The FSF cares about keeping track of all authors of patches to its
6975         projects, but Git doesn't provide obvious support for multi-author
6976         changesets. Consensus seems to be forming around the use of extra
6977         Signed-off-by inspired lines in the log message formatted as
6978         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6979         multi-author commits between version control systems.
6980         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6981         log message and output in standard ChangeLog multi-author format.
6982         Reported by Peter Rosin <peda@lysator.liu.se>
6983
6984 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6985             Bruno Haible  <bruno@clisp.org>
6986
6987         Fix some modules' file list.
6988         * modules/fstatat (Files): Add m4/lstat.m4.
6989         * modules/openat (Files): Likewise.
6990         * modules/unlinkat (Files): Likewise.
6991
6992 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6993
6994         maint.mk: fix tight-scope.mk generation in VPATH builds.
6995         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6996         reference with $(srcdir) so that the file is found correctly even
6997         when running `make syntax-check' in a VPATH build.
6998
6999 2011-11-13  Bruno Haible  <bruno@clisp.org>
7000             Jim Meyering  <meyering@redhat.com>
7001
7002         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7003         * tests/init.sh (compare): Remove "No differences encountered" or
7004         synonymous output from the 'diff' program.
7005
7006 2011-11-13  Bruno Haible  <bruno@clisp.org>
7007
7008         Makefile: Tweak indentation.
7009         * Makefile: Use tab as first character in every line that contains rule
7010         commands.
7011
7012 2011-11-13  Bruno Haible  <bruno@clisp.org>
7013
7014         Syntax check for copyright statements.
7015         * check-copyright: New file.
7016         * Makefile (sc_check_copyright): New rule.
7017
7018 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7019
7020         * build-aux/git-version-gen: Add --prefix to configure the tag
7021         match string.
7022
7023 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7024
7025         * build-aux/git-version-gen: Add --help and --version.
7026
7027 2011-11-12  Jim Meyering  <meyering@redhat.com>
7028
7029         revamp the other test-exclude?.sh scripts to use init.sh, too
7030         * tests/test-exclude1.sh: Use init.sh.
7031         * tests/test-exclude2.sh: Likewise.
7032         * tests/test-exclude3.sh: Likewise.
7033         * tests/test-exclude4.sh: Likewise.
7034         * tests/test-exclude5.sh: Likewise.
7035         * tests/test-exclude6.sh: Likewise.
7036         * tests/test-exclude7.sh: Likewise.
7037         * tests/test-exclude8.sh: Likewise.
7038         * modules/exclude-tests (Files): List init.sh.
7039
7040         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7041         These shell scripts ignored failure of the binary test-exclude,
7042         so making the latter return 77 didn't cause them to be skipped.
7043         * tests/test-exclude5.sh: Exit with test-exclude's error status
7044         when that program fails.  Revamp to use init.sh.
7045         * tests/test-exclude2.sh: Likewise.
7046
7047         test-exclude: fix a typo
7048         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7049
7050 2011-11-11  Bruno Haible  <bruno@clisp.org>
7051
7052         obstack: Fix compilation error on MSVC 9.
7053         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7054
7055 2011-11-11  Jim Meyering  <meyering@redhat.com>
7056
7057         test-exclude: skip tests rather than failing on deficient systems
7058         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7059         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7060         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7061         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7062
7063 2011-11-10  Bruno Haible  <bruno@clisp.org>
7064
7065         ptsname_r test: Avoid gcc warning on glibc systems.
7066         * tests/test-ptsname_r.c (null_ptr): New function.
7067         (test_errors): Use it.
7068
7069 2011-11-10  Bruno Haible  <bruno@clisp.org>
7070
7071         ptsname_r: Avoid compilation error on OSF/1 5.1.
7072         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7074         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7075         function is not declared or incompatibly declared.
7076         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7077         * modules/ptsname_r (Depends-on, configure.ac): Update.
7078         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7079
7080 2011-11-10  Bruno Haible  <bruno@clisp.org>
7081
7082         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7083         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7084         When cross-compiling, guess yes on all platforms except AIX.
7085         Reported by Ludovic Courtès <ludo@gnu.org>.
7086
7087 2011-11-09  Bruno Haible  <bruno@clisp.org>
7088
7089         ptsname_r tests: Fix bugs.
7090         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7091         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7092
7093 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7094
7095         fstatat: work with cross-compilation
7096         Problem reported by Ludovic Courtès in
7097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7098         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7099         "cross-compiling" and assume the bug is present.  Replace
7100         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7101         an inverted sense, to be more conservative about our assumptions.
7102         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7103
7104 2011-11-09  Bruno Haible  <bruno@clisp.org>
7105
7106         Improve MODULES.html output.
7107         * modules/mkfifoat (Description): Use the word "function".
7108         * modules/readlinkat (Description): Likewise.
7109         * modules/symlinkat (Description): Likewise.
7110
7111 2011-11-09  Eric Blake  <eblake@redhat.com>
7112
7113         ptsname_r-tests: new test module
7114         * modules/ptsname_r-tests: New module.
7115         * tests/test-ptsname_r.c: New file.
7116
7117         ptsname_r: new module
7118         * modules/ptsname_r: New module.
7119         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7120         * lib/ptsname.c (__ptsname_r): Split...
7121         * lib/ptsname_r.c: ...into new file.
7122         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7123         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7124         * modules/stdlib (Makefile.am): Substitute witnesses.
7125         * lib/stdlib.in.h (ptsname_r): Declare it.
7126         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7127         * MODULES.html.sh (Misc): Likewise.
7128         * modules/ptsname (Depends-on): Alter dependency.
7129         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7130
7131 2011-11-09  Jim Meyering  <meyering@redhat.com>
7132
7133         announce-gen: be more concise when there's only one URL+tarball
7134         * build-aux/announce-gen (get_tool_versions): When you distribute
7135         only one type of tarball, combine the first two "Here are..."
7136         sections and make the key-checking grammar independent of
7137         how many tarballs there are.
7138
7139 2011-11-09  Eric Blake  <eblake@redhat.com>
7140
7141         openpty: provide a stub on mingw
7142         * lib/pty.in.h (includes): Provide forward declarations.
7143         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7144
7145         raise: fix mingw handling of SIGPIPE
7146         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7147
7148 2011-11-08  Bruno Haible  <bruno@clisp.org>
7149
7150         More conditional dependencies.
7151         * modules/faccessat (Depends-on): Add conditions.
7152         * modules/fchmodat (Depends-on): Likewise.
7153         * modules/fchownat (Depends-on): Likewise.
7154         * modules/fstatat (Depends-on): Likewise.
7155         * modules/mkfifoat (Depends-on): Likewise.
7156         * modules/readlinkat (Depends-on): Likewise.
7157         * modules/symlinkat (Depends-on): Likewise.
7158         * modules/unlinkat (Depends-on): Likewise.
7159         * modules/utimensat (Depends-on): Likewise.
7160         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7161         * modules/linkat (Depends-on): Refine the conditions.
7162         * modules/renameat (Depends-on): Likewise.
7163
7164 2011-11-08  Bruno Haible  <bruno@clisp.org>
7165
7166         faccessat: Move AC_LIBOBJ invocation to module description.
7167         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7168         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7169         invocation from here...
7170         * modules/faccessat (configure.ac): ... to here. Invoke
7171         gl_PREREQ_FACCESSAT.
7172
7173 2011-11-08  Bruno Haible  <bruno@clisp.org>
7174
7175         faccessat: Simplify autoconf macro.
7176         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7177         gl_FUNC_EUIDACCESS.
7178
7179 2011-11-08  Bruno Haible  <bruno@clisp.org>
7180
7181         renameat: Fix dependencies.
7182         * modules/renameat (Depends-on): Add stdbool.
7183
7184 2011-11-08  Bruno Haible  <bruno@clisp.org>
7185
7186         mkfifoat: Fix module description.
7187         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7188         not gl_UNISTD_MODULE_INDICATOR.
7189
7190 2011-11-08  Bruno Haible  <bruno@clisp.org>
7191
7192         fstatat: Remove unused dependency.
7193         * modules/fstatat (Depends-on): Remove fstat.
7194
7195 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7196
7197         GNUmakefile: behave when Makefile is missing.
7198         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7199
7200 2011-11-08  Bruno Haible  <bruno@clisp.org>
7201
7202         openat: Conditionalize dependencies.
7203         * lib/openat.c: Reduce the scope of some #includes.
7204         * modules/openat (Depends-on): Add conditions.
7205
7206 2011-11-07  Jim Meyering  <meyering@redhat.com>
7207
7208         maint.mk: extract GPG key ID without using a temporary file
7209         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7210         without using a temporary file.  Based on a suggestion from Werner Koch
7211         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7212
7213 2011-11-07  Eric Blake  <eblake@redhat.com>
7214
7215         grantpt: fix typo
7216         * lib/stdlib.in.h (grantpt): Check correct function.
7217
7218         maint.mk: silence new syntax check
7219         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7220
7221 2011-11-06  Bruno Haible  <bruno@clisp.org>
7222
7223         Doc about floating-point and math API.
7224         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7225         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7226
7227 2011-11-06  Bruno Haible  <bruno@clisp.org>
7228
7229         stdalign tests: Skip the test when compiled by Sun C.
7230         * tests/test-stdalign.c (main): Skip the test on Sun C.
7231
7232 2011-11-06  Bruno Haible  <bruno@clisp.org>
7233
7234         ansi-c++-opt: Complete the 2011-06-05 change.
7235         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7236         does not support namespaces, set the variable to "no", not to ":".
7237
7238 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7239
7240         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7241
7242 2011-11-06  Bruno Haible  <bruno@clisp.org>
7243
7244         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7245         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7246         (minus_zerol) [HP-UX]: New macro.
7247         (unary_minus) [HP-UX]: New function.
7248         (copysignl) [HP-UX]: Use unary_minus function.
7249
7250 2011-11-06  Bruno Haible  <bruno@clisp.org>
7251
7252         ldexp, ldexpf, ldexpl: Enhance tests.
7253         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7254         and tests/test-ldexpl.c.
7255         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7256         LDEXP, MIN_EXP, MAX_EXP): New macros.
7257         Include test-ldexp.h.
7258         (main): Just call test_function.
7259         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7260         infinity.h, nan.h.
7261         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7262         MAX_EXP): New macros.
7263         Include test-ldexp.h.
7264         (x, y): Remove variables.
7265         (main): Just call test_function.
7266         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7267         infinity.h, nan.h.
7268         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7269         MAX_EXP): New macros.
7270         Include test-ldexp.h.
7271         (x, y): Remove variables.
7272         (main): Just call test_function.
7273         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7274         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7275         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7276         (Depends-on): Add isnand-nolibm, signbit, float.
7277         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7278         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7279         (Depends-on): Add isnanf-nolibm, signbit, float.
7280
7281 2011-11-06  Bruno Haible  <bruno@clisp.org>
7282
7283         math tests: Cosmetics.
7284         * tests/test-math-c++.cc: Reorder declarations.
7285
7286 2011-11-05  Bruno Haible  <bruno@clisp.org>
7287
7288         fma*: Simplify test.
7289         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7290         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7291
7292         Tests for module 'fmal'.
7293         * modules/fmal-tests: New file.
7294         * tests/test-fmal1.c: New file.
7295         * tests/test-fmal2.c: New file.
7296
7297         New module 'fmal'.
7298         * lib/math.in.h (fmal): New declaration.
7299         * lib/fmal.c: New file.
7300         * m4/fmal.m4: New file.
7301         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7303         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7304         REPLACE_FMAL.
7305         * modules/fmal: New file.
7306         * doc/posix-functions/fmal.texi: Mention the new module and the various
7307         bugs.
7308
7309         Tests for module 'fmaf'.
7310         * modules/fmaf-tests: New file.
7311         * tests/test-fmaf1.c: New file.
7312         * tests/test-fmaf2.c: New file.
7313
7314         New module 'fmaf'.
7315         * lib/math.in.h (fmaf): New declaration.
7316         * lib/fmaf.c: New file.
7317         * m4/fmaf.m4: New file.
7318         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7320         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7321         REPLACE_FMAF.
7322         * modules/fmaf: New file.
7323         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7324         bugs.
7325
7326         Tests for module 'fma'.
7327         * modules/fma-tests: New file.
7328         * tests/test-fma1.c: New file.
7329         * tests/test-fma1.h: New file.
7330         * tests/test-fma2.c: New file.
7331         * tests/test-fma2.h: New file.
7332
7333         New module 'fma'.
7334         * lib/math.in.h (fma): New declaration.
7335         * lib/fma.c: New file.
7336         * m4/fma.m4: New file.
7337         * m4/fegetround.m4: New file.
7338         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7340         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7341         REPLACE_FMA.
7342         * modules/fma: New file.
7343         * doc/posix-functions/fma.texi: Mention the new module and the various
7344         bugs.
7345
7346         Extend gl_MATHFUNC.
7347         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7348         Support 'void' as argument type.
7349         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7350
7351 2011-11-05  Jim Meyering  <meyering@redhat.com>
7352
7353         maint.mk: also prohibit inclusion of dirent.h without use
7354         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7355
7356 2011-11-05  Bruno Haible  <bruno@clisp.org>
7357
7358         ldexpl tests: Avoid test failure on MSVC 9.
7359         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7360         value. Needed in order to enforce the conversion from a value greater
7361         than LDBL_MAX to Infinity.
7362
7363 2011-11-05  Bruno Haible  <bruno@clisp.org>
7364
7365         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7366         * modules/at-internal: New file, extracted from modules/openat.
7367         * modules/openat-h: New file.
7368         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7369         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7370         * modules/openat (Description): Add reference to POSIX function.
7371         (Files): Remove lib/openat.h, lib/openat-proc.c.
7372         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7373         intprops, unistd.
7374         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7375         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7376         gl_FCNTL_MODULE_INDICATOR.
7377         (Include): Remove unistd.h, openat.h.
7378         * modules/areadlinkat (Files): Add lib/at-func.c.
7379         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7380         openat-die, openat-h, save-cwd.
7381         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7382         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7383         openat-die, openat-h, save-cwd, unistd.
7384         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7385         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7386         openat-h, save-cwd. Remove fcntl-h, openat.
7387         * modules/fchmodat (Files): Remove lib/openat.h.
7388         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7389         openat, stdbool, unistd.
7390         * modules/fchownat (Files): Remove lib/openat.h.
7391         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7392         openat, stdbool, sys_stat.
7393         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7394         lib/openat-proc.c.
7395         (Depends-on): Add at-internal.
7396         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7397         * modules/fstatat (Files): Remove lib/openat.h.
7398         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7399         stdbool, unistd.
7400         * modules/fts (Depends-on): Add openat-h.
7401         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7402         openat.
7403         * modules/mkdirat (Files): Remove lib/openat.h.
7404         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7405         openat, stdbool, sys_stat.
7406         * modules/mkfifoat (Files): Add lib/at-func.c.
7407         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7408         openat-h, save-cwd. Remove fcntl-h, openat.
7409         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7410         * modules/readlinkat (Files): Add lib/at-func.c.
7411         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7412         openat-h, save-cwd. Remove fcntl-h, openat.
7413         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7414         openat.
7415         * modules/selinux-at (Files): Add lib/at-func.c.
7416         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7417         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7418         * modules/symlinkat (Files): Add lib/at-func.c.
7419         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7420         openat-h, save-cwd. Remove fcntl-h, openat.
7421         * modules/unlinkat (Files): Remove lib/openat.h.
7422         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7423         stdbool.
7424         * modules/utimensat (Files): Add lib/at-func.c.
7425         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7426         openat-die, openat-h, save-cwd.
7427         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7428         * modules/fdutimensat-tests (Depends-on): Add openat.
7429         * modules/fstatat-tests (Depends-on): Add openat-h.
7430         * modules/readlinkat-tests (Depends-on): Add openat.
7431         * modules/symlinkat-tests (Depends-on): Add openat.
7432
7433 2011-11-05  Bruno Haible  <bruno@clisp.org>
7434
7435         openat: Include <stdbool.h>.
7436         * lib/openat.c: Include <stdbool.h>.
7437
7438 2011-11-04  Bruno Haible  <bruno@clisp.org>
7439
7440         fchownat, renameat, unlinkat: Fix dependencies.
7441         * modules/fchownat (Depends-on): Add fstatat.
7442         * modules/renameat (Depends-on): Likewise.
7443         * modules/unlinkat (Depends-on): Likewise.
7444
7445 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7446
7447         openat: remove direct dependency on dirent
7448         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7449         and hasn't been needed ever since fdopendir was split into its own
7450         module on 2009-08-31.
7451         * modules/openat (Depends-on): Remove dirent.
7452
7453 2011-11-04  Bruno Haible  <bruno@clisp.org>
7454
7455         renameat: Optimize code size.
7456         * modules/renameat (configure.ac): Don't compile at-func2.c if
7457         REPLACE_RENAMEAT is 1.
7458
7459 2011-11-04  Bruno Haible  <bruno@clisp.org>
7460
7461         openat tests: Fix file list.
7462         * modules/openat-tests (Files): Add tests/test-open.h.
7463
7464 2011-11-04  Bruno Haible  <bruno@clisp.org>
7465
7466         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7467         * modules/fchmodat (Depends-on): Add openat-die.
7468         * modules/fchownat (Depends-on): Likewise.
7469         * modules/linkat (Depends-on): Likewise.
7470         * modules/renameat (Depends-on): Likewise.
7471         * modules/openat (Depends-on): Add dirent.
7472
7473 2011-11-04  Jim Meyering  <meyering@redhat.com>
7474
7475         at-func*.c: fix comments
7476         * lib/at-func2.c: Correct/improve first-line comment.
7477         * lib/at-func.c: Correct grammar in first-line comment.
7478
7479 2011-11-04  Bruno Haible  <bruno@clisp.org>
7480
7481         New module 'mkdirat', split off from module 'openat'.
7482         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7483         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7484         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7485         * modules/mkdirat: New file, extracted from modules/openat.
7486         * modules/openat (Files): Remove lib/mkdirat.c.
7487         (Depends-on): Remove mkdir.
7488         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7489         (Include): Remove <sys/stat.h>.
7490         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7491         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7492         tests/test-mkdir.h.
7493         (Depends-on): Remove ignore-value.
7494         (Makefile.am): Remove rules for test-mkdirat.
7495         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7496         of module 'openat'.
7497         * NEWS: Mention the change.
7498
7499 2011-11-04  Bruno Haible  <bruno@clisp.org>
7500
7501         closedir: Avoid warning on mingw.
7502         * lib/closedir.c: Include <unistd.h>.
7503
7504 2011-11-04  Bruno Haible  <bruno@clisp.org>
7505
7506         New module 'fstatat', split off from module 'openat'.
7507         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7508         defined.
7509         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7510         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7511         gl_FUNC_FSTATAT.
7512         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7513         * modules/fstatat: New file, extracted from modules/openat.
7514         * modules/openat (Files): Remove lib/fstatat.c.
7515         (Depends-on): Remove lstat.
7516         (configure.ac): Remove AC_LIBOBJ of fstatat.
7517         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7518         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7519         tests/test-lstat.h, tests/test-stat.h.
7520         (Depends-on): Remove getcwd-lgpl.
7521         (Makefile.am): Remove rules for test-fstatat.
7522         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7523         of module 'openat'.
7524         * NEWS: Mention the change.
7525         * modules/getcwd (Depends-on): Add fstatat.
7526         * modules/linkat (Depends-on): Likewise.
7527         * modules/mkfifoat-tests (Depends-on): Likewise.
7528         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7529
7530 2011-11-03  Bruno Haible  <bruno@clisp.org>
7531
7532         New module 'unlinkat', split off from module 'openat'.
7533         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7534         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7535         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7536         * modules/unlinkat: New file, extracted from modules/openat. Correct
7537         the dependency conditions.
7538         * modules/openat (Files): Remove lib/unlinkat.c.
7539         (Depends-on): Remove rmdir, unlink.
7540         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7541         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7542         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7543         tests/test-rmdir.h, tests/test-unlink.h.
7544         (Depends-on): Remove unlinkdir.
7545         (Makefile.am): Remove rules for test-unlinkat.
7546         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7547         of module 'openat'.
7548         * NEWS: Mention the change.
7549         * modules/linkat-tests (Depends-on): Add unlinkat.
7550         * modules/mkfifoat-tests (Depends-on): Likewise.
7551         * modules/readlinkat-tests (Depends-on): Likewise.
7552
7553 2011-11-02  Bruno Haible  <bruno@clisp.org>
7554
7555         New module 'fchmodat', split off from module 'openat'.
7556         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7557         defined.
7558         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7559         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7560         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7561         * modules/fchmodat: New file, extracted from modules/openat.
7562         * modules/openat (Files): Remove lib/fchmodat.c.
7563         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7564         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7565         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7566         (Makefile.am): Remove rules for test-fchmodat.
7567         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7568         of module 'openat'.
7569         * NEWS: Mention the change.
7570
7571 2011-11-02  Jim Meyering  <meyering@redhat.com>
7572
7573         putenv: indent #definition of "environ" to placate cppi
7574         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7575
7576         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7577         Git logs are often treated as immutable, because editing them
7578         changes the SHA1 checksums of all descendants.  Thus, errors in
7579         git logs tend to stay there forever.  However, when we generate
7580         a ChangeLog file -- typically for distribution -- from that git log,
7581         we can actually make corrections in the generated file.  The key
7582         lies in recording in machine-readable/applicable form the desired
7583         corrections.  See --help for description and an example.
7584         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7585         (usage): Describe it; alphabetize option descriptions.
7586         (main): Honor the new option, carefully.
7587
7588 2011-11-01  Jim Meyering  <meyering@redhat.com>
7589
7590         gitlog-to-changelog: avoid an infloop
7591         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7592         that ends up being empty.
7593
7594 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7595
7596         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7597         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7598         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7599         contains (possibly-quoted) backslashes.  This should avoid
7600         all-too-common shell bugs if COMPLICATED contains backslashes in
7601         the "wrong" places.  Reported by David Evans in
7602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7603         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7604         because we want ASCII ranges.  Is there some reason we don't use
7605         the C locale everywhere in this script?
7606         (func_module, top level): Avoid unwanted pathname expansion when
7607         $repo_url_prefix or $repo_url_suffix_repl contain shell
7608         metacharacters like '?' and '*'.
7609
7610 2011-11-01  Bruno Haible  <bruno@clisp.org>
7611
7612         fchownat: Improve description.
7613         * modules/fchownat (Description): Add link to function.
7614
7615 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7616
7617         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7618         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7620         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7621
7622 2011-11-01  Bruno Haible  <bruno@clisp.org>
7623
7624         alignof: Avoid collision with stdalign module.
7625         * lib/alignof.h (alignof): Remove macro.
7626         * NEWS: Mention the change.
7627         Reported by Paul Eggert.
7628
7629 2011-11-01  Bruno Haible  <bruno@clisp.org>
7630
7631         New module 'fchownat', split off from module 'openat'.
7632         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7633         defined.
7634         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7635         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7636         invoke gl_FUNC_FCHOWNAT.
7637         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7638         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7639         * modules/fchownat: New file, extracted from modules/openat.
7640         * modules/openat (Files): Remove lib/fchownat.c.
7641         (Depends-on): Remove lchown.
7642         (configure.ac): Remove AC_LIBOBJ of fchownat.
7643         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7644         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7645         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7646         (Depends-on): Remove mgetgroups, usleep, stat-time.
7647         (configure.ac): Remove test for getegid.
7648         (Makefile.am): Remove rules for test-fchownat.
7649         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7650         of module 'openat'.
7651         * NEWS: Mention the change.
7652
7653 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7654
7655         stdalign: port better to MSVC and to Sun C 5.11
7656         This fixes some of the problems reported by Bruno Haible in
7657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7658         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7659         shortcomings of MSVC and of Sun C 5.11.
7660         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7661         around __declspec arg.
7662         * modules/stdalign-tests (Files): Add tests/macros.h.
7663         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7664         Include macros.h, for ASSERT.
7665         (DECLARE_ALIGNED): Remove.
7666         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7667         to catch bug), and to 1 if not (simplifies the rest of the code).
7668         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7669         (CHECK_AUTO): Remove.
7670         (CHECK_ALIGNED): Check only the alignment of the static vars,
7671         since auto var alignment isn't supported by Sun C 5.11.
7672         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7673         ASSERT failures are easier to diagnose.
7674
7675 2011-10-31  Bruno Haible  <bruno@clisp.org>
7676
7677         doc about some IRIX 5.3 problems.
7678         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7679         on IRIX 5.3.
7680         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7681         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7682         5.3.
7683         * doc/posix-functions/grantpt.texi: Likewise.
7684         * doc/posix-functions/unlockpt.texi: Likewise.
7685         * doc/posix-functions/lgamma.texi: Likewise.
7686         * doc/posix-functions/nextafter.texi: Likewise.
7687         * doc/posix-functions/remainder.texi: Likewise.
7688         * doc/posix-functions/select.texi: Mention misplaced declaration on
7689         IRIX 5.3.
7690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7691
7692 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7693
7694         gitlog-to-changelog: fix git-log invocation.
7695         git-log mishandles date strings before 1970-01-01 UTC, and there is
7696         no use to specify --since=1970-01-01 by default anyway.
7697         * build-aux/gitlog-to-changelog: By default, when no --since option
7698         was given, do not specify explicit --since option to git-log.
7699
7700 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7701
7702         gitlog-to-changelog: new option --append-dot.
7703         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7704         first non-blank line of each commit message terminated with a dot.
7705
7706 2011-10-30  Bruno Haible  <bruno@clisp.org>
7707
7708         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7709         * lib/ffsl.h: Include <config.h>.
7710         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7711
7712 2011-10-30  Jim Meyering  <meyering@redhat.com>
7713
7714         GNUmakefile: reenable "make syntax-check" for most projects
7715         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7716         build-aux variable", "syntax-check" would do nothing but succeed with
7717         the "No version control files detected..." diagnostic (unless you
7718         happened to override _build-aux via cfg.mk).
7719         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7720         to precede inclusion of maint.mk.  Otherwise, these variables would
7721         be used undefined in any project that does not override the default.
7722
7723 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7724
7725         gitlog-to-changelog: treat a message with only blank lines as empty.
7726         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7727         trailing blank lines before the code that issues a warning about an
7728         empty commit message.
7729
7730 2011-10-30  Jim Meyering  <meyering@redhat.com>
7731
7732         test-parse-datetime.c: avoid new DST-related false positive test failure
7733         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7734         based on the time/date we'll convert, not the current time.
7735         Otherwise, the moment we cross a DST boundary like today's in
7736         Europe, (CEST to CET), that offset ends up being one hour off.
7737
7738 2011-10-27  Bruno Haible  <bruno@clisp.org>
7739
7740         fstat: Tweak documentation.
7741         * modules/fstat (Description): More precise description.
7742
7743 2011-10-27  Bruno Haible  <bruno@clisp.org>
7744
7745         Update documentation regarding 'largefile' module.
7746         * doc/posix-functions/fstat.texi: Tweak wording.
7747         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7748         problems with huge directories and/or small ino_t types.
7749         * doc/posix-functions/readdir.texi: Likewise.
7750         * doc/posix-functions/rewinddir.texi: Likewise.
7751
7752 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7753
7754         maint.mk: don't maintain a second build-aux variable.
7755         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7756         depends on GNUmakefile, which already maintains a cfg.mk
7757         overridable $(_build-aux) for projects with a non-standard
7758         build-aux directory location, although without the $(srcdir)
7759         prefix.  Use that variable consistently instead of introducing a
7760         second one.  Adjust all call sites.
7761
7762 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7763
7764         Add stdalign module and use it in other modules.
7765         This is based on a previous proposal by Bruno Haible
7766         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7767
7768         stdalign: new module
7769         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7770         * modules/stdalign: New files.
7771         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7772         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7773
7774         stdalign-tests: new module
7775         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7776
7777         argp: use stdalign
7778         * lib/argp-parse.c: Include <stdalign.h>.
7779         (alignof): Remove.
7780         * modules/argp (Depends-on): Add stdalign.
7781
7782         crypto libraries: use stdalign
7783         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7784         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7785         Do not include <stdlib.h> twice, in md4.c.
7786         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7787         because we are accessing a pointer's bit-pattern, not a size.
7788         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7789         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7790         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7791         * modules/crypto/sha512: Likewise.
7792
7793         sys_socket: use stdalign, not alignof
7794         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7795         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7796
7797 2011-10-27  Bruno Haible  <bruno@clisp.org>
7798
7799         raise test: Avoid a test failure on Linux/MIPS.
7800         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7801         because 99 is a valid signal on Linux/MIPS.
7802
7803 2011-10-27  Bruno Haible  <bruno@clisp.org>
7804
7805         nonblocking tests: Fix test failure on Linux/MIPS.
7806         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7807         Set to 270000.
7808
7809 2011-10-27  Bruno Haible  <bruno@clisp.org>
7810
7811         utimensat: Work around problem on Linux/hppa.
7812         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7813         values.
7814         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7815
7816 2011-10-25  Jim Meyering  <meyering@redhat.com>
7817
7818         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7819         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7820         after symbols like NULL, size_t, etc.
7821         Reported by Alfred M. Szmidt.
7822
7823         maint.mk: exempt ENODATA from a syntax-check rule
7824         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7825         from the sc_prohibit_always-defined_macros syntax-check rule.
7826         Add a comment.  See this for more details:
7827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7828
7829 2011-10-23  Jim Meyering  <meyering@redhat.com>
7830
7831         fts: close parent dir FD before returning from post-traversal fts_read
7832         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7833         unlink A, even though an FD open on A remained.  This is suboptimal
7834         (holding a file descriptor open longer than needed), but otherwise not
7835         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7836         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7837         that represents a real problem: it causes the removal of A to fail
7838         with e.g., "rm: cannot remove `A': Device or resource busy"
7839
7840         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7841         directory file descriptors.  After completing the final, FTS_DP,
7842         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7843         cache, but then proceeded to add a new FD to it via the subsequent
7844         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7845         final file descriptor would be closed only via fts_close's call to
7846         fd_ring_clear.  Now, it is usually closed earlier, via the final
7847         FTS_DP-returning fts_read call.
7848         * lib/fts.c (restore_initial_cwd): New function, converted from
7849         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7850         Update callers.
7851         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7852         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7853
7854 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7855             Bruno Haible  <bruno@clisp.org>
7856             Jim Meyering  <jim@meyering.net>
7857
7858         readme-release: improve safety of release prep instructions.
7859         * README-release: Don't git pull all branches when only master
7860         is needed for the release process.
7861         Run make maintainer-clean before changing trees and merging.
7862         Don't try to run ./configure right after git pull in case files
7863         that influence the bootstrap process have changed, move the
7864         ./configure step to after running ./bootstrap.
7865         Don't bootstrap "one last time"... it's the first time!
7866
7867 2011-10-22  Bruno Haible  <bruno@clisp.org>
7868
7869         errno, strerror-override: Support for MSVC 10.
7870         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7871         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7872         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7873         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7874         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7875         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7876         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7877         Assign values compatible with MSVC 10.
7878         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7879         New macros.
7880         (GNULIB_defined_EWINSOCK): New macro.
7881         * lib/strerror-override.c (strerror_override): Update accordingly.
7882         * lib/strerror-override.h: Likewise.
7883         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7884         longer equal to the corresponding errno value.
7885         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7886
7887 2011-10-22  Bruno Haible  <bruno@clisp.org>
7888
7889         perror: Recognize when test program crashes.
7890         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7891         strerror, set gl_cv_func_perror_works to no.
7892         Reported by Daniel Richard G. <skunk@iskunk.org>.
7893
7894         perror: Fix indentation.
7895         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7896
7897 2011-10-22  Bruno Haible  <bruno@clisp.org>
7898
7899         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7900         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7901         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7902         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7903         functions, not as a macro.
7904         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7905         macros.
7906         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7907         absence of macro.
7908         Suggested by Eric Blake.
7909         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7910
7911 2011-10-21  Bruno Haible  <bruno@clisp.org>
7912
7913         relocatable-prog-wrapper: Don't leave object files behind.
7914         * build-aux/install-reloc: Re-synchronize list of .o files to be
7915         removed with list of compilation units.
7916
7917 2011-10-20  Bruno Haible  <bruno@clisp.org>
7918
7919         openpty, posix_openpt: Remove code duplication.
7920         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7921         * lib/openpty.c: Include <stdlib.h>.
7922         (openpty): Use posix_openpt on all platforms except IRIX.
7923         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7924
7925 2011-10-20  Bruno Haible  <bruno@clisp.org>
7926
7927         unlockpt: Detect invalid argument.
7928         * lib/unlockpt.c: Include <fcntl.h>.
7929         (unlockpt): Check whether fd is valid, using fcntl().
7930         * modules/unlockpt (Depends-on): Add fcntl-h.
7931
7932 2011-10-20  Bruno Haible  <bruno@clisp.org>
7933
7934         openpty: Avoid compilation error on AIX 6.1.
7935         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7936
7937 2011-10-20  Bruno Haible  <bruno@clisp.org>
7938
7939         posix_openpt: Support for OpenBSD.
7940         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7941         (posix_openpt) [OpenBSD]: New code.
7942         * lib/grantpt.c: Include <fcntl.h>.
7943         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7944         * modules/grantpt (Depends-on): Add fcntl-h.
7945
7946 2011-10-20  Bruno Haible  <bruno@clisp.org>
7947
7948         posix_openpt test: Coding style.
7949         * tests/test-posix_openpt.c: Use GNU coding style.
7950
7951 2011-10-20  Bruno Haible  <bruno@clisp.org>
7952
7953         grantpt: Support --avoid=pt_chown.
7954         * modules/grantpt (Files): Add lib/pty-private.h.
7955
7956 2011-10-20  Bruno Haible  <bruno@clisp.org>
7957
7958         posix_openpt: Fix autoconf macro.
7959         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7960         unneeded check for _getpty.
7961
7962 2011-10-20  Bruno Haible  <bruno@clisp.org>
7963
7964         openpty: Update comments.
7965         * lib/openpty.c: Add comments about Minix.
7966
7967 2011-10-19  Eric Blake  <eblake@redhat.com>
7968
7969         openpty: relax license
7970         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7971
7972         pt_chown: use configmake to simplify build
7973         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7974
7975         ptsname and others: relax license
7976         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7977         * modules/unlockpt (License): Likewise.
7978         * modules/pt_chown (License): Likewise.
7979         * modules/ptsname (License): Likewise.
7980         * modules/ttyname_r (License): Likewise.
7981
7982 2011-10-19  Jim Meyering  <meyering@redhat.com>
7983
7984         posix_openpt: remove spurious #endif
7985         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7986
7987 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7988
7989         maint.mk: Respect $(build_aux) in web-manual rule.
7990         * top/maint.mk (web-manual): Find gen-announce script in user's
7991         $(build_aux) directory instead of hard-coding 'build-aux'.
7992
7993 2011-10-19  Bruno Haible  <bruno@clisp.org>
7994
7995         posix_openpt: Fix compilation error.
7996         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7997         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7998         Mention the openpty module as an alternative.
7999
8000 2011-10-19  Bruno Haible  <bruno@clisp.org>
8001
8002         Support for old NeXTstep 3.3 frexp().
8003         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8004         execution time of the test to 5 seconds.
8005         Reported by Daniel Richard G. <skunk@iskunk.org>.
8006
8007 2011-10-19  Bruno Haible  <bruno@clisp.org>
8008
8009         Support for old NeXTstep 3.3 sed.
8010         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8011         part, use /.../, not \|...|. Escape periods in the header file name.
8012         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8013         Reported by Daniel Richard G. <skunk@iskunk.org>.
8014
8015 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8016
8017         Support for old NeXTstep 3.3 gcc.
8018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8019         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8020         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8021         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8022         * lib/regex.h (_Restrict_arr_): Likewise.
8023         * lib/regex_internal.h (re_token_t): Likewise.
8024         * lib/regexec.c (check_node_accept_bytes): Likewise.
8025         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8026
8027 2011-10-18  Eric Blake  <eblake@redhat.com>
8028
8029         posix_openpt: new module
8030         * modules/posix_openpt: New module.
8031         * m4/posix_openpt.m4: New file.
8032         * lib/posix_openpt.c: Likewise.
8033         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8034         (gl_STDLIB_H_DEFAULTS): Set defaults.
8035         * modules/stdlib (Makefile.am): Substitute macros.
8036         * lib/stdlib.in.h (posix_openpt): Declare.
8037         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8038         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8039         * modules/posix_openpt-tests: New test module.
8040         * tests/test-posix_openpt.c: New test.
8041
8042 2011-10-15  Bruno Haible  <bruno@clisp.org>
8043
8044         xstrtoll: Fix compilation failure.
8045         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8046         from lib/strtol.c.
8047         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8048         some platforms.
8049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8050
8051 2011-10-15  Bruno Haible  <bruno@clisp.org>
8052
8053         vasnprintf: Optimize bit search operation.
8054         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8056         gl_DOUBLE_EXPONENT_LOCATION.
8057         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8058         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8059         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8060         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8061         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8062         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8063         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8064         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8065         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8066
8067 2011-10-15  Bruno Haible  <bruno@clisp.org>
8068
8069         vasnprintf: Fix comments.
8070         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8071
8072 2011-10-14  Bruno Haible  <bruno@clisp.org>
8073
8074         Tests for module 'integer_length_ll'.
8075         * modules/integer_length_ll-tests: New file.
8076         * tests/test-integer_length_ll.c: New file.
8077
8078         New module 'integer_length_ll'.
8079         * lib/integer_length_ll.c: New file.
8080         * modules/integer_length_ll: New file.
8081
8082 2011-10-14  Bruno Haible  <bruno@clisp.org>
8083
8084         Tests for module 'integer_length_l'.
8085         * modules/integer_length_l-tests: New file.
8086         * tests/test-integer_length_l.c: New file.
8087
8088         New module 'integer_length_l'.
8089         * lib/integer_length_l.c: New file.
8090         * modules/integer_length_l: New file.
8091
8092 2011-10-14  Bruno Haible  <bruno@clisp.org>
8093
8094         Tests for module 'integer_length'.
8095         * modules/integer_length-tests: New file.
8096         * tests/test-integer_length.c: New file.
8097
8098         New module 'integer_length'.
8099         * lib/integer_length.h: New file.
8100         * lib/integer_length.c: New file.
8101         * modules/integer_length: New file.
8102
8103 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8104
8105         popen: Fix dependency conditions.
8106         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8107
8108 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8109
8110         perror: Fix autoconf test.
8111         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8112         <stdlib.h> and <string.h>.
8113
8114 2011-10-14  Bruno Haible  <bruno@clisp.org>
8115
8116         ffsl: Optimize on 64-bit platforms.
8117         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8118         unrolling.
8119
8120 2011-10-13  Bruno Haible  <bruno@clisp.org>
8121
8122         ffsl: Optimize on 32-bit platforms.
8123         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8124         use ffs() without a loop.
8125
8126         ffsl, ffsll: Optimize for GCC.
8127         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8128         * lib/ffsl.c (GCC_BUILTIN): New macro.
8129         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8130
8131 2011-10-13  Bruno Haible  <bruno@clisp.org>
8132
8133         ffs, bcopy, memset: Support symbol renaming via config.h.
8134         * lib/ffs.c: Include <config.h>.
8135         * lib/bcopy.c: Likewise.
8136         * lib/memset.c: Likewise.
8137
8138 2011-10-10  Bruno Haible  <bruno@clisp.org>
8139
8140         atanl: Simplify for platforms where 'long double' == 'double'.
8141         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8142         alternative implementation.
8143         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8144         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8145         * modules/atanl (Depends-on): Add atan. Update conditions.
8146
8147 2011-10-10  Bruno Haible  <bruno@clisp.org>
8148
8149         acosl: Simplify for platforms where 'long double' == 'double'.
8150         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8151         alternative implementation.
8152         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8153         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8154         * modules/acosl (Depends-on): Add acos. Update conditions.
8155
8156 2011-10-10  Bruno Haible  <bruno@clisp.org>
8157
8158         asinl: Simplify for platforms where 'long double' == 'double'.
8159         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8160         alternative implementation.
8161         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8162         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8163         * modules/asinl (Depends-on): Add asin. Update conditions.
8164
8165 2011-10-10  Bruno Haible  <bruno@clisp.org>
8166
8167         tanl: Simplify for platforms where 'long double' == 'double'.
8168         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8169         implementation.
8170         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8171         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8172         * modules/tanl (Depends-on): Add tan. Update conditions.
8173         (configure.ac): Don't compile trigl.c if
8174         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8175
8176 2011-10-10  Bruno Haible  <bruno@clisp.org>
8177
8178         cosl: Simplify for platforms where 'long double' == 'double'.
8179         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8180         implementation.
8181         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8182         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8183         * modules/cosl (Depends-on): Add cos. Update conditions.
8184         (configure.ac): Don't compile sincosl.c and trigl.c if
8185         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8186
8187 2011-10-10  Bruno Haible  <bruno@clisp.org>
8188
8189         sinl: Simplify for platforms where 'long double' == 'double'.
8190         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8191         implementation.
8192         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8193         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8194         * modules/sinl (Depends-on): Add sin. Update conditions.
8195         (configure.ac): Don't compile sincosl.c and trigl.c if
8196         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8197
8198 2011-10-10  Bruno Haible  <bruno@clisp.org>
8199
8200         logl: Simplify for platforms where 'long double' == 'double'.
8201         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8202         implementation.
8203         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8204         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8205         * modules/logl (Depends-on): Add log. Update conditions.
8206
8207 2011-10-10  Bruno Haible  <bruno@clisp.org>
8208
8209         expl: Simplify for platforms where 'long double' == 'double'.
8210         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8211         implementation.
8212         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8213         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8214         * modules/expl (Depends-on): Add exp. Update conditions.
8215
8216 2011-10-10  Bruno Haible  <bruno@clisp.org>
8217
8218         sqrtl: Simplify for platforms where 'long double' == 'double'.
8219         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8220         alternative implementation.
8221         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8222         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8223         * modules/sqrtl (Depends-on): Update conditions.
8224
8225 2011-10-10  Bruno Haible  <bruno@clisp.org>
8226
8227         ldexpl: Simplify for platforms where 'long double' == 'double'.
8228         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8229         alternative implementation.
8230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8231         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8232         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8233
8234 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8235
8236         ffsll: set correct witness
8237         * modules/ffsll (configure.ac): Fix typo.
8238
8239 2011-10-10  Bruno Haible  <bruno@clisp.org>
8240
8241         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8242         * lib/printf-frexpl.c: Include <config.h>.
8243         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8244         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8245         second time.
8246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8247         gl_LONG_DOUBLE_VS_DOUBLE.
8248         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8249         conditions.
8250
8251 2011-10-10  Bruno Haible  <bruno@clisp.org>
8252
8253         frexpl: Simplify for platforms where 'long double' == 'double'.
8254         * lib/frexpl.c: Include <config.h>.
8255         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8256         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8257         time.
8258         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8259         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8260         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8261         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8262         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8263         conditions.
8264
8265 2011-10-10  Jim Meyering  <meyering@redhat.com>
8266
8267         test-renameat: don't leave behind a temporary file
8268         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8269           ERROR: files left in build directory after distclean:
8270           ./gltests/test-renameat.too
8271           make[1]: *** [distcleancheck] Error 1
8272         Reported by Tom G. Christensen.
8273
8274 2011-10-09  Bruno Haible  <bruno@clisp.org>
8275
8276         rint: Determine RINT_LIBM correctly on AIX 7.
8277         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8278         directly, not only through a function pointer. Also accept an optional
8279         4th argument with extra code.
8280         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8281         rintf() call by gcc when optimizing.
8282
8283         mathfunc.m4: Refactor.
8284         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8285         m4 variable.
8286
8287 2011-10-09  Bruno Haible  <bruno@clisp.org>
8288
8289         rintl: Simplify for platforms where 'long double' == 'double'.
8290         * lib/rintl.c: Include <config.h>.
8291         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8292         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8293         time.
8294         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8295         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8296         * modules/rintl (Depends-on): Add rint. Update conditions.
8297
8298 2011-10-09  Bruno Haible  <bruno@clisp.org>
8299
8300         roundl: Simplify for platforms where 'long double' == 'double'.
8301         * lib/roundl.c: Include <config.h>.
8302         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8303         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8304         time.
8305         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8306         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8307         * modules/roundl (Depends-on): Add round. Update conditions.
8308
8309 2011-10-09  Bruno Haible  <bruno@clisp.org>
8310
8311         truncl: Simplify for platforms where 'long double' == 'double'.
8312         * lib/truncl.c: Include <config.h>.
8313         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8314         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8315         time.
8316         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8317         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8318         * modules/truncl (Depends-on): Add trunc. Update conditions.
8319
8320 2011-10-09  Bruno Haible  <bruno@clisp.org>
8321
8322         ceill: Simplify for platforms where 'long double' == 'double'.
8323         * lib/ceill.c: Include <config.h>.
8324         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8325         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8326         time.
8327         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8328         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8329         * modules/ceill (Depends-on): Add ceil. Update conditions.
8330
8331 2011-10-09  Bruno Haible  <bruno@clisp.org>
8332
8333         floorl: Simplify for platforms where 'long double' == 'double'.
8334         * lib/floorl.c: Include <config.h>.
8335         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8336         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8337         time.
8338         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8339         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8340         * modules/floorl (Depends-on): Add floor. Update conditions.
8341
8342 2011-10-09  Bruno Haible  <bruno@clisp.org>
8343
8344         rint: Fix ordering constraints.
8345         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8346         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8347         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8348
8349 2011-10-09  Bruno Haible  <bruno@clisp.org>
8350
8351         copysignl: Simplify for platforms where 'long double' == 'double'.
8352         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8353         alternative.
8354         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8355         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8356         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8357
8358 2011-10-09  Bruno Haible  <bruno@clisp.org>
8359
8360         Tests for module 'rintl'.
8361         * modules/rintl-tests: New file.
8362         * tests/test-rintl.c: New file.
8363
8364         New module 'rintl'.
8365         * lib/math.in.h (rintl): New declaration.
8366         * lib/rintl.c: New file.
8367         * m4/rintl.m4: New file.
8368         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8370         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8371         * modules/rintl: New file.
8372         * tests/test-math-c++.cc: Check the declaration of rintl.
8373         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8374         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8375         * doc/posix-functions/rintl.texi: Mention the new module.
8376
8377 2011-10-09  Bruno Haible  <bruno@clisp.org>
8378
8379         Tests for module 'rintf'.
8380         * modules/rintf-tests: New file.
8381         * tests/test-rintf.c: New file.
8382
8383         New module 'rintf'.
8384         * lib/math.in.h (rintf): New declaration.
8385         * lib/rintf.c: New file.
8386         * m4/rintf.m4: New file.
8387         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8389         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8390         * modules/rintf: New file.
8391         * tests/test-math-c++.cc: Check the declaration of rintf.
8392         * doc/posix-functions/rintf.texi: Mention the new module.
8393
8394 2011-10-09  Bruno Haible  <bruno@clisp.org>
8395
8396         rint: Support for MSVC.
8397         * lib/math.in.h (rint): New declaration.
8398         * lib/rint.c: New file.
8399         * m4/rint.m4: New file.
8400         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8402         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8403         * modules/rint (Description): Fix.
8404         (Files): Add lib/rint.c, m4/rint.m4.
8405         (Depends-on): Add math.
8406         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8407         gl_MATH_MODULE_INDICATOR.
8408         * tests/test-math-c++.cc: Check the declaration of rint.
8409         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8410         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8411         * doc/posix-functions/rint.texi: Mention the replacement provided by
8412         the module.
8413
8414         rint tests: More tests.
8415         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8416         minus-zero.h, infinity.h, nan.h.
8417         (main): Skip the test if the current rounding mode is not standard. Add
8418         tests for negative numbers, minus zero, infinity, NaN.
8419         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8420         tests/nan.h.
8421         (Depends-on): Add isnand-nolibm.
8422
8423 2011-10-09  Bruno Haible  <bruno@clisp.org>
8424
8425         Tests for module 'copysignl'.
8426         * modules/copysignl-tests: New file.
8427         * tests/test-copysignl.c: New file.
8428
8429         New module 'copysignl'.
8430         * lib/math.in.h (copysignl): New declaration.
8431         * lib/copysignl.c: New file.
8432         * m4/copysignl.m4: New file.
8433         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8435         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8436         HAVE_COPYSIGNL.
8437         * modules/copysignl: New file.
8438         * tests/test-math-c++.cc: Check the declaration of copysignl.
8439         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8440         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8441         * doc/posix-functions/copysignl.texi: Mention the new module.
8442
8443 2011-10-09  Bruno Haible  <bruno@clisp.org>
8444
8445         Tests for module 'copysignf'.
8446         * modules/copysignf-tests: New file.
8447         * tests/test-copysignf.c: New file.
8448
8449         New module 'copysignf'.
8450         * lib/math.in.h (copysignf): New declaration.
8451         * lib/copysignf.c: New file.
8452         * m4/copysignf.m4: New file.
8453         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8455         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8456         HAVE_COPYSIGNF.
8457         * modules/copysignf: New file.
8458         * tests/test-math-c++.cc: Check the declaration of copysignf.
8459         * doc/posix-functions/copysignf.texi: Mention the new module.
8460
8461 2011-10-09  Bruno Haible  <bruno@clisp.org>
8462
8463         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8464         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8465         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8466         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8467         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8468         gl_SIGNAL_H_DEFAULTS.
8469
8470 2011-10-09  Bruno Haible  <bruno@clisp.org>
8471
8472         poll: Make macro safer.
8473         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8474         ac_cv_header_poll_h is not set.
8475
8476 2011-10-09  Bruno Haible  <bruno@clisp.org>
8477
8478         copysign: Provide replacement.
8479         * lib/math.in.h (copysign): New declaration.
8480         * lib/copysign.c: New file.
8481         * m4/copysign.m4: New file.
8482         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8484         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8485         HAVE_COPYSIGN.
8486         * modules/copysign (Description): Clarify.
8487         (Files): Add lib/copysign.c, m4/copysign.m4.
8488         (Depends-on): Add math, signbit.
8489         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8490         gl_MATH_MODULE_INDICATOR.
8491         * tests/test-math-c++.cc: Check the declaration of copysign.
8492         * doc/posix-functions/copysign.texi: Mention the effects of the module
8493         on Minix and MSVC.
8494
8495 2011-10-09  Bruno Haible  <bruno@clisp.org>
8496
8497         isinf: Ensure macro on AIX 5.1.
8498         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8499         macro.
8500         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8501
8502 2011-10-09  Bruno Haible  <bruno@clisp.org>
8503
8504         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8505         * modules/snprintf-posix-tests (configure.ac): Require
8506         gl_LONG_DOUBLE_VS_DOUBLE.
8507         * modules/sprintf-posix-tests (configure.ac): Likewise.
8508         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8509         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8510         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8511         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8512         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8513         tests on platforms where 'long double' is the same as 'double'.
8514         * tests/test-sprintf-posix.h (test_function): Likewise.
8515         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8516         * tests/test-vasprintf-posix.c (test_function): Likewise.
8517
8518         *printf: Fix for platforms where 'long double' == 'double'.
8519         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8520         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8521         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8522         * modules/fprintf-posix (Files): Likewise.
8523         * modules/obstack-printf-posix (Files): Likewise.
8524         * modules/snprintf-posix (Files): Likewise.
8525         * modules/sprintf-posix (Files): Likewise.
8526         * modules/vasnprintf (Files): Likewise.
8527         * modules/vasnprintf-posix (Files): Likewise.
8528         * modules/vasprintf-posix (Files): Likewise.
8529         * modules/vdprintf-posix (Files): Likewise.
8530         * modules/vfprintf-posix (Files): Likewise.
8531         * modules/vsnprintf-posix (Files): Likewise.
8532         * modules/vsprintf-posix (Files): Likewise.
8533         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8534         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8535         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8536         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8537         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8538         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8539         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8540
8541         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8542         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8543         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8544         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8545         'long double'.
8546         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8547
8548         isinf: Fix for platforms where 'long double' == 'double'.
8549         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8550         Don't blindly assume 80-bit 'long double'.
8551
8552         isfinite: Fix for platforms where 'long double' == 'double'.
8553         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8554         Don't blindly assume 80-bit 'long double'.
8555
8556         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8557         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8558         * modules/isfinite-tests (configure.ac): Require
8559         gl_LONG_DOUBLE_VS_DOUBLE.
8560         * modules/isinf-tests (configure.ac): Likewise.
8561         * modules/isnan-tests (configure.ac): Likewise.
8562         * modules/isnanl-tests (configure.ac): Likewise.
8563         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8564         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8565         tests on platforms where 'long double' is the same as 'double'.
8566         * tests/test-isinf.c (test_isinfl): Likewise.
8567         * tests/test-isnan.c (test_long_double): Likewise.
8568         * tests/test-isnanl.h (main): Likewise.
8569
8570 2011-10-08  Bruno Haible  <bruno@clisp.org>
8571
8572         Tests for module 'tanhf'.
8573         * modules/tanhf-tests: New file.
8574         * tests/test-tanhf.c: New file.
8575
8576         New module 'tanhf'.
8577         * lib/math.in.h (tanhf): New declaration.
8578         * lib/tanhf.c: New file.
8579         * m4/tanhf.m4: New file.
8580         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8582         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8583         * modules/tanhf: New file.
8584         * tests/test-math-c++.cc: Check the declaration of tanhf.
8585         * doc/posix-functions/tanhf.texi: Mention the new module.
8586
8587         tanh: Use a .m4 file.
8588         * m4/tanh.m4: New file.
8589         * modules/tanh (Files): Add it.
8590         (configure.ac): Just invoke gl_FUNC_TANH.
8591
8592 2011-10-08  Bruno Haible  <bruno@clisp.org>
8593
8594         Tests for module 'coshf'.
8595         * modules/coshf-tests: New file.
8596         * tests/test-coshf.c: New file.
8597
8598         New module 'coshf'.
8599         * lib/math.in.h (coshf): New declaration.
8600         * lib/coshf.c: New file.
8601         * m4/coshf.m4: New file.
8602         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8604         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8605         * modules/coshf: New file.
8606         * tests/test-math-c++.cc: Check the declaration of coshf.
8607         * doc/posix-functions/coshf.texi: Mention the new module.
8608
8609         cosh: Use a .m4 file.
8610         * m4/cosh.m4: New file.
8611         * modules/cosh (Files): Add it.
8612         (configure.ac): Just invoke gl_FUNC_COSH.
8613
8614 2011-10-08  Bruno Haible  <bruno@clisp.org>
8615
8616         Tests for module 'sinhf'.
8617         * modules/sinhf-tests: New file.
8618         * tests/test-sinhf.c: New file.
8619
8620         New module 'sinhf'.
8621         * lib/math.in.h (sinhf): New declaration.
8622         * lib/sinhf.c: New file.
8623         * m4/sinhf.m4: New file.
8624         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8626         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8627         * modules/sinhf: New file.
8628         * tests/test-math-c++.cc: Check the declaration of sinhf.
8629         * doc/posix-functions/sinhf.texi: Mention the new module.
8630
8631         sinh: Use a .m4 file.
8632         * m4/sinh.m4: New file.
8633         * modules/sinh (Files): Add it.
8634         (configure.ac): Just invoke gl_FUNC_SINH.
8635
8636 2011-10-08  Bruno Haible  <bruno@clisp.org>
8637
8638         Tests for module 'atan2f'.
8639         * modules/atan2f-tests: New file.
8640         * tests/test-atan2f.c: New file.
8641
8642         New module 'atan2f'.
8643         * lib/math.in.h (atan2f): New declaration.
8644         * lib/atan2f.c: New file.
8645         * m4/atan2f.m4: New file.
8646         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8648         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8649         * modules/atan2f: New file.
8650         * tests/test-math-c++.cc: Check the declaration of atan2f.
8651         * doc/posix-functions/atan2f.texi: Mention the new module.
8652
8653         atan2: Use a .m4 file.
8654         * m4/atan2.m4: New file.
8655         * modules/atan2 (Files): Add it.
8656         (configure.ac): Just invoke gl_FUNC_ATAN2.
8657
8658 2011-10-08  Bruno Haible  <bruno@clisp.org>
8659
8660         Tests for module 'atanf'.
8661         * modules/atanf-tests: New file.
8662         * tests/test-atanf.c: New file.
8663
8664         New module 'atanf'.
8665         * lib/math.in.h (atanf): New declaration.
8666         * lib/atanf.c: New file.
8667         * m4/atanf.m4: New file.
8668         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8670         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8671         * modules/atanf: New file.
8672         * tests/test-math-c++.cc: Check the declaration of atanf.
8673         * doc/posix-functions/atanf.texi: Mention the new module.
8674
8675         atan: Use a .m4 file.
8676         * m4/atan.m4: New file.
8677         * modules/atan (Files): Add it.
8678         (configure.ac): Just invoke gl_FUNC_ATAN.
8679
8680 2011-10-08  Bruno Haible  <bruno@clisp.org>
8681
8682         Tests for module 'acosf'.
8683         * modules/acosf-tests: New file.
8684         * tests/test-acosf.c: New file.
8685
8686         New module 'acosf'.
8687         * lib/math.in.h (acosf): New declaration.
8688         * lib/acosf.c: New file.
8689         * m4/acosf.m4: New file.
8690         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8692         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8693         * modules/acosf: New file.
8694         * tests/test-math-c++.cc: Check the declaration of acosf.
8695         * doc/posix-functions/acosf.texi: Mention the new module.
8696
8697         acos: Use a .m4 file.
8698         * m4/acos.m4: New file.
8699         * modules/acos (Files): Add it.
8700         (configure.ac): Just invoke gl_FUNC_ACOS.
8701
8702 2011-10-08  Bruno Haible  <bruno@clisp.org>
8703
8704         Tests for module 'asinf'.
8705         * modules/asinf-tests: New file.
8706         * tests/test-asinf.c: New file.
8707
8708         New module 'asinf'.
8709         * lib/math.in.h (asinf): New declaration.
8710         * lib/asinf.c: New file.
8711         * m4/asinf.m4: New file.
8712         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8714         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8715         * modules/asinf: New file.
8716         * tests/test-math-c++.cc: Check the declaration of asinf.
8717         * doc/posix-functions/asinf.texi: Mention the new module.
8718
8719         asin: Use a .m4 file.
8720         * m4/asin.m4: New file.
8721         * modules/asin (Files): Add it.
8722         (configure.ac): Just invoke gl_FUNC_ASIN.
8723
8724 2011-10-08  Bruno Haible  <bruno@clisp.org>
8725
8726         Tests for module 'tanf'.
8727         * modules/tanf-tests: New file.
8728         * tests/test-tanf.c: New file.
8729
8730         New module 'tanf'.
8731         * lib/math.in.h (tanf): New declaration.
8732         * lib/tanf.c: New file.
8733         * m4/tanf.m4: New file.
8734         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8736         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8737         * modules/tanf: New file.
8738         * tests/test-math-c++.cc: Check the declaration of tanf.
8739         * doc/posix-functions/tanf.texi: Mention the new module.
8740
8741         tan: Use a .m4 file.
8742         * m4/tan.m4: New file.
8743         * modules/tan (Files): Add it.
8744         (configure.ac): Just invoke gl_FUNC_TAN.
8745
8746 2011-10-08  Bruno Haible  <bruno@clisp.org>
8747
8748         Tests for module 'cosf'.
8749         * modules/cosf-tests: New file.
8750         * tests/test-cosf.c: New file.
8751
8752         New module 'cosf'.
8753         * lib/math.in.h (cosf): New declaration.
8754         * lib/cosf.c: New file.
8755         * m4/cosf.m4: New file.
8756         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8758         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8759         * modules/cosf: New file.
8760         * tests/test-math-c++.cc: Check the declaration of cosf.
8761         * doc/posix-functions/cosf.texi: Mention the new module.
8762
8763         cos: Use a .m4 file.
8764         * m4/cos.m4: New file.
8765         * modules/cos (Files): Add it.
8766         (configure.ac): Just invoke gl_FUNC_COS.
8767
8768 2011-10-08  Bruno Haible  <bruno@clisp.org>
8769
8770         Tests for module 'sinf'.
8771         * modules/sinf-tests: New file.
8772         * tests/test-sinf.c: New file.
8773
8774         New module 'sinf'.
8775         * lib/math.in.h (sinf): New declaration.
8776         * lib/sinf.c: New file.
8777         * m4/sinf.m4: New file.
8778         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8780         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8781         * modules/sinf: New file.
8782         * tests/test-math-c++.cc: Check the declaration of sinf.
8783         * doc/posix-functions/sinf.texi: Mention the new module.
8784
8785         sin: Use a .m4 file.
8786         * m4/sin.m4: New file.
8787         * modules/sin (Files): Add it.
8788         (configure.ac): Just invoke gl_FUNC_SIN.
8789
8790 2011-10-08  Bruno Haible  <bruno@clisp.org>
8791
8792         Tests for module 'powf'.
8793         * modules/powf-tests: New file.
8794         * tests/test-powf.c: New file.
8795
8796         New module 'powf'.
8797         * lib/math.in.h (powf): New declaration.
8798         * lib/powf.c: New file.
8799         * m4/powf.m4: New file.
8800         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8802         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8803         * modules/powf: New file.
8804         * tests/test-math-c++.cc: Check the declaration of powf.
8805         * doc/posix-functions/powf.texi: Mention the new module.
8806
8807         pow: Use a .m4 file.
8808         * m4/pow.m4: New file.
8809         * modules/pow (Files): Add it.
8810         (configure.ac): Just invoke gl_FUNC_POW.
8811
8812 2011-10-08  Bruno Haible  <bruno@clisp.org>
8813
8814         Tests for module 'log10f'.
8815         * modules/log10f-tests: New file.
8816         * tests/test-log10f.c: New file.
8817
8818         New module 'log10f'.
8819         * lib/math.in.h (log10f): New declaration.
8820         * lib/log10f.c: New file.
8821         * m4/log10f.m4: New file.
8822         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8824         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8825         * modules/log10f: New file.
8826         * tests/test-math-c++.cc: Check the declaration of log10f.
8827         * doc/posix-functions/log10f.texi: Mention the new module.
8828
8829         log10: Use a .m4 file.
8830         * m4/log10.m4: New file.
8831         * modules/log10 (Files): Add it.
8832         (configure.ac): Just invoke gl_FUNC_LOG10.
8833
8834 2011-10-08  Bruno Haible  <bruno@clisp.org>
8835
8836         Tests for module 'logf'.
8837         * modules/logf-tests: New file.
8838         * tests/test-logf.c: New file.
8839
8840         New module 'logf'.
8841         * lib/math.in.h (logf): New declaration.
8842         * lib/logf.c: New file.
8843         * m4/logf.m4: New file.
8844         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8846         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8847         * modules/logf: New file.
8848         * tests/test-math-c++.cc: Check the declaration of logf.
8849         * doc/posix-functions/logf.texi: Mention the new module.
8850
8851         log: Use a .m4 file.
8852         * m4/log.m4: New file.
8853         * modules/log (Files): Add it.
8854         (configure.ac): Just invoke gl_FUNC_LOG.
8855
8856 2011-10-08  Bruno Haible  <bruno@clisp.org>
8857
8858         Tests for module 'expf'.
8859         * modules/expf-tests: New file.
8860         * tests/test-expf.c: New file.
8861
8862         New module 'expf'.
8863         * lib/math.in.h (expf): New declaration.
8864         * lib/expf.c: New file.
8865         * m4/expf.m4: New file.
8866         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8868         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8869         * modules/expf: New file.
8870         * tests/test-math-c++.cc: Check the declaration of expf.
8871         * doc/posix-functions/expf.texi: Mention the new module.
8872
8873         exp: Use a .m4 file.
8874         * m4/exp.m4: New file.
8875         * modules/exp (Files): Add it.
8876         (configure.ac): Just invoke gl_FUNC_EXP.
8877
8878 2011-10-08  Bruno Haible  <bruno@clisp.org>
8879
8880         Tests for module 'sqrtf'.
8881         * modules/sqrtf-tests: New file.
8882         * tests/test-sqrtf.c: New file.
8883
8884         New module 'sqrtf'.
8885         * lib/math.in.h (sqrtf): New declaration.
8886         * lib/sqrtf.c: New file.
8887         * m4/sqrtf.m4: New file.
8888         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8890         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8891         * modules/sqrtf: New file.
8892         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8893         * doc/posix-functions/sqrtf.texi: Mention the new module.
8894
8895 2011-10-08  Bruno Haible  <bruno@clisp.org>
8896
8897         Tests: Avoid link failures w.r.t. libintl.
8898         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8899         $(LIBINTL).
8900         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8901         $(LIBINTL).
8902         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8903         against $(LIBINTL).
8904         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8905         $(LIBINTL).
8906         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8907         $(LIBINTL).
8908         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8909
8910 2011-10-08  Bruno Haible  <bruno@clisp.org>
8911
8912         pow tests: Defeat compiler optimizations.
8913         * tests/test-pow.c (main): Assign arguments to x and y before use.
8914
8915 2011-10-08  Bruno Haible  <bruno@clisp.org>
8916
8917         gnulib-tool: Improve last commit.
8918         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8919         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8920         ignore dependencies that are not among the modules list.
8921
8922 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8923
8924         gnulib-tool: don't follow dependencies to avoided modules
8925         This fixes a bug that is related to the previous one.
8926         * gnulib-tool (func_modules_transitive_closure)
8927         (func_emit_autoconf_snippets):
8928         Check whether a dependency is acceptable before using it.
8929         (--extract-dependencies): Report an error if --avoid is also used,
8930         since this combination of options is not yet supported.
8931
8932         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8933         Problem reported by Peter Dyballa in
8934         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8935         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8936         when echoing "$condition".
8937
8938 2011-10-07  Bruno Haible  <bruno@clisp.org>
8939
8940         Fix documentation about math functions on MacOS X.
8941         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8942         MacOS X 10.5.
8943         * doc/posix-functions/fdim.texi: Likewise.
8944         * doc/posix-functions/feclearexcept.texi: Likewise.
8945         * doc/posix-functions/fegetenv.texi: Likewise.
8946         * doc/posix-functions/fegetround.texi: Likewise.
8947         * doc/posix-functions/feholdexcept.texi: Likewise.
8948         * doc/posix-functions/feraiseexcept.texi: Likewise.
8949         * doc/posix-functions/fesetenv.texi: Likewise.
8950         * doc/posix-functions/fesetround.texi: Likewise.
8951         * doc/posix-functions/fetestexcept.texi: Likewise.
8952         * doc/posix-functions/feupdateenv.texi: Likewise.
8953         * doc/posix-functions/fmax.texi: Likewise.
8954         * doc/posix-functions/fmin.texi: Likewise.
8955         * doc/posix-functions/log2.texi: Likewise.
8956         * doc/posix-functions/modff.texi: Likewise.
8957         * doc/posix-functions/nan.texi: Likewise.
8958         * doc/posix-functions/nanf.texi: Likewise.
8959         * doc/posix-functions/nextafterf.texi: Likewise.
8960         * doc/posix-functions/remquo.texi: Likewise.
8961
8962 2011-10-07  Bruno Haible  <bruno@clisp.org>
8963
8964         modff: Drop assumption about library that defines modff.
8965         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8966         AC_CHECK_FUNCS.
8967         * modules/modff (Files): Add m4/mathfunc.m4.
8968
8969 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8970
8971         raise tests: Avoid a GCC warning.
8972         * tests/test-raise.c (handler): Use _Noreturn.
8973
8974 2011-10-07  Bruno Haible  <bruno@clisp.org>
8975
8976         Tests for module 'ldexpf'.
8977         * modules/ldexpf-tests: New file.
8978         * tests/test-ldexpf.c: New file.
8979
8980         New module 'ldexpf'.
8981         * lib/math.in.h (ldexpf): New declaration.
8982         * lib/ldexpf.c: New file.
8983         * m4/ldexpf.m4: New file.
8984         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8986         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8987         * modules/ldexpf: New file.
8988         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8989         * doc/posix-functions/ldexpf.texi: Mention the new module.
8990
8991 2011-10-06  Bruno Haible  <bruno@clisp.org>
8992
8993         frexpf: Work around problems on IRIX and mingw.
8994         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8996         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8997         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8998         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8999         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9000         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9001
9002 2011-10-06  Bruno Haible  <bruno@clisp.org>
9003
9004         fabsf: Drop assumption about library that defines fabsf.
9005         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9006         AC_CHECK_FUNCS.
9007         * modules/fabsf (Files): Add m4/mathfunc.m4.
9008
9009 2011-10-06  Bruno Haible  <bruno@clisp.org>
9010
9011         frexpf: Drop assumption about library that defines frexpf.
9012         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9013         'int *', 'float *', 'long double *', 'float', 'long double'.
9014         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9015         AC_CHECK_FUNCS.
9016         * modules/frexpf (Files): Add m4/mathfunc.m4.
9017
9018         Tests for module 'frexpf'.
9019         * modules/frexpf-tests: New file.
9020         * tests/test-frexpf.c: New file.
9021
9022         New module 'frexpf'.
9023         * lib/math.in.h (frexpf): New declaration.
9024         * lib/frexpf.c: New file.
9025         * m4/frexpf.m4: New file.
9026         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9028         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9029         * modules/frexpf: New file.
9030         * tests/test-math-c++.cc: Check the declaration of frexpf.
9031         * doc/posix-functions/frexpf.texi: Mention the new module.
9032
9033 2011-10-06  Bruno Haible  <bruno@clisp.org>
9034
9035         math: Sort function declarations of math.in.h.
9036         * lib/math.in.h (frexp, logb): Move declarations.
9037
9038 2011-10-05  Bruno Haible  <bruno@clisp.org>
9039
9040         Tests for module 'modff'.
9041         * modules/modff-tests: New file.
9042         * tests/test-modff.c: New file.
9043
9044         New module 'modff'.
9045         * lib/math.in.h (modff): New declaration.
9046         * lib/modff.c: New file.
9047         * m4/modff.m4: New file.
9048         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9050         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9051         * modules/modff: New file.
9052         * tests/test-math-c++.cc: Check the declaration of modff.
9053         * doc/posix-functions/modff.texi: Mention the new module.
9054
9055         modf tests: Make test sharper.
9056         * tests/test-modf.c (main): Strengthen upper bound.
9057
9058         modf: Use a .m4 file.
9059         * m4/modf.m4: New file.
9060         * modules/modf (Files): Add it.
9061         (configure.ac): Just invoke gl_FUNC_MODF.
9062
9063 2011-10-05  Bruno Haible  <bruno@clisp.org>
9064
9065         Tests for module 'fmodf'.
9066         * modules/fmodf-tests: New file.
9067         * tests/test-fmodf.c: New file.
9068
9069         New module 'fmodf'.
9070         * lib/math.in.h (fmodf): New declaration.
9071         * lib/fmodf.c: New file.
9072         * m4/fmodf.m4: New file.
9073         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9075         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9076         * modules/fmodf: New file.
9077         * tests/test-math-c++.cc: Check the declaration of fmodf.
9078         * doc/posix-functions/fmodf.texi: Mention the new module.
9079
9080         fmod: Use a .m4 file.
9081         * m4/fmod.m4: New file.
9082         * modules/fmod (Files): Add it.
9083         (configure.ac): Just invoke gl_FUNC_FMOD.
9084
9085 2011-10-05  Bruno Haible  <bruno@clisp.org>
9086
9087         Tests for module 'fabsf'.
9088         * modules/fabsf-tests: New file.
9089         * tests/test-fabsf.c: New file.
9090
9091         New module 'fabsf'.
9092         * lib/math.in.h (fabsf): New declaration.
9093         * lib/fabsf.c: New file.
9094         * m4/fabsf.m4: New file.
9095         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9097         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9098         * modules/fabsf: New file.
9099         * tests/test-math-c++.cc: Check the declaration of fabsf.
9100         * doc/posix-functions/fabsf.texi: Mention the new module.
9101
9102         fabs: Use a .m4 file.
9103         * m4/fabs.m4: New file.
9104         * modules/fabs (Files): Add it.
9105         (configure.ac): Just invoke gl_FUNC_FABS.
9106
9107 2011-10-05  Jim Meyering  <meyering@redhat.com>
9108
9109         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9110         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9111         ls -lL regression introduced in coreutils-8.12, it does so at the
9112         cost of an additional stat call in the common case.  Besides, now
9113         that the kernel change that prompted commit 95f7c57f has been reverted
9114         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9115         we have no use for commit 95f7c57f, "file-has-acl: use
9116         acl_extended_file_nofollow if available".
9117
9118 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9119
9120         file-has-acl: revert unintended change in behavior of ls -L
9121         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9122         derived from...
9123         (file_has_acl): ...code here.  Call it.
9124         This problem was introduced with 2011-07-22 commit 95f7c57f,
9125         "file-has-acl: use acl_extended_file_nofollow if available".
9126         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9127
9128 2011-10-03  Bruno Haible  <bruno@clisp.org>
9129
9130         poll: Avoid link errors on MSVC.
9131         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9132         * modules/poll (Depends-on): Add sockets.
9133         (Link): New section.
9134         * NEWS: Mention the change.
9135         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9136         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9137         $(LIB_POLL) instead of $(LIBSOCKET).
9138
9139 2011-10-03  Bruno Haible  <bruno@clisp.org>
9140
9141         sys_select tests: Fix link error on MSVC 9.
9142         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9143         with $(LIB_SELECT) instead of $(LIBSOCKET).
9144
9145 2011-10-03  Bruno Haible  <bruno@clisp.org>
9146
9147         sys_select: Fix compilation error on mingw.
9148         * lib/sys_select.in.h: On native Windows, include <io.h>.
9149
9150 2011-10-03  Bruno Haible  <bruno@clisp.org>
9151
9152         wmemset: Support for MSVC.
9153         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9154         whether wmemset() exists.
9155
9156 2011-10-03  Bruno Haible  <bruno@clisp.org>
9157
9158         wmemmove: Support for MSVC.
9159         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9160         whether wmemmove() exists.
9161
9162 2011-10-03  Bruno Haible  <bruno@clisp.org>
9163
9164         wmemcpy: Support for MSVC.
9165         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9166         whether wmemcpy() exists.
9167
9168 2011-10-03  Bruno Haible  <bruno@clisp.org>
9169
9170         wmemcmp: Support for MSVC.
9171         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9172         whether wmemcmp() exists.
9173
9174 2011-10-03  Bruno Haible  <bruno@clisp.org>
9175
9176         wmemchr: Support for MSVC.
9177         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9178         whether wmemchr() exists.
9179
9180 2011-10-03  Bruno Haible  <bruno@clisp.org>
9181
9182         glthread/*, strsignal: Support for MSVC.
9183         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9184         including <winsock.h> on MSVC 9.
9185         * lib/glthread/lock.h: Likewise.
9186         * lib/glthread/thread.h: Likewise.
9187         * lib/glthread/tls.h: Likewise.
9188         * lib/glthread/yield.h: Likewise.
9189         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9190         if HAVE_UNISTD_H is false.
9191         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9192
9193 2011-10-03  Bruno Haible  <bruno@clisp.org>
9194
9195         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9196         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9197         Set to 100000.
9198
9199 2011-10-03  Bruno Haible  <bruno@clisp.org>
9200
9201         acl: Fix specification.
9202         * lib/file-has-acl.c (file_has_acl): Fix specification.
9203
9204 2011-10-03  Bruno Haible  <bruno@clisp.org>
9205
9206         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9207         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9208         (compute_curr_prefix, shared_library_fullname,
9209         find_shared_library_fullname, get_shared_library_fullname, relocate):
9210         Use it together with PIC && INSTALLDIR.
9211         Reported by <jojelino@gmail.com>
9212         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9213
9214 2011-10-01  Jim Meyering  <meyering@redhat.com>
9215
9216         maint.mk: adjust a release-related rule not to require use of gzip
9217         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9218         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9219         projects that build only .tar.xz files.  Also fix an erroneous test.
9220
9221         test-linkat: don't leave behind a temporary file
9222         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9223         Otherwise, coreutils' "make distcheck" would fail with this:
9224           Only in /c/cu/tests/torture/coreutils/test/\
9225             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9226           make[2]: *** [my-distcheck] Error 1
9227
9228         float, math: add omitted file
9229         * lib/itold.c: Add file, required for yesterday's float change.
9230
9231 2011-10-01  Bruno Haible  <bruno@clisp.org>
9232
9233         isinf: Fix for OpenBSD/x86.
9234         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9235         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9236         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9237
9238 2011-10-01  Bruno Haible  <bruno@clisp.org>
9239
9240         isfinite: Fix syntax error in configure test.
9241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9242
9243         isfinite: Fix typo.
9244         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9245         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9246
9247 2011-10-01  Bruno Haible  <bruno@clisp.org>
9248
9249         nonblocking tests: Fix test failure on Linux/IA-64.
9250         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9251         Set to 270000.
9252
9253 2011-10-01  Bruno Haible  <bruno@clisp.org>
9254
9255         mkfifoat tests: Fix a test failure on mingw.
9256         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9257         with error ENOSYS.
9258
9259 2011-09-30  Bruno Haible  <bruno@clisp.org>
9260
9261         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9262         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9263         'long double'. Set REPLACE_ITOLD.
9264         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9265         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9266         * lib/itold.c: New file.
9267         * modules/float (Files): Add lib/itold.c.
9268         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9269         (Makefile.am): Substitute REPLACE_ITOLD.
9270         * modules/math (Depends-on): Add float.
9271         (Makefile.am): Substitute REPLACE_ITOLD.
9272         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9273         * doc/posix-headers/math.texi: Likewise.
9274         * doc/posix-functions/logl.texi: Likewise.
9275
9276 2011-09-30  Bruno Haible  <bruno@clisp.org>
9277
9278         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9279         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9280         Set to 140000.
9281
9282 2011-09-30  Bruno Haible  <bruno@clisp.org>
9283
9284         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9285         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9286         invocation, say "right after AC_PROG_CC_STDC", not "right after
9287         AC_PROG_CC".
9288         Reported by Gary V. Vaughan <gary@gnu.org>.
9289
9290 2011-09-30  Bruno Haible  <bruno@clisp.org>
9291
9292         Centralize C99 requirement.
9293         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9294         * modules/stdarg (configure.ac-early): Invoke it instead of
9295         AC_PROG_CC_STDC.
9296         Reported by Gary V. Vaughan and Paul Eggert.
9297
9298 2011-09-29  Bruno Haible  <bruno@clisp.org>
9299
9300         float: Fix LDBL_MAX value on Linux/PowerPC.
9301         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9302         on Linux/PowerPC.
9303         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9304         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9305         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9306         platform.
9307         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9308
9309 2011-09-29  Bruno Haible  <bruno@clisp.org>
9310
9311         doc: Improve doc about gl_EARLY.
9312         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9313         AC_PROG_CC_STDC invocation.
9314         Reported by Gary V. Vaughan <gary@gnu.org>.
9315
9316 2011-09-28  Bruno Haible  <bruno@clisp.org>
9317
9318         fgetc, fputc, fread, fwrite tests: Fix link error.
9319         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9320         on non-MSVC platforms.
9321         * tests/test-fputc.c (main): Likewise.
9322         * tests/test-fread.c (main): Likewise.
9323         * tests/test-fwrite.c (main): Likewise.
9324         Reported by Jim Meyering.
9325
9326 2011-09-27  Bruno Haible  <bruno@clisp.org>
9327
9328         fputc, fwrite tests: Avoid test failure on MSVC.
9329         * tests/test-fgetc.c: Include msvc-inval.h.
9330         (main): Invoke gl_msvc_inval_ensure_handler.
9331         * tests/test-fputc.c: Include msvc-inval.h.
9332         (main): Invoke gl_msvc_inval_ensure_handler.
9333         * tests/test-fread.c: Include msvc-inval.h.
9334         (main): Invoke gl_msvc_inval_ensure_handler.
9335         * tests/test-fwrite.c: Include msvc-inval.h.
9336         (main): Invoke gl_msvc_inval_ensure_handler.
9337         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9338         * modules/fputc-tests (Depends-on): Likewise.
9339         * modules/fread-tests (Depends-on): Likewise.
9340         * modules/fwrite-tests (Depends-on): Likewise.
9341
9342 2011-09-27  Bruno Haible  <bruno@clisp.org>
9343
9344         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9345         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9346         (raise): Remove older, duplicated declaration.
9347         (_gl_raise_SIGPIPE): New declaration.
9348         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9349         (rpl_raise): Remove function.
9350         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9351         a gnulib-defined SIGPIPE here.
9352         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9353         'sigprocmask' has detected missing signal-blocking and the module
9354         'sigpipe' is enabled.
9355         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9356
9357 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9358
9359         base64-tests: avoid memory leak
9360         * tests/test-base64.c (main): Plug memory leak.
9361
9362         base32: new module
9363         * modules/base32: New module.
9364         * lib/base32.c: New file.
9365         * lib/base32.h: Likewise.
9366         * m4/base32.m4: Likewise.
9367         * modules/base32-tests: New test.
9368         * tests/test-base32.c: Likewise.
9369         * MODULES.html.sh (Misc): Mention it.
9370
9371 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9372
9373         gnulib: use more-standard license notice wording
9374         * gnulib-tool (func_emit_copyright_notice): When emitting a
9375         license notice into a file, use the standard wording as suggested
9376         by the current information for GNU maintainers, except say "file"
9377         rather than "program".  The new wording gives a license version
9378         number, which addresses an issue raised by Glenn Morris in
9379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9380         * m4/onceonly.m4: Use that same wording here, too.
9381
9382         dup2: minor simplification
9383         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9384         as lib/dup2.c no longer uses 'inline'.
9385
9386 2011-09-25  Bruno Haible  <bruno@clisp.org>
9387
9388         strings: Fix compilation error on MSVC.
9389         * lib/strings.in.h: Include <stddef.h> for size_t.
9390
9391 2011-09-25  Bruno Haible  <bruno@clisp.org>
9392
9393         fflush et al.: Document limitation on MSVC.
9394         * doc/posix-functions/fflush.texi: Document possible crash in handling
9395         mode other than DEFAULT_HANDLING.
9396         * doc/posix-functions/fgetc.texi: Likewise.
9397         * doc/posix-functions/fputc.texi: Likewise.
9398         * doc/posix-functions/fread.texi: Likewise.
9399         * doc/posix-functions/fwrite.texi: Likewise.
9400
9401 2011-09-25  Bruno Haible  <bruno@clisp.org>
9402
9403         msvc-inval: Allow three invalid parameter handling modes.
9404         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9405         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9406         macros.
9407         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9408         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9409         SANE_LIBRARY_HANDLING as a no-op.
9410         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9411         <stdlib.h>.
9412         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9413
9414 2011-09-25  Bruno Haible  <bruno@clisp.org>
9415
9416         msvc-inval: Make handler multithread-safe.
9417         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9418         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9419         declarations.
9420         (gl_msvc_inval_current): New declaration.
9421         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9422         Operate on the structure returned by gl_msvc_inval_current().
9423         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9424         Remove varaiables.
9425         (tls_index, tls_initialized): New variables.
9426         (not_per_thread): New variable.
9427         (gl_msvc_inval_current): New function.
9428         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9429         returned by gl_msvc_inval_current().
9430
9431 2011-09-25  Bruno Haible  <bruno@clisp.org>
9432
9433         msvc-inval: Install handler globally.
9434         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9435         !_MSC_VER.
9436         (gl_msvc_invalid_parameter_handler): Remove declaration.
9437         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9438         declarations.
9439         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9440         Install the handler globally, don't uninstall it.
9441         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9442         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9443         currently valid, call RaiseException instead.
9444         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9445         for !_MSC_VER.
9446
9447 2011-09-25  Bruno Haible  <bruno@clisp.org>
9448
9449         strerror_r-posix: Fix for MSVC 9.
9450         * lib/strerror_r.c (local_snprintf): New function.
9451         (snprintf): Define to local_snprintf, not to _snprintf.
9452
9453 2011-09-25  Bruno Haible  <bruno@clisp.org>
9454
9455         ftruncate: Support for MSVC 9.
9456         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9457         (chsize_nothrow): New function.
9458         (chsize): Redefine as a macro.
9459         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9460         * modules/ftruncate (Depends-on): Add msvc-inval.
9461
9462 2011-09-25  Bruno Haible  <bruno@clisp.org>
9463
9464         New module 'fstat'.
9465         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9466         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9467         * lib/fchdir.c (rpl_fstat): Remove function.
9468         * m4/fstat.m4: New file.
9469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9470         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9471         declared.
9472         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9473         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9474         * modules/fstat: New file.
9475         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9476         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9477         is set.
9478         * doc/posix-functions/fstat.texi: Mention the new module and the
9479         problem on MSVC.
9480         * NEWS: Mention the change.
9481         * modules/acl (Depends-on): Add fstat.
9482         * modules/chdir-safer (Depends-on): Likewise.
9483         * modules/chown (Depends-on): Likewise.
9484         * modules/copy-file (Depends-on): Likewise.
9485         * modules/fchdir (Depends-on): Likewise.
9486         * modules/fdopendir (Depends-on): Likewise.
9487         * modules/fopen (Depends-on): Likewise.
9488         * modules/fts (Depends-on): Likewise.
9489         * modules/getcwd (Depends-on): Likewise.
9490         * modules/isapipe (Depends-on): Likewise.
9491         * modules/linkat (Depends-on): Likewise.
9492         * modules/lseek (Depends-on): Likewise.
9493         * modules/mkdir-p (Depends-on): Likewise.
9494         * modules/open (Depends-on): Likewise.
9495         * modules/openat (Depends-on): Likewise.
9496         * modules/read-file (Depends-on): Likewise.
9497         * modules/renameat (Depends-on): Likewise.
9498         * modules/utimens (Depends-on): Likewise.
9499
9500 2011-09-25  Bruno Haible  <bruno@clisp.org>
9501
9502         linkat: Fix compilation on MSVC 9.
9503         * lib/linkat.c: Don't include <stdint.h>.
9504
9505 2011-09-25  Bruno Haible  <bruno@clisp.org>
9506
9507         fclose: Support for MSVC 9.
9508         * lib/fclose.c: Include msvc-inval.h.
9509         (fclose_nothrow): New function.
9510         (rpl_fclose): Use it.
9511         * modules/fclose (Depends-on): Add msvc-inval.
9512         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9513
9514 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9515
9516         dup2: minor simplifications
9517         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9518         that it's a performance win.
9519         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9520         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9521
9522 2011-09-24  Jim Meyering  <meyering@redhat.com>
9523
9524         test-futimens: avoid a warning from gcc -Wshadow
9525         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9526         to avoid a shadowing warning.
9527
9528 2011-09-24  Bruno Haible  <bruno@clisp.org>
9529
9530         fdopen: Support for MSVC 9.
9531         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9532         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9533         * lib/fdopen.c: Include msvc-inval.h.
9534         (fdopen_nothrow): New function.
9535         (rpl_fdopen): Use it.
9536         * modules/fdopen (Depends-on): Add msvc-inval.
9537         * modules/fclose-tests (Depends-on): Add fdopen.
9538         * modules/fflush-tests (Depends-on): Likewise.
9539         * modules/fgetc-tests (Depends-on): Likewise.
9540         * modules/fputc-tests (Depends-on): Likewise.
9541         * modules/fread-tests (Depends-on): Likewise.
9542         * modules/freopen-tests (Depends-on): Likewise.
9543         * modules/fseeko-tests (Depends-on): Likewise.
9544         * modules/ftello-tests (Depends-on): Likewise.
9545         * modules/fwrite-tests  (Depends-on): Likewise.
9546         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9547
9548 2011-09-24  Bruno Haible  <bruno@clisp.org>
9549
9550         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9551         * modules/fgetc-tests (Depends-on): Add unistd.
9552         * modules/fputc-tests (Depends-on): Likewise.
9553         * modules/fread-tests (Depends-on): Likewise.
9554         * modules/fwrite-tests (Depends-on): Likewise.
9555
9556 2011-09-24  Bruno Haible  <bruno@clisp.org>
9557
9558         dup: Simplify autoconf test.
9559         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9560         on gl_MSVC_INVAL's result.
9561
9562 2011-09-24  Bruno Haible  <bruno@clisp.org>
9563
9564         Tests for function fwrite().
9565         * modules/fwrite-tests: New file.
9566         * tests/test-fwrite.c: New file.
9567         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9568
9569         Tests for function fread().
9570         * modules/fread-tests: New file.
9571         * tests/test-fread.c: New file.
9572         * modules/stdio-tests (Depends-on): Add fread-tests.
9573
9574         Activate fputc tests.
9575         * modules/stdio-tests (Depends-on): Add fputc-tests.
9576
9577         Enhance fgetc, fputc tests.
9578         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9579         * tests/test-fputc.c (main): Likewise.
9580
9581 2011-09-24  Bruno Haible  <bruno@clisp.org>
9582
9583         write: Support for MSVC 9.
9584         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9585         is not 1.
9586         * lib/write.c (write_nothrow): New function.
9587         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9588         not 1. Use write_nothrow.
9589         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9590         invalid parameter handler.
9591         (gl_PREREQ_WRITE): New macro.
9592         * modules/write (Depends-on): Add msvc-inval.
9593         (configure.ac): Invoke gl_PREREQ_WRITE.
9594         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9595
9596 2011-09-24  Bruno Haible  <bruno@clisp.org>
9597
9598         read: Fix last commit.
9599         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9600
9601 2011-09-24  Bruno Haible  <bruno@clisp.org>
9602
9603         dup2: Fix last commit.
9604         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9605         (rpl_dup2): Disable fcntl workaround on native Windows.
9606
9607         sigprocmask: Make code safer.
9608         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9609         section that changes macro definitions for this compilation unit.
9610
9611 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9612
9613         dup2: clarify by coalescing Windows-specific material
9614         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9615         "msvc-nothrow.h"' to the Windows-specific section, so that the
9616         Emacs source need not contain these include files.
9617         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9618         Windows-specific fixes into this function rather than just the
9619         nothrow fix, as this shortens and clarifies the code.  Always
9620         define as a function, as that's a bit cleaner than having it be
9621         sometimes a function and sometimes a macro.
9622         (rpl_dup2): Move the Windows-specific stuff out of here and into
9623         ms_windows_dup2.  Don't protect the Haiku-related fix with
9624         "#if !defined __linux__", as the same code also works around
9625         a Linux kernel bug, and it doesn't add any system calls on any
9626         platform.  Add comment about FreeBSD 6.1.
9627
9628         sigprocmask: move #include directive
9629         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9630         Windows-specific section, so that the Emacs source need not
9631         contain msvc-inval.h.
9632
9633 2011-09-23  Bruno Haible  <bruno@clisp.org>
9634
9635         read: Support for MSVC 9.
9636         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9637         is not 1.
9638         * lib/read.c (read_nothrow): New function.
9639         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9640         read_nothrow.
9641         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9642         invalid parameter handler.
9643         (gl_PREREQ_READ): New macro.
9644         * modules/read (Depends-on): Add msvc-inval.
9645         (configure.ac): Invoke gl_PREREQ_READ.
9646         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9647
9648 2011-09-23  Bruno Haible  <bruno@clisp.org>
9649
9650         close: Support for MSVC 9.
9651         * lib/close.c: Include <errno.h>, msvc-inval.h.
9652         (close_nothrow): New function.
9653         (rpl_close): Use it.
9654         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9655         invalid parameter handler.
9656         * modules/close (Depends-on): Add msvc-inval.
9657         * modules/dup2-tests (Depends-on): Add close.
9658         * modules/dup3-tests (Depends-on): Likewise.
9659         * modules/fcntl-tests (Depends-on): Likewise.
9660         * modules/spawn-pipe-tests (Depends-on): Likewise.
9661         * modules/unistd-safer-tests (Depends-on): Likewise.
9662         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9663
9664 2011-09-23  Bruno Haible  <bruno@clisp.org>
9665
9666         New module 'dup'.
9667         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9668         Allow replacement.
9669         * lib/dup.c: New file.
9670         * lib/fchdir.c (rpl_dup): Remove function.
9671         * m4/dup.m4: New file.
9672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9673         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9674         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9675         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9676         * modules/dup: New file.
9677         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9678         'dup' module is in use.
9679         * modules/fdopendir (Depends-on): Add dup.
9680         * modules/fdutimensat-tests (Depends-on): Likewise.
9681         * modules/fts (Depends-on): Likewise.
9682         * modules/futimens-tests (Depends-on): Likewise.
9683         * modules/posix_spawnp-tests (Depends-on): Likewise.
9684         * modules/unistd-safer-tests (Depends-on): Likewise.
9685         * modules/utimens-tests (Depends-on): Likewise.
9686         * doc/posix-functions/dup.texi: Mention the new module and the problem
9687         on MSVC.
9688
9689 2011-09-23  Bruno Haible  <bruno@clisp.org>
9690
9691         getdtablesize: Support for MSVC 9.
9692         * lib/getdtablesize.c: Include msvc-inval.h.
9693         (_setmaxstdio_nothrow): New function.
9694         (_setmaxstdio): Redefine it.
9695         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9696         * modules/getdtablesize (Depends-on): Add msvc-inval.
9697         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9698
9699 2011-09-23  Bruno Haible  <bruno@clisp.org>
9700
9701         signal-h: Rename from signal.
9702         * modules/signal-h: Renamed from modules/signal.
9703         * modules/pthread_sigmask (Depends-on): Update.
9704         * modules/raise (Depends-on): Likewise.
9705         * modules/sigaction (Depends-on): Likewise.
9706         * modules/sigpipe (Depends-on): Likewise.
9707         * modules/sigprocmask (Depends-on): Likewise.
9708         * modules/sys_select (Depends-on): Likewise.
9709         * modules/signal-h-tests: Renamed from modules/signal-tests.
9710         (Files, Depends-on, Makefile.am): Update.
9711         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9712         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9713         (Files, Makefile.am): Update.
9714         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9715         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9716         * modules/signal: New placeholder file.
9717         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9718         * doc/posix-headers/signal.texi: Update.
9719         * NEWS: Mention the change.
9720
9721 2011-09-23  Bruno Haible  <bruno@clisp.org>
9722
9723         sigprocmask: Avoid crashes through signal() on MSVC 9.
9724         * lib/sigprocmask.c: Include msvc-inval.h.
9725         (signal_nothrow): New function.
9726         (signal): Redefine it.
9727         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9728         * modules/sigprocmask (Depends-on): Add msvc-inval.
9729         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9730
9731 2011-09-23  Bruno Haible  <bruno@clisp.org>
9732
9733         Tests for module 'raise'.
9734         * modules/raise-tests: New file.
9735         * tests/test-raise.c: New file.
9736
9737         raise: Support for MSVC.
9738         * lib/signal.in.h (raise): New declaration.
9739         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9740         for native Windows platforms.
9741         * m4/raise.m4: New file.
9742         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9743         HAVE_RAISE, REPLACE_RAISE.
9744         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9745         REPLACE_RAISE.
9746         * modules/raise (Status, Notice): Remove fields.
9747         (Files): Add m4/raise.m4.
9748         (Depends-on): Add signal, msvc-inval.
9749         (configure.ac): Use the common idioms.
9750         (Maintainer): Add me.
9751         * tests/test-signal-c++.cc: Check the signature of raise.
9752         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9753
9754 2011-09-23  Bruno Haible  <bruno@clisp.org>
9755
9756         pipe2: Fix compilation on pre-C99 compilers.
9757         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9758
9759 2011-09-23  Bruno Haible  <bruno@clisp.org>
9760
9761         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9762         * lib/msvc-nothrow.h: New file.
9763         * lib/msvc-nothrow.c: New file.
9764         * m4/msvc-nothrow.m4: New file.
9765         * modules/msvc-nothrow: New file.
9766         * lib/dup2.c: Include msvc-nothrow.h.
9767         (rpl_dup2): No need to protect _get_osfhandle call here.
9768         * lib/accept4.c: Include msvc-nothrow.h.
9769         * lib/error.c: Likewise.
9770         * lib/fcntl.c: Likewise.
9771         * lib/lseek.c: Likewise.
9772         * lib/nonblocking.c: Likewise.
9773         * lib/poll.c: Likewise.
9774         * lib/read.c: Likewise.
9775         * lib/select.c: Likewise.
9776         * lib/sockets.h: Likewise.
9777         * lib/sockets.c: Likewise.
9778         * lib/stdio-read.c: Likewise.
9779         * lib/stdio-write.c: Likewise.
9780         * lib/write.c: Likewise.
9781         * lib/w32sock.h: Likewise.
9782         * lib/w32spawn.h: Likewise.
9783         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9784         * lib/fsync.c: Likewise.
9785         * lib/isapipe.c: Likewise.
9786         * modules/dup2 (Depends-on): Add msvc-nothrow.
9787         * modules/accept4 (Depends-on): Likewise.
9788         * modules/error (Depends-on): Likewise.
9789         * modules/fcntl (Depends-on): Likewise.
9790         * modules/lseek (Depends-on): Likewise.
9791         * modules/nonblocking (Depends-on): Likewise.
9792         * modules/poll (Depends-on): Likewise.
9793         * modules/read (Depends-on): Likewise.
9794         * modules/select (Depends-on): Likewise.
9795         * modules/sockets (Depends-on): Likewise.
9796         * modules/sigpipe (Depends-on): Likewise.
9797         * modules/write (Depends-on): Likewise.
9798         * modules/accept (Depends-on): Likewise.
9799         * modules/bind (Depends-on): Likewise.
9800         * modules/connect (Depends-on): Likewise.
9801         * modules/gethostname (Depends-on): Likewise.
9802         * modules/getpeername (Depends-on): Likewise.
9803         * modules/getsockname (Depends-on): Likewise.
9804         * modules/getsockopt (Depends-on): Likewise.
9805         * modules/ioctl (Depends-on): Likewise.
9806         * modules/listen (Depends-on): Likewise.
9807         * modules/recv (Depends-on): Likewise.
9808         * modules/recvfrom (Depends-on): Likewise.
9809         * modules/send (Depends-on): Likewise.
9810         * modules/sendto (Depends-on): Likewise.
9811         * modules/setsockopt (Depends-on): Likewise.
9812         * modules/shutdown (Depends-on): Likewise.
9813         * modules/socket (Depends-on): Likewise.
9814         * modules/execute (Depends-on): Likewise.
9815         * modules/spawn-pipe (Depends-on): Likewise.
9816         * modules/flock (Depends-on): Likewise.
9817         * modules/fsync (Depends-on): Likewise.
9818         * modules/isapipe (Depends-on): Likewise.
9819         * tests/test-cloexec.c: Include msvc-nothrow.h.
9820         * tests/test-dup-safer.c: Likewise.
9821         * tests/test-dup2.c: Likewise.
9822         * tests/test-dup3.c: Likewise.
9823         * tests/test-fcntl.c: Likewise.
9824         * tests/test-pipe.c: Likewise.
9825         * tests/test-pipe2.c: Likewise.
9826         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9827         * modules/unistd-safer-tests (Depends-on): Likewise.
9828         * modules/dup2-tests (Depends-on): Likewise.
9829         * modules/dup3-tests (Depends-on): Likewise.
9830         * modules/fcntl-tests (Depends-on): Likewise.
9831         * modules/pipe-posix-tests (Depends-on): Likewise.
9832         * modules/pipe2-tests (Depends-on): Likewise.
9833
9834 2011-09-23  Bruno Haible  <bruno@clisp.org>
9835
9836         dup2: Make code more maintainable.
9837         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9838         (rpl_dup2): Use it.
9839         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9840         * modules/dup2 (configure.ac): Invoke it.
9841         Reported by Paul Eggert.
9842
9843 2011-09-23  Bruno Haible  <bruno@clisp.org>
9844
9845         msvc-inval: Fix compilation error.
9846         * lib/msvc-inval.h: Include <excpt.h>.
9847
9848 2011-09-23  Bruno Haible  <bruno@clisp.org>
9849
9850         mkdir: Tweak for MSVC 9.
9851         * lib/sys_stat.in.h: Update comments.
9852         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9853
9854         Tests for module 'chdir'.
9855         * modules/chdir-tests: New file.
9856         * tests/test-chdir.c: New file.
9857
9858         New module 'chdir'.
9859         * modules/chdir: New file.
9860         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9861         (chdir): New declaration.
9862         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9863         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9864         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9865         * tests/test-unistd-c++.cc: Check signature of chdir.
9866         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9867         * modules/chdir-long (Depends-on): Add chdir.
9868         * modules/fchdir (Depends-on): Likewise.
9869         * modules/rename (Depends-on): Likewise.
9870         * modules/savewd (Depends-on): Likewise.
9871
9872         rmdir: Support for mingw, MSVC 9.
9873         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9874         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9875
9876         getcwd: Tweak for MSVC 9.
9877         * lib/unistd.in.h: Update comments.
9878         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9879
9880 2011-09-22  Bruno Haible  <bruno@clisp.org>
9881
9882         strerror_r-posix: Avoid a link error on MSVC.
9883         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9884         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9885
9886 2011-09-22  Bruno Haible  <bruno@clisp.org>
9887
9888         select: Avoid link errors on MSVC.
9889         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9890         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9891         * modules/pselect (Link): Likewise.
9892         * NEWS: Mention the change.
9893         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9894         test-select-stdin against $(LIB_SELECT).
9895         * modules/pselect-tests (Makefile.am): Link test-pselect against
9896         $(LIB_SELECT).
9897
9898 2011-09-22  Bruno Haible  <bruno@clisp.org>
9899
9900         select: Avoid compilation error on MSVC.
9901         * lib/select.c: Don't include <stdbool.h>.
9902
9903 2011-09-21  Bruno Haible  <bruno@clisp.org>
9904
9905         Consolidate all uses of PATH_MAX in *.m4 files.
9906         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9907         macros.
9908         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9909         and gl_PATHMAX_SNIPPET.
9910         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9912         * modules/chdir-long (Files): Add m4/pathmax.m4.
9913         * modules/getcwd (Files): Likewise.
9914
9915 2011-09-21  Bruno Haible  <bruno@clisp.org>
9916
9917         ftruncate: Un-deprecate, concentrate on Win32 support.
9918         * modules/ftruncate (Status, Notice): Remove sections.
9919         (Depends-on): Add largefile.
9920         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9921         non-mingw platforms.
9922         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9923         include <io.h>.
9924         * modules/perror-tests (Depends-on): Add ftruncate.
9925         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9926         'ftruncate' module.
9927
9928 2011-09-21  Bruno Haible  <bruno@clisp.org>
9929
9930         Add dependencies to new dirent related modules.
9931         * modules/opendir (Depends-on): Add closedir.
9932         * modules/getcwd (Depends-on): Add opendir, closedir.
9933         * modules/dirent-safer-tests (Depends-on): Likewise.
9934         * modules/fdopendir-tests (Depends-on): Likewise.
9935         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9936         * modules/renameat-tests (Depends-on): Likewise.
9937
9938 2011-09-21  Bruno Haible  <bruno@clisp.org>
9939
9940         opendir: Avoid compilation error on mingw.
9941         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9942         * modules/opendir (Depends-on): Add unistd.
9943
9944 2011-09-21  Bruno Haible  <bruno@clisp.org>
9945
9946         ftruncate tests: Avoid a test failure on mingw.
9947         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9948
9949 2011-09-21  Bruno Haible  <bruno@clisp.org>
9950
9951         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9952         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9953         native Windows.
9954
9955 2011-09-21  Bruno Haible  <bruno@clisp.org>
9956
9957         New module 'fdopen'.
9958         * lib/stdio.in.h (fdopen): New declaration.
9959         * lib/fdopen.c: New file.
9960         * m4/fdopen.m4: New file.
9961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9962         REPLACE_FDOPEN.
9963         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9964         REPLACE_FDOPEN.
9965         * modules/fdopen: New file.
9966         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9967         * tests/test-stdio-c++.cc: Check signature of fdopen.
9968         * doc/posix-functions/fdopen.texi: Mention the new module.
9969
9970 2011-09-21  Bruno Haible  <bruno@clisp.org>
9971
9972         unlockpt tests: Avoid test failure on NetBSD 5.1.
9973         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9974         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9975
9976 2011-09-21  Bruno Haible  <bruno@clisp.org>
9977
9978         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9979         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9980         * tests/test-getlogin_r.c (main): Likewise.
9981
9982 2011-09-20  Bruno Haible  <bruno@clisp.org>
9983
9984         time tests: Don't require pid_t.
9985         * doc/posix-headers/time.texi: Revert last change.
9986         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9987         * tests/test-time.c: Comment out the check for pid_t.
9988
9989 2011-09-20  Bruno Haible  <bruno@clisp.org>
9990
9991         fsync tests: Avoid a test failure on mingw.
9992         * tests/test-fsync.c (main): Allow a failure with EIO.
9993
9994 2011-09-20  Bruno Haible  <bruno@clisp.org>
9995
9996         euidaccess: Update comments.
9997         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9998
9999 2011-09-20  Bruno Haible  <bruno@clisp.org>
10000
10001         Ensure EBADF returns for socket functions on mingw.
10002         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10003         descriptor is invalid.
10004         * lib/bind.c (rpl_bind): Likewise.
10005         * lib/connect.c (rpl_connect): Likewise.
10006         * lib/getpeername.c (rpl_getpeername): Likewise.
10007         * lib/getsockname.c (rpl_getsockname): Likewise.
10008         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10009         * lib/listen.c (rpl_listen): Likewise.
10010         * lib/recv.c (rpl_recv): Likewise.
10011         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10012         * lib/send.c (rpl_send): Likewise.
10013         * lib/sendto.c (rpl_sendto): Likewise.
10014         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10015         * lib/shutdown.c (rpl_shutdown): Likewise.
10016
10017 2011-09-20  Bruno Haible  <bruno@clisp.org>
10018
10019         select tests: EBADF tests.
10020         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10021         test_bad_fd): New functions.
10022         (test_function): Invoke also test_bad_fd.
10023
10024 2011-09-20  Bruno Haible  <bruno@clisp.org>
10025
10026         Tests for module 'posix_spawn_file_actions_addopen.
10027         * modules/posix_spawn_file_actions_addopen-tests: New file.
10028         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10029
10030         Tests for module 'posix_spawn_file_actions_adddup2'.
10031         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10032         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10033
10034         Tests for module 'posix_spawn_file_actions_addclose'.
10035         * modules/posix_spawn_file_actions_addclose-tests: New file.
10036         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10037
10038 2011-09-20  Bruno Haible  <bruno@clisp.org>
10039
10040         Tests for module 'unlockpt'.
10041         * modules/unlockpt-tests: New file.
10042         * tests/test-unlockpt.c: New file.
10043         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10044
10045         Tests for module 'grantpt'.
10046         * modules/grantpt-tests: New file.
10047         * tests/test-grantpt.c: New file.
10048         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10049
10050 2011-09-20  Bruno Haible  <bruno@clisp.org>
10051
10052         freopen tests: EBADF tests.
10053         * tests/test-freopen.c: Include errno.h, unistd.h.
10054         (main): Add tests for EBADF, commented out for the moment.
10055
10056         fclose tests: EBADF tests.
10057         * tests/test-fclose.c (main): Add tests for EBADF.
10058
10059         fflush tests: EBADF tests.
10060         * tests/test-fflush.c: Include errno.h, macros.h.
10061         (main): Add tests for EBADF.
10062
10063         ftello tests: EBADF tests.
10064         * tests/test-ftello4.sh: New file.
10065         * tests/test-ftello4.c: New file.
10066         * modules/ftello-tests (Files): Add them.
10067         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10068
10069         fseeko tests: EBADF tests.
10070         * tests/test-fseeko4.sh: New file.
10071         * tests/test-fseeko4.c: New file.
10072         * modules/fseeko-tests (Files): Add them.
10073         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10074
10075         Tests for function fputc().
10076         * modules/fputc-tests: New file.
10077         * tests/test-fputc.c: New file.
10078         * modules/stdio-tests (Depends-on): Add fputc-tests.
10079
10080         Tests for function fgetc().
10081         * modules/fgetc-tests: New file.
10082         * tests/test-fgetc.c: New file.
10083         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10084
10085         Tests for function fdopen().
10086         * modules/fdopen-tests: New file.
10087         * tests/test-fdopen.c: New file.
10088         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10089
10090         Tests for module 'vdprintf'.
10091         * modules/vdprintf-tests: New file.
10092         * tests/test-vdprintf.c: New file.
10093
10094         Tests for module 'dprintf'.
10095         * modules/dprintf-tests: New file.
10096         * tests/test-dprintf.c: New file.
10097
10098 2011-09-20  Bruno Haible  <bruno@clisp.org>
10099
10100         Tests for module 'ioctl'.
10101         * modules/ioctl-tests: New file.
10102         * tests/test-ioctl.c: New file.
10103
10104 2011-09-20  Bruno Haible  <bruno@clisp.org>
10105
10106         fcntl tests: EBADF tests.
10107         * tests/test-fcntl.c (main): Add more tests for EBADF.
10108
10109 2011-09-20  Bruno Haible  <bruno@clisp.org>
10110
10111         utimensat tests: EBADF tests.
10112         * tests/test-utimensat.c (main): Add tests for EBADF.
10113
10114         renameat tests: EBADF tests.
10115         * tests/test-renameat.c (main): Add tests for EBADF.
10116
10117         mkfifoat tests: EBADF tests.
10118         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10119
10120         readlinkat tests: EBADF tests.
10121         * tests/test-readlinkat.c (main): Add tests for EBADF.
10122
10123         symlinkat tests: EBADF tests.
10124         * tests/test-symlinkat.c (main): Add tests for EBADF.
10125
10126         linkat tests: EBADF tests.
10127         * tests/test-linkat.c (main): Add tests for EBADF.
10128
10129         Tests for module 'faccessat'.
10130         * modules/faccessat-tests: New file.
10131         * tests/test-faccessat.c: New file.
10132
10133         fdopendir tests: EBADF tests.
10134         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10135
10136         openat tests: EBADF tests.
10137         * tests/test-fchownat.c (main): Add tests for EBADF.
10138         * tests/test-fstatat.c (main): Likewise.
10139         * tests/test-mkdirat.c (main): Likewise.
10140         * tests/test-openat.c (main): Likewise.
10141         * tests/test-unlinkat.c (main): Likewise.
10142         * tests/test-fchmodat.c: New file.
10143         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10144         (Makefile.am): Also run 'test-fchmodat'.
10145
10146 2011-09-20  Bruno Haible  <bruno@clisp.org>
10147
10148         utimens, futimens, fdutimensat tests: EBADF tests.
10149         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10150
10151         Tests for function fstat().
10152         * modules/fstat-tests: New file.
10153         * tests/test-fstat.c: New file.
10154         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10155
10156 2011-09-20  Bruno Haible  <bruno@clisp.org>
10157
10158         test-ttyname_r tests: EBADF tests.
10159         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10160
10161         Tests for module 'isatty'.
10162         * modules/isatty-tests: New file.
10163         * tests/test-isatty.c: New file.
10164
10165         Tests for module 'write'.
10166         * modules/write-tests: New file.
10167         * tests/test-write.c: New file.
10168
10169         Tests for module 'read'.
10170         * modules/read-tests: New file.
10171         * tests/test-read.c: New file.
10172
10173         pwrite tests: EBADF tests.
10174         * tests/test-pwrite.c (main): Add tests for EBADF.
10175
10176         pread tests: EBADF tests.
10177         * tests/test-pread.c (main): Add tests for EBADF.
10178
10179         lseek tests: EBADF tests.
10180         * tests/test-lseek.c (main): Add more tests for EBADF.
10181
10182         Tests for module 'ftruncate'.
10183         * modules/ftruncate-tests: New file.
10184         * tests/test-ftruncate.sh: New file.
10185         * tests/test-ftruncate.c: New file.
10186
10187         fsync tests: EBADF tests.
10188         * tests/test-fsync.c (main): Add more tests for EBADF.
10189
10190         fdatasync tests: EBADF tests.
10191         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10192
10193         Tests for module 'fchown'.
10194         * modules/fchown-tests: New file.
10195         * tests/test-fchown.c: New file.
10196
10197         Tests for module 'fchmod'.
10198         * modules/fchmod-tests: New file.
10199         * tests/test-fchmod.c: New file.
10200
10201         fchdir tests: EBADF tests.
10202         * tests/test-fchdir.c (main): Add more tests for EBADF.
10203
10204         dup2 tests: EBADF tests.
10205         * tests/test-dup2.c (main): Add more tests for EBADF.
10206
10207         Tests for module 'dup'.
10208         * modules/dup-tests: New file.
10209         * tests/test-dup.c: New file.
10210
10211         Tests for module 'close'.
10212         * modules/close-tests: New file.
10213         * tests/test-close.c: New file.
10214
10215 2011-09-20  Bruno Haible  <bruno@clisp.org>
10216
10217         Tests for module 'shutdown'.
10218         * modules/shutdown-tests: New file.
10219         * tests/test-shutdown.c: New file.
10220
10221         Tests for module 'setsockopt'.
10222         * modules/setsockopt-tests: New file.
10223         * tests/test-setsockopt.c: New file.
10224
10225         Tests for module 'sendto'.
10226         * modules/sendto-tests: New file.
10227         * tests/test-sendto.c: New file.
10228
10229         Tests for module 'send'.
10230         * modules/send-tests: New file.
10231         * tests/test-send.c: New file.
10232
10233         Tests for module 'recvfrom'.
10234         * modules/recvfrom-tests: New file.
10235         * tests/test-recvfrom.c: New file.
10236
10237         Tests for module 'recv'.
10238         * modules/recv-tests: New file.
10239         * tests/test-recv.c: New file.
10240
10241         Tests for module 'listen'.
10242         * modules/listen-tests: New file.
10243         * tests/test-listen.c: New file.
10244
10245         Tests for module 'getsockopt'.
10246         * modules/getsockopt-tests: New file.
10247         * tests/test-getsockopt.c: New file.
10248
10249         Tests for module 'getsockname'.
10250         * modules/getsockname-tests: New file.
10251         * tests/test-getsockname.c: New file.
10252
10253         Tests for module 'getpeername'.
10254         * modules/getpeername-tests: New file.
10255         * tests/test-getpeername.c: New file.
10256
10257         Tests for module 'connect'.
10258         * modules/connect-tests: New file.
10259         * tests/test-connect.c: New file.
10260
10261         Tests for module 'bind'.
10262         * modules/bind-tests: New file.
10263         * tests/test-bind.c: New file.
10264
10265         accept4 tests: Fix for native Windows.
10266         * tests/test-accept4.c: Include sockets.h.
10267         (main): Invoke gl_sockets_startup.
10268         * modules/accept4-tests (Depends-on): Add sockets.
10269
10270         accept tests: Fix for native Windows.
10271         * tests/test-accept.c: Include sockets.h.
10272         (main): Invoke gl_sockets_startup.
10273         * modules/accept-tests (Depends-on): Add sockets.
10274
10275 2011-09-19  Bruno Haible  <bruno@clisp.org>
10276
10277         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10278         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10279         do...while(0).
10280         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10281         Suggested by Paul Eggert.
10282
10283 2011-09-19  Bruno Haible  <bruno@clisp.org>
10284
10285         sched: Ensure pid_t is defined.
10286         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10287         not define pid_t.
10288         * lib/sched.in.h: Include <sys/types.h>.
10289         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10291
10292 2011-09-19  Bruno Haible  <bruno@clisp.org>
10293
10294         msvc-inval: Ensure the entire expansion is a single statement.
10295         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10296         of braces.
10297
10298 2011-09-19  Jim Meyering  <meyering@redhat.com>
10299
10300         tests: use printf, not echo in init.sh's warn_ function
10301         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10302         misbehave when given strings containing a backslash or starting
10303         with e.g., -n.  James Youngman suggested setting IFS.
10304
10305 2011-09-19  Eric Blake  <eblake@redhat.com>
10306
10307         futimens: enhance test
10308         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10309         closed non-negative fd.
10310
10311         date: accept 'hence' as opposite of 'ago'
10312         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10313         * tests/test-parse-datetime.c (main): Enhance test.
10314         Suggested by Jesse Wilson.
10315
10316 2011-09-19  Jim Meyering  <meyering@redhat.com>
10317
10318         getcwd: don't fail in a deep directory on a system without openat
10319         Before this change, getcwd would fail when called from a directory
10320         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10321         the non-openat implementation used "..", "../..", "../../..", etc.
10322         to access ancestor directories.  With too many, that string would
10323         be longer than PATH_MAX.
10324         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10325         using gnulib's openat replacement.
10326         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10327         we're using the replacement function.
10328
10329 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10330
10331         maint.mk: avoid warnings from perl about missing files
10332         * top/maint.mk (def_sym_regex): Ignore files listed in
10333         $(gl_other_headers_) that do not exist, say because a project
10334         does not use a corresponding module.
10335
10336 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10337
10338         stat: use pathmax.h only if needed
10339         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10340         This is better for Emacs, which does not have a mingw port and
10341         therefore can avoid the pathmax module.
10342
10343         utimens: remove dependency on dup2
10344         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10345         to work around the Linux kernel bug.
10346         * modules/utimens (Depends-on): Remove dup2.
10347
10348 2011-09-18  Bruno Haible  <bruno@clisp.org>
10349
10350         inet_ntop, inet_pton: Look for it also in libresolv.
10351         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10352         libnsl, search for it in libresolv.
10353         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10354         Needed on Solaris 7.
10355
10356 2011-09-18  Bruno Haible  <bruno@clisp.org>
10357
10358         accept, accept4 tests: Avoid link error on Solaris.
10359         * modules/accept-tests (Makefile.am): Link test-accept against
10360         $(LIBSOCKET).
10361         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10362         $(LIBSOCKET).
10363
10364         accept4: Avoid link error on Solaris.
10365         * modules/accept4 (Link): New section.
10366
10367         socket functions: Avoid link errors on Solaris.
10368         * modules/accept (Depends-on): Add socketlib.
10369         (Link): New section.
10370         * modules/bind (Depends-on): Add socketlib.
10371         (Link): New section.
10372         * modules/connect (Depends-on): Add socketlib.
10373         (Link): New section.
10374         * modules/getpeername (Depends-on): Add socketlib.
10375         (Link): New section.
10376         * modules/getsockname (Depends-on): Add socketlib.
10377         (Link): New section.
10378         * modules/getsockopt (Depends-on): Add socketlib.
10379         (Link): New section.
10380         * modules/listen (Depends-on): Add socketlib.
10381         (Link): New section.
10382         * modules/recv (Depends-on): Add socketlib.
10383         (Link): New section.
10384         * modules/recvfrom (Depends-on): Add socketlib.
10385         (Link): New section.
10386         * modules/send (Depends-on): Add socketlib.
10387         (Link): New section.
10388         * modules/sendto (Depends-on): Add socketlib.
10389         (Link): New section.
10390         * modules/setsockopt (Depends-on): Add socketlib.
10391         (Link): New section.
10392         * modules/shutdown (Depends-on): Add socketlib.
10393         (Link): New section.
10394         * modules/socket (Depends-on): Add socketlib.
10395         (Link): New section.
10396
10397 2011-09-18  Bruno Haible  <bruno@clisp.org>
10398
10399         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10400         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10401         than 5 seconds.
10402         * modules/ptsname-tests (configure.ac): Test for alarm.
10403
10404 2011-09-18  Bruno Haible  <bruno@clisp.org>
10405
10406         posix_spawn_file_actions_add*: Fix module dependencies.
10407         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10408         posix_spawn_file_actions_init.
10409         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10410         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10411
10412 2011-09-18  Bruno Haible  <bruno@clisp.org>
10413
10414         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10415         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10416         * tests/test-renameat.c (main): Likewise.
10417
10418 2011-09-18  Bruno Haible  <bruno@clisp.org>
10419
10420         Tests for module 'accept4'.
10421         * modules/accept4-tests: New file.
10422         * tests/test-accept4.c: New file.
10423
10424 2011-09-18  Bruno Haible  <bruno@clisp.org>
10425
10426         Tests for module 'accept'.
10427         * modules/accept-tests: New file.
10428         * tests/test-accept.c: New file.
10429
10430 2011-09-18  Bruno Haible  <bruno@clisp.org>
10431
10432         dup2: Support for MSVC.
10433         * lib/dup2.c: Include msvc-inval.h.
10434         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10435         _get_osfhandle calls.
10436         * modules/dup2 (Depends-on): Add msvc-inval.
10437         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10438
10439         New module 'msvc-inval'.
10440         * lib/msvc-inval.h: New file.
10441         * lib/msvc-inval.c: New file.
10442         * m4/msvc-inval.m4: New file.
10443         * modules/msvc-inval: New file.
10444
10445 2011-09-17  Bruno Haible  <bruno@clisp.org>
10446
10447         Tests for module 'pclose'.
10448         * modules/pclose-tests: New file.
10449
10450         New module 'pclose'.
10451         * lib/stdio.in.h (pclose): New declaration.
10452         * lib/pclose.c: New file.
10453         * m4/pclose.m4: New file.
10454         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10455         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10456         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10457         * modules/pclose: New file.
10458         * modules/popen-tests (Depends-on): Add pclose.
10459         * modules/popen-safer-tests (Depends-on): Likewise.
10460         * doc/posix-functions/pclose.texi: Mention the new module.
10461
10462 2011-09-17  Bruno Haible  <bruno@clisp.org>
10463
10464         popen: Support for MSVC.
10465         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10466         * lib/popen.c (popen): Provide alternate definition for native Windows.
10467         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10469         * modules/popen (Depends-on, configure.ac): Update condition.
10470         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10471         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10472         fixed.
10473
10474 2011-09-17  Bruno Haible  <bruno@clisp.org>
10475
10476         isnanl, isnand, isnanf: Work around MSVC bug.
10477         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10478
10479 2011-09-17  Bruno Haible  <bruno@clisp.org>
10480
10481         sys_socket tests: Fix recent mistake.
10482         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10483
10484 2011-09-17  Bruno Haible  <bruno@clisp.org>
10485
10486         putenv: Support for MSVC.
10487         * modules/putenv (Depends-on): Add environ.
10488         * lib/putenv.c (environ): Disable declaration.
10489         * lib/unistd.in.h: Update comment.
10490
10491 2011-09-17  Bruno Haible  <bruno@clisp.org>
10492
10493         math: Avoid macro redefinition warnings on MSVC.
10494         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10495         Undefine before redefining.
10496
10497 2011-09-17  Bruno Haible  <bruno@clisp.org>
10498
10499         doc: Mention functions which are declared as macros.
10500         * doc/posix-functions/*[fl].texi: Mention that some functions are
10501         defined as macros with arguments only.
10502
10503 2011-09-17  Bruno Haible  <bruno@clisp.org>
10504
10505         Add dependencies to new dirent related modules.
10506         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10507         * modules/fts (Depends-on): Likewise.
10508         * modules/glob (Depends-on): Likewise.
10509         * modules/savedir (Depends-on): Likewise.
10510         * modules/scandir (Depends-on): Likewise.
10511         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10512         * modules/fdopendir (Depends-on): Add opendir.
10513
10514 2011-09-17  Bruno Haible  <bruno@clisp.org>
10515
10516         inet_pton: Support for MSVC on Windows Vista or newer.
10517         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10518         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10519         HAVE_DECL_INET_PTON is defined.
10520         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10521         On platforms with <winsock2.h>, test whether inet_pton is declared in
10522         <ws2tcpip.h>. If so, arrange to replace it.
10523         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10524         REPLACE_INET_PTON.
10525         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10526         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10527         (Depends-on, configure.ac): Update condition.
10528         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10529
10530 2011-09-17  Bruno Haible  <bruno@clisp.org>
10531
10532         inet_ntop: Support for MSVC on Windows Vista or newer.
10533         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10534         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10535         HAVE_DECL_INET_NTOP is defined.
10536         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10537         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10538         <ws2tcpip.h>. If so, arrange to replace it.
10539         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10540         REPLACE_INET_NTOP.
10541         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10542         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10543         (Depends-on, configure.ac): Update condition.
10544         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10545
10546 2011-09-16  Eric Blake  <eblake@redhat.com>
10547
10548         test-fsync: yet another enhancement
10549         * tests/test-fsync.c (main): Also test behavior on read-only text
10550         file.
10551
10552 2011-09-16  Bruno Haible  <bruno@clisp.org>
10553
10554         Enhance fsync, fdatasync tests.
10555         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10556         * tests/test-fdatasync.c (main): Likewise.
10557
10558 2011-09-16  Bruno Haible  <bruno@clisp.org>
10559
10560         Support for MSVC compiler: Ensure mode_t gets defined.
10561         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10562         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10564         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10565         * tests/test-fcntl-h.c: Check that mode_t is defined.
10566         * tests/test-sys_stat.c: Likewise.
10567         * tests/test-sys_types.c: Likewise.
10568         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10569         * doc/posix-headers/sys_stat.texi: Likewise.
10570         * doc/posix-headers/sys_types.texi: Likewise.
10571
10572 2011-09-16  Bruno Haible  <bruno@clisp.org>
10573
10574         sys_stat: Support for MSVC.
10575         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10576         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10577         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10578         MSVC.
10579
10580 2011-09-16  Bruno Haible  <bruno@clisp.org>
10581
10582         Support for MSVC compiler: Ensure off_t gets defined.
10583         * lib/unistd.in.h: Include <sys/types.h>.
10584         * tests/test-fcntl-h.c: Check that off_t is defined.
10585         * tests/test-sys_stat.c: Likewise.
10586         * tests/test-sys_types.c: Likewise.
10587
10588 2011-09-16  Eric Blake  <eblake@redhat.com>
10589
10590         fdatasync: port to Solaris
10591         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10592         * modules/fdatasync (Link): Document it.
10593         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10594
10595         fdatasync: port to MacOS X 10.7
10596         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10597         declared.
10598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10599         * modules/unistd (Makefile.am): Substitute it.
10600         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10601         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10602
10603         fdatasync: minor improvements
10604         * modules/fdatasync (Depends-on): Add condition for fsync.
10605         * lib/fdatasync.c (fdatasync): Add comment.
10606         * tests/test-unistd-c++.cc: Test fdatasync.
10607
10608         unistd: update refs to newer POSIX
10609         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10610         Suggested by Bruno Haible.
10611
10612         fdatasync: new module
10613         * modules/fsync (Description): Document difference to fdatasync.
10614         * modules/fdatasync: New module.
10615         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10616         * lib/fdatasync.c (fdatasync): Likewise.
10617         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10618         defaults.
10619         * modules/unistd (Makefile.am): Set witnesses.
10620         * lib/unistd.in.h (fdatasync): Declare.
10621         * MODULES.html.sh: Document it.
10622         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10623         * modules/fdatasync-tests: New test.
10624         * tests/test-fdatasync.c: Likewise.
10625
10626 2011-09-16  Eric Blake  <eblake@redhat.com>
10627
10628         test-fsync: enhance tests
10629         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10630         * tests/test-fsync.c (main): Enhance test.
10631
10632 2011-09-15  Bruno Haible  <bruno@clisp.org>
10633
10634         Support for MSVC compiler: Ensure ssize_t gets defined.
10635         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10636         * doc/posix-headers/stdio.texi: Likewise.
10637         * modules/stdio (Depends-on): Add ssize_t.
10638         * modules/sys_socket (Depends-on): Likewise.
10639         * modules/sys_types (Depends-on): Likewise.
10640         * modules/sys_uio (Depends-on): Likewise.
10641         * modules/unistd (Depends-on): Likewise.
10642         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10643         * tests/test-sys_types.c: Check that ssize_t is defined.
10644
10645 2011-09-14  Bruno Haible  <bruno@clisp.org>
10646
10647         Avoid using #, the m4 comment starter character, near brackets.
10648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10649         delimiter character in sed expressions.
10650         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10651         Suggested by Eric Blake.
10652
10653         Properly quote AC_CHECK_DECLS' 4th argument.
10654         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10655         argument.
10656         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10657         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10658         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10659         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10660         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10661         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10663         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10664         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10665         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10666         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10667         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10668         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10669         * m4/isinf.m4 (gl_ISINF): Likewise.
10670         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10671         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10672         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10673         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10675         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10676         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10677         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10678         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10679         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10680         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10681         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10683         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10685         Reported by Eric Blake.
10686
10687         Properly quote AC_CHECK_DECL's 4th argument.
10688         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10689         argument.
10690         * m4/argp.m4 (gl_ARGP): Likewise.
10691         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10692         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10693         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10694         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10695         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10696         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10698         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10699         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10700         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10701         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10702         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10703         Reported by Eric Blake.
10704
10705 2011-09-14  Eric Blake  <eblake@redhat.com>
10706
10707         opendir: avoid compile warning
10708         * lib/opendir.c (includes): Always include errno.h.
10709         Reported by Tatsuro MATSUOKA.
10710
10711 2011-09-14  Jim Meyering  <meyering@redhat.com>
10712
10713         maint.mk: sc_tight_scope: propagate failure from sub-make
10714         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10715         Reported by Martin von Gagern.
10716
10717 2011-09-13  Bruno Haible  <bruno@clisp.org>
10718
10719         tempname: Support for MSVC.
10720         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10721         MSVC.
10722         * modules/tempname (Depends-on): Add fcntl-h.
10723
10724 2011-09-13  Bruno Haible  <bruno@clisp.org>
10725
10726         sys_time: Support for MSVC.
10727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10728         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10729         include <winsock2.h>.
10730         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10731         function declarations that collide with POSIX.
10732         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10733         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10734
10735 2011-09-13  Bruno Haible  <bruno@clisp.org>
10736
10737         stat: Support for MSVC.
10738         * lib/stat.c: Include pathmax.h.
10739         * modules/stat (Depends-on): Add pathmax.
10740
10741         pathmax: Support for native Windows.
10742         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10743
10744 2011-09-12  Bruno Haible  <bruno@clisp.org>
10745
10746         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10747         * lib/dirent.in.h (struct dirent): New type.
10748         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10749         DT_WHT): New macros.
10750         (DIR): New type.
10751         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10752         (readdir, rewinddir): New declarations.
10753         * lib/dirent-private.h: New file.
10754         * lib/opendir.c: New file.
10755         * lib/readdir.c: New file.
10756         * lib/rewinddir.c: New file.
10757         * lib/closedir.c: New file.
10758         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10759         * m4/opendir.m4: New file.
10760         * m4/readdir.m4: New file.
10761         * m4/rewinddir.m4: New file.
10762         * m4/closedir.m4: New file.
10763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10764         REPLACE_CLOSEDIR here.
10765         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10766         readdir, rewinddir are declared.
10767         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10768         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10769         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10770         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10771         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10772         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10773         * modules/opendir: New file.
10774         * modules/readdir: New file.
10775         * modules/rewinddir: New file.
10776         * modules/closedir: New file.
10777         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10778         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10779         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10780         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10781         * NEWS: Mention the 'fchdir' change.
10782
10783 2011-09-11  Bruno Haible  <bruno@clisp.org>
10784
10785         asm-underscore.m4: Support for MSVC.
10786         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10787         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10788
10789 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10790
10791         Doc about crypt functions.
10792         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10793         needing for _GNU_SOURCE to get crypt.
10794         * doc/posix-functions/encrypt.texi: Likewise.
10795         * doc/posix-functions/setkey.texi: Likewise.
10796
10797 2011-09-11  Bruno Haible  <bruno@clisp.org>
10798
10799         doc: Update regarding MSVC 9.
10800         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10801         tested".
10802         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10803         * doc/posix-headers/*.texi: Likewise.
10804         * doc/pastposix-functions/*.texi: Likewise.
10805         * doc/glibc-functions/*.texi: Likewise.
10806         * doc/glibc-headers/*.texi: Likewise.
10807
10808 2011-09-11  Bruno Haible  <bruno@clisp.org>
10809
10810         unistd et al.: Don't assume <unistd.h> exists.
10811         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10812         does not exist.
10813         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10814         exist. But include <stdlib.h>.
10815         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10816         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10817         symlink() does not exist.
10818         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10819         include <io.h> instead.
10820         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10821         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10822         include <direct.h> instead.
10823         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10825         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10826         <io.h> instead.
10827         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10828         correctly if the system does not have hard links.
10829         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10830         <direct.h> instead.
10831         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10832         it when looking for function declarations.
10833         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10834         <direct.h> and <io.h> instead.
10835         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10836
10837 2011-09-11  Bruno Haible  <bruno@clisp.org>
10838
10839         strcase: Support for MSVC.
10840         * modules/strcase (Status, Notice): Remove obsoletion mark.
10841         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10842         * doc/posix-functions/strncasecmp.texi: Likewise.
10843
10844         strings: Don't assume <strings.h> exists.
10845         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10846         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10847         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10848         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10849
10850 2011-09-11  Bruno Haible  <bruno@clisp.org>
10851
10852         dirent: Don't assume <dirent.h> exists.
10853         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10854         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10855         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10856         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10857
10858 2011-09-11  Bruno Haible  <bruno@clisp.org>
10859
10860         Fix wint_t on MSVC.
10861         * lib/wchar.in.h (wint_t): On MSVC, override it.
10862         * lib/wctype.in.h (wint_t): Likewise.
10863         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10864         MSVC.
10865         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10866         * doc/posix-headers/wctype.texi: Likewise.
10867
10868 2011-09-11  Bruno Haible  <bruno@clisp.org>
10869
10870         sys_types: Fix typo.
10871         * lib/sys_types.in.h: Fix typo in comment.
10872         Reported by Paul Eggert.
10873
10874         Support for MSVC compiler: Ensure size_t gets defined.
10875         * modules/strings (Depends-on): Add 'sys_types'.
10876         * modules/sys_uio (Depends-on): Likewise.
10877         * lib/sys_uio.in.h: Update comment.
10878
10879         C++ tests for module 'sys_types'.
10880         * modules/sys_types-c++-tests: New file.
10881         * tests/test-sys_types-c++.cc: New file.
10882
10883         Tests for module 'sys_types'.
10884         * modules/sys_types-tests: New file.
10885         * tests/test-sys_types.c: New file.
10886
10887         New module 'sys_types'.
10888         * lib/sys_types.in.h: New file.
10889         * m4/sys_types_h.m4: New file.
10890         * modules/sys_types: New file.
10891         * doc/posix-headers/sys_types.texi: Mention the new module and the
10892         size_t problem on MSVC 9.
10893
10894 2011-09-11  Bruno Haible  <bruno@clisp.org>
10895
10896         Support for MSVC compiler: Avoid division by a literal 0.
10897         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10898         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10899         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10900         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10901         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10902         * tests/infinity.h: New file.
10903         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10904         on MSVC.
10905         * tests/test-ceilf1.c: Include infinity.h.
10906         (main): Use Infinityf.
10907         * tests/test-ceil1.c: Include infinity.h.
10908         (main): Use Infinityd.
10909         * tests/test-ceill.c: Include infinity.h.
10910         (main): Use Infinityl.
10911         * tests/test-dprintf-posix.c: Include infinity.h.
10912         (test_function): Use Infinityd.
10913         * tests/test-floorf1.c: Include infinity.h.
10914         (main): Use Infinityf.
10915         * tests/test-floor1.c: Include infinity.h.
10916         (main): Use Infinityd.
10917         * tests/test-floorl.c: Include infinity.h.
10918         (main): Use Infinityl.
10919         * tests/test-fprintf-posix.c: Include infinity.h.
10920         (test_function): Use Infinityd.
10921         * tests/test-frexp.c: Include infinity.h.
10922         (main): Use Infinityd.
10923         * tests/test-frexpl.c: Include infinity.h.
10924         (main): Use Infinityl.
10925         * tests/test-isfinite.c: Include infinity.h.
10926         (test_isfinitef): Use Infinityf.
10927         (test_isfinited): Use Infinityd.
10928         (test_isfinitel): Use Infinityl.
10929         * tests/test-isinf.c: Include infinity.h.
10930         (test_isinff): Use Infinityf.
10931         (test_isinfd): Use Infinityd.
10932         (test_isinfl): Use Infinityl.
10933         * tests/test-isnan.c: Include infinity.h.
10934         (test_float): Use Infinityf.
10935         (test_double): Use Infinityd.
10936         (test_long_double): Use Infinityl.
10937         * tests/test-isnanf.h: Include infinity.h.
10938         (main): Use Infinityf.
10939         * tests/test-isnand.h: Include infinity.h.
10940         (main): Use Infinityd.
10941         * tests/test-isnanl.h: Include infinity.h.
10942         (main): Use Infinityl.
10943         * tests/test-ldexpl.c: Include infinity.h.
10944         (main): Use Infinityl.
10945         * tests/test-printf-posix.h: Include infinity.h.
10946         (test_function): Use Infinityd.
10947         * tests/test-roundf1.c: Include infinity.h.
10948         (main): Use Infinityf.
10949         * tests/test-round1.c: Include infinity.h.
10950         (main): Use Infinityd.
10951         * tests/test-roundl.c: Include infinity.h.
10952         (main): Use Infinityl.
10953         * tests/test-signbit.c: Include infinity.h.
10954         (test_signbitf): Use Infinityf.
10955         (test_signbitd): Use Infinityd.
10956         (test_signbitl): Use Infinityl.
10957         * tests/test-snprintf-posix.h: Include infinity.h.
10958         (test_function): Use Infinityd, Infinityl.
10959         * tests/test-sprintf-posix.h: Include infinity.h.
10960         (test_function): Use Infinityd, Infinityl.
10961         * tests/test-truncf1.c: Include infinity.h.
10962         (main): Use Infinityf.
10963         * tests/test-trunc1.c: Include infinity.h.
10964         (main): Use Infinityd.
10965         * tests/test-truncl.c: Include infinity.h.
10966         (main): Use Infinityl.
10967         * tests/test-vasnprintf-posix.c: Include infinity.h.
10968         (test_function): Use Infinityd, Infinityl.
10969         * tests/test-vasprintf-posix.c: Include infinity.h.
10970         (test_function): Use Infinityd, Infinityl.
10971         * modules/ceilf-tests (Files): Add tests/infinity.h.
10972         * modules/ceil-tests (Files): Likewise.
10973         * modules/ceill-tests (Files): Likewise.
10974         * modules/dprintf-posix-tests (Files): Likewise.
10975         * modules/floorf-tests (Files): Likewise.
10976         * modules/floor-tests (Files): Likewise.
10977         * modules/floorl-tests (Files): Likewise.
10978         * modules/fprintf-posix-tests (Files): Likewise.
10979         * modules/frexp-tests (Files): Likewise.
10980         * modules/frexp-nolibm-tests (Files): Likewise.
10981         * modules/frexpl-tests (Files): Likewise.
10982         * modules/frexpl-nolibm-tests (Files): Likewise.
10983         * modules/isfinite-tests (Files): Likewise.
10984         * modules/isinf-tests (Files): Likewise.
10985         * modules/isnan-tests (Files): Likewise.
10986         * modules/isnanf-tests (Files): Likewise.
10987         * modules/isnanf-nolibm-tests (Files): Likewise.
10988         * modules/isnand-tests (Files): Likewise.
10989         * modules/isnand-nolibm-tests (Files): Likewise.
10990         * modules/isnanl-tests (Files): Likewise.
10991         * modules/isnanl-nolibm-tests (Files): Likewise.
10992         * modules/ldexpl-tests (Files): Likewise.
10993         * modules/printf-posix-tests (Files): Likewise.
10994         * modules/roundf-tests (Files): Likewise.
10995         * modules/round-tests (Files): Likewise.
10996         * modules/roundl-tests (Files): Likewise.
10997         * modules/signbit-tests (Files): Likewise.
10998         * modules/snprintf-posix-tests (Files): Likewise.
10999         * modules/sprintf-posix-tests (Files): Likewise.
11000         * modules/truncf-tests (Files): Likewise.
11001         * modules/trunc-tests (Files): Likewise.
11002         * modules/truncl-tests (Files): Likewise.
11003         * modules/vasnprintf-posix-tests (Files): Likewise.
11004         * modules/vasprintf-posix-tests (Files): Likewise.
11005         * modules/vdprintf-posix-tests (Files): Likewise.
11006         * modules/vfprintf-posix-tests (Files): Likewise.
11007         * modules/vprintf-posix-tests (Files): Likewise.
11008         * modules/vsnprintf-posix-tests (Files): Likewise.
11009         * modules/vsprintf-posix-tests (Files): Likewise.
11010         * modules/xprintf-posix-tests (Files): Likewise.
11011
11012 2011-09-11  Bruno Haible  <bruno@clisp.org>
11013
11014         Ensure pid_t gets defined.
11015         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11016         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11017         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11018         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11020         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11021         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11022         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11023         * tests/test-fcntl-h.c: Check that pid_t is defined.
11024         * tests/test-sched.c: Likewise.
11025         * tests/test-termios.c: Likewise.
11026         * tests/test-time.c: Likewise.
11027         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11028         * doc/posix-headers/signal.texi: Likewise.
11029         * doc/posix-headers/sys_types.texi: Likewise.
11030         * doc/posix-headers/time.texi: Likewise.
11031
11032 2011-09-11  Bruno Haible  <bruno@clisp.org>
11033
11034         acl: Fix compilation on Solaris 10 (older version).
11035         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11036         of ACE_EVERYONE.
11037         * lib/set-mode-acl.c (qset_acl): Likewise.
11038         Reported by Christian Jullien <eligis@orange.fr>.
11039
11040 2011-09-10  Bruno Haible  <bruno@clisp.org>
11041
11042         iconv, unsetenv: Add support for MSVC compiler.
11043         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11045
11046 2011-09-10  Bruno Haible  <bruno@clisp.org>
11047
11048         *printf: Add support for MSVC compiler.
11049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11050         handles the exception caused by the %n directive. When cross-compiling,
11051         guess no on native Windows.
11052         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11053         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11054         emulate it through vsnprintf.
11055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11056         * doc/posix-functions/dprintf.texi: Update documentation regarding
11057         MSVC 9.
11058         * doc/posix-functions/fprintf.texi: Likewise.
11059         * doc/posix-functions/printf.texi: Likewise.
11060         * doc/posix-functions/snprintf.texi: Likewise.
11061         * doc/posix-functions/sprintf.texi: Likewise.
11062         * doc/posix-functions/swprintf.texi: Likewise.
11063         * doc/posix-functions/vdprintf.texi: Likewise.
11064         * doc/posix-functions/vfprintf.texi: Likewise.
11065         * doc/posix-functions/vprintf.texi: Likewise.
11066         * doc/posix-functions/vsnprintf.texi: Likewise.
11067         * doc/posix-functions/vsprintf.texi: Likewise.
11068         * doc/glibc-functions/asprintf.texi: Likewise.
11069         * doc/glibc-functions/obstack_printf.texi: Likewise.
11070         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11071         * doc/glibc-functions/vasprintf.texi: Likewise.
11072
11073 2011-09-10  Bruno Haible  <bruno@clisp.org>
11074
11075         nocrash: Add support for native Windows.
11076         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11077
11078 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11079             Bruno Haible  <bruno@clisp.org>
11080
11081         absolute-header, include-next: Add support for MSVC compiler.
11082         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11083         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11084         directory separator in #line directives.
11085         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11086         recognize also backslash as directory separator in #line directives.
11087
11088 2011-09-08  Jim Meyering  <meyering@redhat.com>
11089
11090         maint.mk: mark the post-release commit log with "maint: " prefix
11091         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11092         one-line commit-log summary.
11093
11094 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11095             Bruno Haible  <bruno@clisp.org>
11096
11097         Doc about crypt functions.
11098         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11099         systems.
11100         * doc/posix-functions/encrypt.texi: Likewise.
11101         * doc/posix-functions/setkey.texi: Likewise.
11102
11103 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11104
11105         * lib/gc.h: Fix copyright header.
11106
11107 2011-09-07  Bruno Haible  <bruno@clisp.org>
11108
11109         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11110         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11111         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11112
11113 2011-09-07  Bruno Haible  <bruno@clisp.org>
11114
11115         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11116         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11117         * lib/freopen.c: Likewise.
11118         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11119         * lib/lstat.c: Likewise.
11120         * lib/stat.c: Likewise.
11121         * lib/open.c: Use different syntax for include of <fcntl.h>.
11122         * lib/openat.c: Include fcntl.h again, explicitly.
11123
11124 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11125
11126         parse-datetime: document the newly accepted format
11127         * doc/parse-datetime.texi (Combined date and time of day items):
11128         New section.
11129
11130 2011-09-06  Bruno Haible  <bruno@clisp.org>
11131
11132         acl: Fix a test failure on newer Solaris 10 with ZFS.
11133         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11134         ENOSYS as no ACL.
11135         Reported by Jim Meyering.
11136
11137 2011-09-06  Bruno Haible  <bruno@clisp.org>
11138
11139         acl: Update for AIX >= 5.3 with NFS.
11140         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11141         ENOSYS as no ACL.
11142
11143         acl: Fix a test failure on AIX >= 5.3 with NFS.
11144         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11145         as no ACL.
11146
11147 2011-09-06  Bruno Haible  <bruno@clisp.org>
11148
11149         acl: Fix a test failure on IRIX 6.5 with NFS.
11150         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11151         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11152         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11153         * lib/copy-acl.c (qcopy_acl): Likewise.
11154
11155 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11156
11157         openat: port to AIX 7.1 with large files
11158         AIX 7.1 does a "#define openat open64at" if large files are in use,
11159         so we can't simply #undef openat.  Use the orig_openat trick (similar
11160         to orig_open in lib/open.c) to work around the problem.  Problem
11161         reported by Kevin Brott for GNU tar, in the thread containing
11162         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11163         * lib/openat.c (__need_system_fcntl_h): Define first.
11164         Include <fcntl.h> and <sys/types.h> before undefining.
11165         (orig_openat) [HAVE_OPENAT]: New inline function.
11166         (openat) [HAVE_OPENAT]: Do not undef.
11167         (rpl_openat): Use orig_openat, not openat.
11168
11169 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11170             Bruno Haible  <bruno@clisp.org>
11171
11172         acl: Avoid errors on NonStop Kernel.
11173         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11174         ENOTSUP errors.
11175
11176 2011-09-05  Bruno Haible  <bruno@clisp.org>
11177
11178         acl: Clean up Solaris code.
11179         * lib/acl-internal.h: Remove no-op #if.
11180         * lib/file-has-acl.c: Likewise.
11181         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11182         * lib/copy-acl.c (qcopy_acl): Likewise.
11183
11184 2011-09-05  Bruno Haible  <bruno@clisp.org>
11185
11186         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11187         binaries built on the original Solaris 10.
11188         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11189         trivial.
11190
11191 2011-09-05  Bruno Haible  <bruno@clisp.org>
11192
11193         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11194         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11195         10.
11196         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11197         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11198         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11199         instead of acl_get, facl_get, acl_set, facl_set.
11200
11201 2011-09-05  Bruno Haible  <bruno@clisp.org>
11202
11203         copy-file: Try unit tests on more file systems.
11204         * tests/test-copy-file-1.sh: New file.
11205         * tests/test-copy-file-2.sh: New file.
11206         * modules/copy-file-tests (Files): Add them.
11207         (Makefile.am): Add them to TESTS.
11208
11209         acl: Try unit tests on more file systems.
11210         * tests/test-file-has-acl-1.sh: New file.
11211         * tests/test-file-has-acl-2.sh: New file.
11212         * tests/test-set-mode-acl-1.sh: New file.
11213         * tests/test-set-mode-acl-2.sh: New file.
11214         * tests/test-copy-acl-1.sh: New file.
11215         * tests/test-copy-acl-2.sh: New file.
11216         * modules/acl-tests (Files): Add them.
11217         (Makefile.am): Add them to TESTS.
11218
11219 2011-09-04  Bruno Haible  <bruno@clisp.org>
11220
11221         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11222         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11223         10.
11224         (OLD_ALLOW, OLD_DENY): New macros.
11225         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11226         ACE_ACCESS_ALLOWED_ACE_TYPE.
11227         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11228         ACE_ACCESS_DENIED_ACE_TYPE.
11229         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11230         (NEW_ACE_EXECUTE): Fix value.
11231         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11232         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11233         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11234         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11235         NEW_ACE_SYNCHRONIZE): New macros.
11236         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11237         instead of acl_fromtext, acl_set, facl_set.
11238         Fixes a coreutils/tests/cp/perm failure.
11239
11240 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11241
11242         openat: test for fstatat (..., 0) bug
11243         Further testing with tar suggests that fstatat (..., 0)
11244         does not work in general, on AIX 7.1; see
11245         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11246         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11247         replacement fstatat (which is what older AIX releases were using
11248         anyway).
11249         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11250         use is now changed to orig_fstatat.  This was probably the right
11251         thing to do anyway.
11252         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11253         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11254         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11255         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11256         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11257         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11258         if the bug is found.
11259
11260         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11261         This tests for another fstatat bug on AIX 7.1:
11262         fstatat (AT_FDCWD, ..., 0) does not work.  See
11263         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11264         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11265         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11266         (rpl_fstatat): Adjust so that it works around either (or both)
11267         bugs if present.
11268         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11269
11270 2011-09-03  Karl Berry  <karl@gnu.org>
11271
11272         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11273         in index entries.
11274
11275 2011-09-02  Bruno Haible  <bruno@clisp.org>
11276
11277         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11278         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11279         values of AR, ARFLAGS, RANLIB.
11280         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11281
11282 2011-09-02  Bruno Haible  <bruno@clisp.org>
11283
11284         Find 'ar' program that fits with --host argument.
11285         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11286
11287 2011-09-02  Bruno Haible  <bruno@clisp.org>
11288
11289         tests: init.sh: Support any non-GNU diff.
11290         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11291         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11292         Solaris 8.
11293
11294 2011-09-02  Bruno Haible  <bruno@clisp.org>
11295
11296         tests: init.sh: work also with any non-GNU diff that supports -u
11297         * tests/init.sh: Relax check for diff -u support.
11298         Rather than checking for GNU diff via --version, simply check
11299         for support for -u itself.  Useful at least on OpenBSD 4.9,
11300         AIX 7.1, IRIX 6.5, and Solaris 10.
11301
11302 2011-09-01  Bruno Haible  <bruno@clisp.org>
11303
11304         strtoimax, strtoumax: Document problem on HP-UX 11.
11305         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11306         * doc/posix-functions/strtoumax.texi: Likewise.
11307
11308 2011-09-01  Bruno Haible  <bruno@clisp.org>
11309
11310         strtoumax: Avoid link error on OSF/1 with DTK cc.
11311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11312         defined as a function.
11313         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11314         strtoumax is defined, not whether it is declared.
11315
11316 2011-09-01  Bruno Haible  <bruno@clisp.org>
11317
11318         strtoimax: Avoid link error on OSF/1 with DTK cc.
11319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11320         defined as a function.
11321         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11322         strtoimax is defined, not whether it is declared.
11323
11324 2011-09-01  Bruno Haible  <bruno@clisp.org>
11325
11326         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11327         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11328         as a function.
11329         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11330         whether it is declared.
11331
11332 2011-09-01  Bruno Haible  <bruno@clisp.org>
11333
11334         imaxabs: Avoid link error on OSF/1 with DTK cc.
11335         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11336         as a function.
11337         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11338         whether it is declared.
11339
11340 2011-09-01  Bruno Haible  <bruno@clisp.org>
11341
11342         Tests for module 'strtoumax'.
11343         * modules/strtoumax-tests: New file.
11344         * tests/test-strtoumax.c: New file.
11345
11346         Tests for module 'strtoimax'.
11347         * modules/strtoimax-tests: New file.
11348         * tests/test-strtoimax.c: New file.
11349
11350         Tests for module 'imaxdiv'.
11351         * modules/imaxdiv-tests: New file.
11352         * tests/test-imaxdiv.c: New file.
11353
11354         Tests for module 'imaxabs'.
11355         * modules/imaxabs-tests: New file.
11356         * tests/test-imaxabs.c: New file.
11357
11358 2011-09-01  Bruno Haible  <bruno@clisp.org>
11359
11360         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11361         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11362         pthread_create.
11363
11364 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11365
11366         openat: work around AIX 7.1 fstatat issue
11367         This should fix the problem that was not properly fixed
11368         in the previous change, dated 2011-08-30.
11369         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11370         __need_system_stat_h defined.
11371         (orig_fstatat) [HAVE_FSTATAT]: New function.
11372         (rpl_fstatat): Go back to the old way of doing things,
11373         except call orig_fstatat instead of fstatat.
11374         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11375         Remove unnecessary check whether fstatat fills in st_size etc.
11376
11377 2011-09-01  Bruno Haible  <bruno@clisp.org>
11378
11379         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11380         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11381         just include the system's header.
11382
11383 2011-08-31  Jim Meyering  <meyering@redhat.com>
11384
11385         tests: avoid spurious assertion failure in test-float.c on ppc64
11386         * tests/test-float.c (test_long_double): Comment out an assertion,
11387         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11388         with gcc-4.4.4.
11389
11390         maint: indent with spaces, not TABs
11391         I need to get in the habit of running gnulib's "make check".
11392         Both of these would have been caught.
11393         * m4/largefile.m4: Indent with spaces, not TABs.
11394         * lib/parse-datetime.y (iso_8601_time): Likewise.
11395         Spotted by Pádraig Brady.
11396
11397         test-parse-datetime.c: accommodate a relatively strict gcc warning
11398         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11399         to avoid a warning from gcc's -Werror=missing-declarations.
11400         Insert a few spaces-before-funcall-parenthesis.
11401
11402 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11403
11404         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11405         The parser now accepts ISO 8601 date-time strings with "T" as the
11406         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11407         with a space between the date and time strings.  Now it also parses
11408         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11409         variants like "2004-02-29T16:21:42.333-07:00"
11410         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11411         of day representation using the 'T' separator character.
11412         * doc/parse-datetime.texi (General date syntax): replace use of
11413         deprecated --iso-8601 option with --rfc-3339 in example of date
11414         command output formats that can be parsed.
11415         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11416         lib/parse-datetime.y.
11417         (gmt_offset): New function.
11418         (main): Add additional test cases to validate ISO8601 extended
11419         date and time of day parsing.
11420
11421 2011-08-31  Bruno Haible  <bruno@clisp.org>
11422
11423         freopen: Documentation.
11424         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11425         name.
11426         Reported by Claudio Bley <claudio.bley@gmail.com>.
11427
11428 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11429
11430         freopen: Don't crash if the filename argument is NULL.
11431         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11432         NULL.
11433
11434 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11435
11436         openat: work around AIX 7.1 fstatat bug
11437         Problem reported by Kevin Brott for GNU tar, in the thread containing
11438         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11439         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11440         FSTATAT_ST_SIZE_ETC_BROKEN.
11441         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11442         rpl_fstatat.
11443         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11444         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11445         AC_CHECK_FUNCS_ONCE for fstatat.
11446         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11447         fchmodat, mkdirat, openat and unlinkat.
11448
11449 2011-08-30  Bruno Haible  <bruno@clisp.org>
11450
11451         Avoid endless recursions if config.h includes some header files.
11452         * lib/fopen.c (__need_FILE): Define already before including config.h.
11453         * lib/freopen.c (__need_FILE): Likewise.
11454         * lib/open.c (__need_system_fcntl_h): Likewise.
11455         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11456         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11457         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11458
11459 2011-08-25  Karl Berry  <karl@gnu.org>
11460
11461         * config/srclist.txt (ylwrap): new try.
11462         * build-aux/ylwrap: new file.
11463
11464 2011-08-23  Bruno Haible  <bruno@clisp.org>
11465
11466         tmpdir: Use a good default directory on native Windows.
11467         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11468         (P_tmpdir): Default to _P_tmpdir on native Windows.
11469         (path_search): On native Windows, try the value returned by GetTempPath
11470         before trying P_tmpdir.
11471         * modules/tmpdir (Depends-on): Add pathmax.
11472         Suggested by John Darrington <john@darrington.wattle.id.au>.
11473
11474 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11475
11476         doc: fix typo in README-release
11477         * top/README-release: Capitalize first word of a sentence.
11478
11479 2011-08-19  Jim Meyering  <meyering@redhat.com>
11480
11481         fts: do not exhaust memory when processing million-entry directories
11482         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11483         directory would require about 256*N bytes of memory.  Thus, it was
11484         easy to construct a directory too large to be processed by any of
11485         those tools.  With this change, fts' maximum memory utilization is
11486         now limited to around 30MB.
11487         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11488         (fts_read): When we've processed the final entry (i.e., when
11489         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11490         using the parent entry to read any remaining entries.  Dispatch
11491         depending on what fts_build returns:
11492         - NULL+stop, aka failure: stop
11493         - NULL otherwise: move up in the dir hierarchy
11494         - non-NULL: handle this new entry
11495         (fts_build): Declare and use new local, continue_readdir.
11496         Prepare to be called from fts_read, when the entries
11497         from a partially-read directory have just been exhausted.
11498         In that case, we'll skip the opendir and instead use the parent's
11499         fts_dirp and derive dir_fd from that.
11500         Finally, in the readdir loop, if we read max_entries entries,
11501         exit the loop ensuring *not* to call closedir.  This is required
11502         so that fts_dirp can be reused on a subsequent call.
11503         Prompted by Ben England's report of memory exhaustion in find
11504         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11505
11506         maint: fts: move decl of `dp' down into while loop; split a long line
11507         * lib/fts.c (fts_build): No semantic change.
11508
11509         fts: add/use new struct member, fts_dirp
11510         We are about to use this to manage any directory with
11511         too many entries to read all of them into memory at once.
11512         To do that, we'll need to save the DIR* pointer in each
11513         affected FTSENT struct.
11514         * lib/fts_.h: Include <dirent.h>.
11515         (struct FTSENT) [fts_dirp]: New member.
11516         * lib/fts.c (closedir_and_clear): Define.
11517         Use it in place of closedir so that we are sure to
11518         clear the new fts_dirp member when done with it.
11519         (fts_alloc): Initialize the new member.
11520         (fts_lfree): Free, if needed.
11521
11522         maint: fts: give __opendir2 a new parameter and rename
11523         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11524         than surreptitiously using sole caller's "dir_fd".
11525         (fts_opendir): Rename from __opendir2.
11526
11527         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11528         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11529
11530         maint: fts.c: correct off-by-one indentation
11531         * lib/fts.c (fts_build): Correct indentation, change style
11532         of a couple of block comments, and bracing style.
11533
11534         maint: fts.c: move __opendir2 #define "up" out of function body
11535         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11536
11537         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11538         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11539         out for a long time and besides was useful only on BSD systems.
11540
11541 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11542
11543         regex: port to Stratus OpenVOS
11544         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11545         define to empty, rather than attempting nonportable optimizations.
11546         Problem reported by Paul Green in:
11547         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11548         and fix suggested by Eric Blake in:
11549         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11550
11551 2011-08-17  Eric Blake  <eblake@redhat.com>
11552
11553         getcwd: fix test failures on mingw
11554         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11555         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11556         test if long directory cannot be created, and allow mingw errno.
11557
11558         getcwd-lgpl: fix m4 to match relaxed test for BSD
11559         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11560         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11561         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11562         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11563         signature problem.
11564
11565         getcwd: fix compilation on mingw64
11566         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11567         getcwd.
11568         Reported by Marc-André Lureau.
11569
11570         pipe2: silence compiler warning
11571         * lib/pipe2.c (pipe2): Hide label if it is not used.
11572
11573 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11574
11575         relocatable-prog: fix link error
11576         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11577         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11578         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11579         into modules/relocatable-lib without noticing that
11580         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11581         also needs to build relocatable.c.
11582
11583 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11584
11585         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11587         shell code: it contained a 'break' that was not in a loop.
11588         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11589         via a shell-language loop; this may have been true in old Autoconf
11590         versions, but it's not true in Autoconf 2.68.  I found this bug
11591         when testing coreutils git on Solaris 8, whose shell complains
11592         about the syntax error.
11593
11594 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11595
11596         * lib/base64.c: Fix comment to reference RFC 4648.
11597         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11598         <gvtulder@gmail.com>.
11599
11600 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11601
11602         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11603
11604         po/Makefile.in.in: fix make -q problem
11605         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11606         rule, since there's no file named 'check-macro-version' and its
11607         use as a file breaks make -q.
11608         (all): Don't depend on check-macro-version.
11609         (CHECK_MACRO_VERSION): New macro.
11610         (stamp-po): Use it.
11611
11612         configmake: fix make -q problem
11613         * modules/configmake (configmake.h): Update configmake.h's time stamp
11614         even if the file does not change.  Otherwise, 'make -q' fails.
11615         Problem reported by Simon Josefsson in
11616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11617
11618 2011-08-11  Jim Meyering  <meyering@redhat.com>
11619
11620         git-version-gen: correct the advice in a comment
11621         * build-aux/git-version-gen: Correct comment.
11622         Don't recommend to list .tarball-version in .gitignore.
11623
11624 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         base64: fix off-by-one buffer size bug
11627         Problem and (trivial) fix reported by Gijs van Tulder in
11628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11629         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11630         * tests/test-base64.c (main): Catch the bug.
11631
11632 2011-08-10  Eric Blake  <eblake@redhat.com>
11633
11634         closein: correct comments
11635         * lib/closein.c (close_stdin): Improve comments.
11636
11637 2011-08-09  Bruno Haible  <bruno@clisp.org>
11638
11639         More tests for 'fseeko'.
11640         * tests/test-fseeko3.c: New file, from Eric Blake.
11641         * tests/test-fseeko3.sh: New file.
11642         * modules/fseeko-tests (Files): Add them.
11643         (TESTS): Add test-fseeko3.sh.
11644         (check_PROGRAMS): Add test-fseeko3.
11645
11646 2011-08-09  Eric Blake  <eblake@redhat.com>
11647
11648         fseeko: remove unneeded hack
11649         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11650
11651         fseeko: fix bug on glibc
11652         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11653         Reported by John W. Eaton.
11654
11655 2011-08-08  Bruno Haible  <bruno@clisp.org>
11656
11657         unictype/base: Fix interoperability with preinstalled libunistring.
11658         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11659         Reported by Simon Josefsson.
11660
11661 2011-08-08  Bruno Haible  <bruno@clisp.org>
11662
11663         iswblank: Detect declaration correctly.
11664         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11665         AC_CHECK_DECLS invocation.
11666
11667 2011-08-08  Bruno Haible  <bruno@clisp.org>
11668
11669         tcgetsid: Detect declaration correctly.
11670         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11671         AC_CHECK_DECLS invocation.
11672         Reported by Simon Josefsson.
11673
11674 2011-08-08  Eric Blake  <eblake@redhat.com>
11675
11676         largefile: fix typo that regressed large file support
11677         * modules/largefile (configure.ac-early): Fix section name.
11678
11679 2011-08-06  Karl Berry  <karl@gnu.org>
11680
11681         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11682         a separate module.
11683
11684 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11685
11686         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11687         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11688         get prototype for free.
11689
11690 2011-08-04  Bruno Haible  <bruno@clisp.org>
11691
11692         Tests for module 'pathmax'.
11693         * modules/pathmax-tests: New file.
11694         * tests/test-pathmax.c: New file.
11695
11696         canonicalize-lgpl: Support larger filenames on the Hurd.
11697         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11698         Reported by Paul Eggert.
11699
11700         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11701         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11702         * lib/chdir-long.h: Include pathmax.h.
11703         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11704         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11705         (PATH_MAX): Remove code that is done by pathmax.h.
11706         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11707         * lib/tmpfile.c: Add a comment.
11708         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11709         * modules/chdir-long (Depends-on): Add pathmax.
11710         * modules/getcwd (Depends-on): Add pathmax.
11711         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11712         is not defined.
11713         * doc/posix-headers/limits.texi: Mention the pathmax module.
11714         * NEWS: Mention the change.
11715
11716 2011-08-02  Bruno Haible  <bruno@clisp.org>
11717
11718         pthread_sigmask: Actually use results of gl_THREADLIB.
11719         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11720         gl_THREADLIB, not gl_[]THREADLIB.
11721         Reported by Eric Blake.
11722
11723 2011-08-02  Jim Meyering  <meyering@redhat.com>
11724
11725         maint.mk: relax the default _gl_TS_function_match regexp
11726         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11727         space between function name and "(" in an "extern" declaration.
11728         That would fail to match a decl with no space there: extern void foo();
11729
11730 2011-07-31  Iain Nicol  <iain@thenicols.net>
11731
11732         git-version-gen: document that EXTRA_DIST must include .version
11733         * build-aux/git-version-gen: In the how-to-use comment, document
11734         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11735         will fail when run from an unpacked distribution tarball.
11736
11737 2011-08-01  Bruno Haible  <bruno@clisp.org>
11738
11739         wctype-h: Fix last change.
11740         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11741         REPLACE_TOWLOWER to 0.
11742         Reported by Sam Steingold <sds@gnu.org>.
11743
11744 2011-07-31  Bruno Haible  <bruno@clisp.org>
11745
11746         frexpl: Update autoconf test.
11747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11748         according to changes of 2011-06-20.
11749
11750 2011-07-31  Bruno Haible  <bruno@clisp.org>
11751
11752         sys_utsname: Add support for Minix.
11753         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11754         <sys/utsname.h>.
11755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11756         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11757
11758 2011-07-31  Bruno Haible  <bruno@clisp.org>
11759
11760         strings: Add support for Minix.
11761         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11762         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11763         * doc/posix-headers/strings.texi: Document the Minix problem.
11764
11765 2011-07-31  Bruno Haible  <bruno@clisp.org>
11766
11767         wctype-h: Add support for Minix.
11768         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11769         REPLACE_TOWLOWER.
11770         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11771         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11772         REPLACE_ISWCNTRL.
11773
11774 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11777         This is a performance improvement for 64-bit hosts: it causes the
11778         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11779
11780 2011-07-31  Bruno Haible  <bruno@clisp.org>
11781
11782         stdioext: Add support for Minix.
11783         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11784         * lib/fpurge.c (fpurge): Likewise.
11785         * lib/freadahead.c (freadahead): Likewise.
11786         * lib/freadable.c (freadable): Likewise.
11787         * lib/freading.c (freading): Likewise.
11788         * lib/freadptr.c (freadptr): Likewise.
11789         * lib/freadseek.c (freadptrinc): Likewise.
11790         * lib/fseeko.c (rpl_fseeko): Likewise.
11791         * lib/fseterr.c (fseterr): Likewise.
11792         * lib/fwritable.c (fwritable): Likewise.
11793         * lib/fwriting.c (fwriting): Likewise.
11794         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11795         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11796
11797 2011-07-31  Bruno Haible  <bruno@clisp.org>
11798
11799         errno: Port to Minix.
11800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11801         ECONNABORTED are defined.
11802         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11803         GNULIB_defined_ECONNABORTED): New macros.
11804         * lib/strerror-override.h (strerror_override): Test also
11805         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11806         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11807         ECONNABORTED.
11808         * doc/posix-headers/errno.texi: Mention the Minix problem.
11809
11810 2011-07-31  Bruno Haible  <bruno@clisp.org>
11811
11812         Work around declaration collisions on Minix.
11813         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11814         defined, set REPLACE_MBSINIT.
11815         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11816         defined, set REPLACE_MBRTOWC.
11817         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11818         set REPLACE_MBRLEN.
11819         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11820         defined, set REPLACE_MBSRTOWCS.
11821         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11822         defined, set REPLACE_WCRTOMB.
11823         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11824         defined, set REPLACE_WCSRTOMBS.
11825
11826 2011-07-31  Bruno Haible  <bruno@clisp.org>
11827
11828         Add support for Minix with ACK compiler.
11829         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11830         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11831         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11832
11833 2011-07-31  Bruno Haible  <bruno@clisp.org>
11834
11835         Documentation about Minix.
11836         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11837         * doc/glibc-headers/*.texi: Likewise.
11838         * doc/posix-functions/*.texi: Likewise.
11839         * doc/glibc-functions/*.texi: Likewise.
11840
11841 2011-07-31  Bruno Haible  <bruno@clisp.org>
11842
11843         snippet/warn-on-use: Fix indentation.
11844         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11845
11846 2011-07-25  Jim Meyering  <meyering@redhat.com>
11847
11848         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11849         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11850         commands.
11851
11852 2011-07-27  Jim Meyering  <meyering@redhat.com>
11853
11854         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11855         * top/maint.mk (gl_extract_significant_defines_): Now that
11856         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11857         gnulib/lib/signal.in.h, and now that we recommend to
11858         define-if-undefined those two symbols in application code,
11859         we must filter them out of the "significant" list.
11860         This avoids a "make syntax-check" failure in coreutils.
11861
11862 2011-07-26  Eric Blake  <eblake@redhat.com>
11863
11864         warnings: add comments about previous patch
11865         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11866         * m4/include_next.m4: Likewise.
11867         * m4/warn-on-use.m4: Likewise.
11868         * m4/warnings.m4: Likewise, and simplify use.
11869         Suggested by Stefano Lattarini.
11870
11871         include-next, warnings: support older autoconf
11872         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11873         AS_VAR_PUSHDEF in a way that works with older autoconf.
11874         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11875         Reported by Daniel P. Berrange.
11876
11877 2011-07-25  Bruno Haible  <bruno@clisp.org>
11878
11879         fseek, ftell: Fix doc.
11880         * doc/posix-functions/fseek.texi: Reword statement about
11881         AC_SYS_LARGEFILE.
11882         * doc/posix-functions/ftell.texi: Likewise.
11883
11884 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11885             Bruno Haible  <bruno@clisp.org>
11886
11887         Add dependencies to the 'largefile' module.
11888         * modules/fopen (Depends-on): Add 'largefile'.
11889         * modules/freopen (Depends-on): Likewise.
11890         * modules/fseeko (Depends-on): Likewise.
11891         * modules/ftello (Depends-on): Likewise.
11892         * modules/glob (Depends-on): Likewise.
11893         * modules/lseek (Depends-on): Likewise.
11894         * modules/lstat (Depends-on): Likewise.
11895         * modules/mkostemp (Depends-on): Likewise.
11896         * modules/mkostemps (Depends-on): Likewise.
11897         * modules/mkstemp (Depends-on): Likewise.
11898         * modules/mkstemps (Depends-on): Likewise.
11899         * modules/open (Depends-on): Likewise.
11900         * modules/openat (Depends-on): Likewise.
11901         * modules/pread (Depends-on): Likewise.
11902         * modules/pwrite (Depends-on): Likewise.
11903         * modules/scandir (Depends-on): Likewise.
11904         * modules/stat (Depends-on): Likewise.
11905         * modules/tmpfile (Depends-on): Likewise.
11906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11907         since the containing module now depends on the largefile module.
11908         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11909         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11910         off_t is fixed by gnulib.
11911         * doc/posix-functions/freopen.texi: Likewise.
11912         * doc/posix-functions/fseeko.texi: Likewise.
11913         * doc/posix-functions/fstatat.texi: Likewise.
11914         * doc/posix-functions/ftello.texi: Likewise.
11915         * doc/posix-functions/glob.texi: Likewise.
11916         * doc/posix-functions/lseek.texi: Likewise.
11917         * doc/posix-functions/lstat.texi: Likewise.
11918         * doc/posix-functions/mkstemp.texi: Likewise.
11919         * doc/posix-functions/open.texi: Likewise.
11920         * doc/posix-functions/openat.texi: Likewise.
11921         * doc/posix-functions/pread.texi: Likewise.
11922         * doc/posix-functions/pwrite.texi: Likewise.
11923         * doc/posix-functions/scandir.texi: Likewise.
11924         * doc/posix-functions/stat.texi: Likewise.
11925         * doc/posix-functions/tmpfile.texi: Likewise.
11926         * doc/glibc-functions/mkostemp.texi: Likewise.
11927         * doc/glibc-functions/mkostemps.texi: Likewise.
11928         * doc/glibc-functions/mkstemps.texi: Likewise.
11929
11930 2011-07-25  Bruno Haible  <bruno@clisp.org>
11931
11932         fcntl: Move AC_LIBOBJ invocation to module description.
11933         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11934         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11935
11936         fcntl: Remove call-in from fchdir.m4.
11937         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11939
11940         dup3: Remove potential call-in from fchdir.m4.
11941         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11943
11944         dup2: Move AC_LIBOBJ invocation to module description.
11945         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11946         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11947         Don't invoke AC_LIBOBJ.
11948         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11949
11950         dup2: Remove call-in from fchdir.m4.
11951         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11953
11954         fclose: Move AC_LIBOBJ invocation to module description.
11955         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11956         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11957         to 1.
11958         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11959
11960         fclose: Remove call-in from close.m4.
11961         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11962         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11963
11964         close: Move AC_LIBOBJ invocation to module description.
11965         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11966         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11967         1.
11968         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11969
11970         close: Remove call-in from fchdir.m4.
11971         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11973
11974         open: Move AC_LIBOBJ invocation to module description.
11975         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11976         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11977         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11978
11979         open: Remove call-in from fchdir.m4.
11980         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11982
11983         fchdir: Start to remove gl_REPLACE_* idiom.
11984         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11985         (gl_FUNC_FCHDIR): Invoke it.
11986
11987 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11988
11989         * lib/ftell.c (ftell): Comment out cast.
11990
11991         close: use gl_REPLACE_FCLOSE only if defined
11992         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11993         is defined.  The close module doesn't depend on the fclose module
11994         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11996         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11997
11998 2011-07-24  Jim Meyering  <meyering@redhat.com>
11999
12000         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12001         * tests/test-select.h (test_function): Declare as "static".
12002
12003 2011-07-24  Bruno Haible  <bruno@clisp.org>
12004
12005         doc: Mention the effects of AC_SYS_LARGEFILE.
12006         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12007         on this function.
12008         * doc/posix-functions/aio_error.texi: Likewise.
12009         * doc/posix-functions/aio_fsync.texi: Likewise.
12010         * doc/posix-functions/aio_read.texi: Likewise.
12011         * doc/posix-functions/aio_return.texi: Likewise.
12012         * doc/posix-functions/aio_suspend.texi: Likewise.
12013         * doc/posix-functions/aio_write.texi: Likewise.
12014         * doc/posix-functions/fgetpos.texi: Likewise.
12015         * doc/posix-functions/fopen.texi: Likewise.
12016         * doc/posix-functions/freopen.texi: Likewise.
12017         * doc/posix-functions/fsetpos.texi: Likewise.
12018         * doc/posix-functions/fstatvfs.texi: Likewise.
12019         * doc/posix-functions/ftruncate.texi: Likewise.
12020         * doc/posix-functions/ftw.texi: Likewise.
12021         * doc/posix-functions/getrlimit.texi: Likewise.
12022         * doc/posix-functions/glob.texi: Likewise.
12023         * doc/posix-functions/lio_listio.texi: Likewise.
12024         * doc/posix-functions/lockf.texi: Likewise.
12025         * doc/posix-functions/mkstemp.texi: Likewise.
12026         * doc/posix-functions/mmap.texi: Likewise.
12027         * doc/posix-functions/nftw.texi: Likewise.
12028         * doc/posix-functions/openat.texi: Likewise.
12029         * doc/posix-functions/opendir.texi: Likewise.
12030         * doc/posix-functions/posix_fadvise.texi: Likewise.
12031         * doc/posix-functions/posix_fallocate.texi: Likewise.
12032         * doc/posix-functions/pread.texi: Likewise.
12033         * doc/posix-functions/pwrite.texi: Likewise.
12034         * doc/posix-functions/readdir.texi: Likewise.
12035         * doc/posix-functions/readdir_r.texi: Likewise.
12036         * doc/posix-functions/rewinddir.texi: Likewise.
12037         * doc/posix-functions/scandir.texi: Likewise.
12038         * doc/posix-functions/seekdir.texi: Likewise.
12039         * doc/posix-functions/setrlimit.texi: Likewise.
12040         * doc/posix-functions/statvfs.texi: Likewise.
12041         * doc/posix-functions/telldir.texi: Likewise.
12042         * doc/posix-functions/tmpfile.texi: Likewise.
12043         * doc/posix-functions/truncate.texi: Likewise.
12044         * doc/glibc-functions/fallocate.texi: Likewise.
12045         * doc/glibc-functions/fstatfs.texi: Likewise.
12046         * doc/glibc-functions/fts_children.texi: Likewise.
12047         * doc/glibc-functions/fts_read.texi: Likewise.
12048         * doc/glibc-functions/getdirentries.texi: Likewise.
12049         * doc/glibc-functions/mkostemp.texi: Likewise.
12050         * doc/glibc-functions/mkostemps.texi: Likewise.
12051         * doc/glibc-functions/mkstemps.texi: Likewise.
12052         * doc/glibc-functions/preadv.texi: Likewise.
12053         * doc/glibc-functions/pwritev.texi: Likewise.
12054         * doc/glibc-functions/sendfile.texi: Likewise.
12055         * doc/glibc-functions/statfs.texi: Likewise.
12056
12057 2011-07-24  Bruno Haible  <bruno@clisp.org>
12058
12059         doc: Fix typo.
12060         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12061
12062 2011-07-24  Bruno Haible  <bruno@clisp.org>
12063
12064         doc: Mention fsusage.
12065         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12066
12067 2011-07-24  Bruno Haible  <bruno@clisp.org>
12068
12069         doc: Mention new glibc headers and functions.
12070         * doc/glibc-headers/gshadow.texi: New file.
12071         * doc/glibc-functions/endsgent.texi: New file.
12072         * doc/glibc-functions/fgetsgent.texi: New file.
12073         * doc/glibc-functions/fgetsgent_r.texi: New file.
12074         * doc/glibc-functions/getsgent.texi: New file.
12075         * doc/glibc-functions/getsgent_r.texi: New file.
12076         * doc/glibc-functions/getsgnam.texi: New file.
12077         * doc/glibc-functions/getsgnam_r.texi: New file.
12078         * doc/glibc-functions/putsgent.texi: New file.
12079         * doc/glibc-functions/setsgent.texi: New file.
12080         * doc/glibc-functions/sgetsgent.texi: New file.
12081         * doc/glibc-functions/sgetsgent_r.texi: New file.
12082         * doc/glibc-functions/malloc_info.texi: New file.
12083         * doc/glibc-functions/preadv.texi: New file.
12084         * doc/glibc-functions/pwritev.texi: New file.
12085         * doc/glibc-functions/register_printf_modifier.texi: New file.
12086         * doc/glibc-functions/register_printf_specifier.texi: New file.
12087         * doc/glibc-functions/register_printf_type.texi: New file.
12088         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12089         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12090         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12091         * doc/glibc-functions/pthread_getname_np.texi: New file.
12092         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12093         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12094         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12095         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12096         * doc/glibc-functions/pthread_setname_np.texi: New file.
12097         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12098         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12099         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12100         * doc/glibc-functions/qsort_r.texi: New file.
12101         * doc/glibc-functions/quick_exit.texi: New file.
12102         * doc/glibc-functions/syncfs.texi: New file.
12103         * doc/gnulib.texi: Include them.
12104         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12105         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12106         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12107         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12108         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12109         * doc/glibc-functions/execvpe.texi: Likewise.
12110
12111 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12112
12113         ftell: don't include <unistd.h>
12114         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12115         guaranteed to define off_t, and the ftell module depends on the
12116         stdio module.
12117
12118         ftell: do not assume wraparound signed arithmetic
12119         * lib/ftell.c: Include <limits.h>.
12120         (ftell): Don't assume wraparound signed arithmetic.
12121
12122 2011-07-24  Bruno Haible  <bruno@clisp.org>
12123
12124         close: No longer depend on module 'fclose'.
12125         * modules/close (Depends-on): Remove fclose.
12126         * NEWS: Mention the change.
12127         Suggested by Sam Steingold <sds@gnu.org>.
12128
12129 2011-07-24  Bruno Haible  <bruno@clisp.org>
12130
12131         fsusage: Enable large volume support on AIX >= 5.2.
12132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12133         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12134         instead of STAT_STATVFS.
12135         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12136
12137         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12138         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12139         f_blocks field only on MacOS X.
12140
12141         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12142         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12143         * modules/fsusage (Depends-on): Add largefile.
12144
12145 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12146
12147         * README: Modernize discussion of signed integers.
12148         Assuming overflow wraparound is no longer safe.
12149         Mention ones' complement and signed magnitude.
12150
12151 2011-07-22  Bruno Haible  <bruno@clisp.org>
12152
12153         select tests, pselect tests: Refactor.
12154         * tests/test-select.h: New file, extracted from tests/test-select.c.
12155         (select_fn): New type.
12156         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12157         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12158         test_pipe): Add my_select argument.
12159         (test_function): Renamed from main. Add my_select argument.
12160         * tests/test-select.c: Move most code to tests/test-select.h. Include
12161         test-select.h.
12162         * modules/select-tests (Files): Add tests/test-select.h.
12163         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12164         (my_select, main): New functions.
12165         * modules/pselect-tests (Files): Add tests/test-select.h,
12166         tests/macros.h, tests/signature.h.
12167         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12168         (configure.ac): Check for <sys/wait.h>.
12169
12170 2011-07-22  Bruno Haible  <bruno@clisp.org>
12171
12172         sys_select tests: Check the signature of FD_*.
12173         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12174         signature tests from here...
12175         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12176         here.
12177         * modules/sys_select-tests (Files): Add tests/signature.h.
12178
12179 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         largefile: new module, replacing large-inode
12182         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12183         * MODULES.html.sh: Add largefile, remove large-inode.
12184         * modules/largefile, m4/largefile.m4: New files.
12185         * modules/large-inode, m4/large-inode.m4: Remove.
12186
12187         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12188         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12189         implementations that use only 32 bits to count blocks.
12190         On typical hosts with 1024-byte blocks, this fails with file
12191         systems as small as 4 TiB.  Problem reported by Herb Wartens
12192         <http://debbugs.gnu.org/9140> and this should also fix a similar
12193         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12194
12195         large-inode: New module
12196         * MODULES.html.sh: Add it.
12197         * modules/large-inode, m4/large-inode.m4: New files.
12198
12199         extensions: Enable extensions on MacOS X 10.5 and later.
12200         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12201
12202 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12203
12204         file-has-acl: use acl_extended_file_nofollow if available
12205         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12206         (acl_extended_file): New macro.
12207         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12208         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12209
12210 2011-07-21  Bruno Haible  <bruno@clisp.org>
12211
12212         Declare system functions in a way that works with C++.
12213         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12214         declare fdopendir as extern "C".
12215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12216         declare frexpl as extern "C".
12217         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12218         declare gai_strerror as extern "C".
12219         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12220         programs, declare gai_strerror as extern "C".
12221         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12222         declare getlogin_r as extern "C".
12223         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12224         as extern "C".
12225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12226         declare ldexpl as extern "C".
12227         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12228         as extern "C".
12229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12230         program, declare getmntinfo as extern "C".
12231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12232         stpncpy as extern "C".
12233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12234         program, declare __xpg_strerror_r as extern "C".
12235         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12236         strndup as extern "C".
12237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12238         declare memset and bzero as extern "C".
12239         Reported by Sam Steingold <sds@gnu.org>.
12240
12241 2011-07-12  Jim Meyering  <meyering@redhat.com>
12242
12243         maint.mk: prohibit inclusion of "verify.h" without use
12244         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12245
12246 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12247
12248         timer-time: A new module to check for timer_settime()
12249         * m4/timer_time.m4: Check for the posix function.
12250         * modules/timer-time: Add the new module.
12251         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12252         Mention it.
12253
12254 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12255             Bruno Haible  <bruno@clisp.org>
12256
12257         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12258         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12259         not defined, assume POSIX threads and look for pthread_sigmask in
12260         $LIBS, without changing $CPPFLAGS.
12261
12262 2011-07-19  Bruno Haible  <bruno@clisp.org>
12263
12264         strstr: Update cross-compilation guess.
12265         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12266         CPUs, guess no, in view of glibc
12267         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12268         Suggested by Eric Blake. Reported by Reuben Thomas.
12269
12270 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12271
12272         getopt-gnu: suppress core dumps from detection code
12273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12274         to suppress core dumps that may well occur on glibc systems.
12275         * modules/getopt-gnu: Depend on nocrash.
12276
12277 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         pthread_sigmask: ensure usleep is declared
12280         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12281         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12282
12283 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         doc: Document NonStop portability issues.
12286         * doc/posix-functions/sigaction.texi (sigaction):
12287         * doc/posix-headers/signal.texi (signal.h):
12288         Document NonStop.  See Joachim Schmitz in
12289         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12290
12291 2011-07-15  Bruno Haible  <bruno@clisp.org>
12292
12293         ffsl, ffsll: Avoid unportable behaviour.
12294         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12295
12296 2011-07-15  Bruno Haible  <bruno@clisp.org>
12297
12298         ffs: More tests.
12299         * tests/test-ffs.c (NBITS): New macro.
12300         (main): Add more tests.
12301         * tests/test-ffsl.c (NBITS): New macro.
12302         (main): Add more tests.
12303         * tests/test-ffsll.c (NBITS): New macro.
12304         (main): Add more tests.
12305
12306 2011-07-15  Eric Blake  <eblake@redhat.com>
12307
12308         ffsl, ffsll: new modules
12309         * modules/ffsl: New file.
12310         * modules/ffsll: Likewise.
12311         * m4/ffsl.m4: Likewise.
12312         * m4/ffsll.m4: Likewise.
12313         * lib/ffsl.c: Likewise.
12314         * lib/ffsl.h: Likewise.
12315         * lib/ffsll.c: Likewise.
12316         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12317         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12318         * modules/string (Makefile.am): Substitute witnesses.
12319         * lib/strings.in.h (ffsl, ffsll): Declare.
12320         * modules/ffsl-tests: New test file.
12321         * modules/ffsll-tests: Likewise.
12322         * tests/test-ffsl.c: Likewise.
12323         * tests/test-ffsll.c: Likewise.
12324         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12325         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12326         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12327
12328         ffs: fix m4 prerequisite
12329         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12330
12331         ffs: avoid undefined behavior
12332         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12333         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12334         Reported by Bruno Haible.
12335
12336 2011-07-12  Bruno Haible  <bruno@clisp.org>
12337
12338         pthread_sigmask: Rely on module 'threadlib'.
12339         * modules/pthread_sigmask (Depends-on): Add threadlib.
12340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12341         is defined.
12342
12343 2011-07-12  Bruno Haible  <bruno@clisp.org>
12344
12345         regex: Depend on module 'strcase'.
12346         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12347
12348 2011-07-12  Jim Meyering  <meyering@redhat.com>
12349
12350         warn-on-use: fix typo in file name
12351         * modules/snippet/warn-on-use (Files): Correct file name:
12352         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12353
12354 2011-07-12  Bruno Haible  <bruno@clisp.org>
12355
12356         strings: Document module.
12357         * doc/posix-headers/strings.texi: Mention module 'strings'.
12358
12359 2011-07-12  Bruno Haible  <bruno@clisp.org>
12360
12361         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12362         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12363         (Files, Makefile.am): Update.
12364         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12365         * modules/stdlib (Depends-on): Update.
12366
12367 2011-07-12  Bruno Haible  <bruno@clisp.org>
12368
12369         * NEWS: Mention the changes.
12370
12371         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12372         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12373         (Files, Makefile.am): Update.
12374         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12375         * modules/arpa_inet (Depends-on): Update.
12376         * modules/ctype (Depends-on): Update.
12377         * modules/dirent (Depends-on): Update.
12378         * modules/fcntl-h (Depends-on): Update.
12379         * modules/glob (Depends-on): Update.
12380         * modules/iconv-h (Depends-on): Update.
12381         * modules/inttypes-incomplete (Depends-on): Update.
12382         * modules/langinfo (Depends-on): Update.
12383         * modules/locale (Depends-on): Update.
12384         * modules/math (Depends-on): Update.
12385         * modules/netdb (Depends-on): Update.
12386         * modules/poll-h (Depends-on): Update.
12387         * modules/pty (Depends-on): Update.
12388         * modules/search (Depends-on): Update.
12389         * modules/signal (Depends-on): Update.
12390         * modules/spawn (Depends-on): Update.
12391         * modules/stdio (Depends-on): Update.
12392         * modules/stdlib (Depends-on): Update.
12393         * modules/string (Depends-on): Update.
12394         * modules/strings (Depends-on): Update.
12395         * modules/sys_file (Depends-on): Update.
12396         * modules/sys_ioctl (Depends-on): Update.
12397         * modules/sys_select (Depends-on): Update.
12398         * modules/sys_socket (Depends-on): Update.
12399         * modules/sys_stat (Depends-on): Update.
12400         * modules/sys_time (Depends-on): Update.
12401         * modules/sys_times (Depends-on): Update.
12402         * modules/sys_utsname (Depends-on): Update.
12403         * modules/sys_wait (Depends-on): Update.
12404         * modules/termios (Depends-on): Update.
12405         * modules/time (Depends-on): Update.
12406         * modules/unistd (Depends-on): Update.
12407         * modules/wchar (Depends-on): Update.
12408         * modules/wctype-h (Depends-on): Update.
12409         * MODULES.html.sh (Support for building libraries and executables):
12410         Update.
12411
12412         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12413         * modules/snippet/unused-parameter: Renamed from
12414         modules/unused-parameter.
12415         (Files, Makefile.am): Update.
12416         * build-aux/snippet/unused-parameter.h: Renamed from
12417         build-aux/unused-parameter.h.
12418         * modules/selinux-h (Depends-on): Update.
12419         * modules/unistr/base (Depends-on): Update.
12420         * MODULES.html.sh (Core language properties): Update.
12421
12422         Rename module 'link-warning' to 'snippet/link-warning'.
12423         * modules/snippet/link-warning: Renamed from modules/link-warning.
12424         (Files, Makefile.am): Update.
12425         * build-aux/snippet/link-warning.h: Renamed from
12426         build-aux/link-warning.h.
12427         * MODULES.html.sh (Support for building libraries and executables):
12428         Update.
12429
12430         Rename module 'c++defs' to 'snippet/c++defs'.
12431         * modules/snippet/c++defs: Renamed from modules/c++defs.
12432         (Files, Makefile.am): Update.
12433         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12434         * modules/arpa_inet (Depends-on): Update.
12435         * modules/ctype (Depends-on): Update.
12436         * modules/dirent (Depends-on): Update.
12437         * modules/fcntl-h (Depends-on): Update.
12438         * modules/glob (Depends-on): Update.
12439         * modules/iconv-h (Depends-on): Update.
12440         * modules/langinfo (Depends-on): Update.
12441         * modules/locale (Depends-on): Update.
12442         * modules/math (Depends-on): Update.
12443         * modules/netdb (Depends-on): Update.
12444         * modules/poll-h (Depends-on): Update.
12445         * modules/pty (Depends-on): Update.
12446         * modules/search (Depends-on): Update.
12447         * modules/signal (Depends-on): Update.
12448         * modules/spawn (Depends-on): Update.
12449         * modules/stdio (Depends-on): Update.
12450         * modules/stdlib (Depends-on): Update.
12451         * modules/string (Depends-on): Update.
12452         * modules/strings (Depends-on): Update.
12453         * modules/sys_ioctl (Depends-on): Update.
12454         * modules/sys_select (Depends-on): Update.
12455         * modules/sys_socket (Depends-on): Update.
12456         * modules/sys_stat (Depends-on): Update.
12457         * modules/sys_time (Depends-on): Update.
12458         * modules/sys_wait (Depends-on): Update.
12459         * modules/termios (Depends-on): Update.
12460         * modules/time (Depends-on): Update.
12461         * modules/unistd (Depends-on): Update.
12462         * modules/wchar (Depends-on): Update.
12463         * modules/wctype-h (Depends-on): Update.
12464
12465         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12466         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12467         (Files, Makefile.am): Update.
12468         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12469         * modules/argv-iter (Depends-on): Update.
12470         * modules/arpa_inet (Depends-on): Update.
12471         * modules/dirent (Depends-on): Update.
12472         * modules/fcntl-h (Depends-on): Update.
12473         * modules/fnmatch (Depends-on): Update.
12474         * modules/getopt-posix (Depends-on): Update.
12475         * modules/glob (Depends-on): Update.
12476         * modules/iconv-h (Depends-on): Update.
12477         * modules/inttypes-incomplete (Depends-on): Update.
12478         * modules/locale (Depends-on): Update.
12479         * modules/math (Depends-on): Update.
12480         * modules/netdb (Depends-on): Update.
12481         * modules/search (Depends-on): Update.
12482         * modules/signal (Depends-on): Update.
12483         * modules/spawn (Depends-on): Update.
12484         * modules/stdio (Depends-on): Update.
12485         * modules/stdlib (Depends-on): Update.
12486         * modules/string (Depends-on): Update.
12487         * modules/strings (Depends-on): Update.
12488         * modules/sys_socket (Depends-on): Update.
12489         * modules/sys_stat (Depends-on): Update.
12490         * modules/sys_time (Depends-on): Update.
12491         * modules/sys_times (Depends-on): Update.
12492         * modules/sys_utsname (Depends-on): Update.
12493         * modules/time (Depends-on): Update.
12494         * modules/unistd (Depends-on): Update.
12495         * modules/wchar (Depends-on): Update.
12496         * MODULES.html.sh (Support for building libraries and executables):
12497         Update.
12498
12499 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12500
12501         Improvements on _Noreturn and related modules.
12502
12503         modules/_Exit-tests: test _Noreturn too
12504         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12505         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12506         (main): Use them.
12507
12508         stdnoreturn, stdnoreturn-tests: remove modules
12509         They're not needed here and a bit premature for use elsewhere.  See
12510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12511         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12512         * tests/test-stdnoreturn.c: Remove files.
12513         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12514         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12515         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12516         and using noreturn.
12517         * modules/openat, modules/sigpipe-die, modules/xalloc:
12518         * modules/xmemdup0, modules/xstrtol:
12519         Remove dependency on stdnoreturn.
12520
12521         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12522         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12523         Reparenthesize to avoid GCC warning.
12524         Support Microsoft's syntax.
12525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12526
12527         _Noreturn-tests: remove module
12528         * modules/_Noreturn-tests: Remove.
12529         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12530         * tests/test-_Noreturn.c: Remove.
12531         * tests/test-stdnoreturn.c: Merge from the old
12532         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12533
12534 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         _Noreturn, stdnoreturn, and related modules.
12537
12538         * top/maint.mk: Adjust to new noreturn support.
12539         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12540         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12541
12542         xalloc: use stdnoreturn.h
12543         * lib/xalloc.h: Include <stdnoreturn.h>.
12544         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12545         * modules/xalloc (Depends-on): Add stdnoreturn.
12546
12547         xstrtol: use stdnoreturn.h
12548         * lib/xstrtol.h: Include <stdnoreturn.h>.
12549         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12550         * modules/xstrtol (Depends-on): Add stdnoreturn.
12551
12552         xmemdup0: use stdnoreturn.h
12553         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12554         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12555         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12556
12557         sigpipe-die: use stdnoreturn.h
12558         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12559         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12560         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12561
12562         openat: use stdnoreturn.h
12563         * lib/openat.h: Include <stdnoreturn.h>.
12564         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12565         * modules/openat (Depends-on): Add stdnoreturn.
12566
12567         * lib/openat-die.c (openat_save_fail): Modernize comment.
12568
12569         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12570
12571         * lib/glthread/thread.h: Modernize comment.
12572
12573         obstack: use _Noreturn
12574         * lib/obstack.c (__attribute__): Remove macro.
12575         (print_and_abort): Use _Noreturn.
12576
12577         c-stack: use _Noreturn
12578         * lib/c-stack.c (die, overflow_handler, segv_handler):
12579         Use _Noreturn rather than __attribute__((noreturn)).
12580
12581         argmatch-tests, exclude_tests: use _Noreturn
12582         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12583         Remove.
12584         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12585
12586         stdlib: use _Noreturn
12587         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12588         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12589         * modules/stdlib (Depends-on): Add _Noreturn.
12590         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12591
12592         stdnoreturn-tests: new module
12593         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12594
12595         stdnoreturn: new module
12596         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12597         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12598
12599         _Noreturn-tests: new module
12600         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12601
12602         _Noreturn: new module
12603         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12604         New section, mentioning it.
12605         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12606
12607         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12608
12609 2011-07-11  Eric Blake  <eblake@redhat.com>
12610
12611         ffs: new module
12612         * modules/ffs: New file.
12613         * m4/ffs.m4: Likewise.
12614         * lib/ffs.c: Likewise.
12615         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12616         * modules/strings (Makefile.am): Substitute witness.
12617         (Depends-on): Add c++defs.
12618         * lib/strings.in.h (ffs): Declare.
12619         * modules/ffs-tests: New test file.
12620         * tests/test-ffs.c: Test new module.
12621         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12622         * doc/posix-functions/ffs.texi (ffs): Likewise.
12623
12624         regex: avoid compiler warning
12625         * lib/regex.c (includes): Include <strings.h>, for use of
12626         strcasecmp in regcomp.c.
12627         Reported by Joachim Schmitz.
12628
12629 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12630
12631         stdint: respect system's intmax_t if INTMAX_MAX
12632         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12633         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12634         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12635         long but int64_t is long long, and where we will clash with the
12636         system intmax_t if we override it.  See
12637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12638         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12639         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12640         similarly for UINTMAX_C.
12641
12642 2011-07-08  Bruno Haible  <bruno@clisp.org>
12643
12644         pthread_sigmask tests: Avoid a compiler warning.
12645         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12646         non-zero.
12647
12648         sigprocmask tests: A better way to avoid a compiler warning.
12649         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12650         (main): Complain if system() returns non-zero.
12651         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12652
12653 2011-07-08  Bruno Haible  <bruno@clisp.org>
12654
12655         pthread_sigmask: Work around IRIX bug.
12656         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12657         bug.
12658         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12659         there may be unblocked pending signals.
12660         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12661
12662 2011-07-08  Bruno Haible  <bruno@clisp.org>
12663
12664         pthread_sigmask: Work around Cygwin bug.
12665         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12666         bug.
12667         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12668         the system's pthread_sigmask function.
12669         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12670
12671 2011-07-08  Bruno Haible  <bruno@clisp.org>
12672
12673         pthread_sigmask: Work around bug in single-threaded implementation.
12674         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12675         FreeBSD, HP-UX, Solaris bug.
12676         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12677         * lib/pthread_sigmask.c: Include <stddef.h>.
12678         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12679         the system's pthread_sigmask function.
12680         * modules/pthread_sigmask (configure.ac): Invoke
12681         gl_PREREQ_PTHREAD_SIGMASK.
12682         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12683         HP-UX, Solaris.
12684
12685 2011-07-08  Eric Blake  <eblake@redhat.com>
12686
12687         test-sigprocmask: avoid compiler warning
12688         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12689         * tests/test-sigprocmask.c (main): Use it to silence warning.
12690         Reported by Jim Meyering.
12691
12692         test-snprintf: avoid compiler warning
12693         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12694         * tests/test-vsnprintf.c (main): Likewise.
12695         Reported by Jim Meyering.
12696
12697 2011-07-08  Bruno Haible  <bruno@clisp.org>
12698
12699         Tests for module 'pthread_sigmask'.
12700         * modules/pthread_sigmask-tests: New file.
12701         * tests/test-pthread_sigmask1.c: New file, based on
12702         tests/test-sigprocmask.c.
12703         * tests/test-pthread_sigmask2.c: New file.
12704
12705 2011-07-08  Jim Meyering  <meyering@redhat.com>
12706
12707         test-getopt.h: avoid warning about an unused variable
12708         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12709
12710 2011-07-07  Jim Meyering  <meyering@redhat.com>
12711
12712         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12713         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12714         now that it no longer contains leading TABs.
12715         Remove unused "url=FIXME" statement.
12716
12717 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12718
12719         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12720         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12721         When gl_THREADLIB is not in use, assume that the POSIX sematics
12722         are desired.  This is better for Emacs, which uses POSIX semantics
12723         on GNUish and/or POSIXish platforms, and does not use threads at
12724         all otherwise.
12725
12726         pthread_sigmask: fix typo when testing for libraries
12727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12728         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12729
12730 2011-07-08  Eric Blake  <eblake@redhat.com>
12731
12732         fts: introduce FTS_NOATIME
12733         * lib/fts_.h (FTS_NOATIME): New bit flag.
12734         (FTS_OPTIONMASK): Adjust.
12735         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12736         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12737
12738 2011-07-08  Bruno Haible  <bruno@clisp.org>
12739
12740         Tests for module 'thread'.
12741         * modules/thread-tests: New file.
12742         * tests/test-thread_self.c: New file.
12743         * tests/test-thread_create.cc: New file.
12744
12745 2011-07-08  Bruno Haible  <bruno@clisp.org>
12746
12747         thread: Avoid gcc warnings when using gl_thread_self().
12748         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12749         'void *'.
12750         (gl_thread_self_pointer): Update.
12751
12752 2011-07-07  Bruno Haible  <bruno@clisp.org>
12753
12754         signal-c++-tests: Check declaration of pthread_sigmask.
12755         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12756         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12757         $(LIB_PTHREAD_SIGMASK).
12758
12759 2011-07-07  Bruno Haible  <bruno@clisp.org>
12760
12761         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12762         * lib/signal.in.h (pthread_sigmask): Override if
12763         REPLACE_PTHREAD_SIGMASK is 1.
12764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12765         REPLACE_PTHREAD_SIGMASK.
12766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12767         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12768         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12769         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12770         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12771
12772 2011-07-07  Bruno Haible  <bruno@clisp.org>
12773
12774         pthread_sigmask: Ensure declaration in <signal.h>.
12775         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12776         include <pthread.h>.
12777         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12778         problem.
12779
12780 2011-07-07  Bruno Haible  <bruno@clisp.org>
12781
12782         pthread_sigmask: Document the module.
12783         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12784
12785 2011-07-07  Bruno Haible  <bruno@clisp.org>
12786
12787         pthread_sigmask: Follow gnulib conventions.
12788         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12789         gl_PTHREAD_SIGMASK.
12790         * modules/pthread_sigmask (configure.ac): Update.
12791
12792 2011-07-07  Bruno Haible  <bruno@clisp.org>
12793
12794         pthread_sigmask: Make declaration C++ safe.
12795         * lib/signal.in.h: In two special conditions, just do an #include_next.
12796         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12797         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12798         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12799         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12800         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12801         not REPLACE_PTHREAD_MASK.
12802         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12803         not REPLACE_PTHREAD_MASK.
12804         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12805
12806 2011-07-07  Bruno Haible  <bruno@clisp.org>
12807
12808         pthread_sigmask: Fix return value.
12809         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12810         * lib/pthread_sigmask.c: New file.
12811         * modules/pthread_sigmask (Files): Add it.
12812         (configure.ac): Invoke AC_LIBOBJ.
12813
12814 2011-07-07  Eric Blake  <eblake@redhat.com>
12815
12816         getopt: more portable argv creation
12817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12818         const, use char arrays rather than strings.
12819         Suggested by Paul Eggert.
12820
12821 2011-07-07  Bruno Haible  <bruno@clisp.org>
12822
12823         Tests for module 'sigprocmask'.
12824         * modules/sigprocmask-tests: New file.
12825         * tests/test-sigprocmask.c: New file.
12826
12827 2011-07-07  Bruno Haible  <bruno@clisp.org>
12828
12829         float tests: Tweak.
12830         * tests/test-float.c (main): Tweak skip message.
12831
12832 2011-07-07  Eric Blake  <eblake@redhat.com>
12833
12834         getopt: avoid compiler warning during configure
12835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12836         assigning string literals to non-const pointer.
12837
12838         getopt-gnu: avoid crash in glibc getopt
12839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12840         * tests/test-getopt.h (test_getopt): Enhance test.
12841         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12842         * doc/posix-functions/getopt.texi (getopt): Document it.
12843         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12844         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12845         Likewise.
12846
12847 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12848
12849         getopt: handle W; without long options in getopt [BZ #12922]
12850         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12851         but no long options are defined, just return 'W'.
12852
12853 2011-07-07  Bruno Haible  <bruno@clisp.org>
12854
12855         Avoid literal tabs.
12856         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12857         variable containing a tab instead of a literal tab.
12858         Reported by Jim Meyering.
12859
12860 2011-07-07  Bruno Haible  <bruno@clisp.org>
12861
12862         Comments.
12863         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12864
12865 2011-07-06  Bruno Haible  <bruno@clisp.org>
12866
12867         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12868         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12869         <winsock2.h>.
12870         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12871         lib/sys_socket.in.h.
12872         (close, gethostname): Hide declarations from <winsock2.h>.
12873         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12874         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12875         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12876         (select): Don't override if gnulib's <sys/select.h> was already
12877         included.
12878         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12879         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12880         setsockopt, shutdown, select): Tweak indentation.
12881
12882 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12883
12884         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12885         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12886         in an application that does not use the sys_select module.
12887
12888 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12889
12890         poll: do not return 0 on timeout=-1
12891         * lib/poll.c: Loop with yield if no events occured
12892
12893 2011-07-06  Eric Blake  <eblake@redhat.com>
12894
12895         pthread_sigmask: always replace when not using pthread
12896         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12897         replacement when using some threading other than pthread.  Fix
12898         logic bug.
12899
12900 2011-07-06  Bruno Haible  <bruno@clisp.org>
12901
12902         Comments.
12903         * m4/printf.m4: Update comments about mingw.
12904
12905 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12906
12907         sys_select: define sigset_t more portably
12908         * lib/sys_select.in.h: Always include <sys/types.h>, since
12909         we now need sigset_t and mingw defines it there.
12910         Include <signal.h> before split inclusion guard, to avoid
12911         mishaps on Solaris, whose <signal.h> eventually includes us.
12912         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12913         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12914         which come from ...
12915         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12916         gl_CHECK_TYPE_SIGSET_T.
12917         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12918         does the real work.
12919         * modules/sys_select (Depends-on): Add 'signal'.
12920
12921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12922         Suggested by Bruno Haible.
12923
12924         pselect: Use pthread_sigmask, not sigprocmask.
12925         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12926         multithreaded apps better than sigprocmask does.
12927         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12928         sigprocmask directly.
12929
12930 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12931
12932         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12933         Don't #undef,  since we don't need any underlying pselect.
12934         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12935         (Depends-on): Add select.
12936         (Link): Add $(LIBSOCKET).
12937         These changes suggested by Bruno Haible.
12938
12939         pselect: document better
12940         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12941         * doc/posix-functions/pselect.texi (pselect): Document new module.
12942
12943         pthread_sigmask: new module
12944         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12945         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12946         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12947         This is done only as a macro; I don't know how well that'll
12948         work for C++.  Move <sys/types.h> include before the include_next,
12949         to avoid mishap on Solaris.
12950         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12951         * modules/signal (Makefile.am): Substitute the check's results.
12952         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12953
12954         test-pselect: new module
12955         * modules/pselect-tests, tests/test-pselect.c: New files.
12956         * tests/test-select.c, tests/test-sys_select-c++.cc:
12957         If TEST_PSELECT is defined, test pselect instead of testing select.
12958
12959         * tests/test-sys_select.c (sigset_t): Test for it, too.
12960         Suggested by Bruno Haible.
12961
12962 2011-07-05  Eric Blake  <eblake@redhat.com>
12963
12964         snprintf: guarantee %1$d, for libintl
12965         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12966         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12967         * doc/posix-functions/snprintf.texi (snprintf): Update.
12968         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12969         * tests/test-snprintf.c (main): Enhance test.
12970         * tests/test-vsnprintf.c (main): Likewise.
12971
12972 2011-07-05  Jim Meyering  <meyering@redhat.com>
12973
12974         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12975         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12976         per Bruno's request, to accommodate this idiom (no space after "#")
12977         even when the function is inside an #if block:
12978         char *
12979         gets (char *s)
12980         #undef gets
12981         {
12982           ...
12983         }
12984
12985 2011-07-04  Jim Meyering  <meyering@redhat.com>
12986
12987         maint: indent with spaces, not TABs, and add a rule to check this
12988         * tests/test-userspec.c: Indent with spaces, not TABs.
12989         * tests/test-argp.c: Likewise.
12990         * tests/test-c-stack2.sh: Likewise.
12991         * tests/test-parse-duration.sh: Likewise
12992         * m4/strtod.m4: Likewise.
12993         * m4/alloca.m4: Likewise.
12994         * m4/pselect.m4: Likewise.
12995         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12996
12997 2011-07-03  Jim Meyering  <meyering@redhat.com>
12998
12999         maint.mk: correct omissions in prohibit_argmatch_without_use check
13000         This rule would mistakenly report that argmatch.h is included without
13001         use even when both the argmatch and invalid_arg macro were used.
13002         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13003         of argmatch and invalid_arg.
13004
13005 2011-07-03  Bruno Haible  <bruno@clisp.org>
13006
13007         Comments about EINTR.
13008         * lib/safe-read.h: Explain the purpose of this module.
13009         * lib/safe-write.h: Likewise.
13010         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13011         module.
13012         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13013         module.
13014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13015
13016 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13017
13018         xnanosleep: Rewrite to use new dtotimespec module.
13019         It has the conversion code that used to be in xnanosleep.
13020         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13021         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13022         (TIME_T_MAX): Remove.
13023         (xnanosleep): Rewrite in terms of dtotimespec.
13024         * modules/xnanosleep (Depends-on): Add dtotimespec.
13025         Remove intprops, stdbool.
13026
13027         timespec-add, timespec-sub: new modules
13028         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13029         * lib/timespec-add.c, lib/timespec-sub.c:
13030         * modules/timespec-add, modules/timespec-sub: New files.
13031
13032         dtotimespec: new module
13033         * lib/timespec.h (dtotimespec): New decl.
13034         * lib/dtotimespec.c, modules/dtotimespec: New files.
13035
13036         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13037
13038         pselect: new module
13039         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13040         (pselect): New decls.
13041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13042         since the standard pselect decl uses 'restrict'.
13043         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13044         HAVE_PSELECT, REPLACE_PSELECT.
13045         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13046         HAVE_PSELECT, REPLACE_PSELECT.
13047         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13048
13049         sys_select: don't depend on sys_socket
13050         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13052         This fix works on GNU and GNU-like platforms, but has not been tested
13053         on native Windows.
13054         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13055         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13056         gl_HEADER_SYS_SOCKET.
13057         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13058         gl_PREREQ_SYS_H_WINSOCK2.
13059
13060 2011-06-29  Eric Blake  <eblake@redhat.com>
13061
13062         pipe2: fix C89 compile problem
13063         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13064         Reported by Bruno Haible.
13065
13066         pipe, pipe2: don't corrupt fd on error
13067         * lib/pipe.c (pipe): Leave fd unchanged on error.
13068         * lib/pipe2.c (pipe2): Likewise.
13069         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13070         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13071
13072 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13073
13074         mmap-anon: do not use regular expressions inadvertently
13075         * m4/mmap-anon.m4: Remove trailing period from strings sought
13076         in the output.
13077
13078 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13079
13080         nanosleep: fix integer overflow problem
13081         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13082         arithmetic wraps around on overflow.
13083
13084         nanosleep: simplify carrying
13085         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13086         first call to the underyling nanosleep, not for the last one.
13087         This doesn't fix any bugs, but it simplifies the computation of
13088         the remaining delay.  Found while auditing integer overflow issues.
13089
13090         dup2: remove test for existence of fcntl
13091         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13092         "#if HAVE_FCNTL", in the configure-time test program.
13093         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13094         and therefore speeds up "configure" a bit.  Found while
13095         adding the dup2 module to Emacs.
13096
13097 2011-06-24  Eric Blake  <eblake@redhat.com>
13098
13099         maint.mk: enhance useless header checks
13100         * top/maint.mk (_sc_header_without_use): Check both include
13101         styles.
13102         (sc_prohibit_assert_without_use)
13103         (sc_prohibit_close_stream_without_use)
13104         (sc_prohibit_getopt_without_use)
13105         (sc_prohibit_quotearg_without_use)
13106         (sc_prohibit_quote_without_use)
13107         (sc_prohibit_long_options_without_use)
13108         (sc_prohibit_inttostr_without_use)
13109         (sc_prohibit_ignore_value_without_use)
13110         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13111         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13112         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13113         (sc_prohibit_hash_pjw_without_use)
13114         (sc_prohibit_safe_read_without_use)
13115         (sc_prohibit_argmatch_without_use)
13116         (sc_prohibit_canonicalize_without_use)
13117         (sc_prohibit_root_dev_ino_without_use)
13118         (sc_prohibit_openat_without_use)
13119         (sc_prohibit_c_ctype_without_use)
13120         (sc_prohibit_signal_without_use)
13121         (sc_prohibit_stdio--_without_use)
13122         (sc_prohibit_stdio-safer_without_use)
13123         (sc_prohibit_strings_without_use)
13124         (sc_prohibit_intprops_without_use)
13125         (sc_prohibit_stddef_without_use)
13126         (sc_prohibit_xfreopen_without_use): Update clients.
13127
13128 2011-06-24  Jim Meyering  <meyering@redhat.com>
13129
13130         syntax-check: keep one maint.mk rule in sync with its header
13131         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13132         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13133         I prefer to avoid temporary files here, so use <(...), but that
13134         is not supported by /bin/sh, so...
13135         (SHELL): Define to /bin/bash.
13136
13137 2011-06-24  Eric Blake  <eblake@redhat.com>
13138
13139         maint.mk: update sc_prohibit_intprops_without_use
13140         * top/maint.mk (_intprops_names): Match recent changes.
13141
13142 2011-06-24  Bruno Haible  <bruno@clisp.org>
13143
13144         strerror-override: No-op tweak.
13145         * lib/strerror-override.h (strerror_override): Reorder conditions,
13146         for consistency with lib/strerror-override.c.
13147
13148 2011-06-23  Eric Blake  <eblake@redhat.com>
13149
13150         maint.mk: test further PATH_MAX issues
13151         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13152         (sc_prohibit_path_max_allocation): ...and also test alloca.
13153         Suggested by Jim Meyering.
13154
13155 2011-06-22  Eric Blake  <eblake@redhat.com>
13156
13157         maint.mk: add syntax-check to avoid char[PATH_MAX]
13158         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13159
13160         stat: be robust to PATH_MAX definition
13161         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13162         * modules/stat (Depends-on): Add verify.
13163
13164         link: work around IRIX bug
13165         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13166         * lib/link.c (rpl_link): Work around it.
13167         * tests/test-link.h (test_link): Enhance test.
13168         * doc/posix-functions/link.texi (link): Document the bug.
13169
13170         getopt: silence clang warning
13171         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13172         dereference.
13173         Reported by Gustavo Martin Domato.
13174
13175 2011-06-22  Jim Meyering  <meyering@redhat.com>
13176
13177         bootstrap: do not insert a blank line into each .gitignore file
13178         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13179
13180 2011-06-21  Eric Blake  <eblake@redhat.com>
13181
13182         perror: test for output mismatch
13183         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13184         perror on IRIX.
13185
13186         strerror_r: fix OpenBSD behavior on out-of-range
13187         * lib/strerror_r.c (strerror_r): Always use maximal string.
13188         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13189
13190         strerror_r: fix OpenBSD behavior on 0
13191         * lib/strerror-override.c (strerror_override): Also override 0
13192         when needed.
13193         * lib/strerror-override.h (strerror_override): Likewise.
13194         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13195         earlier.
13196         * lib/strerror_r.c (strerror_r): Likewise.
13197         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13198         behavior...
13199         (gl_FUNC_STRERROR_0): ...into new macro.
13200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13201         is overridden.
13202         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13203         * modules/strerror-override (Files): Add strerror.m4.
13204         (configure.ac): Also provide override for 0 when needed.
13205         * doc/posix-functions/strerror.texi (strerror): Document this.
13206         * doc/posix-functions/perror.texi (perror): Likewise.
13207
13208         perror: adjust array size
13209         * modules/perror (Depends-on): Add strerror-override.
13210         * lib/perror.c (perror): Use it to avoid magic number.
13211
13212         strerror-override: reduce size
13213         * lib/strerror-override.c (strerror_override): Use fewer lines.
13214
13215 2011-06-20  Bruno Haible  <bruno@clisp.org>
13216
13217         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13218         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13219
13220 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         alloca: port to compilers that can optimize like GCC 4.6.0
13223         * lib/alloca.c (find_stack_direction): New signature, taken from
13224         Autoconf git.  This works with GCC 4.6.0.  This code should never
13225         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13226         be used with other compilers that optimize as well as GCC 4.6.0 does.
13227         (alloca): Adjust to new signature.
13228         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13229         New macro, which patches Autoconf in a similar way.
13230
13231         c-stack: stop worrying about stack direction
13232         * lib/c-stack.c (find_stack_direction): Remove.
13233         (segv_handler): Don't worry about stack direction growth, as it's
13234         too much of a pain to configure this correctly, given how compilers
13235         are optimizing-away our stack-growth detection code.  Instead, assume
13236         that any access to just before or just after the stack is OK.
13237         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13238         Don't require AC_FUNC_ALLOCA; no longer needed.
13239
13240 2011-06-20  Eric Blake  <eblake@redhat.com>
13241
13242         test-stat: don't allocate PATH_MAX bytes
13243         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13244         PATH_MAX-sized buffer.
13245         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13246         * modules/stat-tests (Depends-on): Likewise.
13247         * tests/test-fstatat.c (includes): Drop pathmax.h.
13248         * tests/test-stat.c (includes): Likewise.
13249         Reported by Bruno Haible.
13250
13251 2011-06-20  Bruno Haible  <bruno@clisp.org>
13252
13253         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13254         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13255         * lib/float.c: New file.
13256         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13257         REPLACE_FLOAT_LDBL.
13258         * modules/float (Files): Add lib/float.c.
13259         (configure.ac): Invoke AC_LIBOBJ.
13260         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13261
13262 2011-06-20  Bruno Haible  <bruno@clisp.org>
13263
13264         Tests for module 'float'.
13265         * modules/float-tests: New file.
13266         * tests/test-float.c: New file.
13267
13268 2011-06-19  Bruno Haible  <bruno@clisp.org>
13269
13270         isinf: Coding style.
13271         * lib/isinf.c: Use GNU coding style.
13272
13273 2011-06-19  Bruno Haible  <bruno@clisp.org>
13274
13275         linkat test: Avoid test failure on AIX 7.1.
13276         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13277         * tests/test-link.h (test_link): Likewise.
13278
13279 2011-06-19  Bruno Haible  <bruno@clisp.org>
13280
13281         pread test: Avoid test failure on OpenBSD 4.9.
13282         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13283
13284 2011-06-19  Bruno Haible  <bruno@clisp.org>
13285
13286         sprintf-posix: Fix test failure on AIX 7.1.
13287         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13288         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13289         on AIX.
13290         * doc/posix-functions/fprintf.texi: Likewise.
13291         * doc/posix-functions/printf.texi: Likewise.
13292         * doc/posix-functions/snprintf.texi: Likewise.
13293         * doc/posix-functions/sprintf.texi: Likewise.
13294         * doc/posix-functions/vdprintf.texi: Likewise.
13295         * doc/posix-functions/vfprintf.texi: Likewise.
13296         * doc/posix-functions/vprintf.texi: Likewise.
13297         * doc/posix-functions/vsnprintf.texi: Likewise.
13298         * doc/posix-functions/vsprintf.texi: Likewise.
13299
13300 2011-06-19  Bruno Haible  <bruno@clisp.org>
13301
13302         roundl-ieee: Fix test failure on AIX 7.1.
13303         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13304         * doc/posix-functions/roundl.texi: Mention problem with negative
13305         arguments.
13306
13307 2011-06-19  Bruno Haible  <bruno@clisp.org>
13308
13309         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13310         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13311         * doc/posix-functions/round.texi: Mention problem with negative
13312         arguments.
13313         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13314
13315 2011-06-19  Bruno Haible  <bruno@clisp.org>
13316
13317         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13319         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13320         * doc/posix-functions/roundf.texi: Mention problem with negative
13321         arguments.
13322         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13323
13324 2011-06-19  Bruno Haible  <bruno@clisp.org>
13325
13326         ceilf-ieee: Work around bug on MacOS X 10.5.
13327         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13328
13329         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13330         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13331         IEEE compliant, avoid compiler optimizations.
13332         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13333         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13334         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13335         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13336         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13337         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13340         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13342
13343 2011-06-19  Bruno Haible  <bruno@clisp.org>
13344
13345         ceilf-ieee: Work around bug on AIX 7.1.
13346         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13347         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13348
13349 2011-06-19  Bruno Haible  <bruno@clisp.org>
13350
13351         ceil-ieee: Work around bug on AIX 7.1.
13352         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13353         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13354
13355 2011-06-18  Bruno Haible  <bruno@clisp.org>
13356
13357         fsync test: Avoid test failure on MacOS X and AIX.
13358         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13359         EINVAL.
13360
13361 2011-06-18  Bruno Haible  <bruno@clisp.org>
13362
13363         openat, fdopendir tests: Fix link errors.
13364         * modules/openat-tests (Depends-on): Add progname.
13365         * modules/fdopendir-tests (Depends-on): Likewise.
13366         * tests/test-fchownat.c: Include progname.h.
13367         (main): Call set_program_name.
13368         * tests/test-fstatat.c: Include progname.h.
13369         (main): Call set_program_name.
13370         * tests/test-mkdirat.c: Include progname.h.
13371         (main): Call set_program_name.
13372         * tests/test-openat.c: Include progname.h.
13373         (main): Call set_program_name.
13374         * tests/test-unlinkat.c: Include progname.h.
13375         (main): Call set_program_name.
13376         * tests/test-fdopendir.c: Include progname.h.
13377         (main): Call set_program_name.
13378
13379 2011-06-18  Bruno Haible  <bruno@clisp.org>
13380
13381         Doc update.
13382         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13383         HP-UX.
13384         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13385
13386 2011-06-18  Bruno Haible  <bruno@clisp.org>
13387
13388         getcwd tests: Avoid compilation error on HP-UX 11.31.
13389         * modules/getcwd-tests (Depends-on): Add pathmax.
13390         * tests/test-getcwd.c: Include pathmax.h.
13391
13392 2011-06-18  Bruno Haible  <bruno@clisp.org>
13393
13394         isfinite, isinf: Fix link error on AIX 6 and 7.
13395         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13396         needed, also test the macro with a 'float' argument.
13397         * m4/isinf.m4 (gl_ISINF): Likewise.
13398
13399 2011-06-18  Bruno Haible  <bruno@clisp.org>
13400
13401         getloadavg: Don't clobber LIBS. Regression from previous commit.
13402         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13403         AC_CHECK_LIB from here...
13404         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13405         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13406         gl_func_getloadavg_done.
13407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13408
13409 2011-06-18  Bruno Haible  <bruno@clisp.org>
13410
13411         clean-temp: Improve documentation.
13412         * lib/clean-temp.h: Explain better how to use this module.
13413         Reported by John Darrington <john@darrington.wattle.id.au>.
13414
13415 2011-06-17  Bruno Haible  <bruno@clisp.org>
13416
13417         pread, pwrite: Avoid cc warning on AIX.
13418         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13419         (pwrite): Likewise.
13420
13421 2011-06-17  Bruno Haible  <bruno@clisp.org>
13422
13423         spawn-pipe tests: Fix link error.
13424         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13426
13427 2011-06-17  Bruno Haible  <bruno@clisp.org>
13428
13429         Tests: Remove unnecessary dependency.
13430         * modules/canonicalize-tests (Depends-on): Remove progname.
13431         * modules/chown-tests (Depends-on): Likewise.
13432         * modules/dirname-tests (Depends-on): Likewise.
13433         * modules/fdopendir-tests (Depends-on): Likewise.
13434         * modules/fdutimensat-tests (Depends-on): Likewise.
13435         * modules/hash-tests (Depends-on): Likewise.
13436         * modules/lchown-tests (Depends-on): Likewise.
13437         * modules/linkat-tests (Depends-on): Likewise.
13438         * modules/renameat-tests (Depends-on): Likewise.
13439         * modules/spawn-pipe-tests (Depends-on): Likewise.
13440         * modules/utimensat-tests (Depends-on): Likewise.
13441
13442 2011-06-17  Bruno Haible  <bruno@clisp.org>
13443
13444         spawn-pipe tests: Fix link error.
13445         * tests/test-spawn-pipe-child.c: Undefine fflush.
13446
13447 2011-06-17  Bruno Haible  <bruno@clisp.org>
13448
13449         Fix tests link errors.
13450         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13451         * modules/chown-tests (Makefile.am): Don't link test-chown with
13452         LIBINTL.
13453         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13454         LIBINTL.
13455         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13456         LIBINTL.
13457         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13458         LIBINTL.
13459
13460 2011-06-16  Bruno Haible  <bruno@clisp.org>
13461
13462         crypto/gc-sha1: Fix recent regression.
13463         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13464         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13465
13466         crypto/gc-md5: Fix recent regression.
13467         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13468
13469         crypto/gc-md4: Fix recent regression.
13470         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13471         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13472
13473         crypto/gc-arctwo: Fix recent regression.
13474         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13475         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13476
13477         crypto/gc-rijndael: Fix recent regression.
13478         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13479         (configure.ac): Invoke AC_LIBOBJ here.
13480         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13482
13483         crypto/gc-hmac-sha1: Fix recent regression.
13484         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13485         (configure.ac): Invoke AC_LIBOBJ here.
13486         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13488
13489         crypto/gc-hmac-md5: Fix recent regression.
13490         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13491         (configure.ac): Invoke AC_LIBOBJ here.
13492         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13494
13495         crypto/gc-des: Fix recent regression.
13496         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13497         (configure.ac): Invoke AC_LIBOBJ here.
13498         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13500
13501         crypto/gc-arcfour: Fix recent regression.
13502         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13503         (configure.ac): Invoke AC_LIBOBJ here.
13504         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13506
13507 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13508
13509         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13510         After the 2011-05-21 change, this macro requires
13511         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13512         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13513
13514 2011-06-16  Bruno Haible  <bruno@clisp.org>
13515
13516         fprintftime: Move AC_LIBOBJ invocations to module description.
13517         * m4/fprintftime.m4: Remove file.
13518         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13519         (configure.ac): Remove gl_FPRINTFTIME call.
13520         (Makefile.am): Augment lib_SOURCES.
13521         Reported by Jim Meyering.
13522
13523 2011-06-16  Bruno Haible  <bruno@clisp.org>
13524
13525         tmpfile-safer: Finish 2011-05-23 commit.
13526         * m4/stdio-safer.m4: Really remove file.
13527         Reported by Jim Meyering.
13528
13529 2011-06-16  Bruno Haible  <bruno@clisp.org>
13530
13531         syntax-check: Fix typo.
13532         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13533         printf-posix.m4.
13534         Reported by Jim Meyering.
13535
13536 2011-06-13  Jim Meyering  <meyering@redhat.com>
13537
13538         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13539         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13540
13541 2011-05-23  Bruno Haible  <bruno@clisp.org>
13542
13543         yesno: Move AC_LIBOBJ invocations to module description.
13544         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13545         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13546
13547 2011-05-23  Bruno Haible  <bruno@clisp.org>
13548
13549         xstrtol: Move AC_LIBOBJ invocations to module description.
13550         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13551         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13552
13553 2011-05-23  Bruno Haible  <bruno@clisp.org>
13554
13555         xstrtold: Move AC_LIBOBJ invocations to module description.
13556         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13557         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13558
13559 2011-05-23  Bruno Haible  <bruno@clisp.org>
13560
13561         xstrtod: Move AC_LIBOBJ invocations to module description.
13562         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13563         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13564
13565 2011-05-23  Bruno Haible  <bruno@clisp.org>
13566
13567         xnanosleep: Move AC_LIBOBJ invocations to module description.
13568         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13569         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13570
13571 2011-05-23  Bruno Haible  <bruno@clisp.org>
13572
13573         xgetcwd: Move AC_LIBOBJ invocations to module description.
13574         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13575         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13576
13577 2011-05-23  Bruno Haible  <bruno@clisp.org>
13578
13579         xalloc: Move AC_LIBOBJ invocations to module description.
13580         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13581         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13582
13583 2011-05-23  Bruno Haible  <bruno@clisp.org>
13584
13585         write-any-file: Move AC_LIBOBJ invocations to module description.
13586         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13587         invocation.
13588         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13589
13590 2011-05-23  Bruno Haible  <bruno@clisp.org>
13591
13592         utimens: Move AC_LIBOBJ invocations to module description.
13593         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13594         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13595
13596 2011-05-23  Bruno Haible  <bruno@clisp.org>
13597
13598         utimecmp: Move AC_LIBOBJ invocations to module description.
13599         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13600         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13601
13602 2011-05-23  Bruno Haible  <bruno@clisp.org>
13603
13604         userspec: Move AC_LIBOBJ invocations to module description.
13605         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13606         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13607
13608 2011-05-23  Bruno Haible  <bruno@clisp.org>
13609
13610         unlinkdir: Move AC_LIBOBJ invocations to module description.
13611         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13612         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13613
13614 2011-05-23  Bruno Haible  <bruno@clisp.org>
13615
13616         unistd-safer: Move AC_LIBOBJ invocations to module description.
13617         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13618         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13619
13620 2011-05-23  Bruno Haible  <bruno@clisp.org>
13621
13622         tempname: Move AC_LIBOBJ invocations to module description.
13623         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13624         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13625
13626 2011-05-23  Bruno Haible  <bruno@clisp.org>
13627
13628         strftime: Move AC_LIBOBJ invocations to module description.
13629         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13630         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13631
13632 2011-05-23  Bruno Haible  <bruno@clisp.org>
13633
13634         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13635         * m4/stdlib-safer.m4: Remove file.
13636         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13637         (configure.ac): Remove gl_STDLIB_SAFER call.
13638         (Makefile.am): Augment lib_SOURCES.
13639
13640 2011-05-23  Bruno Haible  <bruno@clisp.org>
13641
13642         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13643         * m4/stdio-safer.m4: Remove file.
13644         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13645         (configure.ac): Remove gl_TMPFILE_SAFER call.
13646         (Makefile.am): Augment lib_SOURCES.
13647
13648 2011-05-23  Bruno Haible  <bruno@clisp.org>
13649
13650         popen-safer: Move AC_LIBOBJ invocations to module description.
13651         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13652         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13653         (configure.ac): Remove gl_POPEN_SAFER call.
13654         (Makefile.am): Augment lib_SOURCES.
13655
13656 2011-05-23  Bruno Haible  <bruno@clisp.org>
13657
13658         freopen-safer: Move AC_LIBOBJ invocations to module description.
13659         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13660         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13661         (configure.ac): Remove gl_FREOPEN_SAFER call.
13662         (Makefile.am): Augment lib_SOURCES.
13663
13664 2011-05-23  Bruno Haible  <bruno@clisp.org>
13665
13666         fopen-safer: Move AC_LIBOBJ invocations to module description.
13667         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13668         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13669         (configure.ac): Remove gl_FOPEN_SAFER call.
13670         (Makefile.am): Augment lib_SOURCES.
13671
13672 2011-05-23  Bruno Haible  <bruno@clisp.org>
13673
13674         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13675         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13676         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13677
13678 2011-05-23  Bruno Haible  <bruno@clisp.org>
13679
13680         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13681         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13682         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13683
13684 2011-05-23  Bruno Haible  <bruno@clisp.org>
13685
13686         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13687         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13688         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13689
13690 2011-05-23  Bruno Haible  <bruno@clisp.org>
13691
13692         settime: Move AC_LIBOBJ invocations to module description.
13693         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13694         * modules/settime (Makefile.am): Augment lib_SOURCES.
13695
13696 2011-05-23  Bruno Haible  <bruno@clisp.org>
13697
13698         savedir: Move AC_LIBOBJ invocations to module description.
13699         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13700         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13701
13702 2011-05-23  Bruno Haible  <bruno@clisp.org>
13703
13704         save-cwd: Move AC_LIBOBJ invocations to module description.
13705         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13706         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13707
13708 2011-05-23  Bruno Haible  <bruno@clisp.org>
13709
13710         same: Move AC_LIBOBJ invocations to module description.
13711         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13712         * modules/same (Makefile.am): Augment lib_SOURCES.
13713
13714 2011-05-23  Bruno Haible  <bruno@clisp.org>
13715
13716         safe-write: Move AC_LIBOBJ invocations to module description.
13717         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13718         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13719         instead of gl_SAFE_WRITE.
13720         (Makefile.am): Augment lib_SOURCES.
13721
13722 2011-05-23  Bruno Haible  <bruno@clisp.org>
13723
13724         safe-read: Move AC_LIBOBJ invocations to module description.
13725         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13726         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13727         of gl_SAFE_READ.
13728         (Makefile.am): Augment lib_SOURCES.
13729
13730 2011-05-23  Bruno Haible  <bruno@clisp.org>
13731
13732         safe-alloc: Move AC_LIBOBJ invocations to module description.
13733         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13734         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13735
13736 2011-05-23  Bruno Haible  <bruno@clisp.org>
13737
13738         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13739         * m4/rijndael.m4: Remove file.
13740         * modules/crypto/rijndael (Files): Remove it.
13741         (configure.ac): Remove gl_RIJNDAEL call.
13742         (Makefile.am): Augment lib_SOURCES.
13743
13744 2011-05-23  Bruno Haible  <bruno@clisp.org>
13745
13746         readtokens: Move AC_LIBOBJ invocations to module description.
13747         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13748         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13749
13750 2011-05-23  Bruno Haible  <bruno@clisp.org>
13751
13752         read-file: Move AC_LIBOBJ invocations to module description.
13753         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13754         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13755         of gl_FUNC_READ_FILE.
13756         (Makefile.am): Augment lib_SOURCES.
13757
13758 2011-05-23  Bruno Haible  <bruno@clisp.org>
13759
13760         quotearg: Move AC_LIBOBJ invocations to module description.
13761         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13762         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13763
13764 2011-05-23  Bruno Haible  <bruno@clisp.org>
13765
13766         quote: Move AC_LIBOBJ invocations to module description.
13767         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13768         * modules/quote (Makefile.am): Augment lib_SOURCES.
13769
13770 2011-05-23  Bruno Haible  <bruno@clisp.org>
13771
13772         posixver: Move AC_LIBOBJ invocations to module description.
13773         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13774         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13775
13776 2011-05-23  Bruno Haible  <bruno@clisp.org>
13777
13778         posixtm: Move AC_LIBOBJ invocations to module description.
13779         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13780         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13781
13782 2011-05-23  Bruno Haible  <bruno@clisp.org>
13783
13784         physmem: Move AC_LIBOBJ invocations to module description.
13785         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13786         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13787
13788 2011-05-23  Bruno Haible  <bruno@clisp.org>
13789
13790         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13791         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13792         invocation.
13793         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13794
13795 2011-05-23  Bruno Haible  <bruno@clisp.org>
13796
13797         mpsort: Move AC_LIBOBJ invocations to module description.
13798         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13799         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13800
13801 2011-05-23  Bruno Haible  <bruno@clisp.org>
13802
13803         modechange: Move AC_LIBOBJ invocations to module description.
13804         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13805         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13806
13807 2011-05-23  Bruno Haible  <bruno@clisp.org>
13808
13809         mkdir-p: Move AC_LIBOBJ invocations to module description.
13810         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13811         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13812
13813 2011-05-23  Bruno Haible  <bruno@clisp.org>
13814
13815         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13816         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13817         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13818
13819 2011-05-23  Bruno Haible  <bruno@clisp.org>
13820
13821         mgetgroups: Move AC_LIBOBJ invocations to module description.
13822         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13823         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13824
13825 2011-05-23  Bruno Haible  <bruno@clisp.org>
13826
13827         memxor: Move AC_LIBOBJ invocations to module description.
13828         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13829         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13830
13831 2011-05-23  Bruno Haible  <bruno@clisp.org>
13832
13833         memcoll: Move AC_LIBOBJ invocations to module description.
13834         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13835         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13836
13837 2011-05-23  Bruno Haible  <bruno@clisp.org>
13838
13839         memcasecmp: Move AC_LIBOBJ invocations to module description.
13840         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13841         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13842
13843 2011-05-23  Bruno Haible  <bruno@clisp.org>
13844
13845         crypto/md5: Move AC_LIBOBJ invocations to module description.
13846         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13847         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13848
13849 2011-05-23  Bruno Haible  <bruno@clisp.org>
13850
13851         crypto/md4: Move AC_LIBOBJ invocations to module description.
13852         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13853         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13854
13855 2011-05-23  Bruno Haible  <bruno@clisp.org>
13856
13857         crypto/md2: Move AC_LIBOBJ invocations to module description.
13858         * m4/md2.m4: Remove file.
13859         * modules/crypto/md2 (Files): Remove it.
13860         (configure.ac): Remove gl_MD2 call.
13861         (Makefile.am): Augment lib_SOURCES.
13862
13863 2011-05-23  Bruno Haible  <bruno@clisp.org>
13864
13865         long-options: Move AC_LIBOBJ invocations to module description.
13866         * m4/long-options.m4: Remove file.
13867         * modules/long-options (Files): Remove it.
13868         (configure.ac): Remove gl_LONG_OPTIONS call.
13869         (Makefile.am): Augment lib_SOURCES.
13870
13871 2011-05-23  Bruno Haible  <bruno@clisp.org>
13872
13873         i-ring: Move AC_LIBOBJ invocations to module description.
13874         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13875         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13876
13877 2011-05-23  Bruno Haible  <bruno@clisp.org>
13878
13879         idcache: Move AC_LIBOBJ invocations to module description.
13880         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13881         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13882
13883 2011-05-23  Bruno Haible  <bruno@clisp.org>
13884
13885         human: Move AC_LIBOBJ invocations to module description.
13886         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13887         * modules/human (Makefile.am): Augment lib_SOURCES.
13888
13889 2011-05-23  Bruno Haible  <bruno@clisp.org>
13890
13891         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13892         * m4/hmac-sha1.m4: Remove file.
13893         * modules/crypto/hmac-sha1 (Files): Remove it.
13894         (configure.ac): Remove gl_HMAC_SHA1 call.
13895         (Makefile.am): Augment lib_SOURCES.
13896
13897 2011-05-23  Bruno Haible  <bruno@clisp.org>
13898
13899         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13900         * m4/hmac-md5.m4: Remove file.
13901         * modules/crypto/hmac-md5 (Files): Remove it.
13902         (configure.ac): Remove gl_HMAC_MD5 call.
13903         (Makefile.am): Augment lib_SOURCES.
13904
13905 2011-05-23  Bruno Haible  <bruno@clisp.org>
13906
13907         hash: Move AC_LIBOBJ invocations to module description.
13908         * m4/hash.m4: Remove file.
13909         * modules/hash (Files): Remove it.
13910         (configure.ac): Remove gl_HASH call.
13911         (Makefile.am): Augment lib_SOURCES.
13912
13913 2011-05-23  Bruno Haible  <bruno@clisp.org>
13914
13915         hard-locale: Move AC_LIBOBJ invocations to module description.
13916         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13917         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13918
13919 2011-05-23  Bruno Haible  <bruno@clisp.org>
13920
13921         getugroups: Move AC_LIBOBJ invocations to module description.
13922         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13923         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13924
13925 2011-05-23  Bruno Haible  <bruno@clisp.org>
13926
13927         gettime: Move AC_LIBOBJ invocations to module description.
13928         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13929         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13930
13931 2011-05-23  Bruno Haible  <bruno@clisp.org>
13932
13933         getndelim2: Move AC_LIBOBJ invocations to module description.
13934         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13935         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13936
13937 2011-05-23  Bruno Haible  <bruno@clisp.org>
13938
13939         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13940         * m4/gc-pbkdf2-sha1.m4: Remove file.
13941         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13942         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13943         (Makefile.am): Augment lib_SOURCES.
13944
13945 2011-05-23  Bruno Haible  <bruno@clisp.org>
13946
13947         fts: Move AC_LIBOBJ invocations to module description.
13948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13949         * modules/fts (configure.ac): ... to here.
13950
13951 2011-05-23  Bruno Haible  <bruno@clisp.org>
13952
13953         file-type: Move AC_LIBOBJ invocations to module description.
13954         * m4/file-type.m4: Remove file.
13955         * modules/file-type (Files): Remove it.
13956         (configure.ac): Remove gl_FILE_TYPE call.
13957         (Makefile.am): Augment lib_SOURCES.
13958
13959 2011-05-23  Bruno Haible  <bruno@clisp.org>
13960
13961         filenamecat*: Respect rules for use of AC_LIBOBJ.
13962         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13963         Remove AC_LIBOBJ invocation.
13964         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13965         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13966
13967 2011-05-23  Bruno Haible  <bruno@clisp.org>
13968
13969         filemode: Move AC_LIBOBJ invocations to module description.
13970         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13971         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13972
13973 2011-05-23  Bruno Haible  <bruno@clisp.org>
13974
13975         openat-safer: Move AC_LIBOBJ invocations to module description.
13976         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13977         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13978
13979 2011-05-23  Bruno Haible  <bruno@clisp.org>
13980
13981         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13982         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13983         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13984
13985 2011-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         exclude: Move AC_LIBOBJ invocations to module description.
13988         * m4/exclude.m4: Remove file.
13989         * modules/exclude (Files): Remove it.
13990         (configure.ac): Remove gl_EXCLUDE call.
13991         (Makefile.am): Augment lib_SOURCES.
13992
13993 2011-05-23  Bruno Haible  <bruno@clisp.org>
13994
13995         dirname*: Respect rules for use of AC_LIBOBJ.
13996         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13997         invocations.
13998         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13999         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14000
14001 2011-05-23  Bruno Haible  <bruno@clisp.org>
14002
14003         dirent-safer: Move AC_LIBOBJ invocations to module description.
14004         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14005         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14006
14007 2011-05-23  Bruno Haible  <bruno@clisp.org>
14008
14009         crypto/des: Move AC_LIBOBJ invocations to module description.
14010         * m4/des.m4: Remove file.
14011         * modules/crypto/des (Files): Remove it.
14012         (configure.ac): Remove gl_DES call.
14013         (Makefile.am): Augment lib_SOURCES.
14014
14015 2011-05-23  Bruno Haible  <bruno@clisp.org>
14016
14017         cycle-check: Move AC_LIBOBJ invocations to module description.
14018         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14019         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14020
14021 2011-05-23  Bruno Haible  <bruno@clisp.org>
14022
14023         c-strtold: Move AC_LIBOBJ invocations to module description.
14024         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14025         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14026
14027 2011-05-23  Bruno Haible  <bruno@clisp.org>
14028
14029         c-strtod: Move AC_LIBOBJ invocations to module description.
14030         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14031         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14032
14033 2011-05-23  Bruno Haible  <bruno@clisp.org>
14034
14035         crc: Move AC_LIBOBJ invocations to module description.
14036         * m4/crc.m4: Remove file.
14037         * modules/crc (Files): Remove it.
14038         (configure.ac): Remove gl_CRC call.
14039         (Makefile.am): Augment lib_SOURCES.
14040
14041 2011-05-23  Bruno Haible  <bruno@clisp.org>
14042
14043         close-stream: Move AC_LIBOBJ invocations to module description.
14044         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14045         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14046
14047 2011-05-23  Bruno Haible  <bruno@clisp.org>
14048
14049         closeout: Move AC_LIBOBJ invocations to module description.
14050         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14051         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         closein: Move AC_LIBOBJ invocations to module description.
14056         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14057         * modules/closein (Makefile.am): Augment lib_SOURCES.
14058
14059 2011-05-23  Bruno Haible  <bruno@clisp.org>
14060
14061         cloexec: Move AC_LIBOBJ invocations to module description.
14062         * m4/cloexec.m4: Remove file.
14063         * modules/cloexec (Files): Remove it.
14064         (configure.ac): Remove gl_CLOEXEC call.
14065         (Makefile.am): Augment lib_SOURCES.
14066
14067 2011-05-23  Bruno Haible  <bruno@clisp.org>
14068
14069         check-version: Move AC_LIBOBJ invocations to module description.
14070         * m4/check-version.m4: Remove file.
14071         * modules/check-version (Files): Remove it.
14072         (configure.ac): Remove gl_CHECK_VERSION call.
14073         (Makefile.am): Augment lib_SOURCES.
14074
14075 2011-05-23  Bruno Haible  <bruno@clisp.org>
14076
14077         chdir-safer: Move AC_LIBOBJ invocations to module description.
14078         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14079         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14080
14081 2011-05-23  Bruno Haible  <bruno@clisp.org>
14082
14083         canonicalize: Move AC_LIBOBJ invocations to module description.
14084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14085         AC_LIBOBJ invocation.
14086         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14087
14088 2011-05-23  Bruno Haible  <bruno@clisp.org>
14089
14090         canon-host: Move AC_LIBOBJ invocations to module description.
14091         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14092         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14093         instead of gl_CANON_HOST.
14094         (Makefile.am): Augment lib_SOURCES.
14095
14096 2011-05-23  Bruno Haible  <bruno@clisp.org>
14097
14098         backupfile: Move AC_LIBOBJ invocations to module description.
14099         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14100         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14101
14102 2011-05-23  Bruno Haible  <bruno@clisp.org>
14103
14104         argmatch: Move AC_LIBOBJ invocations to module description.
14105         * m4/argmatch.m4: Remove file.
14106         * modules/argmatch (Files): Remove it.
14107         (configure.ac): Remove gl_ARGMATCH call.
14108         (Makefile.am): Augment lib_SOURCES.
14109
14110 2011-05-23  Bruno Haible  <bruno@clisp.org>
14111
14112         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14113         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14114         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14115
14116 2011-05-23  Bruno Haible  <bruno@clisp.org>
14117
14118         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14119         * m4/arcfour.m4: Remove file.
14120         * modules/crypto/arcfour (Files): Remove it.
14121         (configure.ac): Remove gl_ARCFOUR call.
14122         (Makefile.am): Augment lib_SOURCES.
14123
14124 2011-05-22  Bruno Haible  <bruno@clisp.org>
14125
14126         write: Move AC_LIBOBJ invocations to module description.
14127         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14128         * modules/write (configure.ac): ... to here.
14129
14130 2011-05-22  Bruno Haible  <bruno@clisp.org>
14131
14132         wmemset: Move AC_LIBOBJ invocations to module description.
14133         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14134         here...
14135         * modules/wmemset (configure.ac): ... to here.
14136
14137 2011-05-22  Bruno Haible  <bruno@clisp.org>
14138
14139         wmemmove: Move AC_LIBOBJ invocations to module description.
14140         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14141         here...
14142         * modules/wmemmove (configure.ac): ... to here.
14143
14144 2011-05-22  Bruno Haible  <bruno@clisp.org>
14145
14146         wmemcpy: Move AC_LIBOBJ invocations to module description.
14147         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14148         here...
14149         * modules/wmemcpy (configure.ac): ... to here.
14150
14151 2011-05-22  Bruno Haible  <bruno@clisp.org>
14152
14153         wmemcmp: Move AC_LIBOBJ invocations to module description.
14154         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14155         here...
14156         * modules/wmemcmp (configure.ac): ... to here.
14157
14158 2011-05-22  Bruno Haible  <bruno@clisp.org>
14159
14160         wmemchr: Move AC_LIBOBJ invocations to module description.
14161         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14162         here...
14163         * modules/wmemchr (configure.ac): ... to here.
14164
14165 2011-05-22  Bruno Haible  <bruno@clisp.org>
14166
14167         wcswidth: Move AC_LIBOBJ invocations to module description.
14168         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14169         here...
14170         * modules/wcswidth (configure.ac): ... to here.
14171
14172 2011-05-22  Bruno Haible  <bruno@clisp.org>
14173
14174         wcwidth: Respect rules for use of AC_LIBOBJ.
14175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14176         invocation from here...
14177         * modules/wcwidth (configure.ac): ... to here.
14178         (Depends-on): Update conditions.
14179
14180 2011-05-22  Bruno Haible  <bruno@clisp.org>
14181
14182         wctype: Move AC_LIBOBJ invocations to module description.
14183         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14184         invocation from here...
14185         * modules/wctype (configure.ac): ... to here.
14186         (Depends-on): Update conditions.
14187
14188 2011-05-22  Bruno Haible  <bruno@clisp.org>
14189
14190         wctrans: Move AC_LIBOBJ invocations to module description.
14191         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14192         invocation from here...
14193         * modules/wctrans (configure.ac): ... to here.
14194
14195 2011-05-22  Bruno Haible  <bruno@clisp.org>
14196
14197         wctomb: Move AC_LIBOBJ invocations to module description.
14198         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14199         invocations from here...
14200         * modules/wctomb (configure.ac): ... to here.
14201
14202 2011-05-22  Bruno Haible  <bruno@clisp.org>
14203
14204         wctob: Move AC_LIBOBJ invocations to module description.
14205         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14206         gl_PREREQ_WCTOB invocations from here...
14207         * modules/wctob (configure.ac): ... to here.
14208         (Depends-on): Update conditions.
14209
14210 2011-05-22  Bruno Haible  <bruno@clisp.org>
14211
14212         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14213         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14214         here...
14215         * modules/wcsxfrm (configure.ac): ... to here.
14216
14217 2011-05-22  Bruno Haible  <bruno@clisp.org>
14218
14219         wcstok: Move AC_LIBOBJ invocations to module description.
14220         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14221         * modules/wcstok (configure.ac): ... to here.
14222
14223 2011-05-22  Bruno Haible  <bruno@clisp.org>
14224
14225         wcsstr: Move AC_LIBOBJ invocations to module description.
14226         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14227         * modules/wcsstr (configure.ac): ... to here.
14228
14229 2011-05-22  Bruno Haible  <bruno@clisp.org>
14230
14231         wcsspn: Move AC_LIBOBJ invocations to module description.
14232         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14233         * modules/wcsspn (configure.ac): ... to here.
14234
14235 2011-05-22  Bruno Haible  <bruno@clisp.org>
14236
14237         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14238         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14239         gl_PREREQ_WCSRTOMBS invocations from here...
14240         * modules/wcsrtombs (configure.ac): ... to here.
14241
14242 2011-05-22  Bruno Haible  <bruno@clisp.org>
14243
14244         wcsrchr: Move AC_LIBOBJ invocations to module description.
14245         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14246         here...
14247         * modules/wcsrchr (configure.ac): ... to here.
14248
14249 2011-05-22  Bruno Haible  <bruno@clisp.org>
14250
14251         wcspbrk: Move AC_LIBOBJ invocations to module description.
14252         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14253         here...
14254         * modules/wcspbrk (configure.ac): ... to here.
14255
14256 2011-05-22  Bruno Haible  <bruno@clisp.org>
14257
14258         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14259         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14260         gl_PREREQ_WCSNRTOMBS invocations from here...
14261         * modules/wcsnrtombs (configure.ac): ... to here.
14262
14263 2011-05-22  Bruno Haible  <bruno@clisp.org>
14264
14265         wcsnlen: Move AC_LIBOBJ invocations to module description.
14266         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14267         here...
14268         * modules/wcsnlen (configure.ac): ... to here.
14269
14270 2011-05-22  Bruno Haible  <bruno@clisp.org>
14271
14272         wcsncpy: Move AC_LIBOBJ invocations to module description.
14273         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14274         here...
14275         * modules/wcsncpy (configure.ac): ... to here.
14276
14277 2011-05-22  Bruno Haible  <bruno@clisp.org>
14278
14279         wcsncmp: Move AC_LIBOBJ invocations to module description.
14280         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14281         here...
14282         * modules/wcsncmp (configure.ac): ... to here.
14283
14284 2011-05-22  Bruno Haible  <bruno@clisp.org>
14285
14286         wcsncat: Move AC_LIBOBJ invocations to module description.
14287         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14288         here...
14289         * modules/wcsncat (configure.ac): ... to here.
14290
14291 2011-05-22  Bruno Haible  <bruno@clisp.org>
14292
14293         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14294         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14295         from here...
14296         * modules/wcsncasecmp (configure.ac): ... to here.
14297
14298 2011-05-22  Bruno Haible  <bruno@clisp.org>
14299
14300         wcslen: Move AC_LIBOBJ invocations to module description.
14301         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14302         * modules/wcslen (configure.ac): ... to here.
14303
14304 2011-05-22  Bruno Haible  <bruno@clisp.org>
14305
14306         wcsdup: Move AC_LIBOBJ invocations to module description.
14307         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14308         * modules/wcsdup (configure.ac): ... to here.
14309
14310 2011-05-22  Bruno Haible  <bruno@clisp.org>
14311
14312         wcscspn: Move AC_LIBOBJ invocations to module description.
14313         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14314         here...
14315         * modules/wcscspn (configure.ac): ... to here.
14316
14317 2011-05-22  Bruno Haible  <bruno@clisp.org>
14318
14319         wcscpy: Move AC_LIBOBJ invocations to module description.
14320         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14321         * modules/wcscpy (configure.ac): ... to here.
14322
14323 2011-05-22  Bruno Haible  <bruno@clisp.org>
14324
14325         wcscoll: Move AC_LIBOBJ invocations to module description.
14326         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14327         here...
14328         * modules/wcscoll (configure.ac): ... to here.
14329
14330 2011-05-22  Bruno Haible  <bruno@clisp.org>
14331
14332         wcscmp: Move AC_LIBOBJ invocations to module description.
14333         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14334         * modules/wcscmp (configure.ac): ... to here.
14335
14336 2011-05-22  Bruno Haible  <bruno@clisp.org>
14337
14338         wcschr: Move AC_LIBOBJ invocations to module description.
14339         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14340         * modules/wcschr (configure.ac): ... to here.
14341
14342 2011-05-22  Bruno Haible  <bruno@clisp.org>
14343
14344         wcscat: Move AC_LIBOBJ invocations to module description.
14345         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14346         * modules/wcscat (configure.ac): ... to here.
14347
14348 2011-05-22  Bruno Haible  <bruno@clisp.org>
14349
14350         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14351         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14352         here...
14353         * modules/wcscasecmp (configure.ac): ... to here.
14354
14355 2011-05-22  Bruno Haible  <bruno@clisp.org>
14356
14357         wcrtomb: Move AC_LIBOBJ invocations to module description.
14358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14359         invocations from here...
14360         * modules/wcrtomb (configure.ac): ... to here.
14361
14362 2011-05-22  Bruno Haible  <bruno@clisp.org>
14363
14364         wcpncpy: Move AC_LIBOBJ invocations to module description.
14365         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14366         here...
14367         * modules/wcpncpy (configure.ac): ... to here.
14368
14369 2011-05-22  Bruno Haible  <bruno@clisp.org>
14370
14371         wcpcpy: Move AC_LIBOBJ invocations to module description.
14372         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14373         * modules/wcpcpy (configure.ac): ... to here.
14374
14375 2011-05-22  Bruno Haible  <bruno@clisp.org>
14376
14377         waitpid: Move AC_LIBOBJ invocations to module description.
14378         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14379         invocation from here...
14380         * modules/waitpid (configure.ac): ... to here.
14381
14382 2011-05-22  Bruno Haible  <bruno@clisp.org>
14383
14384         utimensat: Move AC_LIBOBJ invocations to module description.
14385         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14386         here...
14387         * modules/utimensat (configure.ac): ... to here.
14388
14389 2011-05-22  Bruno Haible  <bruno@clisp.org>
14390
14391         usleep: Move AC_LIBOBJ invocations to module description.
14392         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14393         here...
14394         * modules/usleep (configure.ac): ... to here.
14395
14396 2011-05-22  Bruno Haible  <bruno@clisp.org>
14397
14398         unlockpt: Move AC_LIBOBJ invocations to module description.
14399         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14400         gl_PREREQ_UNLOCKPT invocations from here...
14401         * modules/unlockpt (configure.ac): ... to here.
14402
14403 2011-05-22  Bruno Haible  <bruno@clisp.org>
14404
14405         unlink: Respect rules for use of AC_LIBOBJ.
14406         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14407         * modules/unlink (configure.ac): ... to here.
14408
14409 2011-05-22  Bruno Haible  <bruno@clisp.org>
14410
14411         uname: Move AC_LIBOBJ invocations to module description.
14412         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14414         here...
14415         * modules/uname (configure.ac): ... to here.
14416
14417 2011-05-22  Bruno Haible  <bruno@clisp.org>
14418
14419         ttyname_r: Move AC_LIBOBJ invocations to module description.
14420         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14421         gl_PREREQ_TTYNAME_R invocations from here...
14422         * modules/ttyname_r (configure.ac): ... to here.
14423
14424 2011-05-22  Bruno Haible  <bruno@clisp.org>
14425
14426         tsearch: Move AC_LIBOBJ invocations to module description.
14427         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14428         invocations from here...
14429         * modules/tsearch (configure.ac): ... to here.
14430
14431 2011-05-22  Bruno Haible  <bruno@clisp.org>
14432
14433         towctrans: Move AC_LIBOBJ invocations to module description.
14434         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14435         AC_LIBOBJ invocation from here...
14436         * modules/towctrans (configure.ac): ... to here.
14437
14438 2011-05-22  Bruno Haible  <bruno@clisp.org>
14439
14440         tmpfile: Move AC_LIBOBJ invocations to module description.
14441         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14442         invocations from here...
14443         * modules/tmpfile (configure.ac): ... to here.
14444
14445 2011-05-22  Bruno Haible  <bruno@clisp.org>
14446
14447         times: Move AC_LIBOBJ invocations to module description.
14448         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14449         * modules/times (configure.ac): ... to here.
14450
14451 2011-05-22  Bruno Haible  <bruno@clisp.org>
14452
14453         time_r: Move AC_LIBOBJ invocations to module description.
14454         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14455         invocations from here...
14456         * modules/time_r (configure.ac): ... to here.
14457
14458 2011-05-22  Bruno Haible  <bruno@clisp.org>
14459
14460         timegm: Move AC_LIBOBJ invocations to module description.
14461         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14462         invocations from here...
14463         * modules/timegm (configure.ac): ... to here.
14464
14465 2011-05-22  Bruno Haible  <bruno@clisp.org>
14466
14467         tcgetsid: Move AC_LIBOBJ invocations to module description.
14468         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14469         and gl_PREREQ_TCGETSID invocations from here...
14470         * modules/tcgetsid (configure.ac): ... to here.
14471         (Depends-on): Update conditions.
14472
14473 2011-05-22  Bruno Haible  <bruno@clisp.org>
14474
14475         symlinkat: Move AC_LIBOBJ invocations to module description.
14476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14477         here...
14478         * modules/symlinkat (configure.ac): ... to here.
14479
14480 2011-05-22  Bruno Haible  <bruno@clisp.org>
14481
14482         symlink: Move AC_LIBOBJ invocations to module description.
14483         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14484         here...
14485         * modules/symlink (configure.ac): ... to here.
14486
14487 2011-05-22  Bruno Haible  <bruno@clisp.org>
14488
14489         strverscmp: Move AC_LIBOBJ invocations to module description.
14490         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14492         from here...
14493         * modules/strverscmp (configure.ac): ... to here.
14494
14495 2011-05-22  Bruno Haible  <bruno@clisp.org>
14496
14497         strtok_r: Move AC_LIBOBJ invocations to module description.
14498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14499         and gl_PREREQ_STRTOK_R invocations from here...
14500         * modules/strtok_r (configure.ac): ... to here.
14501         (Depends-on): Update conditions.
14502
14503 2011-05-22  Bruno Haible  <bruno@clisp.org>
14504
14505         strtoumax: Move AC_LIBOBJ invocations to module description.
14506         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14508         from here...
14509         * modules/strtoumax (configure.ac): ... to here.
14510
14511 2011-05-22  Bruno Haible  <bruno@clisp.org>
14512
14513         strtoimax: Move AC_LIBOBJ invocations to module description.
14514         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14516         from here...
14517         * modules/strtoimax (configure.ac): ... to here.
14518
14519 2011-05-22  Bruno Haible  <bruno@clisp.org>
14520
14521         strtoull: Move AC_LIBOBJ invocations to module description.
14522         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14524         from here...
14525         * modules/strtoull (configure.ac): ... to here.
14526
14527 2011-05-22  Bruno Haible  <bruno@clisp.org>
14528
14529         strtoll: Move AC_LIBOBJ invocations to module description.
14530         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14532         here...
14533         * modules/strtoll (configure.ac): ... to here.
14534
14535 2011-05-22  Bruno Haible  <bruno@clisp.org>
14536
14537         strtoul: Move AC_LIBOBJ invocations to module description.
14538         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14539         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14540         * modules/strtoul (configure.ac): ... to here.
14541
14542 2011-05-22  Bruno Haible  <bruno@clisp.org>
14543
14544         strtol: Move AC_LIBOBJ invocations to module description.
14545         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14546         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14547         * modules/strtol (configure.ac): ... to here.
14548
14549 2011-05-22  Bruno Haible  <bruno@clisp.org>
14550
14551         strtod: Move AC_LIBOBJ invocations to module description.
14552         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14553         invocations from here...
14554         * modules/strtod (configure.ac): ... to here.
14555
14556 2011-05-22  Bruno Haible  <bruno@clisp.org>
14557
14558         strstr*: Move AC_LIBOBJ invocations to module description.
14559         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14560         invocations from here...
14561         * modules/strstr-simple (configure.ac): ... to here.
14562         * modules/strstr (configure.ac): ... and here.
14563
14564 2011-05-22  Bruno Haible  <bruno@clisp.org>
14565
14566         strsignal: Move AC_LIBOBJ invocations to module description.
14567         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14568         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14569         * modules/strsignal (configure.ac): ... to here.
14570         (Depends-on): Update conditions.
14571
14572 2011-05-22  Bruno Haible  <bruno@clisp.org>
14573
14574         strsep: Move AC_LIBOBJ invocations to module description.
14575         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14577         here...
14578         * modules/strsep (configure.ac): ... to here.
14579
14580 2011-05-22  Bruno Haible  <bruno@clisp.org>
14581
14582         strptime: Move AC_LIBOBJ invocations to module description.
14583         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14584         gl_PREREQ_STRPTIME invocations from here...
14585         * modules/strptime (configure.ac): ... to here.
14586
14587 2011-05-22  Bruno Haible  <bruno@clisp.org>
14588
14589         strpbrk: Move AC_LIBOBJ invocations to module description.
14590         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14592         here...
14593         * modules/strpbrk (configure.ac): ... to here.
14594
14595 2011-05-22  Bruno Haible  <bruno@clisp.org>
14596
14597         strnlen: Move AC_LIBOBJ invocations to module description.
14598         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14599         invocations from here...
14600         * modules/strnlen (configure.ac): ... to here.
14601
14602 2011-05-22  Bruno Haible  <bruno@clisp.org>
14603
14604         strndup: Move AC_LIBOBJ invocations to module description.
14605         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14606         invocations from here...
14607         * modules/strndup (configure.ac): ... to here.
14608         (Depends-on): Update conditions.
14609
14610 2011-05-22  Bruno Haible  <bruno@clisp.org>
14611
14612         strncat: Move AC_LIBOBJ invocations to module description.
14613         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14614         invocations from here...
14615         * modules/strncat (configure.ac): ... to here.
14616
14617 2011-05-22  Bruno Haible  <bruno@clisp.org>
14618
14619         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14620         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14621         invocations from here...
14622         * modules/strdup (configure.ac): ... to here.
14623         * modules/strdup-posix (configure.ac): ... and here.
14624
14625 2011-05-22  Bruno Haible  <bruno@clisp.org>
14626
14627         strcspn: Move AC_LIBOBJ invocations to module description.
14628         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14630         here...
14631         * modules/strcspn (configure.ac): ... to here.
14632
14633 2011-05-22  Bruno Haible  <bruno@clisp.org>
14634
14635         strchrnul: Move AC_LIBOBJ invocations to module description.
14636         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14637         gl_PREREQ_STRCHRNUL invocations from here...
14638         * modules/strchrnul (configure.ac): ... to here.
14639
14640 2011-05-22  Bruno Haible  <bruno@clisp.org>
14641
14642         strcasestr*: Move AC_LIBOBJ invocations to module description.
14643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14644         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14645         * modules/strcasestr-simple (configure.ac): ... to here.
14646         * modules/strcasestr (configure.ac): ... and here.
14647
14648 2011-05-22  Bruno Haible  <bruno@clisp.org>
14649
14650         strcase: Move AC_LIBOBJ invocations to module description.
14651         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14652         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14653         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14654         gl_PREREQ_STRNCASECMP invocations from here...
14655         * modules/strcase (configure.ac): ... to here.
14656
14657 2011-05-22  Bruno Haible  <bruno@clisp.org>
14658
14659         stpncpy: Move AC_LIBOBJ invocations to module description.
14660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14661         here...
14662         * modules/stpncpy (configure.ac): ... to here.
14663
14664 2011-05-22  Bruno Haible  <bruno@clisp.org>
14665
14666         stpcpy: Move AC_LIBOBJ invocations to module description.
14667         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14669         here...
14670         * modules/stpcpy (configure.ac): ... to here.
14671
14672 2011-05-21  Bruno Haible  <bruno@clisp.org>
14673
14674         stat: Move AC_LIBOBJ invocations to module description.
14675         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14676         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14677         here...
14678         * modules/stat (configure.ac): ... to here.
14679
14680 2011-05-21  Bruno Haible  <bruno@clisp.org>
14681
14682         sleep: Move AC_LIBOBJ invocations to module description.
14683         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14684         * modules/sleep (configure.ac): ... to here.
14685
14686 2011-05-21  Bruno Haible  <bruno@clisp.org>
14687
14688         signbit: Move AC_LIBOBJ invocations to module description.
14689         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14690         * modules/signbit (configure.ac): ... to here.
14691
14692 2011-05-21  Bruno Haible  <bruno@clisp.org>
14693
14694         sigprocmask: Move AC_LIBOBJ invocations to module description.
14695         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14696         gl_PREREQ_SIGPROMASK invocations from here...
14697         * modules/sigprocmask (configure.ac): ... to here.
14698
14699 2011-05-21  Bruno Haible  <bruno@clisp.org>
14700
14701         sigaction: Move AC_LIBOBJ invocations to module description.
14702         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14703         gl_PREREQ_SIGACTION invocations from here...
14704         * modules/sigaction (configure.ac): ... to here.
14705
14706 2011-05-21  Bruno Haible  <bruno@clisp.org>
14707
14708         sig2str: Move AC_LIBOBJ invocations to module description.
14709         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14711         here...
14712         * modules/sig2str (configure.ac): ... to here.
14713
14714 2011-05-21  Bruno Haible  <bruno@clisp.org>
14715
14716         setlocale: Move AC_LIBOBJ invocations to module description.
14717         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14718         gl_PREREQ_SETLOCALE invocations from here...
14719         * modules/setlocale (configure.ac): ... to here.
14720
14721 2011-05-21  Bruno Haible  <bruno@clisp.org>
14722
14723         unsetenv: Move AC_LIBOBJ invocations to module description.
14724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14725         and gl_PREREQ_UNSETENV invocations from here...
14726         * modules/unsetenv (configure.ac): ... to here.
14727         (Depends-on): Update.
14728
14729 2011-05-21  Bruno Haible  <bruno@clisp.org>
14730
14731         setenv: Move AC_LIBOBJ invocations to module description.
14732         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14733         here...
14734         * modules/setenv (configure.ac): ... to here.
14735
14736 2011-05-21  Bruno Haible  <bruno@clisp.org>
14737
14738         selinux-h: Move AC_LIBOBJ invocations to module description.
14739         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14740         AC_LIBOBJ invocation from here...
14741         * modules/selinux-h (configure.ac): ... to here.
14742
14743 2011-05-21  Bruno Haible  <bruno@clisp.org>
14744
14745         select: Respect rules for use of AC_LIBOBJ.
14746         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14747         here...
14748         * modules/select (configure.ac): ... to here.
14749
14750 2011-05-21  Bruno Haible  <bruno@clisp.org>
14751
14752         scandir: Move AC_LIBOBJ invocations to module description.
14753         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14754         invocations from here...
14755         * modules/scandir (configure.ac): ... to here.
14756
14757 2011-05-21  Bruno Haible  <bruno@clisp.org>
14758
14759         rpmatch: Move AC_LIBOBJ invocations to module description.
14760         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14762         here...
14763         * modules/rpmatch (configure.ac): ... to here.
14764
14765 2011-05-21  Bruno Haible  <bruno@clisp.org>
14766
14767         rmdir: Respect rules for use of AC_LIBOBJ.
14768         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14769         * modules/rmdir (configure.ac): ... to here.
14770
14771 2011-05-21  Bruno Haible  <bruno@clisp.org>
14772
14773         renameat: Move AC_LIBOBJ invocations to module description.
14774         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14775         here...
14776         * modules/renameat (configure.ac): ... to here.
14777
14778 2011-05-21  Bruno Haible  <bruno@clisp.org>
14779
14780         rename: Respect rules for use of AC_LIBOBJ.
14781         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14782         here...
14783         * modules/rename (configure.ac): ... to here.
14784
14785 2011-05-21  Bruno Haible  <bruno@clisp.org>
14786
14787         remove: Move AC_LIBOBJ invocations to module description.
14788         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14789         here...
14790         * modules/remove (configure.ac): ... to here.
14791
14792 2011-05-21  Bruno Haible  <bruno@clisp.org>
14793
14794         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14795         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14796         macro.
14797         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14798         * modules/relocatable-lib (configure.ac): ... to here.
14799         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14800         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14801
14802 2011-05-21  Bruno Haible  <bruno@clisp.org>
14803
14804         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14805         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14806         here...
14807         * modules/relocatable-prog (configure.ac): ... to here.
14808
14809 2011-05-21  Bruno Haible  <bruno@clisp.org>
14810
14811         regex: Move AC_LIBOBJ invocations to module description.
14812         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14813         invocations from here...
14814         * modules/regex (configure.ac): ... to here.
14815
14816 2011-05-21  Bruno Haible  <bruno@clisp.org>
14817
14818         realloc-*: Move AC_LIBOBJ invocations to module description.
14819         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14820         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14821         AC_LIBOBJ invocations from here...
14822         * modules/realloc-gnu (configure.ac): ... to here.
14823         * modules/realloc-posix (configure.ac): ... and here.
14824
14825 2011-05-21  Bruno Haible  <bruno@clisp.org>
14826
14827         readutmp: Move AC_LIBOBJ invocations to module description.
14828         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14829         * modules/readutmp (configure.ac): ... to here.
14830
14831 2011-05-21  Bruno Haible  <bruno@clisp.org>
14832
14833         readlinkat: Move AC_LIBOBJ invocations to module description.
14834         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14835         here...
14836         * modules/readlinkat (configure.ac): ... to here.
14837
14838 2011-05-21  Bruno Haible  <bruno@clisp.org>
14839
14840         readlink: Move AC_LIBOBJ invocations to module description.
14841         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14842         gl_PREREQ_READLINK invocations from here...
14843         * modules/readlink (configure.ac): ... to here.
14844
14845 2011-05-21  Bruno Haible  <bruno@clisp.org>
14846
14847         readline: Move AC_LIBOBJ invocations to module description.
14848         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14849         gl_PREREQ_READLINE invocations from here...
14850         * modules/readline (configure.ac): ... to here.
14851
14852 2011-05-21  Bruno Haible  <bruno@clisp.org>
14853
14854         read: Move AC_LIBOBJ invocations to module description.
14855         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14856         * modules/read (configure.ac): ... to here.
14857
14858 2011-05-21  Bruno Haible  <bruno@clisp.org>
14859
14860         rawmemchr: Move AC_LIBOBJ invocations to module description.
14861         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14863         from here...
14864         * modules/rawmemchr (configure.ac): ... to here.
14865
14866 2011-05-21  Bruno Haible  <bruno@clisp.org>
14867
14868         random_r: Move AC_LIBOBJ invocations to module description.
14869         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14870         gl_PREREQ_RANDOM_R invocations from here...
14871         * modules/random_r (configure.ac): ... to here.
14872
14873 2011-05-21  Bruno Haible  <bruno@clisp.org>
14874
14875         pwrite: Move AC_LIBOBJ invocations to module description.
14876         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14877         * modules/pwrite (configure.ac): ... to here.
14878
14879 2011-05-21  Bruno Haible  <bruno@clisp.org>
14880
14881         putenv: Move AC_LIBOBJ invocations to module description.
14882         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14883         * modules/putenv (configure.ac): ... to here.
14884
14885 2011-05-21  Bruno Haible  <bruno@clisp.org>
14886
14887         login_tty: Move AC_LIBOBJ invocations to module description.
14888         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14889         * modules/login_tty (configure.ac): ... to here.
14890
14891 2011-05-21  Bruno Haible  <bruno@clisp.org>
14892
14893         openpty: Move AC_LIBOBJ invocations to module description.
14894         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14895         * modules/openpty (configure.ac): ... to here.
14896
14897 2011-05-21  Bruno Haible  <bruno@clisp.org>
14898
14899         forkpty: Move AC_LIBOBJ invocations to module description.
14900         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14901         * modules/forkpty (configure.ac): ... to here.
14902
14903 2011-05-21  Bruno Haible  <bruno@clisp.org>
14904
14905         ptsname: Move AC_LIBOBJ invocations to module description.
14906         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14907         invocations from here...
14908         * modules/ptsname (configure.ac): ... to here.
14909
14910 2011-05-21  Bruno Haible  <bruno@clisp.org>
14911
14912         pread: Move AC_LIBOBJ invocations to module description.
14913         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14914         * modules/pread (configure.ac): ... to here.
14915
14916 2011-05-21  Bruno Haible  <bruno@clisp.org>
14917
14918         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14919         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14920         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14921         * modules/posix_spawn (configure.ac): ... to here.
14922         * modules/posix_spawnp (configure.ac): ... and here.
14923
14924 2011-05-21  Bruno Haible  <bruno@clisp.org>
14925
14926         popen: Move AC_LIBOBJ invocations to module description.
14927         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14928         invocations from here...
14929         * modules/popen (configure.ac): ... to here.
14930
14931 2011-05-21  Bruno Haible  <bruno@clisp.org>
14932
14933         poll: Move AC_LIBOBJ invocations to module description.
14934         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14935         invocations from here...
14936         * modules/poll (configure.ac): ... to here.
14937
14938 2011-05-21  Bruno Haible  <bruno@clisp.org>
14939
14940         pipe-posix: Move AC_LIBOBJ invocations to module description.
14941         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14942         * modules/pipe-posix (configure.ac): ... to here.
14943
14944 2011-05-21  Bruno Haible  <bruno@clisp.org>
14945
14946         openat: Respect rules for use of AC_LIBOBJ.
14947         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14948         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14949         * modules/openat (configure.ac): ... to here.
14950
14951 2011-05-21  Bruno Haible  <bruno@clisp.org>
14952
14953         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14954         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14955         invocation from here...
14956         * modules/obstack-printf (configure.ac): ... to here.
14957         * modules/obstack-printf-posix (configure.ac): ... and here.
14958
14959 2011-05-21  Bruno Haible  <bruno@clisp.org>
14960
14961         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14962         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14963         from here...
14964         * modules/nl_langinfo (configure.ac): ... to here.
14965
14966 2011-05-21  Bruno Haible  <bruno@clisp.org>
14967
14968         nanosleep: Move AC_LIBOBJ invocations to module description.
14969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14970         gl_PREREQ_NANOSLEEP invocations from here...
14971         * modules/nanosleep (configure.ac): ... to here.
14972
14973 2011-05-21  Bruno Haible  <bruno@clisp.org>
14974
14975         mountlist: Move AC_LIBOBJ invocations to module description.
14976         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14977         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14978         * modules/mountlist (configure.ac): ... to here.
14979
14980 2011-05-21  Bruno Haible  <bruno@clisp.org>
14981
14982         mktime: Respect rules for use of AC_LIBOBJ.
14983         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14984         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14985         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14986         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14987         * modules/mktime (configure.ac): ... to here.
14988         * modules/mktime-internal (configure.ac): ... and here.
14989         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14990
14991 2011-05-21  Bruno Haible  <bruno@clisp.org>
14992
14993         mkstemps: Move AC_LIBOBJ invocations to module description.
14994         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14995         here...
14996         * modules/mkstemps (configure.ac): ... to here.
14997
14998 2011-05-21  Bruno Haible  <bruno@clisp.org>
14999
15000         mkstemp: Move AC_LIBOBJ invocations to module description.
15001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15002         gl_PREREQ_MKSTEMP invocations from here...
15003         * modules/mkstemp (configure.ac): ... to here.
15004
15005 2011-05-21  Bruno Haible  <bruno@clisp.org>
15006
15007         mkostemps: Move AC_LIBOBJ invocations to module description.
15008         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15009         here...
15010         * modules/mkostemps (configure.ac): ... to here.
15011
15012 2011-05-21  Bruno Haible  <bruno@clisp.org>
15013
15014         mkostemp: Move AC_LIBOBJ invocations to module description.
15015         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15016         gl_PREREQ_MKOSTEMP invocations from here...
15017         * modules/mkostemp (configure.ac): ... to here.
15018
15019 2011-05-21  Bruno Haible  <bruno@clisp.org>
15020
15021         mknod: Move AC_LIBOBJ invocations to module description.
15022         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15023         * modules/mknod (configure.ac): ... to here.
15024
15025 2011-05-21  Bruno Haible  <bruno@clisp.org>
15026
15027         mkfifoat: Move AC_LIBOBJ invocations to module description.
15028         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15029         here...
15030         * modules/mkfifoat (configure.ac): ... to here.
15031
15032 2011-05-21  Bruno Haible  <bruno@clisp.org>
15033
15034         mkfifo: Respect rules for use of AC_LIBOBJ.
15035         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15036         here...
15037         * modules/mkfifo (configure.ac): ... to here.
15038
15039 2011-05-21  Bruno Haible  <bruno@clisp.org>
15040
15041         mkdtemp: Move AC_LIBOBJ invocations to module description.
15042         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15043         invocations from here...
15044         * modules/mkdtemp (configure.ac): ... to here.
15045
15046 2011-05-21  Bruno Haible  <bruno@clisp.org>
15047
15048         mkdir: Move AC_LIBOBJ invocations to module description.
15049         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15050         * modules/mkdir (configure.ac): ... to here.
15051
15052 2011-05-21  Bruno Haible  <bruno@clisp.org>
15053
15054         memset: Move AC_LIBOBJ invocations to module description.
15055         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15057         here...
15058         * modules/memset (configure.ac): ... to here.
15059
15060 2011-05-21  Bruno Haible  <bruno@clisp.org>
15061
15062         memrchr: Move AC_LIBOBJ invocations to module description.
15063         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15065         here...
15066         * modules/memrchr (configure.ac): ... to here.
15067
15068 2011-05-21  Bruno Haible  <bruno@clisp.org>
15069
15070         mempcpy: Move AC_LIBOBJ invocations to module description.
15071         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15073         here...
15074         * modules/mempcpy (configure.ac): ... to here.
15075
15076 2011-05-21  Bruno Haible  <bruno@clisp.org>
15077
15078         memmove: Move AC_LIBOBJ invocations to module description.
15079         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15081         here...
15082         * modules/memmove (configure.ac): ... to here.
15083
15084 2011-05-21  Bruno Haible  <bruno@clisp.org>
15085
15086         memmem*: Move AC_LIBOBJ invocations to module description.
15087         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15088         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15089         here...
15090         (gl_FUNC_MEMMEM): ... and here...
15091         * modules/memmem-simple (configure.ac): ... to here.
15092         * modules/memmem (configure.ac): ... and here.
15093
15094 2011-05-21  Bruno Haible  <bruno@clisp.org>
15095
15096         memcpy: Move AC_LIBOBJ invocations to module description.
15097         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15099         here...
15100         * modules/memcpy (configure.ac): ... to here.
15101
15102 2011-05-21  Bruno Haible  <bruno@clisp.org>
15103
15104         memcmp: Simplify autoconf macro.
15105         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15106         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15107         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15108
15109 2011-05-21  Bruno Haible  <bruno@clisp.org>
15110
15111         memcmp: Move AC_LIBOBJ invocations to module description.
15112         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15113         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15114         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15115         * modules/memcmp (configure.ac): ... to here.
15116         (Depends-on): Update conditions.
15117
15118 2011-05-21  Bruno Haible  <bruno@clisp.org>
15119
15120         memchr: Respect rules for use of AC_LIBOBJ.
15121         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15122         invocations from here...
15123         * modules/memchr (configure.ac): ... to here.
15124
15125 2011-05-21  Bruno Haible  <bruno@clisp.org>
15126
15127         mbtowc: Move AC_LIBOBJ invocations to module description.
15128         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15129         invocations from here...
15130         * modules/mbtowc (configure.ac): ... to here.
15131
15132 2011-05-21  Bruno Haible  <bruno@clisp.org>
15133
15134         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15135         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15136         gl_PREREQ_MBSRTOWCS invocations from here...
15137         * modules/mbsrtowcs (configure.ac): ... to here.
15138
15139 2011-05-21  Bruno Haible  <bruno@clisp.org>
15140
15141         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15142         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15143         gl_PREREQ_MBSNRTOWCS invocations from here...
15144         * modules/mbsnrtowcs (configure.ac): ... to here.
15145
15146 2011-05-21  Bruno Haible  <bruno@clisp.org>
15147
15148         mbsinit: Move AC_LIBOBJ invocations to module description.
15149         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15150         invocations from here...
15151         * modules/mbsinit (configure.ac): ... to here.
15152
15153 2011-05-21  Bruno Haible  <bruno@clisp.org>
15154
15155         mbrlen: Move AC_LIBOBJ invocations to module description.
15156         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15157         invocations from here...
15158         * modules/mbrlen (configure.ac): ... to here.
15159
15160 2011-05-21  Bruno Haible  <bruno@clisp.org>
15161
15162         mbrtowc: Respect rules for use of AC_LIBOBJ.
15163         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15164         invocations from here...
15165         * modules/mbrtowc (configure.ac): ... to here.
15166
15167 2011-05-21  Bruno Haible  <bruno@clisp.org>
15168
15169         malloc-*: Move AC_LIBOBJ invocations to module description.
15170         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15171         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15172         AC_LIBOBJ invocations from here...
15173         * modules/malloc-gnu (configure.ac): ... to here.
15174         * modules/malloc-posix (configure.ac): ... and here.
15175
15176 2011-05-21  Bruno Haible  <bruno@clisp.org>
15177
15178         lstat, openat: Respect rules for use of AC_LIBOBJ.
15179         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15180         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15181         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15182         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15183         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15184         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15185         here.
15186         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15187
15188 2011-05-21  Bruno Haible  <bruno@clisp.org>
15189
15190         lseek: Move AC_LIBOBJ invocations to module description.
15191         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15192         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15193         * modules/lseek (configure.ac): ... to here.
15194
15195 2011-05-21  Bruno Haible  <bruno@clisp.org>
15196
15197         linkat: Move AC_LIBOBJ invocations to module description.
15198         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15199         here...
15200         * modules/linkat (configure.ac): ... to here.
15201
15202 2011-05-21  Bruno Haible  <bruno@clisp.org>
15203
15204         link: Respect rules for use of AC_LIBOBJ.
15205         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15206         * modules/link (configure.ac): ... to here.
15207
15208 2011-05-21  Bruno Haible  <bruno@clisp.org>
15209
15210         lchown: Move AC_LIBOBJ invocations to module description.
15211         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15212         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15213         * modules/lchown (configure.ac): ... to here.
15214
15215 2011-05-21  Bruno Haible  <bruno@clisp.org>
15216
15217         iswctype: Move AC_LIBOBJ invocations to module description.
15218         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15219         here...
15220         * modules/iswctype (configure.ac): ... to here.
15221
15222 2011-05-21  Bruno Haible  <bruno@clisp.org>
15223
15224         iswblank: Move AC_LIBOBJ invocations to module description.
15225         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15226         here...
15227         * modules/iswblank (configure.ac): ... to here.
15228
15229 2011-05-21  Bruno Haible  <bruno@clisp.org>
15230
15231         atanl: Move AC_LIBOBJ invocations to module description.
15232         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15233         * modules/atanl (configure.ac): ... to here.
15234
15235 2011-05-21  Bruno Haible  <bruno@clisp.org>
15236
15237         acosl: Move AC_LIBOBJ invocations to module description.
15238         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15239         * modules/acosl (configure.ac): ... to here.
15240
15241 2011-05-21  Bruno Haible  <bruno@clisp.org>
15242
15243         asinl: Respect rules for use of AC_LIBOBJ.
15244         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15245         * modules/asinl (configure.ac): ... to here.
15246
15247 2011-05-21  Bruno Haible  <bruno@clisp.org>
15248
15249         tanl: Move AC_LIBOBJ invocations to module description.
15250         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15251         * modules/tanl (configure.ac): ... to here.
15252
15253 2011-05-21  Bruno Haible  <bruno@clisp.org>
15254
15255         cosl: Move AC_LIBOBJ invocations to module description.
15256         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15257         * modules/cosl (configure.ac): ... to here.
15258
15259 2011-05-21  Bruno Haible  <bruno@clisp.org>
15260
15261         sinl: Move AC_LIBOBJ invocations to module description.
15262         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15263         * modules/sinl (configure.ac): ... to here.
15264
15265 2011-05-21  Bruno Haible  <bruno@clisp.org>
15266
15267         logl: Move AC_LIBOBJ invocations to module description.
15268         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15269         * modules/logl (configure.ac): ... to here.
15270
15271 2011-05-21  Bruno Haible  <bruno@clisp.org>
15272
15273         expl: Move AC_LIBOBJ invocations to module description.
15274         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15275         * modules/expl (configure.ac): ... to here.
15276
15277 2011-05-21  Bruno Haible  <bruno@clisp.org>
15278
15279         roundl: Move AC_LIBOBJ invocations to module description.
15280         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15281         * modules/roundl (configure.ac): ... to here.
15282
15283 2011-05-21  Bruno Haible  <bruno@clisp.org>
15284
15285         round: Move AC_LIBOBJ invocations to module description.
15286         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15287         * modules/round (configure.ac): ... to here.
15288
15289 2011-05-21  Bruno Haible  <bruno@clisp.org>
15290
15291         roundf: Move AC_LIBOBJ invocations to module description.
15292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15293         * modules/roundf (configure.ac): ... to here.
15294
15295 2011-05-21  Bruno Haible  <bruno@clisp.org>
15296
15297         truncl: Move AC_LIBOBJ invocations to module description.
15298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15299         * modules/truncl (configure.ac): ... to here.
15300
15301 2011-05-21  Bruno Haible  <bruno@clisp.org>
15302
15303         trunc: Move AC_LIBOBJ invocations to module description.
15304         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15305         * modules/trunc (configure.ac): ... to here.
15306
15307 2011-05-21  Bruno Haible  <bruno@clisp.org>
15308
15309         truncf: Move AC_LIBOBJ invocations to module description.
15310         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15311         * modules/truncf (configure.ac): ... to here.
15312
15313 2011-05-21  Bruno Haible  <bruno@clisp.org>
15314
15315         ceill: Move AC_LIBOBJ invocations to module description.
15316         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15317         * modules/ceill (configure.ac): ... to here.
15318
15319 2011-05-21  Bruno Haible  <bruno@clisp.org>
15320
15321         ceil: Move AC_LIBOBJ invocations to module description.
15322         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15323         * modules/ceil (configure.ac): ... to here.
15324
15325 2011-05-21  Bruno Haible  <bruno@clisp.org>
15326
15327         ceilf: Move AC_LIBOBJ invocations to module description.
15328         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15329         * modules/ceilf (configure.ac): ... to here.
15330
15331 2011-05-21  Bruno Haible  <bruno@clisp.org>
15332
15333         floorl: Respect rules for use of AC_LIBOBJ.
15334         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15335         * modules/floorl (configure.ac): ... to here.
15336
15337 2011-05-21  Bruno Haible  <bruno@clisp.org>
15338
15339         floor: Respect rules for use of AC_LIBOBJ.
15340         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15341         * modules/floor (configure.ac): ... to here.
15342
15343 2011-05-21  Bruno Haible  <bruno@clisp.org>
15344
15345         floorf: Move AC_LIBOBJ invocations to module description.
15346         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15347         * modules/floorf (configure.ac): ... to here.
15348
15349 2011-05-20  Bruno Haible  <bruno@clisp.org>
15350
15351         sqrtl: Respect rules for use of AC_LIBOBJ.
15352         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15353         * modules/sqrtl (configure.ac): ... to here.
15354
15355 2011-05-20  Bruno Haible  <bruno@clisp.org>
15356
15357         ldexpl: Respect rules for use of AC_LIBOBJ.
15358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15359         * modules/ldexpl (configure.ac): ... to here.
15360
15361 2011-05-20  Bruno Haible  <bruno@clisp.org>
15362
15363         frexpl*: Respect rules for use of AC_LIBOBJ.
15364         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15365         invocation from here...
15366         * modules/frexpl (configure.ac): ... to here.
15367         * modules/frexpl-nolibm (configure.ac): ... and here.
15368
15369 2011-05-20  Bruno Haible  <bruno@clisp.org>
15370
15371         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15372         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15373         invocation from here...
15374         * modules/frexp (configure.ac): ... to here.
15375         * modules/frexp-nolibm (configure.ac): ... and here.
15376
15377 2011-05-20  Bruno Haible  <bruno@clisp.org>
15378
15379         isnan: Respect rules for use of AC_LIBOBJ.
15380         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15381         invocations here.
15382         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15383         REPLACE_ISNAN.
15384         * modules/isnand (configure.ac): Likewise.
15385         * modules/isnanl (configure.ac): Likewise.
15386
15387 2011-05-20  Bruno Haible  <bruno@clisp.org>
15388
15389         isnanl*: Respect rules for use of AC_LIBOBJ.
15390         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15391         invocation from here...
15392         * modules/isnanl (configure.ac): ... to here.
15393         * modules/isnanl-nolibm (configure.ac): ... and here.
15394
15395 2011-05-20  Bruno Haible  <bruno@clisp.org>
15396
15397         isnand*: Move AC_LIBOBJ invocations to module description.
15398         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15399         invocation from here...
15400         * modules/isnand (configure.ac): ... to here.
15401         * modules/isnand-nolibm (configure.ac): ... and here.
15402
15403 2011-05-20  Bruno Haible  <bruno@clisp.org>
15404
15405         isnanf*: Move AC_LIBOBJ invocations to module description.
15406         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15407         invocation from here...
15408         * modules/isnanf (configure.ac): ... to here.
15409         * modules/isnanf-nolibm (configure.ac): ... and here.
15410
15411 2011-05-20  Bruno Haible  <bruno@clisp.org>
15412
15413         isnan*: Separate the AC_LIBOBJ invocations.
15414         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15415         AC_LIBOBJ invocation.
15416         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15417         here.
15418         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15419         AC_LIBOBJ invocation.
15420         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15421         here.
15422         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15423         AC_LIBOBJ invocation.
15424         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15425         here.
15426         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15427
15428 2011-05-08  Bruno Haible  <bruno@clisp.org>
15429
15430         isinf: Move AC_LIBOBJ invocations to module description.
15431         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15432         * modules/isinf (configure.ac): ... to here.
15433
15434 2011-05-08  Bruno Haible  <bruno@clisp.org>
15435
15436         isfinite: Move AC_LIBOBJ invocations to module description.
15437         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15438         * modules/isfinite (configure.ac): ... to here.
15439
15440 2011-05-08  Bruno Haible  <bruno@clisp.org>
15441
15442         isblank: Move AC_LIBOBJ invocations to module description.
15443         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15444         here...
15445         * modules/isblank (configure.ac): ... to here.
15446
15447 2011-05-08  Bruno Haible  <bruno@clisp.org>
15448
15449         isapipe: Move AC_LIBOBJ invocations to module description.
15450         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15451         gl_PREREQ_ISAPIPE invocations from here...
15452         * modules/isapipe (configure.ac): ... to here.
15453         (Depends-on): Update condition.
15454
15455 2011-05-08  Bruno Haible  <bruno@clisp.org>
15456
15457         ioctl: Move AC_LIBOBJ invocations to module description.
15458         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15459         invocations from here...
15460         * modules/ioctl (configure.ac): ... to here.
15461         (Depends-on): Update condition.
15462
15463 2011-05-08  Bruno Haible  <bruno@clisp.org>
15464
15465         imaxdiv: Move AC_LIBOBJ invocations to module description.
15466         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15467         invocations from here...
15468         * modules/imaxdiv (configure.ac): ... to here.
15469
15470 2011-05-08  Bruno Haible  <bruno@clisp.org>
15471
15472         imaxabs: Move AC_LIBOBJ invocations to module description.
15473         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15474         invocations from here...
15475         * modules/imaxabs (configure.ac): ... to here.
15476
15477 2011-05-08  Bruno Haible  <bruno@clisp.org>
15478
15479         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15481         AC_LIBOBJ invocations from here...
15482         * modules/getaddrinfo (configure.ac): ... to here.
15483         (Depends-on): Add conditions.
15484
15485 2011-05-08  Bruno Haible  <bruno@clisp.org>
15486
15487         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15488         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15489         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15490         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15491         (gl_PREREQ_INET_PTON): ... from here.
15492         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15493         gl_PREREQ_INET_PTON here.
15494         (Depends-on): Update condition.
15495
15496 2011-05-08  Bruno Haible  <bruno@clisp.org>
15497
15498         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15499         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15500         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15501         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15502         (gl_PREREQ_INET_NTOP): ... from here.
15503         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15504         gl_PREREQ_INET_NTOP here.
15505         (Depends-on): Update condition.
15506
15507 2011-05-08  Bruno Haible  <bruno@clisp.org>
15508
15509         iconv_open: Move AC_LIBOBJ invocations to module description.
15510         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15511         AC_LIBOBJ invocations from here...
15512         * modules/iconv_open (configure.ac): ... to here.
15513
15514 2011-05-08  Bruno Haible  <bruno@clisp.org>
15515
15516         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15517         If module 'iconv_open' is among the main modules and module
15518         'iconv_open-utf' is among the tests dependencies, then
15519         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15520         return the special iconv_t values. Therefore iconv() and iconv_close()
15521         must support these special iconv_t values, already in lib, not only in
15522         tests.
15523         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15525         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15526         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15527         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15528         (Depends-on): Add the dependencies of iconv_open-utf.
15529         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15530         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15531         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15532
15533 2011-05-08  Bruno Haible  <bruno@clisp.org>
15534
15535         group-member: Move AC_LIBOBJ invocations to module description.
15536         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15537         gl_PREREQ_GROUP_MEMBER invocations from here...
15538         * modules/group-member (configure.ac): ... to here.
15539
15540 2011-05-08  Bruno Haible  <bruno@clisp.org>
15541
15542         grantpt: Move AC_LIBOBJ invocations to module description.
15543         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15544         invocations from here...
15545         * modules/grantpt (configure.ac): ... to here.
15546
15547 2011-05-08  Bruno Haible  <bruno@clisp.org>
15548
15549         glob: Move AC_LIBOBJ invocations to module description.
15550         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15551         from here...
15552         * modules/glob (configure.ac): ... to here.
15553
15554 2011-05-08  Bruno Haible  <bruno@clisp.org>
15555
15556         getusershell: Move AC_LIBOBJ invocations to module description.
15557         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15558         Move AC_LIBOBJ invocation from here...
15559         * modules/getusershell (configure.ac): ... to here.
15560         (Depends-on): Update condition.
15561
15562 2011-05-08  Bruno Haible  <bruno@clisp.org>
15563
15564         gettimeofday: Move AC_LIBOBJ invocations to module description.
15565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15566         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15567         gl_PREREQ_GETTIMEOFDAY invocations from here...
15568         * modules/gettimeofday (configure.ac): ... to here.
15569
15570 2011-05-08  Bruno Haible  <bruno@clisp.org>
15571
15572         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15573         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15574         just gl_FUNC_TZSET.
15575         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15576         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15578         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15579
15580 2011-05-08  Bruno Haible  <bruno@clisp.org>
15581
15582         getsubopt: Move AC_LIBOBJ invocations to module description.
15583         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15584         gl_PREREQ_GETSUBOPT invocations from here...
15585         * modules/getsubopt (configure.ac): ... to here.
15586
15587 2011-05-08  Bruno Haible  <bruno@clisp.org>
15588
15589         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15590         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15591         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15592         * modules/getpass-gnu (configure.ac): ... to here.
15593
15594 2011-05-08  Bruno Haible  <bruno@clisp.org>
15595
15596         getpass: Move AC_LIBOBJ invocations to module description.
15597         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15598         gl_PREREQ_GETPASS invocations from here...
15599         * modules/getpass (configure.ac): ... to here.
15600
15601 2011-05-08  Bruno Haible  <bruno@clisp.org>
15602
15603         getpagesize: Move AC_LIBOBJ invocations to module description.
15604         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15605         from here...
15606         * modules/getpagesize (configure.ac): ... to here.
15607
15608 2011-05-08  Bruno Haible  <bruno@clisp.org>
15609
15610         getopt: Move AC_LIBOBJ invocations to module description.
15611         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15612         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15613         invocations from here...
15614         * modules/getopt-gnu (configure.ac): ... to here.
15615         * modules/getopt-posix (configure.ac): ... and here.
15616         (Depends-on): Update condition.
15617
15618 2011-05-08  Bruno Haible  <bruno@clisp.org>
15619
15620         getopt, argp: Respect rules for use of AC_LIBOBJ.
15621         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15622         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15623         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15624         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15625
15626 2011-05-08  Bruno Haible  <bruno@clisp.org>
15627
15628         getlogin_r: Move AC_LIBOBJ invocations to module description.
15629         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15630         gl_PREREQ_GETLOGIN_R invocations from here...
15631         * modules/getlogin_r (configure.ac): ... to here.
15632
15633 2011-05-08  Bruno Haible  <bruno@clisp.org>
15634
15635         getlogin: Move AC_LIBOBJ invocations to module description.
15636         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15637         here...
15638         * modules/getlogin (configure.ac): ... to here.
15639
15640 2011-05-08  Bruno Haible  <bruno@clisp.org>
15641
15642         getloadavg: Move AC_LIBOBJ invocations to module description.
15643         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15644         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15645         * modules/getloadavg (configure.ac): ... to here.
15646
15647 2011-05-08  Bruno Haible  <bruno@clisp.org>
15648
15649         gethrxtime: Move AC_LIBOBJ invocations to module description.
15650         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15651         LIB_GETHRXTIME from here...
15652         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15653         invocations from here...
15654         * modules/gethrxtime (configure.ac): ... to here.
15655
15656 2011-05-08  Bruno Haible  <bruno@clisp.org>
15657
15658         gethostname: Move AC_LIBOBJ invocations to module description.
15659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15660         gl_PREREQ_GETHOSTNAME invocations from here...
15661         * modules/gethostname (configure.ac): ... to here.
15662
15663 2011-05-08  Bruno Haible  <bruno@clisp.org>
15664
15665         getgroups: Move AC_LIBOBJ invocations to module description.
15666         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15667         here...
15668         * modules/getgroups (configure.ac): ... to here.
15669
15670 2011-05-08  Bruno Haible  <bruno@clisp.org>
15671
15672         getdtablesize: Move AC_LIBOBJ invocations to module description.
15673         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15674         invocation from here...
15675         * modules/getdtablesize (configure.ac): ... to here.
15676
15677 2011-05-08  Bruno Haible  <bruno@clisp.org>
15678
15679         getdomainname: Move AC_LIBOBJ invocations to module description.
15680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15681         gl_PREREQ_GETDOMAINNAME invocations from here...
15682         * modules/getdomainname (configure.ac): ... to here.
15683
15684 2011-05-08  Bruno Haible  <bruno@clisp.org>
15685
15686         getline: Move AC_LIBOBJ invocations to module description.
15687         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15688         invocations from here...
15689         * modules/getline (configure.ac): ... to here.
15690
15691 2011-05-08  Bruno Haible  <bruno@clisp.org>
15692
15693         getline: Simplify.
15694         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15695         It's already handled through the module dependency.
15696
15697 2011-05-08  Bruno Haible  <bruno@clisp.org>
15698
15699         getdelim: Move AC_LIBOBJ invocations to module description.
15700         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15701         and gl_PREREQ_GETDELIM invocations from here...
15702         * modules/getdelim (configure.ac): ... to here.
15703         (Depends-on): Fix condition.
15704
15705 2011-05-08  Bruno Haible  <bruno@clisp.org>
15706
15707         getcwd: Move AC_LIBOBJ invocations to module description.
15708         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15709         invocations from here...
15710         * modules/getcwd (configure.ac): ... to here.
15711
15712 2011-05-08  Bruno Haible  <bruno@clisp.org>
15713
15714         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15715         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15716         here...
15717         * modules/getcwd-lgpl (configure.ac): ... to here.
15718
15719 2011-05-07  Bruno Haible  <bruno@clisp.org>
15720
15721         crypto/gc: Move AC_LIBOBJ invocations to module description.
15722         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15723         * modules/crypto/gc (configure.ac): ... to here.
15724
15725 2011-05-07  Bruno Haible  <bruno@clisp.org>
15726
15727         fwriting: Move AC_LIBOBJ invocations to module description.
15728         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15729         here...
15730         * modules/fwriting (configure.ac): ... to here.
15731
15732 2011-05-07  Bruno Haible  <bruno@clisp.org>
15733
15734         fwritable: Move AC_LIBOBJ invocations to module description.
15735         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15736         here...
15737         * modules/fwritable (configure.ac): ... to here.
15738
15739 2011-05-07  Bruno Haible  <bruno@clisp.org>
15740
15741         futimens: Move AC_LIBOBJ invocations to module description.
15742         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15743         here...
15744         * modules/futimens (configure.ac): ... to here.
15745
15746 2011-05-07  Bruno Haible  <bruno@clisp.org>
15747
15748         ftruncate: Move AC_LIBOBJ invocations to module description.
15749         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15750         gl_PREREQ_FTRUNCATE invocations from here...
15751         * modules/ftruncate (configure.ac): ... to here.
15752
15753 2011-05-07  Bruno Haible  <bruno@clisp.org>
15754
15755         fsync: Move AC_LIBOBJ invocations to module description.
15756         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15757         invocations from here...
15758         * modules/fsync (configure.ac): ... to here.
15759
15760 2011-05-07  Bruno Haible  <bruno@clisp.org>
15761
15762         fsusage: Move AC_LIBOBJ invocations to module description.
15763         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15764         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15765         * modules/fsusage (configure.ac): ... to here.
15766
15767 2011-05-07  Bruno Haible  <bruno@clisp.org>
15768
15769         freopen: Move AC_LIBOBJ invocations to module description.
15770         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15771         invocations from here...
15772         * modules/freopen (configure.ac): ... to here.
15773
15774 2011-05-07  Bruno Haible  <bruno@clisp.org>
15775
15776         free: Move AC_LIBOBJ invocations to module description.
15777         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15778         invocations from here...
15779         * modules/free (configure.ac): ... to here.
15780
15781 2011-05-07  Bruno Haible  <bruno@clisp.org>
15782
15783         freadable: Move AC_LIBOBJ invocations to module description.
15784         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15785         here...
15786         * modules/freadable (configure.ac): ... to here.
15787
15788 2011-05-07  Bruno Haible  <bruno@clisp.org>
15789
15790         fpurge: Move AC_LIBOBJ invocations to module description.
15791         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15792         invocations from here...
15793         * modules/fpurge (configure.ac): ... to here.
15794
15795 2011-05-07  Bruno Haible  <bruno@clisp.org>
15796
15797         fpending: Move AC_LIBOBJ invocations to module description.
15798         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15799         gl_FUNC_FPENDING.
15800         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15801         invocations from here...
15802         * modules/fpending (configure.ac): ... to here.
15803
15804 2011-05-07  Bruno Haible  <bruno@clisp.org>
15805
15806         fopen: Move AC_LIBOBJ invocations to module description.
15807         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15808         invocations from here...
15809         * modules/fopen (configure.ac): ... to here.
15810
15811 2011-05-07  Bruno Haible  <bruno@clisp.org>
15812
15813         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15814         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15815         gl_FUNC_FNMATCH_POSIX.
15816         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15817         invocations from here...
15818         * modules/fnmatch (configure.ac): ... to here.
15819         * modules/fnmatch-gnu (configure.ac): ... and here.
15820
15821 2011-05-07  Bruno Haible  <bruno@clisp.org>
15822
15823         flock: Move AC_LIBOBJ invocations to module description.
15824         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15825         invocations from here...
15826         * modules/flock (configure.ac): ... to here.
15827
15828 2011-05-07  Bruno Haible  <bruno@clisp.org>
15829
15830         fileblocks: Move AC_LIBOBJ invocations to module description.
15831         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15832         gl_PREREQ_FILEBLOCKS invocations from here...
15833         * modules/fileblocks (configure.ac): ... to here.
15834
15835 2011-05-06  Bruno Haible  <bruno@clisp.org>
15836
15837         fflush: Move AC_LIBOBJ invocations to module description.
15838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15839         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15840         invocations from here...
15841         * modules/fflush (configure.ac): ... to here.
15842
15843 2011-05-06  Bruno Haible  <bruno@clisp.org>
15844
15845         fdopendir: Move AC_LIBOBJ invocations to module description.
15846         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15847         here...
15848         * modules/fdopendir (configure.ac): ... to here.
15849         (Depends-on): Improve conditions.
15850
15851 2011-05-06  Bruno Haible  <bruno@clisp.org>
15852
15853         _Exit: Move AC_LIBOBJ invocations to module description.
15854         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15855         invocations from here...
15856         * modules/_Exit (configure.ac): ... to here.
15857
15858 2011-05-21  Bruno Haible  <bruno@clisp.org>
15859
15860         euidaccess: Respect rules for use of AC_LIBOBJ.
15861         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15863         from here...
15864         * modules/euidaccess (configure.ac): ... to here.
15865
15866 2011-05-06  Bruno Haible  <bruno@clisp.org>
15867
15868         error: Move AC_LIBOBJ invocations to module description.
15869         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15870         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15871         invocations from here...
15872         * modules/error (configure.ac): ... to here.
15873
15874 2011-05-06  Bruno Haible  <bruno@clisp.org>
15875
15876         duplocale: Move AC_LIBOBJ invocations to module description.
15877         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15878         gl_PREREQ_DUPLOCALE invocations from here...
15879         * modules/duplocale (configure.ac): ... to here.
15880
15881 2011-05-05  Bruno Haible  <bruno@clisp.org>
15882
15883         dirfd: Move AC_LIBOBJ invocations to module description.
15884         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15885         gl_FUNC_DIRFD.
15886         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15887         here...
15888         * modules/dirfd (configure.ac): ... to here.
15889         (Depends-on): Fix condition.
15890
15891 2011-05-05  Bruno Haible  <bruno@clisp.org>
15892
15893         chown: Respect rules for use of AC_LIBOBJ.
15894         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15895         * modules/chown (configure.ac): ... to here.
15896
15897 2011-05-05  Bruno Haible  <bruno@clisp.org>
15898
15899         chdir-long: Move AC_LIBOBJ invocations to module description.
15900         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15901         gl_PREREQ_CHDIR_LONG invocations from here...
15902         * modules/chdir-long (configure.ac): ... to here.
15903
15904 2011-05-05  Bruno Haible  <bruno@clisp.org>
15905
15906         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15907         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15908         from here...
15909         * modules/canonicalize-lgpl (configure.ac): ... to here.
15910
15911 2011-05-05  Bruno Haible  <bruno@clisp.org>
15912
15913         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15914         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15915         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15916         REPLACE_CALLOC.
15917         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15918         * modules/calloc-gnu (configure.ac): Likewise.
15919
15920 2011-05-05  Bruno Haible  <bruno@clisp.org>
15921
15922         btowc: Move AC_LIBOBJ invocations to module description.
15923         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15924         invocations from here...
15925         * modules/btowc (configure.ac): ... to here.
15926
15927 2011-05-21  Bruno Haible  <bruno@clisp.org>
15928
15929         atexit: Move AC_LIBOBJ invocations to module description.
15930         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15931         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15932         here...
15933         * modules/atexit (configure.ac): ... to here.
15934
15935 2011-05-05  Bruno Haible  <bruno@clisp.org>
15936
15937         atoll: Move AC_LIBOBJ invocations to module description.
15938         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15939         invocations from here...
15940         * modules/atoll (configure.ac): ... to here.
15941
15942 2011-05-05  Bruno Haible  <bruno@clisp.org>
15943
15944         argz: Move AC_LIBOBJ invocations to module description.
15945         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15946         * modules/argz (configure.ac): ... to here.
15947
15948 2011-05-05  Bruno Haible  <bruno@clisp.org>
15949
15950         alphasort: Move AC_LIBOBJ invocations to module description.
15951         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15952         gl_PREREQ_ALPHASORT invocations from here...
15953         * modules/alphasort (configure.ac): ... to here.
15954
15955 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15956
15957         verify: new macro verify_expr; verify_true deprecated
15958         * NEWS: Mention this.
15959         * doc/verify.texi (Compile-time Assertions): Document this.
15960         * lib/verify.h (verify_true): Deprecate.
15961         (verify_expr): New macro.
15962         * tests/test-verify.c (function): Test verify_expr.
15963
15964 2011-06-14  Jim Meyering  <meyering@redhat.com>
15965
15966         init.sh: give more portable redirection-related advice in a comment
15967         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15968         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15969         for lots of discussion.  Stefano Lattarini suggested the solution
15970         of putting "9>&2" after the command.  Reported by Bruno Haible.
15971
15972 2011-06-13  Bruno Haible  <bruno@clisp.org>
15973
15974         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15975         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15976         'none'.
15977
15978 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15979
15980         ftoastr: use strtof only if HAVE_STRTOF
15981         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15983         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15984         * modules/ftoastr (configure.ac): Check for strtof.
15985
15986 2011-06-13  Bruno Haible  <bruno@clisp.org>
15987
15988         gnulib-tool: Addendum to 2011-06-08 commit.
15989         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15990         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15991
15992 2011-06-13  Bruno Haible  <bruno@clisp.org>
15993
15994         fseeko: Provide a non-inline replacement of fseek().
15995         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15996         * modules/fseeko (Depends-on): Add fseek.
15997         * modules/fseek (License): Change to LGPLv2+.
15998
15999 2011-06-13  Bruno Haible  <bruno@clisp.org>
16000
16001         ftello: Provide a non-inline replacement of ftell().
16002         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16003         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16004         not have ftello() (such as on mingw).
16005         * modules/ftello (Depends-on): Add ftell.
16006         * modules/ftell (License): Change to LGPLv2+.
16007
16008 2011-05-07  Bruno Haible  <bruno@clisp.org>
16009
16010         ftell: Move AC_LIBOBJ invocations to module description.
16011         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16012         * modules/ftell (configure.ac): ... to here.
16013
16014 2011-05-07  Bruno Haible  <bruno@clisp.org>
16015
16016         ftello: Respect rules for use of AC_LIBOBJ.
16017         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16018         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16019         here...
16020         * modules/ftello (configure.ac): ... to here.
16021
16022 2011-05-07  Bruno Haible  <bruno@clisp.org>
16023
16024         fseeko: Simplify.
16025         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16026         (gl_FUNC_FSEEKO): Inline it here.
16027
16028 2011-05-07  Bruno Haible  <bruno@clisp.org>
16029
16030         fseek: Move AC_LIBOBJ invocations to module description.
16031         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16032         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16033         * modules/fseek (configure.ac): ... to here.
16034
16035 2011-05-07  Bruno Haible  <bruno@clisp.org>
16036
16037         fseek: Respect rules for use of AC_LIBOBJ.
16038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16039         here...
16040         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16041
16042 2011-05-07  Bruno Haible  <bruno@clisp.org>
16043
16044         fseeko: Respect rules for use of AC_LIBOBJ.
16045         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16046         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16047         here...
16048         * modules/fseeko (configure.ac): ... to here.
16049
16050 2011-06-13  Bruno Haible  <bruno@clisp.org>
16051
16052         gnulib-tool: Allow comments in the 'Depends-on' section.
16053         * doc/gnulib.texi (Module description): Mention comment syntax in the
16054         Depends-on section.
16055         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16056
16057 2011-06-13  Bruno Haible  <bruno@clisp.org>
16058
16059         file-set.h: guard __attibute__ use, now that it's not always defined
16060         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16061         versions that support it.  This fixes a coreutils build failure with
16062         the vendor cc on HP-UX 11.31.
16063
16064 2011-06-12  Bruno Haible  <bruno@clisp.org>
16065
16066         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16067         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16068         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16069         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16070         (acl, aclsort): New declarations.
16071         (aclv_nontrivial): New declaration.
16072         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16073         (file_has_acl): Read also the second kind of HP-UX ACLs.
16074         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16075         kind of HP-UX ACLs if the first kind fails.
16076         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16077         second kind of HP-UX ACLs.
16078         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16079         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16080         agree.
16081         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16082         hpuxjfs.
16083         Handle hpuxjfs.
16084         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16085         hpuxjfs.
16086         Handle hpuxjfs.
16087         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16088         (func_test_same_acls): Use both lsacl and getacl.
16089         Handle hpuxjfs.
16090         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16091         (func_test_same_acls): Use both lsacl and getacl.
16092         Handle hpuxjfs.
16093
16094 2011-06-12  Bruno Haible  <bruno@clisp.org>
16095
16096         acl: Complete the 2010-08-10 fix.
16097         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16098         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16099         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16100         explicitly.
16101         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16102         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16103
16104 2011-06-12  Bruno Haible  <bruno@clisp.org>
16105
16106         spawn-pipe tests: Comments.
16107         * tests/test-spawn-pipe-child.c (main): Update comment.
16108         Reported by James Youngman <jay@gnu.org>.
16109
16110 2011-06-11  James Youngman  <jay@gnu.org>
16111
16112         New module 'stat-size'.
16113         * modules/stat-size: New module.  Provides macros for accessing
16114         file size information in instances of struct stat.  Depends on the
16115         fileblocks module because it calls st_blocks.
16116         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16117         * doc/gnulib.texi: Include stat-size.texi.
16118         * doc/stat-size.texi: Documentation for this module.
16119         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16120         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16121         AC_STRUCT_ST_BLOCKS.
16122
16123 2011-06-09  Bruno Haible  <bruno@clisp.org>
16124
16125         thread: Support pthreads-win32.
16126         * lib/glthread/thread.h (gl_thread_self): Define differently on
16127         pthreads-win32.
16128         (gl_null_thread): New declaration.
16129         (gl_thread_self_pointer): New macro.
16130         * lib/glthread/thread.c (gl_null_thread): New constant.
16131         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16132         gl_thread_self.
16133         * tests/test-tls.c: Likewise.
16134         Suggested by Paul Eggert. Reported by Eric Blake.
16135
16136 2011-06-09  Bruno Haible  <bruno@clisp.org>
16137
16138         thread: Fix confusion between NULL and 0.
16139         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16140         Reported by Paul Eggert.
16141
16142 2011-06-09  Bruno Haible  <bruno@clisp.org>
16143
16144         spawn-pipe tests: Avoid test failure on HP-UX 11.
16145         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16146         is closed.
16147
16148 2011-06-09  Bruno Haible  <bruno@clisp.org>
16149
16150         acl tests: Fix compilation error on HP-UX 11.
16151         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16152
16153 2011-06-09  Bruno Haible  <bruno@clisp.org>
16154
16155         rmdir: Avoid test failure on HP-UX 10.20.
16156         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16157         EEXIST.
16158
16159 2011-06-08  Eric Blake  <eblake@redhat.com>
16160
16161         perror: fix test on mingw
16162         * modules/perror-tests (Depends-on): Add dup2.
16163
16164         strerror_r-posix: fix on MacOS
16165         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16167         logic bug.
16168         * lib/strerror_r.c (strerror_r): Fix the bug.
16169         * lib/strerror.c (strerror): Likewise.
16170         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16171         problem.
16172         * doc/posix-functions/strerror.texi (strerror): Likewise.
16173         * doc/posix-functions/perror.texi (perror): Likewise.
16174         * tests/test-strerror.c (main): Enhance test.
16175         * tests/test-strerror_r.c (main): Likewise.
16176
16177 2011-06-08  Bruno Haible  <bruno@clisp.org>
16178
16179         gnulib-tool: Better isolation between different gnulib-tool invocations.
16180         * gnulib-tool: New option --witness-c-macro.
16181         (witness_c_macro): New variable.
16182         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16183         AM_CPPFLAGS define it as a C macro.
16184         (func_emit_tests_Makefile_am): Likewise.
16185         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16186         read it from there.
16187         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16188         m4_define, not AC_DEFUN.
16189         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16190         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16191         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16192         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16193         s|...|...|, to substitute the values of the GNULIB_* module indicator
16194         variables.
16195         * modules/dirent (Makefile.am): Likewise.
16196         * modules/fcntl-h (Makefile.am): Likewise.
16197         * modules/iconv-h (Makefile.am): Likewise.
16198         * modules/langinfo (Makefile.am): Likewise.
16199         * modules/locale (Makefile.am): Likewise.
16200         * modules/math (Makefile.am): Likewise.
16201         * modules/netdb (Makefile.am): Likewise.
16202         * modules/poll-h (Makefile.am): Likewise.
16203         * modules/pty (Makefile.am): Likewise.
16204         * modules/search (Makefile.am): Likewise.
16205         * modules/signal (Makefile.am): Likewise.
16206         * modules/spawn (Makefile.am): Likewise.
16207         * modules/stdio (Makefile.am): Likewise.
16208         * modules/stdlib (Makefile.am): Likewise.
16209         * modules/string (Makefile.am): Likewise.
16210         * modules/sys_ioctl (Makefile.am): Likewise.
16211         * modules/sys_select (Makefile.am): Likewise.
16212         * modules/sys_socket (Makefile.am): Likewise.
16213         * modules/sys_stat (Makefile.am): Likewise.
16214         * modules/sys_times (Makefile.am): Likewise.
16215         * modules/sys_utsname (Makefile.am): Likewise.
16216         * modules/sys_wait (Makefile.am): Likewise.
16217         * modules/termios (Makefile.am): Likewise.
16218         * modules/time (Makefile.am): Likewise.
16219         * modules/unistd (Makefile.am): Likewise.
16220         * modules/wchar (Makefile.am): Likewise.
16221
16222 2011-06-08  Eric Blake  <eblake@redhat.com>
16223
16224         strerror: simplify replacement
16225         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16226         * modules/strerror (configure.ac): No prereqs needed here...
16227         * modules/strerror-override (configure.ac): ...but this needs it.
16228         (Files): Add file for needed prereq macro.
16229
16230 2011-06-08  Bruno Haible  <bruno@clisp.org>
16231
16232         strerror_r-posix: Tweaks.
16233         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16234         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16236         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16237         (gl_FUNC_STRERROR_R): ... to here.
16238         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16239
16240 2011-06-07  Eric Blake  <eblake@redhat.com>
16241
16242         perror: document fixed bugs
16243         * doc/posix-functions/perror.texi (perror): Document recent
16244         patches.
16245
16246 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         stat-time: get_stat_birthtime failure is better-defined
16249         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16250         return a timestamp whose tv_sec and tv_nsec values are both -1.
16251         Previously, the spec said only that the tv_nsec value was negative.
16252         This upward-compatible change simplifies GNU tar a bit.
16253
16254 2011-06-07  Eric Blake  <eblake@redhat.com>
16255
16256         strerror_r-posix: work around cygwin 1.7.9
16257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16258         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16259         bug without replacing strerror_r.
16260         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16261         strerror_r is buggy, but without requiring strerror_r compilation.
16262         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16263
16264         test-perror: relax test to ignore cygwin bug
16265         * tests/test-perror2.c (main): Relax test on requiring detection
16266         of stream errors, and use unbuffered stream.
16267         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16268         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16269         * doc/posix-functions/fputc.texi (fputc): Likewise.
16270         * doc/posix-functions/fputs.texi (fputs): Likewise.
16271         * doc/posix-functions/fputws.texi (fputws): Likewise.
16272         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16273         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16274         * doc/posix-functions/getopt.texi (getopt): Likewise.
16275         * doc/posix-functions/perror.texi (perror): Likewise.
16276         * doc/posix-functions/printf.texi (printf): Likewise.
16277         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16278         * doc/posix-functions/psignal.texi (psignal): Likewise.
16279         * doc/posix-functions/putc.texi (putc): Likewise.
16280         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16281         Likewise.
16282         * doc/posix-functions/putchar.texi (putchar): Likewise.
16283         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16284         Likewise.
16285         * doc/posix-functions/puts.texi (puts): Likewise.
16286         * doc/posix-functions/putwc.texi (putwc): Likewise.
16287         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16288         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16289         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16290         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16291         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16292         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16293         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16294         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16295
16296 2011-05-22  Bruno Haible  <bruno@clisp.org>
16297
16298         strerror: Move AC_LIBOBJ invocations to module description.
16299         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16300         gl_PREREQ_STRERROR invocations from here...
16301         * modules/strerror (configure.ac): ... to here.
16302
16303 2011-05-21  Bruno Haible  <bruno@clisp.org>
16304
16305         perror: Use common idiom.
16306         * modules/perror (configure.ac): Reorder statements.
16307
16308 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16309
16310         tests: fix usage message in 'mktempd_'
16311         * tests/init.sh (mktempd_): In the usage message, use literal
16312         'mktempd_', not '$ME' (which is even undefined), as the name of
16313         the subroutine.
16314
16315 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16316
16317         tests init: new function 'fatal_', for hard errors
16318         Before this patch, the only way offered by tests/init.sh to
16319         properly signal a hard error was the `framework_failure_'
16320         function.  But the error message issued by that function,
16321         as its name would suggest, refers to a set-up failure in the
16322         testsuite, while hard errors can obviously also be due to
16323         other reasons.  The best way to fix this inconsistency is to
16324         introduce a new function with a more general error message.
16325         * tests/init.sh (fatal_): New function.
16326
16327 2011-06-06  Eric Blake  <eblake@redhat.com>
16328
16329         canonicalize-lgpl: use common idiom
16330         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16331         over newer POSIX -Rf.
16332         Reported by Bruno Haible.
16333
16334         canonicalize-lgpl: work around AIX realpath bug
16335         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16336         * doc/posix-functions/realpath.texi (realpath): Document it.
16337         Reported by Bruno Haible.
16338
16339         strerror: work around FreeBSD bug
16340         * lib/strerror.c (strerror): Special case 0.
16341         Reported by Bruno Haible.
16342
16343         strerror-override: avoid bloating errno module
16344         * modules/errno (Files, configure.ac): Move replacement strings...
16345         * modules/strerror-override: ...to new module.
16346         * modules/strerror (Depends-on): Add strerror-override.
16347         * modules/strerror_r-posix (Depends-on): Likewise.
16348         * MODULES.html.sh: Document new module.
16349         Reported by Bruno Haible.
16350
16351 2011-06-06  Bruno Haible  <bruno@clisp.org>
16352
16353         spawn-pipe tests: Rename program.
16354         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16355         * tests/test-spawn-pipe-child.c: Update comment.
16356         * tests/test-spawn-pipe.sh: Update.
16357         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16358
16359         spawn-pipe tests: Link the child program only against libc.
16360         * tests/test-spawn-pipe-child.c: New file, extracted from
16361         tests/test-spawn-pipe.c.
16362         (main): Expect only one argument.
16363         (is_open): New function, copied from tests/test-pipe.c.
16364         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16365         (child_main): Remove function.
16366         (test_pipe): Pass only one argument to the child program.
16367         (main): Remove child process code. Expect the child program's name as
16368         first argument.
16369         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16370         argument.
16371         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16372         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16373         test-spawn-pipe-child against no libraries.
16374
16375 2011-06-06  Bruno Haible  <bruno@clisp.org>
16376
16377         careadlinkat: Avoid mismatch between ssize_t and int.
16378         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16379         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16380
16381 2011-06-06  Jim Meyering  <meyering@redhat.com>
16382
16383         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16384         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16385         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16386
16387 2011-06-05  Bruno Haible  <bruno@clisp.org>
16388
16389         ansi-c++-opt: Interoperability with libtool.
16390         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16391         set the variable to "no", not to ":".
16392         * NEWS: Mention the change.
16393
16394 2011-06-05  Bruno Haible  <bruno@clisp.org>
16395
16396         acl: Fix test failure on AIX 7.
16397         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16398         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16399
16400 2011-06-05  Bruno Haible  <bruno@clisp.org>
16401
16402         pipe-filter-ii: Fix test failure on AIX and IRIX.
16403         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16404         with EAGAIN, retry with a smaller buffer size.
16405
16406 2011-06-05  Bruno Haible  <bruno@clisp.org>
16407
16408         localename: Fix link dependencies.
16409         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16410         * modules/localename-tests (Makefile.am): Link test-localename with
16411         $(LIBTHREAD).
16412
16413 2011-06-05  Bruno Haible  <bruno@clisp.org>
16414
16415         error: Avoid gcc warning.
16416         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16417
16418 2011-06-05  Bruno Haible  <bruno@clisp.org>
16419
16420         unsetenv: Avoid gcc warning.
16421         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16422
16423 2011-06-05  Bruno Haible  <bruno@clisp.org>
16424
16425         setenv: Avoid gcc warning.
16426         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16427
16428 2011-06-05  Bruno Haible  <bruno@clisp.org>
16429
16430         sys_select: Ensure memset is declared also on AIX 7.
16431         * lib/sys_select.in.h: Include <string.h> also on AIX.
16432         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16433         self-contained also on AIX 7.1.
16434
16435 2011-06-04  Jim Meyering  <meyering@redhat.com>
16436
16437         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16438         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16439         function name, "error".
16440         (_gl_translatable_diag_func_re): New configurable variable.
16441
16442 2011-06-04  Bruno Haible  <bruno@clisp.org>
16443
16444         getopt: Avoid gcc warning.
16445         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16446
16447 2011-06-04  Bruno Haible  <bruno@clisp.org>
16448
16449         strerror_r: Fix comments.
16450         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16451         commit.
16452
16453 2011-06-04  Bruno Haible  <bruno@clisp.org>
16454
16455         perror: Fix compilation error.
16456         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16457         Undefine fprintf, not sprintf.
16458         * modules/perror (Depends-on): Remove intprops, verify.
16459
16460 2011-06-04  Bruno Haible  <bruno@clisp.org>
16461
16462         setlocale: Enable replacement on Cygwin 1.5.
16463         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16464         Cygwin 1.5.x.
16465         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16466         LC_CTYPE category also exists on Cygwin 1.5.x.
16467
16468 2011-06-04  Bruno Haible  <bruno@clisp.org>
16469
16470         strerror-override: Don't disable symbol renamings.
16471         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16472         * lib/strerror-override.c: Include config.h.
16473         (strerror_override): Don't undefine.
16474
16475 2011-06-03  Bruno Haible  <bruno@clisp.org>
16476
16477         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16478         * lib/localename.h: Update copyright header.
16479         * lib/localename.c: Likewise.
16480         * lib/relocatable.h: Likewise.
16481         * lib/relocatable.c: Likewise.
16482
16483 2011-06-02  Bruno Haible  <bruno@clisp.org>
16484
16485         doc: Fix a module name.
16486         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16487
16488 2011-06-02  Bruno Haible  <bruno@clisp.org>
16489
16490         pipe2: Remove dependency on 'nonblocking' module.
16491         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16492         O_NONBLOCK is defined by gnulib.
16493         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16494         is zero.
16495         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16496         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16497         defined by gnulib.
16498         (get_nonblocking_flag): New function.
16499         (main): Test O_NONBLOCK flag only if it is nonzero.
16500         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16501
16502 2011-06-03  Jim Meyering  <meyering@redhat.com>
16503
16504         maint: three new prohibit-header-without-use rules
16505         Prohibit use of cloexec.h, posixver.h, same.h without use.
16506         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16507         (sc_prohibit_posixver_without_use): Likewise.
16508         (sc_prohibit_same_without_use): Likewise.
16509
16510 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16511
16512         allocator: 'die' routine is now given requested size
16513         * lib/allocator.h (struct allocator.die): New size arg.
16514         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16515         If the actual problem is an ssize_t limitation, not a size_t or
16516         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16517
16518 2011-06-01  Eric Blake  <eblake@redhat.com>
16519
16520         strerror: drop strerror_r dependency
16521         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16522         * lib/strerror-override.c (strerror_override): ...to new file.
16523         * lib/strerror-override.h: Add prototype.
16524         * lib/strerror-impl.h: Delete.
16525         * lib/strerror.c (strerror): New implementation.
16526         * modules/errno (Files): Add new files.
16527         (configure.ac): Compile new file as appropriate.
16528         * modules/strerror (Files): Drop unused file.
16529         (Depends-on): Drop strerror_r-posix.
16530         * MODULES.html.sh: Document strerror_r-posix.
16531         Requested by Sam Steingold.
16532
16533         perror: call strerror_r directly
16534         * modules/perror (Files): Drop strerror-impl.h.
16535         * lib/perror.c (perror): Use our own stack buffer, rather than
16536         calling a wrapper that uses static storage.
16537         * doc/posix-functions/perror.texi (perror): Document a limitation
16538         of our replacement.
16539
16540         strerror_r: fix includes for FreeBSD
16541         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16542         since we use abort on some platforms.
16543         Reported by Matthias Bolte.
16544
16545 2011-05-31  Bruno Haible  <bruno@clisp.org>
16546
16547         Fix link errors in tests: openat-die uses gettext-h.
16548         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16549         against $(LIBINTL).
16550         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16551         against $(LIBINTL).
16552         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16553         $(LIBINTL).
16554         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16555         against $(LIBINTL).
16556         * modules/linkat-tests (Makefile.am): Link test-linkat against
16557         $(LIBINTL).
16558         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16559         $(LIBINTL).
16560         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16561         against $(LIBINTL).
16562         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16563         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16564         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16565         $(LIBINTL).
16566         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16567         $(LIBINTL).
16568         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16569         $(LIBINTL).
16570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16571
16572 2011-05-31  Bruno Haible  <bruno@clisp.org>
16573
16574         Fix link errors in tests: wait-process uses gettext-h.
16575         * modules/nonblocking-pipe-tests (Makefile.am): Set
16576         test_nonblocking_pipe_main_LDADD.
16577         * modules/nonblocking-socket-tests (Makefile.am): Link
16578         test-nonblocking-socket-main against $(LIBINTL).
16579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16580
16581 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16582
16583         assert-h: work around 'verify' incompatibility
16584         * lib/verify.h: Use @...@ directives, not ifdef.
16585         * modules/assert-h (assert.h): Implement the directives.
16586         (assert.h): Substitute the symbol-prefix more consistently.
16587
16588 2011-05-29  Jim Meyering  <meyering@redhat.com>
16589
16590         trim: remove three superfluous assignments
16591         * lib/trim.c (trim2): Remove three superfluous assignments
16592         and correct brace positioning.
16593
16594 2011-05-29  Bruno Haible  <bruno@clisp.org>
16595
16596         wctype-h: Avoid namespace pollution on Solaris 2.6.
16597         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16598         identifiers.
16599         * doc/posix-headers/wctype.texi: Mention the problem.
16600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16601
16602 2011-05-28  Jim Meyering  <meyering@redhat.com>
16603
16604         parse-datetime.y: accommodate -Wstrict-overflow
16605         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16606         placate -Wstrict-overflow.
16607
16608         trim: avoid a warning from -O2 -Wstrict-overflow
16609         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16610
16611 2011-05-29  Bruno Haible  <bruno@clisp.org>
16612
16613         gnulib-tool: Fix bug in yesterday's commit.
16614         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16615         twice.
16616
16617 2011-05-29  Bruno Haible  <bruno@clisp.org>
16618
16619         Allow multiple gnulib generated include files to be combined.
16620         * gnulib-tool (func_compute_include_guard_prefix): New function.
16621         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16622         ${gl_include_guard_prefix} references.
16623         (func_import, func_create_testdir): Invoke
16624         func_compute_include_guard_prefix.
16625         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16626         * lib/ctype.in.h: Likewise.
16627         * lib/dirent.in.h: Likewise.
16628         * lib/errno.in.h: Likewise.
16629         * lib/fcntl.in.h: Likewise.
16630         * lib/float.in.h: Likewise.
16631         * lib/getopt.in.h: Likewise.
16632         * lib/iconv.in.h: Likewise.
16633         * lib/langinfo.in.h: Likewise.
16634         * lib/locale.in.h: Likewise.
16635         * lib/math.in.h: Likewise.
16636         * lib/netdb.in.h: Likewise.
16637         * lib/netinet_in.in.h: Likewise.
16638         * lib/poll.in.h: Likewise.
16639         * lib/pthread.in.h: Likewise.
16640         * lib/pty.in.h: Likewise.
16641         * lib/sched.in.h: Likewise.
16642         * lib/se-selinux.in.h: Likewise.
16643         * lib/search.in.h: Likewise.
16644         * lib/signal.in.h: Likewise.
16645         * lib/spawn.in.h: Likewise.
16646         * lib/stdarg.in.h: Likewise.
16647         * lib/stddef.in.h: Likewise.
16648         * lib/stdint.in.h: Likewise.
16649         * lib/stdio.in.h: Likewise.
16650         * lib/stdlib.in.h: Likewise.
16651         * lib/string.in.h: Likewise.
16652         * lib/strings.in.h: Likewise.
16653         * lib/sys_file.in.h: Likewise.
16654         * lib/sys_ioctl.in.h: Likewise.
16655         * lib/sys_select.in.h: Likewise.
16656         * lib/sys_socket.in.h: Likewise.
16657         * lib/sys_stat.in.h: Likewise.
16658         * lib/sys_time.in.h: Likewise.
16659         * lib/sys_times.in.h: Likewise.
16660         * lib/sys_uio.in.h: Likewise.
16661         * lib/sys_utsname.in.h: Likewise.
16662         * lib/sys_wait.in.h: Likewise.
16663         * lib/sysexits.in.h: Likewise.
16664         * lib/termios.in.h: Likewise.
16665         * lib/time.in.h: Likewise.
16666         * lib/unistd.in.h: Likewise.
16667         * lib/wchar.in.h: Likewise.
16668         * lib/wctype.in.h: Likewise.
16669         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16670         * modules/ctype (Makefile.am): Likewise.
16671         * modules/dirent (Makefile.am): Likewise.
16672         * modules/errno (Makefile.am): Likewise.
16673         * modules/fcntl-h (Makefile.am): Likewise.
16674         * modules/float (Makefile.am): Likewise.
16675         * modules/getopt-posix (Makefile.am): Likewise.
16676         * modules/iconv-h (Makefile.am): Likewise.
16677         * modules/langinfo (Makefile.am): Likewise.
16678         * modules/locale (Makefile.am): Likewise.
16679         * modules/math (Makefile.am): Likewise.
16680         * modules/netdb (Makefile.am): Likewise.
16681         * modules/netinet_in (Makefile.am): Likewise.
16682         * modules/poll-h (Makefile.am): Likewise.
16683         * modules/pthread (Makefile.am): Likewise.
16684         * modules/pty (Makefile.am): Likewise.
16685         * modules/sched (Makefile.am): Likewise.
16686         * modules/search (Makefile.am): Likewise.
16687         * modules/selinux-h (Makefile.am): Likewise.
16688         * modules/signal (Makefile.am): Likewise.
16689         * modules/spawn (Makefile.am): Likewise.
16690         * modules/stdarg (Makefile.am): Likewise.
16691         * modules/stddef (Makefile.am): Likewise.
16692         * modules/stdint (Makefile.am): Likewise.
16693         * modules/stdio (Makefile.am): Likewise.
16694         * modules/stdlib (Makefile.am): Likewise.
16695         * modules/string (Makefile.am): Likewise.
16696         * modules/strings (Makefile.am): Likewise.
16697         * modules/sys_file (Makefile.am): Likewise.
16698         * modules/sys_ioctl (Makefile.am): Likewise.
16699         * modules/sys_select (Makefile.am): Likewise.
16700         * modules/sys_socket (Makefile.am): Likewise.
16701         * modules/sys_stat (Makefile.am): Likewise.
16702         * modules/sys_time (Makefile.am): Likewise.
16703         * modules/sys_times (Makefile.am): Likewise.
16704         * modules/sys_uio (Makefile.am): Likewise.
16705         * modules/sys_utsname (Makefile.am): Likewise.
16706         * modules/sys_wait (Makefile.am): Likewise.
16707         * modules/sysexits (Makefile.am): Likewise.
16708         * modules/termios (Makefile.am): Likewise.
16709         * modules/time (Makefile.am): Likewise.
16710         * modules/unistd (Makefile.am): Likewise.
16711         * modules/wchar (Makefile.am): Likewise.
16712         * modules/wctype-h (Makefile.am): Likewise.
16713         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16714
16715 2011-05-29  Bruno Haible  <bruno@clisp.org>
16716
16717         assert-h: Allow multiple gnulib generated replacements to coexist.
16718         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16719
16720 2011-05-29  Bruno Haible  <bruno@clisp.org>
16721
16722         argp: Allow coexistence with strerror_r-posix module.
16723         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16724         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16725         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16726         not the glibc signature.
16727
16728 2011-05-28  Bruno Haible  <bruno@clisp.org>
16729
16730         gnulib-tool: Alternative structure of testdirs, similar to --import.
16731         * gnulib-tool: New option --single-configure.
16732         (func_usage): Document it.
16733         (single_configure): New variable.
16734         (func_modules_transitive_closure_separately,
16735         func_modules_transitive_closure_separately,
16736         func_determine_use_libtests, func_modules_add_dummy_separately,
16737         func_modules_to_filelist_separately): New functions, extracted from
16738         func_import.
16739         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16740         (func_import): Use the new functions.
16741         (func_create_testdir): Set final_modules. Handle $single_configure =
16742         true case.
16743
16744 2011-05-28  Bruno Haible  <bruno@clisp.org>
16745
16746         getloadavg: Remove an unreliable safety check.
16747         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16748         getloadavg.c is in place.
16749         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16750         Reported by Sam Steingold <sds@gnu.org>.
16751
16752 2011-05-28  Bruno Haible  <bruno@clisp.org>
16753
16754         doc: Cleanup yet another file produced by texinfo.tex.
16755         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16756
16757 2011-05-28  Bruno Haible  <bruno@clisp.org>
16758
16759         Finish the conditional dependencies mechanism.
16760         * gnulib-tool: New option --no-conditional-dependencies.
16761         (func_usage): Document it. Don't mark --conditional-dependencies as
16762         experimental.
16763         (cond_dependencies): The possible values can now be true, false, empty.
16764         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16765         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16766         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16767
16768 2011-05-28  Bruno Haible  <bruno@clisp.org>
16769
16770         doc: Use a recent texinfo.tex.
16771         * doc/Makefile (tex_opts): New variable.
16772         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16773
16774 2011-05-28  Jim Meyering  <meyering@redhat.com>
16775
16776         intprops.h: adjust comment to match code change
16777         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16778         only once, it *may* have side effects.  Also fix an unrelated typo.
16779         (_GL_INT_SIGNED): Likewise.
16780
16781 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16782
16783         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16784
16785 2011-05-26  Bruno Haible  <bruno@clisp.org>
16786
16787         mbsrchr: Avoid collision with system function on Interix.
16788         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16789         Reported by Markus Duft <mduft@gentoo.org>.
16790
16791 2011-05-15  James Youngman  <jay@gnu.org>
16792
16793         getopt: for ambiguous options, enumerate the possibilities.
16794         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16795         the ambiguous options when an ambiguous prefix is given. This was
16796         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16797         glibc change was
16798         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16799
16800 2011-05-25  Eric Blake  <eblake@redhat.com>
16801
16802         getcwd: work around mingw bug
16803         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16804         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16805         Reported by Matthias Bolte.
16806
16807 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16808
16809         test-intprops: disable -Wtype-limits diagnostics
16810         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16811         diagnostics.  Otherwise, the integer overflow macros generate many
16812         diagnostics.  Reported by Jim Meyering in
16813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16814
16815         intprops: shorten, to pacify gcc -Woverlength-strings
16816         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16817         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16818         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16819         likely to run afoul of C compiler limits for string constant lengths.
16820         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16821
16822 2011-05-24  Eric Blake  <eblake@redhat.com>
16823
16824         docs: document recently fixed glibc printf bug
16825         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16826         * doc/posix-functions/printf.texi (printf): Likewise.
16827         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16828         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16829
16830         closein-tests: convert to init.sh
16831         * modules/closein-tests (Files): Add init.sh
16832         * tests/test-closein.sh Use it.
16833
16834         yesno-tests: convert to init.sh
16835         * modules/yesno-tests (Files): Add init.sh.
16836         * tests/test-yesno.sh: Use it.
16837
16838         atexit-tests: ensure reliable exit status
16839         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16840         Reported by Bruno Haible.
16841
16842 2011-05-24  Bruno Haible  <bruno@clisp.org>
16843
16844         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16846         gl_PREREQ_STRERROR_R invocations from here...
16847         * modules/strerror_r-posix (configure.ac): ... to here.
16848
16849 2011-05-24  Eric Blake  <eblake@redhat.com>
16850
16851         strerror_r: fix missing header
16852         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16853
16854         strerror_r: fix AIX test failures
16855         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16856         ERANGE failure.
16857
16858         strerror_r: fix Solaris test failures
16859         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16860         failures.
16861         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16862
16863         strerror_r: enforce POSIX recommendations
16864         * lib/strerror_r.c (safe_copy): New helper method.
16865         (strerror_r): Guarantee a non-empty string.
16866         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16867         recent POSIX rulings and to match our strerror guarantees.
16868         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16869
16870 2011-05-24  Jim Meyering  <meyering@redhat.com>
16871
16872         test-perror2.c: avoid warning about unused variable
16873         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16874
16875 2011-05-24  Eric Blake  <eblake@redhat.com>
16876
16877         perror: avoid spurious test failure on HP-UX
16878         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16879
16880         tests: fix logic bug in init.sh
16881         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16882         shell.
16883
16884 2011-05-24  Jim Meyering  <meyering@redhat.com>
16885
16886         utimensat: do not reference an out-of-scope buffer
16887         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16888         declared in an inner scope, yet "times" would be dereferenced outside
16889         the scope in which "ts" was valid.
16890         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16891         of ts[2] "out/up", so that the use of aliased "times" (via
16892         "times = ts;") does not end up referencing an out-of-scope "ts"
16893
16894         opendir-safer.c: don't clobber errno; don't close negative FD
16895         * lib/opendir-safer.c (opendir_safer):
16896         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16897         file descriptor, and more importantly, don't clobber the
16898         offending errno value with EINVAL.  Before, upon failure
16899         of dup_safer, we would pass the negative file descriptor to
16900         fdopendir, which would clobber errno.
16901
16902 2011-05-23  Bruno Haible  <bruno@clisp.org>
16903
16904         idcache: Fix module description.
16905         * modules/idcache (Include): Set to "idcache.h".
16906
16907 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16908
16909         gnulib-tool: fix portability problem with MacOS sed
16910         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16911         before the "}".  Problem reported by Leo in
16912         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16913         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16914         sed_extract_condition1, sed_extract_condition2.
16915
16916 2011-05-23  Bruno Haible  <bruno@clisp.org>
16917
16918         hash: Simplify autoconf macro.
16919         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16920
16921 2011-05-23  Bruno Haible  <bruno@clisp.org>
16922
16923         getugroups: Fix module description.
16924         * modules/getugroups (Include): Set to "getugroups.h".
16925
16926 2011-05-23  Bruno Haible  <bruno@clisp.org>
16927
16928         linkat: Simplify autoconf macro.
16929         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16930
16931 2011-05-23  Bruno Haible  <bruno@clisp.org>
16932             Eric Blake  <eblake@redhat.com>
16933
16934         linkat, renameat: Update dependencies.
16935         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16936         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16937         symlinkat.
16938
16939 2011-05-23  Jim Meyering  <meyering@redhat.com>
16940
16941         maint.mk: more tight_scope improvements
16942         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16943         (_gl_TS_headers): Define only in if-0'd block.
16944         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16945         sometimes we must *not* use it.  Adjust uses accordingly.
16946         (sc_tight_scope): Use much simpler grep-based test to determine
16947         whether we skip this rule.
16948
16949         maint.mk: generalize/improve the tight-scope rule
16950         * top/maint.mk: Emit a warning when the test is skipped.
16951         (_gl_TS_dir): Add $(srcdir)/ prefix.
16952         (_gl_TS_function_match): Simplify, rather than trying
16953         to enumerate common types.  Otherwise, it would fail to match an
16954         "extern unsigned char const *" declaration in idutils.
16955         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16956         a way to support use of that type of macro.
16957         (_gl_TS_var_match): Simplify regexp.
16958         (_gl_TS_obj_files): New configurable variable.
16959         (_gl_TS_headers): Likewise.
16960
16961 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16962
16963         verify: fix bug when gnulib <assert.h> is also included
16964         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16965         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16966         Perhaps there's a better way, but this fixes the immediate problem.
16967         Problem reported by Bruno Haible in
16968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16969
16970 2011-05-22  Bruno Haible  <bruno@clisp.org>
16971
16972         xgetcwd: Simplify autoconf macro.
16973         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16974
16975 2011-05-22  Bruno Haible  <bruno@clisp.org>
16976
16977         New module 'mktime-internal'.
16978         * modules/mktime-internal: New file.
16979         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16980         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16981         mktime_internal as a C macro if libc has __mktime_internal.
16982         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16983         conditions.
16984         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16985
16986 2011-05-22  Bruno Haible  <bruno@clisp.org>
16987
16988         timegm: Correct mktime replacement statements.
16989         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16990         defining mktime as a C macro. This completes a 2009-07-28 commit.
16991
16992 2011-05-22  Bruno Haible  <bruno@clisp.org>
16993
16994         timegm: Simplify autoconf macro.
16995         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16996
16997 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         clock-time: change to LGPLv2+.
17000         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17001         BSD-like but we have no mark for that; this is good enough for now.
17002
17003 2011-05-21  Bruno Haible  <bruno@clisp.org>
17004
17005         strerror_r: Fix comments.
17006         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17007
17008 2011-05-21  Bruno Haible  <bruno@clisp.org>
17009
17010         relocatable-prog-wrapper: Fix possible link error.
17011         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17012         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17013         (gl_FUNC_SETENV): ... to here.
17014         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17015         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17016
17017 2011-05-21  Bruno Haible  <bruno@clisp.org>
17018
17019         relocatable-prog-wrapper: Assume strerror() exists.
17020         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17021         m4/strerror.m4.
17022         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17023         * lib/relocwrapper.c: Remove mention of strerror module.
17024         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17025         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17026         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17027         C macro.
17028
17029 2011-05-21  Bruno Haible  <bruno@clisp.org>
17030
17031         select: Simplify replacement idiom.
17032         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17033         Win32 platforms.
17034         * lib/sys_select.in.h (select): Simplify accordingly.
17035         * modules/select (Depends-on): Likewise.
17036
17037 2011-05-21  Bruno Haible  <bruno@clisp.org>
17038
17039         mkdir-p: Simplify autoconf macro.
17040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17041         gl_FUNC_LCHOWN.
17042
17043 2011-05-21  Eric Blake  <eblake@redhat.com>
17044
17045         strerror_r: avoid clobbering strerror on cygwin
17046         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17047         fall back instead to sys_errlist.
17048         * modules/strerror (configure.ac): Add witness.
17049         * tests/test-strerror_r.c (main): Enhance test.
17050         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17051         * tests/test-perror2.c (main): Free memory before exit.
17052
17053 2011-05-21  Bruno Haible  <bruno@clisp.org>
17054
17055         mkdtemp: Use gnulib naming conventions.
17056         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17057         * modules/mkdtemp (configure.ac): Update.
17058
17059 2011-05-20  Eric Blake  <eblake@redhat.com>
17060
17061         strerror_r: avoid corrupting errno on Solaris
17062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17063         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17064
17065         strerror_r: avoid compiler warning
17066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17067
17068         strerror_r: simplify AIX code
17069         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17070
17071         test-perror: avoid spurious failure on FreeBSD
17072         * modules/perror-tests (Depends-on): Add strerror, now that
17073         strerror_r no longer pulls it in.
17074
17075 2011-05-20  Bruno Haible  <bruno@clisp.org>
17076
17077         strerror_r-posix: Remove unused dependencies.
17078         * modules/strerror_r-posix (Depends-on): Remove strerror.
17079         Reported by Eric Blake.
17080
17081 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17082
17083         intprops: remove assumption about A|B representation
17084         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17085         is a valid integer if both A and B are.  Although this is true for
17086         all known practical hosts, the C standard doesn't guarantee it,
17087         and the code need not assume it.  Also, this change may work around
17088         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17090
17091 2011-05-20  Eric Blake  <eblake@redhat.com>
17092
17093         perror: work around FreeBSD bug
17094         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17095         is broken.  Move AC_LIBOBJ...
17096         * modules/perror (configure.ac): Here.
17097         * doc/posix-functions/perror.texi (perror): Document this.
17098         * tests/test-perror2.c (main): Enhance test.
17099
17100         test-perror: check for strerror interactions
17101         * tests/macros.h (STREQ): Add macro.
17102         * modules/perror-tests (Files): Add second test.
17103         * tests/test-perror2.c (main): New file.
17104         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17105
17106         test-perror: rewrite to use init script
17107         * modules/perror-tests (Files): Add init.sh.
17108         * tests/test-perror.sh: Use temporary directory.
17109
17110 2011-05-20  Jim Meyering  <meyering@redhat.com>
17111
17112         maint: replace misused "a" with "an"
17113         * doc/intprops.texi: "a integer"
17114         * doc/regex.texi: "a explanation"
17115         * lib/alignof.h: "a object"
17116         * lib/argmatch.h: "a explanation"
17117         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17118         * lib/stdint.in.h: "a integer"
17119         * lib/userspec.c: "a owner"
17120         * doc/gnulib.texi: Fix "a idea", and reword.
17121
17122 2011-05-19  Jim Meyering  <meyering@redhat.com>
17123
17124         maint: correct misuse of "a" and "an"
17125         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17126         * lib/argp-help.c: "an docum...": s/an/a/
17127         * lib/argp-parse.c: "An vector": s/An/A/
17128         * lib/execute.c: "an native": s/an/a/
17129         * lib/spawn-pipe.c: Likewise.
17130         * lib/gc.h: "an Gc_rc": s/an/a/
17131         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17132         * lib/fts.c: "an stat.st_dev": s/an/a/
17133
17134 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         intprops-tests: work around HP-UX 11.23 cc bug with constants
17137         * tests/test-intprops.c (VERIFY): New macro.
17138         (main): Use it, instead of verify, to work around the compiler bug; see
17139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17140
17141         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17142         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17143         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17144         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17145         (_GL_REMAINDER_OVERFLOW): Use it.
17146
17147         intprops-tests: revert unsigned part of previous change
17148         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17149         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17150         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17152
17153 2011-05-19  Bruno Haible  <bruno@clisp.org>
17154
17155         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17156         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17157         strerror_r() returned without filling the buffer.
17158         Reported by Eric Blake.
17159
17160 2011-05-19  Eric Blake  <eblake@redhat.com>
17161
17162         strerror_r: guarantee unchanged errno
17163         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17164         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17165         failure.
17166         * tests/test-strerror_r.c (main): Enhance test.
17167
17168 2011-05-19  Bruno Haible  <bruno@clisp.org>
17169
17170         strerror_r: Reorder #if blocks.
17171         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17172         for consistency with the previous commit.
17173
17174 2011-05-19  Bruno Haible  <bruno@clisp.org>
17175
17176         perror: Avoid clobbering the strerror buffer when possible.
17177         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17178         * lib/strerror.c: Include it.
17179         * modules/strerror (Files): Add lib/strerror-impl.h.
17180         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17181         (my_strerror): New function, defined through lib/strerror-impl.h.
17182         (perror): Use it instead of strerror.
17183         * modules/perror (Files): Add lib/strerror-impl.h.
17184         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17185
17186 2011-05-19  Eric Blake  <eblake@redhat.com>
17187
17188         strerror_r: fix on newer cygwin
17189         * lib/strerror_r.c (strerror_r): Cygwin now has
17190         __xpg_strerror_r, use it.
17191
17192 2011-05-19  Bruno Haible  <bruno@clisp.org>
17193
17194         strerror_r: Avoid clobbering the strerror buffer when possible.
17195         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17196         (sys_nerr, sys_errlist): New declarations.
17197         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17198         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17199         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17200
17201 2011-05-19  Bruno Haible  <bruno@clisp.org>
17202
17203         strerror_r: Fix test failure on mingw.
17204         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17205         EXTEND_STRERROR_R.
17206         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17207         macros from errno.in.h instead.
17208
17209 2011-05-19  Eric Blake  <eblake@redhat.com>
17210
17211         strerror: relax test for Solaris
17212         * tests/test-strerror.c (main): Permit Solaris behavior.
17213         * tests/test-strerror_r.c (main): Likewise.
17214
17215         strerror: enforce POSIX ruling on strerror(0)
17216         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17218         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17219         * doc/posix-functions/strerror.texi (strerror): Document it.
17220         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17221         * tests/test-strerror.c (main): Strengthen test.
17222         * tests/test-strerror_r.c (main): Likewise.
17223
17224 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17225
17226         intprop-tests: port to older and more-pedantic compilers
17227         * modules/intprops-tests (Files): Add tests/macros.h.
17228         * tests/test-intprops.c: Include macros.h.
17229         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17230         it's no longer documented to expand to an integer constant expression.
17231         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17232         argument is floating point, as it's no longer documented to expand
17233         to an integer constant expression in that case.
17234         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17235         compiler bugs reported by Bruno Haible.  See
17236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17237         (U0, U1): New constants, to work around the same bugs.  Also,
17238         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17239
17240         intprops: work around C compiler bugs
17241         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17242         bug in Sun C 5.11 2010/08/13 and other compilers; see
17243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17244
17245         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17246         * doc/intprops.texi (Integer Type Determination): Fix
17247         documentation for TYPE_IS_INTEGER: it returns an constant
17248         expression, not an integer constant expression.  Fix doc for
17249         TYPE_SIGNED: it returns an integer constant expression only if its
17250         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17251         hardly worth documented that way....)
17252
17253 2011-05-18  Bruno Haible  <bruno@clisp.org>
17254
17255         strerror_r: Avoid clobbering the strerror buffer when possible.
17256         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17257         Handle gnulib defined errno values here. When strerror() returns NULL
17258         or an empty string, return EINVAL.
17259         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17260         gnulib defined errno values here.
17261         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17262
17263 2011-05-18  Eric Blake  <eblake@redhat.com>
17264
17265         fnmatch: avoid compiler warning
17266         * lib/fnmatch_loop.c (FCT): Use correct type.
17267         Reported by Matthias Bolte.
17268
17269 2011-05-13  Jim Meyering  <meyering@redhat.com>
17270
17271         maint.mk: three new prohibit_<HDR>_without_use rules
17272         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17273         (sc_prohibit_stdio-safer_without_use): Likewise.
17274         (sc_prohibit_xfreopen_without_use): Likewise.
17275
17276 2011-05-17  Jim Meyering  <meyering@redhat.com>
17277
17278         announce-gen: fail if the NEWS delta is empty
17279         If there's nothing noteworthy in NEWS, then either you forgot
17280         or you shouldn't be releasing.
17281         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17282
17283 2011-05-17  Pádraig Brady <P@draigBrady.com>
17284
17285         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17286         reserved symbols starting with double underscore from the check.
17287
17288 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17289
17290         intprops: add doc
17291         * doc/intprops.texi: New file, documenting intprops.
17292         * doc/gnulib.texi (Particular Modules): Include it.
17293
17294         verify: add doc to gnulib manual and fix example
17295         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17296         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17297         (Compile-time Assertions): Fix example so it can't overflow.
17298
17299 2011-05-17  Jim Meyering  <meyering@redhat.com>
17300
17301         warnings.m4: don't usurp save_CPPFLAGS variable name
17302         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17303
17304         doc: fix typo
17305         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17306
17307 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17308             Bruno Haible  <bruno@clisp.org>
17309
17310         doc: Tweak recent change.
17311         * README (Portability guidelines): Tweak new text.
17312         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17313         Interix 6.1.
17314
17315 2011-05-16  Eric Blake  <eblake@redhat.com>
17316
17317         inttypes: avoid autoconf warning
17318         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17319         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17320
17321 2011-05-16  Sam Steingold <sds@gnu.org>
17322         and Eric Blake  <eblake@redhat.com>
17323
17324         vc-list-files: accept multiple directory operands
17325         * build-aux/vc-list-files: Iterate over all remaining operands.
17326
17327 2011-05-16  Bruno Haible  <bruno@clisp.org>
17328
17329         Fix confusion regarding deprecated modules.
17330         * modules/calloc (Status, Notice): Mark module as deprecated, not
17331         obsolete.
17332         * modules/fnmatch-posix (Status, Notice): Likewise.
17333         * modules/getdate (Status, Notice): Likewise.
17334         * modules/getopt (Status, Notice): Likewise.
17335         * modules/malloc (Status, Notice): Likewise.
17336         * modules/pipe (Status, Notice): Likewise.
17337         * modules/realloc (Status, Notice): Likewise.
17338         * modules/rename-dest-slash (Status, Notice): Likewise.
17339         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17340         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17341         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17342         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17343         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17344
17345 2011-05-16  Bruno Haible  <bruno@clisp.org>
17346
17347         doc: List the target platforms.
17348         * doc/gnulib-intro.texi (Target Platforms): New section.
17349         * doc/gnulib.texi (Introduction): Update menu.
17350         * README (Portability guidelines): Refer to the new section. Update
17351         statement about oldest supported environment. Remove rationale why
17352         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17353         unportable C89 function.
17354         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17355         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17356
17357 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17358
17359         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17360
17361 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17362
17363         intprops-tests: new module
17364         * modules/intprops-tests, tests/test-intprops.c: New files.
17365
17366         intprops: add safe, portable integer overflow checking
17367         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17368         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17369         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17370         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17371         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17372         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17373         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17374         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17375         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17376         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17377         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17378
17379 2011-05-12  James Youngman  <jay@gnu.org>
17380
17381         Add a test for glibc's Bugzilla bug #12378.
17382         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17383         doesn't allow the literal matching of a lone "[" (which is
17384         required by POSIX).
17385         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17386
17387 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17388
17389         Sync glibc change fixing Bugzilla bug #12378.
17390         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17391         beginning and fall back to matching as normal character if the
17392         string ends before the matching ']' is found.  This is what POSIX
17393         requires.
17394
17395 2011-05-13  Eric Blake  <eblake@redhat.com>
17396
17397         getcwd-lgpl: relax test for FreeBSD
17398         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17399         issue.
17400         * tests/test-getcwd-lgpl.c (main): Relax test.
17401         Reported by Matthias Bolte.
17402
17403 2011-05-11  Eric Blake  <eblake@redhat.com>
17404
17405         test-fflush: silence compiler warning
17406         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17407
17408 2011-05-11  Bruno Haible  <bruno@clisp.org>
17409
17410         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17411         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17412         * modules/canonicalize (Depends-on): Add 'nocrash'.
17413         * modules/canonicalize-lgpl (Depends-on): Likewise.
17414         * doc/posix-functions/realpath.texi: Update platforms list.
17415         Reported by Ryan Schmidt <ryandesign@macports.org>.
17416
17417 2011-05-11  Bruno Haible  <bruno@clisp.org>
17418
17419         group-member: Declare function in <unistd.h>.
17420         * lib/unistd.in.h (group_member): New declaration.
17421         * lib/group-member.h: Remove file.
17422         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17423         * tests/test-unistd-c++.cc: Check signature of group_member.
17424         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17425         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17426         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17427         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17428         HAVE_GROUP_MEMBER.
17429         * modules/group-member (Files): Remove lib/group-member.h.
17430         (Depends-on): Add unistd. Specify conditions.
17431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17432         (Include): Change to <unistd.h>.
17433         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17434         HAVE_GROUP_MEMBER.
17435         * NEWS: Mention the change.
17436         * lib/euidaccess.c: Don't include group-member.h.
17437
17438 2011-05-11  Bruno Haible  <bruno@clisp.org>
17439
17440         group-member: Document module.
17441         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17442         module.
17443
17444 2011-05-11  Bruno Haible  <bruno@clisp.org>
17445
17446         fclose: Fix mistake earlier today.
17447         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17448
17449 2011-05-11  Eric Blake  <eblake@redhat.com>
17450
17451         fclose: preserve fflush errors
17452         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17453         Reported by Jim Meyering.
17454
17455         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17456         * build-aux/bootstrap (check_versions): When no specific version
17457         is required, merely check that the app produces an exit status
17458         that indicates its existence.
17459
17460         maint.mk: drop redundant check
17461         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17462         the same but better.
17463
17464 2011-05-11  Bruno Haible  <bruno@clisp.org>
17465
17466         fclose: Fix possible link error.
17467         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17468         unregister_shadow_fd. Improve comments.
17469         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17470         Eric Blake.
17471
17472 2011-05-11  Jim Meyering  <meyering@redhat.com>
17473
17474         maint.mk: improve "can not" detection and generalize rule name
17475         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17476         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17477         Use the same technique as in sc_prohibit_doubled_word, so that
17478         we recognize "can not" also when the words are separated by a newline.
17479         Suggested by Eric Blake.
17480         (perl_filename_lineno_text_): Define.  Factored out of...
17481         (prohibit_doubled_word_): ...here.  Use the new definition.
17482         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17483         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17484         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17485
17486 2011-05-10  Eric Blake  <eblake@redhat.com>
17487
17488         fclose: avoid double close race when possible
17489         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17490         all but WINDOWS_SOCKETS.
17491
17492 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17493
17494         openat: correct new comment
17495         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17496
17497 2011-05-10  Jim Meyering  <meyering@redhat.com>
17498
17499         openat: add comments
17500         * lib/openat-proc.c (openat_proc_name): Add comments,
17501         mostly from Eric Blake.
17502
17503 2011-05-09  Eric Blake  <eblake@redhat.com>
17504
17505         openat: reduce syscalls in first probe of /proc
17506         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17507         be a directory.  Simplify the probe for .. bugs.
17508         * modules/openat (Depends-on): Drop same-inode.
17509         Reported by Bastien ROUCARIES.
17510
17511 2011-05-09  Jim Meyering  <meyering@redhat.com>
17512
17513         maint.mk: change semantics/name of tight_scope variables
17514         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17515         Rename variables to align with semantics that make them more useful.
17516
17517         maint.mk: tweak new rule's name not to impinge
17518         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17519         (sc_tight_scope): Use new rule name rather than $@-0.
17520
17521         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17522         * top/maint.mk (sc_tight_scope): New rule.
17523         (sc_tight_scope-0): New rule, ifdef'd out.
17524         (_gl_TS_dir): Default.
17525         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17526         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17527
17528 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17529
17530         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17531         Haible <bruno@clisp.org>.
17532
17533 2011-05-08  Bruno Haible  <bruno@clisp.org>
17534
17535         Comments.
17536         * m4/isnanf.m4: Add comment.
17537         * m4/isnanl.m4: Likewise.
17538
17539 2011-05-08  Bruno Haible  <bruno@clisp.org>
17540
17541         glob: Remove obsolete macro.
17542         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17543
17544 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17545
17546         intprops: Sun C 5.11 supports __typeof__
17547         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17548         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17549         which is new.
17550         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17551
17552         intprops: switch to usual gnulib indenting and naming
17553         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17554         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17555
17556         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17557
17558 2011-05-08  Jim Meyering  <meyering@redhat.com>
17559
17560         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17561         * top/maint.mk (release-prep): Use make's --no-print-directory
17562         option when generating the announcement.  This eliminates the
17563         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17564         generated announcement template.
17565
17566 2011-05-08  Bruno Haible  <bruno@clisp.org>
17567
17568         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17569         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17570         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17571
17572 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         ignore-value, verify: Omit include files from lib_SOURCES.
17575         * modules/ignore-value, modules/verify (Makefile.am):
17576         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17577         that leads Automake to duplicate use of am__objects_... variables
17578         in Makefile.in.  See
17579         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17580
17581 2011-05-07  Bruno Haible  <bruno@clisp.org>
17582
17583         fclose: Simplify autoconf macro.
17584         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17585         defined.
17586
17587 2011-05-07  Bruno Haible  <bruno@clisp.org>
17588
17589         canonicalize-lgpl: Fix autoconf macro ordering bug.
17590         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17591         gl_STDLIB_H_DEFAULTS.
17592
17593 2011-05-06  Eric Blake  <eblake@redhat.com>
17594
17595         maintainer-makefile: make sc_po_check easier to tune
17596         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17597         to probe for strings, such as an alternate location for gnulib.
17598
17599         fclose: guarantee behavior on seekable stdin
17600         * modules/fclose (Depends-on): Add fflush.
17601         * doc/posix-functions/fclose.texi (fclose): Document this.
17602         * tests/test-fclose.c (main): Make test for this unconditional.
17603
17604 2011-05-06  Bruno Haible  <bruno@clisp.org>
17605
17606         fflush, fpurge: Relicense under LGPLv2+.
17607         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17608         * modules/fpurge (License): Likewise.
17609         With permission from Eric Blake and Jim Meyering.
17610         Suggested by Eric Blake.
17611
17612 2011-05-06  Karl Berry  <karl@gnu.org>
17613
17614         * MODULES.html.sh (func_all_modules): remove exit.
17615
17616 2011-05-06  Jim Meyering  <meyering@redhat.com>
17617
17618         maint.mk: use info-gnu@ as the default only for a stable release
17619         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17620         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17621         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17622         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17623
17624 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17625
17626         assert-h: new module, which supports C1X-style static_assert
17627         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17628         * lib/verify.h: Revamp so that this can be copied into assert.h,
17629         while retaining the ability to use it standalone as before.
17630         Rename private identifiers so as not to encroach on the
17631         standard C namespace, since this is now used by assert.h.
17632         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17633         the old verify_true.
17634         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17635         the old verify_true.  Use _GL_VERIFY_TYPE.
17636         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17637         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17638         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17639         defined when this file is copied into the replacement assert.h.
17640         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17641         and _Static_assert is not built in.
17642         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17643         defined, and use the new macros mentioned above.
17644         * doc/posix-headers/assert.texi: Document this.
17645
17646 2011-05-05  Bruno Haible  <bruno@clisp.org>
17647
17648         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17649         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17650         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17651         gl_REPLACE_FCLOSE here.
17652         * modules/fflush (Depends-on): Remove fclose.
17653         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17654         combination with module 'fclose'.
17655
17656 2011-05-05  Bruno Haible  <bruno@clisp.org>
17657
17658         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17659         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17660         gl_FUNC_FFLUSH.
17661         (gl_FUNC_FFLUSH): Use it.
17662         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17664         gl_REPLACE_FSEEKO here.
17665
17666 2011-05-05  Bruno Haible  <bruno@clisp.org>
17667
17668         tzset: Relicense under LGPL.
17669         * modules/tzset (License): Change to LGPL.
17670         No agreement needed; it's a no-op.
17671
17672         strtoimax, strtoumax: Relicense under LGPL.
17673         * modules/strtoimax (License): Change to LGPL.
17674         * modules/strtoumax (License): Likewise.
17675         With permission from Jim Meyering, Paul Eggert:
17676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17678
17679         getgroups: Relicense under LGPL.
17680         * modules/getgroups (License): Change to LGPL.
17681         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17685
17686         nanosleep: Relicense under LGPL.
17687         * modules/nanosleep (License): Change to LGPL.
17688         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17689         Haible:
17690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17694
17695         futimens: Relicense under LGPL.
17696         * modules/futimens (License): Change to LGPL.
17697         With permission from Eric Blake:
17698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17699
17700         fflush: Relicense under LGPL.
17701         * modules/fflush (License): Change to LGPL.
17702         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17706
17707         tmpfile: Relicense under LGPL.
17708         * modules/tmpfile (License): Change to LGPL.
17709         With permission from Ben Pfaff:
17710         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17711
17712         isfinite: Relicense under LGPL.
17713         * modules/isfinite (License): Change to LGPL.
17714         With permission from Ben Pfaff, Bruno Haible:
17715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17717
17718         acosl..tanl: Relicense under LGPL.
17719         * modules/acosl (License): Change to LGPL.
17720         * modules/asinl (License): Likewise.
17721         * modules/atanl (License): Likewise.
17722         * modules/cosl (License): Likewise.
17723         * modules/expl (License): Likewise.
17724         * modules/logl (License): Likewise.
17725         * modules/sinl (License): Likewise.
17726         * modules/sqrtl (License): Likewise.
17727         * modules/tanl (License): Likewise.
17728         Source code originally from glibc and Paolo Bonzini. Agreements:
17729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17731
17732 2011-05-05  Bruno Haible  <bruno@clisp.org>
17733
17734         signal: Define sighandler_t.
17735         * lib/signal.in.h (sighandler_t): New type.
17736         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17737         whether sighandler_t is defined.
17738         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17739         * modules/signal (Depends-on): Add extensions.
17740         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17741         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17742         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17743
17744 2011-05-05  Eric Blake  <eblake@redhat.com>
17745
17746         maint: remove useless REPLACE_*_H macros
17747         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17748         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17749         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17750         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17751         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17752         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17753         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17754         * m4/btowc.m4: Update callers.
17755         * m4/dirfd.m4: Likewise.
17756         * m4/duplocale.m4: Likewise.
17757         * m4/fchdir.m4: Likewise.
17758         * m4/fdopendir.m4: Likewise.
17759         * m4/inet_ntop.m4: Likewise.
17760         * m4/inet_pton.m4: Likewise.
17761         * m4/ioctl.m4: Likewise.
17762         * m4/mbrlen.m4: Likewise.
17763         * m4/mbrtowc.m4: Likewise.
17764         * m4/mbsinit.m4: Likewise.
17765         * m4/mbsnrtowcs.m4: Likewise.
17766         * m4/mbsrtowcs.m4: Likewise.
17767         * m4/poll.m4: Likewise.
17768         * m4/setlocale.m4: Likewise.
17769         * m4/wcrtomb.m4: Likewise.
17770         * m4/wcsnrtombs.m4: Likewise.
17771         * m4/wcsrtombs.m4: Likewise.
17772         * m4/wctob.m4: Likewise.
17773         * m4/wcwidth.m4: Likewise.
17774         * modules/posix_spawn: Likewise.
17775         * modules/posix_spawn_file_actions_addclose: Likewise.
17776         * modules/posix_spawn_file_actions_adddup2: Likewise.
17777         * modules/posix_spawn_file_actions_addopen: Likewise.
17778         * modules/posix_spawn_file_actions_destroy: Likewise.
17779         * modules/posix_spawn_file_actions_init: Likewise.
17780         * modules/posix_spawnattr_destroy: Likewise.
17781         * modules/posix_spawnattr_getflags: Likewise.
17782         * modules/posix_spawnattr_getpgroup: Likewise.
17783         * modules/posix_spawnattr_getschedparam: Likewise.
17784         * modules/posix_spawnattr_getschedpolicy: Likewise.
17785         * modules/posix_spawnattr_getsigdefault: Likewise.
17786         * modules/posix_spawnattr_getsigmask: Likewise.
17787         * modules/posix_spawnattr_init: Likewise.
17788         * modules/posix_spawnattr_setflags: Likewise.
17789         * modules/posix_spawnattr_setpgroup: Likewise.
17790         * modules/posix_spawnattr_setschedparam: Likewise.
17791         * modules/posix_spawnattr_setschedpolicy: Likewise.
17792         * modules/posix_spawnattr_setsigdefault: Likewise.
17793         * modules/posix_spawnattr_setsigmask: Likewise.
17794         * modules/posix_spawnp: Likewise.
17795
17796 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17797
17798         Add option to do-release-commit-and-tag to specify branch.
17799         * build-aux/do-release-commit-and-tag: Add --branch.
17800
17801 2011-05-03  Bruno Haible  <bruno@clisp.org>
17802
17803         Avoid unnecessary compilation units, through conditional dependencies.
17804         * modules/accept (Depends-on): Add conditions to the dependencies.
17805         * modules/acosl (Depends-on): Likewise.
17806         * modules/argz (Depends-on): Likewise.
17807         * modules/asinl (Depends-on): Likewise.
17808         * modules/atanl (Depends-on): Likewise.
17809         * modules/atoll (Depends-on): Likewise.
17810         * modules/bind (Depends-on): Likewise.
17811         * modules/btowc (Depends-on): Likewise.
17812         * modules/canonicalize-lgpl (Depends-on): Likewise.
17813         * modules/ceil (Depends-on): Likewise.
17814         * modules/ceilf (Depends-on): Likewise.
17815         * modules/ceill (Depends-on): Likewise.
17816         * modules/chdir-long (Depends-on): Likewise.
17817         * modules/chown (Depends-on): Likewise.
17818         * modules/close (Depends-on): Likewise.
17819         * modules/connect (Depends-on): Likewise.
17820         * modules/cosl (Depends-on): Likewise.
17821         * modules/dirfd (Depends-on): Likewise.
17822         * modules/dprintf (Depends-on): Likewise.
17823         * modules/dprintf-posix (Depends-on): Likewise.
17824         * modules/error (Depends-on): Likewise.
17825         * modules/euidaccess (Depends-on): Likewise.
17826         * modules/expl (Depends-on): Likewise.
17827         * modules/faccessat (Depends-on): Likewise.
17828         * modules/fchdir (Depends-on): Likewise.
17829         * modules/fclose (Depends-on): Likewise.
17830         * modules/fcntl (Depends-on): Likewise.
17831         * modules/fdopendir (Depends-on): Likewise.
17832         * modules/fflush (Depends-on): Likewise.
17833         * modules/floor (Depends-on): Likewise.
17834         * modules/floorf (Depends-on): Likewise.
17835         * modules/floorl (Depends-on): Likewise.
17836         * modules/fnmatch (Depends-on): Likewise.
17837         * modules/fopen (Depends-on): Likewise.
17838         * modules/fprintf-posix (Depends-on): Likewise.
17839         * modules/frexp (Depends-on): Likewise.
17840         * modules/frexp-nolibm (Depends-on): Likewise.
17841         * modules/frexpl (Depends-on): Likewise.
17842         * modules/frexpl-nolibm (Depends-on): Likewise.
17843         * modules/fseek (Depends-on): Likewise.
17844         * modules/fsusage (Depends-on): Likewise.
17845         * modules/ftell (Depends-on): Likewise.
17846         * modules/ftello (Depends-on): Likewise.
17847         * modules/futimens (Depends-on): Likewise.
17848         * modules/getcwd (Depends-on): Likewise.
17849         * modules/getcwd-lgpl (Depends-on): Likewise.
17850         * modules/getdelim (Depends-on): Likewise.
17851         * modules/getdomainname (Depends-on): Likewise.
17852         * modules/getgroups (Depends-on): Likewise.
17853         * modules/gethostname (Depends-on): Likewise.
17854         * modules/getline (Depends-on): Likewise.
17855         * modules/getlogin_r (Depends-on): Likewise.
17856         * modules/getopt-posix (Depends-on): Likewise.
17857         * modules/getpeername (Depends-on): Likewise.
17858         * modules/getsockname (Depends-on): Likewise.
17859         * modules/getsockopt (Depends-on): Likewise.
17860         * modules/getsubopt (Depends-on): Likewise.
17861         * modules/getusershell (Depends-on): Likewise.
17862         * modules/glob (Depends-on): Likewise.
17863         * modules/grantpt (Depends-on): Likewise.
17864         * modules/iconv_open (Depends-on): Likewise.
17865         * modules/iconv_open-utf (Depends-on): Likewise.
17866         * modules/inet_ntop (Depends-on): Likewise.
17867         * modules/inet_pton (Depends-on): Likewise.
17868         * modules/ioctl (Depends-on): Likewise.
17869         * modules/isapipe (Depends-on): Likewise.
17870         * modules/isfinite (Depends-on): Likewise.
17871         * modules/isinf (Depends-on): Likewise.
17872         * modules/lchown (Depends-on): Likewise.
17873         * modules/ldexpl (Depends-on): Likewise.
17874         * modules/link (Depends-on): Likewise.
17875         * modules/linkat (Depends-on): Likewise.
17876         * modules/listen (Depends-on): Likewise.
17877         * modules/logl (Depends-on): Likewise.
17878         * modules/lstat (Depends-on): Likewise.
17879         * modules/mbrlen (Depends-on): Likewise.
17880         * modules/mbrtowc (Depends-on): Likewise.
17881         * modules/mbsinit (Depends-on): Likewise.
17882         * modules/mbsnrtowcs (Depends-on): Likewise.
17883         * modules/mbsrtowcs (Depends-on): Likewise.
17884         * modules/mbtowc (Depends-on): Likewise.
17885         * modules/memcmp (Depends-on): Likewise.
17886         * modules/mkdir (Depends-on): Likewise.
17887         * modules/mkdtemp (Depends-on): Likewise.
17888         * modules/mkfifo (Depends-on): Likewise.
17889         * modules/mkfifoat (Depends-on): Likewise.
17890         * modules/mknod (Depends-on): Likewise.
17891         * modules/mkostemp (Depends-on): Likewise.
17892         * modules/mkostemps (Depends-on): Likewise.
17893         * modules/mkstemp (Depends-on): Likewise.
17894         * modules/mkstemps (Depends-on): Likewise.
17895         * modules/mktime (Depends-on): Likewise.
17896         * modules/nanosleep (Depends-on): Likewise.
17897         * modules/open (Depends-on): Likewise.
17898         * modules/openat (Depends-on): Likewise.
17899         * modules/perror (Depends-on): Likewise.
17900         * modules/poll (Depends-on): Likewise.
17901         * modules/popen (Depends-on): Likewise.
17902         * modules/posix_spawn (Depends-on): Likewise.
17903         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17904         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17905         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17906         * modules/posix_spawnp (Depends-on): Likewise.
17907         * modules/pread (Depends-on): Likewise.
17908         * modules/printf-posix (Depends-on): Likewise.
17909         * modules/ptsname (Depends-on): Likewise.
17910         * modules/putenv (Depends-on): Likewise.
17911         * modules/pwrite (Depends-on): Likewise.
17912         * modules/readline (Depends-on): Likewise.
17913         * modules/readlink (Depends-on): Likewise.
17914         * modules/readlinkat (Depends-on): Likewise.
17915         * modules/recv (Depends-on): Likewise.
17916         * modules/recvfrom (Depends-on): Likewise.
17917         * modules/regex (Depends-on): Likewise.
17918         * modules/remove (Depends-on): Likewise.
17919         * modules/rename (Depends-on): Likewise.
17920         * modules/renameat (Depends-on): Likewise.
17921         * modules/rmdir (Depends-on): Likewise.
17922         * modules/round (Depends-on): Likewise.
17923         * modules/roundf (Depends-on): Likewise.
17924         * modules/roundl (Depends-on): Likewise.
17925         * modules/rpmatch (Depends-on): Likewise.
17926         * modules/select (Depends-on): Likewise.
17927         * modules/send (Depends-on): Likewise.
17928         * modules/sendto (Depends-on): Likewise.
17929         * modules/setenv (Depends-on): Likewise.
17930         * modules/setlocale (Depends-on): Likewise.
17931         * modules/setsockopt (Depends-on): Likewise.
17932         * modules/shutdown (Depends-on): Likewise.
17933         * modules/sigaction (Depends-on): Likewise.
17934         * modules/signbit (Depends-on): Likewise.
17935         * modules/sigprocmask (Depends-on): Likewise.
17936         * modules/sinl (Depends-on): Likewise.
17937         * modules/sleep (Depends-on): Likewise.
17938         * modules/snprintf (Depends-on): Likewise.
17939         * modules/snprintf-posix (Depends-on): Likewise.
17940         * modules/socket (Depends-on): Likewise.
17941         * modules/sprintf-posix (Depends-on): Likewise.
17942         * modules/sqrtl (Depends-on): Likewise.
17943         * modules/stat (Depends-on): Likewise.
17944         * modules/strchrnul (Depends-on): Likewise.
17945         * modules/strdup-posix (Depends-on): Likewise.
17946         * modules/strerror (Depends-on): Likewise.
17947         * modules/strerror_r-posix (Depends-on): Likewise.
17948         * modules/strndup (Depends-on): Likewise.
17949         * modules/strnlen (Depends-on): Likewise.
17950         * modules/strptime (Depends-on): Likewise.
17951         * modules/strsep (Depends-on): Likewise.
17952         * modules/strsignal (Depends-on): Likewise.
17953         * modules/strstr-simple (Depends-on): Likewise.
17954         * modules/strtod (Depends-on): Likewise.
17955         * modules/strtoimax (Depends-on): Likewise.
17956         * modules/strtok_r (Depends-on): Likewise.
17957         * modules/strtoumax (Depends-on): Likewise.
17958         * modules/symlink (Depends-on): Likewise.
17959         * modules/symlinkat (Depends-on): Likewise.
17960         * modules/tanl (Depends-on): Likewise.
17961         * modules/tcgetsid (Depends-on): Likewise.
17962         * modules/tmpfile (Depends-on): Likewise.
17963         * modules/trunc (Depends-on): Likewise.
17964         * modules/truncf (Depends-on): Likewise.
17965         * modules/truncl (Depends-on): Likewise.
17966         * modules/uname (Depends-on): Likewise.
17967         * modules/unlink (Depends-on): Likewise.
17968         * modules/unlockpt (Depends-on): Likewise.
17969         * modules/unsetenv (Depends-on): Likewise.
17970         * modules/usleep (Depends-on): Likewise.
17971         * modules/utimensat (Depends-on): Likewise.
17972         * modules/vasprintf (Depends-on): Likewise.
17973         * modules/vdprintf (Depends-on): Likewise.
17974         * modules/vdprintf-posix (Depends-on): Likewise.
17975         * modules/vfprintf-posix (Depends-on): Likewise.
17976         * modules/vprintf-posix (Depends-on): Likewise.
17977         * modules/vsnprintf (Depends-on): Likewise.
17978         * modules/vsnprintf-posix (Depends-on): Likewise.
17979         * modules/vsprintf-posix (Depends-on): Likewise.
17980         * modules/wcrtomb (Depends-on): Likewise.
17981         * modules/wcscasecmp (Depends-on): Likewise.
17982         * modules/wcscspn (Depends-on): Likewise.
17983         * modules/wcsdup (Depends-on): Likewise.
17984         * modules/wcsncasecmp (Depends-on): Likewise.
17985         * modules/wcsnrtombs (Depends-on): Likewise.
17986         * modules/wcspbrk (Depends-on): Likewise.
17987         * modules/wcsrtombs (Depends-on): Likewise.
17988         * modules/wcsspn (Depends-on): Likewise.
17989         * modules/wcsstr (Depends-on): Likewise.
17990         * modules/wcstok (Depends-on): Likewise.
17991         * modules/wcswidth (Depends-on): Likewise.
17992         * modules/wctob (Depends-on): Likewise.
17993         * modules/wctomb (Depends-on): Likewise.
17994         * modules/wctype (Depends-on): Likewise.
17995         * modules/wcwidth (Depends-on): Likewise.
17996         * modules/write (Depends-on): Likewise.
17997
17998 2011-05-03  Bruno Haible  <bruno@clisp.org>
17999
18000         Support for conditional dependencies.
18001         * doc/gnulib.texi (Module description): Document the syntax of
18002         conditional dependencies.
18003         * gnulib-tool: New option --conditional-dependencies.
18004         (func_usage): Document it.
18005         (cond_dependencies): New variable.
18006         (func_get_automake_snippet_conditional,
18007         func_get_automake_snippet_unconditional): New functions, extracted from
18008         func_get_automake_snippet.
18009         (func_get_automake_snippet): Use them.
18010         (sed_first_32_chars): New variable.
18011         (func_module_shellfunc_name): New function.
18012         (func_module_shellvar_name): New function.
18013         (func_module_conditional_name): New function.
18014         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18015         func_cond_module_condition): New functions.
18016         (func_modules_transitive_closure): Add support for conditional
18017         dependencies.
18018         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18019         conditional automake snippet in an automake conditional.
18020         (func_emit_autoconf_snippets): Emit shell functions that contain the
18021         code for conditional modules.
18022         (func_import, func_create_testdir): Update specification.
18023
18024 2011-05-03  Eric Blake  <eblake@redhat.com>
18025
18026         test-getaddrinfo: report error information
18027         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18028
18029 2011-05-03  Jim Meyering  <meyering@redhat.com>
18030
18031         bootstrap: avoid build failure when $GZIP is set
18032         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18033         program name.  If defined at all, it is supposed to list gzip options.
18034         Reported by Alan Curry in http://debbugs.gnu.org/8609
18035
18036 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18037
18038         readme-release: new module with release instructions
18039         * modules/readme-release: New module.
18040         * top/README-release: New file, from coreutils, grep, diffutils.
18041         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18042
18043 2011-05-02  Eric Blake  <eblake@redhat.com>
18044
18045         fflush: also replace fclose when fixing fflush
18046         * modules/fflush (Depends-on): Add fclose.
18047         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18048         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18049         memstreams with no backing fd.
18050         * doc/posix-functions/fclose.texi (fclose): Document the use of
18051         fflush module to fix the bug.
18052         * tests/test-fclose.c (main): Relax test when fclose is used in
18053         isolation.
18054
18055         fclose: add some tests
18056         * modules/fclose-tests: New test module.
18057         * tests/test-fclose.c: New file.
18058         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18059
18060         fclose: reduced dependencies
18061         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18062         simpler lseek.
18063         * lib/fclose.c (rpl_fclose): Likewise.
18064         Reported by Simon Josefsson.
18065
18066         exit: drop remaining clients
18067         * modules/argmatch (Depends-on): Replace exit with stdlib.
18068         * modules/copy-file (Depends-on): Likewise.
18069         * modules/execute (Depends-on): Likewise.
18070         * modules/exitfail (Depends-on): Likewise.
18071         * modules/obstack (Depends-on): Likewise.
18072         * modules/pagealign_alloc (Depends-on): Likewise.
18073         * modules/pipe-filter-gi (Depends-on): Likewise.
18074         * modules/pipe-filter-ii (Depends-on): Likewise.
18075         * modules/savewd (Depends-on): Likewise.
18076         * modules/spawn-pipe (Depends-on): Likewise.
18077         * modules/wait-process (Depends-on): Likewise.
18078         * modules/xsetenv (Depends-on): Likewise.
18079         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18080         * modules/git-merge-changelog (Depends-on): Likewise.
18081         * modules/long-options (Depends-on): Likewise.
18082         * modules/pt_chown (Depends-on): Likewise.
18083         * modules/sysexits (Depends-on): Likewise.
18084
18085         freading: relax license from LGPLv3+ to LGPLv2+
18086         * modules/freading (License): Relax LGPL version.
18087
18088 2011-05-02  Bruno Haible  <bruno@clisp.org>
18089
18090         fchdir: Remove unused dependencies.
18091         * modules/fchdir (Depends-on): Remove include_next.
18092
18093 2011-05-02  Bruno Haible  <bruno@clisp.org>
18094
18095         gnulib-tool: Refactor.
18096         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18097         from func_emit_autoconf_snippets.
18098         (func_emit_autoconf_snippets): Use it.
18099
18100 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18101
18102         * NEWS: Document removal of 'exit'.
18103         * modules/exit: Remove file.
18104
18105 2011-05-01  Bruno Haible  <bruno@clisp.org>
18106
18107         Update DEPENDENCIES.
18108         * DEPENDENCIES (gettext): Recommend the newest release.
18109         Reported by Simon Josefsson.
18110
18111 2011-05-01  Bruno Haible  <bruno@clisp.org>
18112
18113         gnulib-tool: Reduce code duplication.
18114         * gnulib-tool (func_emit_autoconf_snippets): New function.
18115         (func_import, func_create_testdir): Use it.
18116
18117 2011-04-30  Eric Blake  <eblake@redhat.com>
18118
18119         fclose: don't fail on non-seekable input stream
18120         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18121         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18122         since fflush is allowed to fail in that case.
18123
18124 2011-04-30  Bruno Haible  <bruno@clisp.org>
18125
18126         dup3: cleanup
18127         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18128
18129 2011-04-30  Bruno Haible  <bruno@clisp.org>
18130
18131         netdb: Make it work in C++ mode.
18132         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18133         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18134         module.
18135         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18136         gl_MODULE_INDICATOR_FOR_TESTS.
18137         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18138         * modules/netdb-c++-tests: New file.
18139         * tests/test-netdb-c++.cc: New file.
18140
18141 2011-04-30  Bruno Haible  <bruno@clisp.org>
18142
18143         New modules 'vfscanf', 'vscanf'.
18144         * modules/vfscanf: New file.
18145         * modules/vscanf: New file.
18146         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18147         here.
18148         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18149         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18150
18151 2011-04-30  Bruno Haible  <bruno@clisp.org>
18152
18153         passfd: Add comments.
18154         * lib/passfd.c: Add comments about platforms.
18155
18156 2011-04-30  Bruno Haible  <bruno@clisp.org>
18157
18158         sys_uio: Make <sys/uio.h> self-contained.
18159         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18160         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18161
18162 2011-04-30  Bruno Haible  <bruno@clisp.org>
18163
18164         sys_socket: Ensure 'struct iovec' definition.
18165         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18166         <sys/socket.h>.
18167         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18168
18169 2011-04-30  Bruno Haible  <bruno@clisp.org>
18170
18171         sys_uio: Protect definition of 'struct iovec'.
18172         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18173         it as a C struct.
18174
18175 2011-04-30  Bruno Haible  <bruno@clisp.org>
18176
18177         manywarnings: fix indentation
18178         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18179
18180 2011-04-30  Pádraig Brady <P@draigBrady.com>
18181
18182         manywarnings: add -Wno-missing-field-initializers if needed.
18183         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18184         option if it's needed to allow initialization with { 0, }
18185
18186 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18187
18188         announce-gen: cosmetic improvement
18189         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18190
18191 2011-04-29  Jim Meyering  <meyering@redhat.com>
18192
18193         vc-list-files: indent with spaces, not TABs
18194         * build-aux/vc-list-files: Convert leading TABs to spaces,
18195         to match the style of most other files in gnulib.
18196
18197         announce-gen: indent with spaces, not TABs
18198         * build-aux/announce-gen: Convert all TABs to spaces, to match
18199         the style of most other files in gnulib.
18200
18201 2011-04-29  Eric Blake  <eblake@redhat.com>
18202
18203         quotearg: avoid uninitialized variable use
18204         * lib/quotearg.c (quoting_options_from_style): Initialize
18205         remaining fields, and ensure that custom styles are only used via
18206         quoting_options rather than quoting_style.
18207
18208 2011-04-29  Jim Meyering  <meyering@redhat.com>
18209
18210         maint.mk: remove unused VC-tag variable
18211         * top/maint.mk (VC-tag): Remove unused variable.
18212
18213 2011-04-29  Bruno Haible  <bruno@clisp.org>
18214
18215         netdb: fix gai_strerror replacements
18216         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18217         * modules/netdb: Substitute it.
18218
18219 2011-04-29  Jim Meyering  <meyering@redhat.com>
18220
18221         test-getcwd.c: avoid new set-but-not-used warning
18222         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18223         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18224         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18225         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18226
18227         test-hash.c: avoid a new shadowing warning
18228         * tests/test-hash.c (main): Don't shadow "dup".
18229
18230 2011-04-28  Eric Blake  <eblake@redhat.com>
18231
18232         getaddrinfo: fix gai_strerror signature
18233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18234         and work around mingw with UNICODE defined.
18235         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18236         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18237         * modules/netdb (Makefile.am): Substitute it.
18238         * lib/netdb.in.h (gai_strerror): Declare replacement.
18239         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18240         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18241         the fix.
18242
18243         getsockopt: avoid compiler warning
18244         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18245         Reported by Matthias Bolte.
18246
18247         tests: drop unused link dependency
18248         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18249         * modules/dirent-safer-tests (Makefile.am): Likewise.
18250         * modules/fdopendir-tests (Makefile.am): Likewise.
18251         * modules/mkfifoat-tests (Makefile.am): Likewise.
18252         * modules/openat-safer-tests (Makefile.am): Likewise.
18253         * modules/openat-tests (Makefile.am): Likewise.
18254         * modules/readlinkat-tests (Makefile.am): Likewise.
18255         * modules/symlinkat-tests (Makefile.am): Likewise.
18256         * modules/linkat-tests (Makefile.am): Likewise.
18257         (Depends-on): Switch to filenamecat-lgpl.
18258         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18259         LIBINTL.
18260         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18261         * tests/test-linkat.c (main): Don't require xalloc.
18262
18263         hash, mgetgroups: drop xalloc dependency
18264         * lib/hash.c (includes): Adjust includes.
18265         * lib/mgetgroups.c (includes): Likewise.
18266         (xgetgroups): Move...
18267         * lib/xgetgroups.c: ...to new file.
18268         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18269         * modules/xgetgroups: New file, split from...
18270         * modules/mgetgroups: ...here.
18271         (Depends-on): Add xalloc-oversized.
18272         * modules/hash (Depends-on): Likewise.
18273         * modules/hash-tests (Depends-on): Drop xalloc.
18274         (test_hash_LDADD): Drop unused library.
18275         * tests/test-hash.c (main): Break xalloc dependency.
18276         (includes): Drop unused include.
18277
18278         xalloc-oversized: new module
18279         * modules/xalloc-oversized: New module.
18280         * modules/xalloc (Depends-on): Add it.
18281         * lib/xalloc.h (xalloc_oversized): Move...
18282         * lib/xalloc-oversized.h: ...into new file.
18283
18284         utimecmp: drop dependency on xmalloc
18285         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18286         due to memory pressure.
18287         * modules/utimecmp (Depends-on): Drop xalloc.
18288
18289 2011-04-27  Eric Blake  <eblake@redhat.com>
18290
18291         getcwd: fix mingw bugs
18292         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18293         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18294         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18295
18296 2011-04-27  Bruno Haible  <bruno@clisp.org>
18297
18298         mkstemps: Ensure declaration on MacOS X 10.5.
18299         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18300         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18301         MacOS X.
18302
18303 2011-04-27  Bruno Haible  <bruno@clisp.org>
18304
18305         mkstemp: More documentation.
18306         * doc/posix-functions/mkstemp.texi: Document header file problem on
18307         MacOS X.
18308
18309 2011-04-27  Bruno Haible  <bruno@clisp.org>
18310
18311         mkstemp: Tweak configure message when cross-compiling.
18312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18313         result as a guess.
18314
18315 2011-04-27  Bruno Haible  <bruno@clisp.org>
18316
18317         clean-temp: Clarify what it does.
18318         * lib/clean-temp.h: Add more comments.
18319         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18320         module.
18321         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18322         * doc/glibc-functions/mkstemps.texi: Likewise.
18323         * doc/glibc-functions/mkostemps.texi: Likewise.
18324
18325 2011-04-27  Eric Blake  <eblake@redhat.com>
18326
18327         fchdir: avoid extra chdir and fix test
18328         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18329         getcwd-lgpl.
18330         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18331         have to be canonical.
18332         (canonicalize_file_name): Drop unused macro.
18333         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18334
18335         filenamecat-lgpl: fix licence
18336         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18337         when it was first created.
18338
18339         linkat, renameat: add missing dependency
18340         * modules/linkat (Depends-on): Require getcwd-lgpl.
18341         * modules/renameat (Depends-on): Likewise.
18342
18343         tests: reduce dependencies
18344         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18345         * tests/test-renameat.c (main): Likewise.
18346         * modules/linkat-tests (Depends-on): Relax dependency.
18347         * modules/renameat-tests (Depends-on): Likewise.
18348         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18349         dependency explicit.
18350
18351         save-cwd: reduce default dependency
18352         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18353         * lib/save-cwd.c: Update comments.
18354         * NEWS: Document the semantic change.
18355
18356         getcwd: enhance tests
18357         * tests/test-getcwd-lgpl.c: New file, taken from...
18358         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18359         repeat long path stress tests from m4 probe.
18360         * modules/getcwd-lgpl-tests: New module.
18361         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18362         * m4/getcwd-abort-bug.m4: Update comment.
18363         * m4/getcwd-path-max.m4: Likewise.
18364
18365         getcwd-lgpl: new module
18366         * modules/getcwd-lgpl: New module.
18367         * lib/getcwd-lgpl.c: New file.
18368         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18369         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18370         * modules/getcwd (configure.ac): Set C witness.
18371         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18372
18373         getcwd: tweak comments
18374         * m4/getcwd-abort-bug.m4: Fix comments.
18375         * m4/getcwd-path-max.m4: Likewise.
18376         * m4/getcwd.m4: Likewise.
18377
18378 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18379         and Eric Blake  <eblake@redhat.com>
18380
18381         mkstemp: replace if system version uses wrong permissions
18382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18383         read/write mode bits set in file created by mkstemp.
18384         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18385
18386 2011-04-27  Eric Blake  <eblake@redhat.com>
18387
18388         passfd: avoid compiler warning
18389         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18390         Reported by Laine Stump.
18391
18392 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18393
18394         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18395         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18396
18397 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18398         and Eric Blake  <eblake@redhat.com>
18399
18400         mkstemp: mention clean-temp module
18401         * lib/mkstemp.c: Add comment.
18402         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18403
18404 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18405
18406         inttypes: also provide default values for 32-bit tests
18407         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18408         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18409
18410 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18411
18412         strtoumax: remove dependency on strtoimax
18413         This is like the strtoull change of yesterday.
18414         * modules/strtoumax (Files): Add lib/strtoimax.c.
18415         (Depends-on): Remove strtoimax and add verify.
18416
18417         inttypes-incomplete: new module
18418         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18419         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18420         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18421         of gl_INTTYPES_H.
18422         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18423         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18424         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18425         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18426         * modules/strtoumax, modules/xstrtol (Depends-on):
18427         Depend on inttypes-incomplete, not inttypes.
18428         * modules/inttypes-incomplete: New module, containing the contents
18429         of the old modules/inttypes module, except that the Files: section
18430         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18431         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18432         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18433         (Depends-on): Depend only on inttypes-incomplete.
18434         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18435
18436         inttypes: omit now-redundant strtoimax and strtoumax work
18437         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18438         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18439
18440         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18441         This supports apps that need pointers to strtoimax and strtoumax,
18442         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18443         nonexistent functions.  See
18444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18445         et seq.
18446         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18447         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18448         a macro.
18449         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18450
18451 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18452
18453         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18454
18455 2011-04-25  Bruno Haible  <bruno@clisp.org>
18456
18457         strtol, strtoul: Mark modules as obsolete.
18458         * modules/strtol (Status, Notice): New sections.
18459         * modules/strtoul (Status, Notice): New sections.
18460
18461 2011-04-25  Bruno Haible  <bruno@clisp.org>
18462
18463         strtod: Remove check for strtod, unless supporting old platforms.
18464         * modules/strtod-obsolete: New file.
18465         * m4/strtod-obsolete.m4: New file.
18466         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18467         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18468         * modules/strtod (Depends-on): Add strtod-obsolete.
18469         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18470
18471 2011-04-25  Bruno Haible  <bruno@clisp.org>
18472
18473         strcase: Make module obsolete.
18474         * modules/strcase (Status, Notice): New sections.
18475
18476 2011-04-25  Bruno Haible  <bruno@clisp.org>
18477
18478         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18479         * modules/dup2-obsolete: New file.
18480         * m4/dup2-obsolete.m4: New file.
18481         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18482         gl_FUNC_DUP2_OBSOLETE is not also defined.
18483         * modules/dup2 (Depends-on): Add dup2-obsolete.
18484         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18485
18486 2011-04-25  Bruno Haible  <bruno@clisp.org>
18487
18488         strnlen: Avoid memchr related link error on old obsolete platforms.
18489         * modules/memchr-obsolete: New file.
18490         * m4/memchr-obsolete.m4: New file.
18491         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18492         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18493         * modules/memchr (Depends-on): Add memchr-obsolete.
18494         * modules/strnlen (Depends-on): Likewise.
18495         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18496
18497 2011-04-25  Jim Meyering  <meyering@redhat.com>
18498
18499         maint.mk: makefile_at_at_check extend and clean up
18500         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18501         in addition to */Makefile.am.
18502         Exempt legitimate uses of @VAR@ notation, e.g.,
18503         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18504         Remove obsolete coreutils-specific comment.
18505         Prompted by discussion here:
18506         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18507
18508 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18509
18510         strtoul: remove dependency on strtol
18511         This is so that 'configure' need not check for strtol merely because
18512         the application needs strtoul.
18513         * modules/strtoul (Files): Add lib/strtol.c.
18514         (Depends-on): Remove strtol.
18515
18516         strtoull: remove dependency on strtoul
18517         This is like the strtoll change.
18518         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18519         (Depends-on): Remove strtoul.
18520
18521         strtoll: remove dependency on strtol
18522         This is so that 'configure' need not check for strtol merely because
18523         the application needs strtoll.
18524         * modules/strtoll (Files): Add lib/strtol.c.
18525         (Depends-on): Remove strtol.
18526
18527 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18528
18529         inttypes: Move some configure check to module 'imaxdiv'.
18530         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18531         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18532         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18533
18534 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18535
18536         inttypes: Move some configure check to module 'imaxabs'.
18537         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18538         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18539         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18540
18541 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18542
18543         inttypes: Remove configure tests that are not needed since 2009-12-31.
18544         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18545         gl_cv_header_working_inttypes_h.
18546
18547 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18548
18549         * modules/strnlen (Depends-on): Remove memchr.
18550         The strnlen implementation doesn't need the memchr module's fixes; see
18551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18552
18553         strtol: remove dependency on wchar
18554         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18555         * modules/strtol (Depends-on): Remove wchar.
18556
18557 2011-04-21  Eric Blake  <eblake@redhat.com>
18558
18559         passfd: fix test regression on Linux
18560         * modules/passfd-tests (configure.ac): Correct socketpair check.
18561
18562         passfd: speed up configure and drop unused code
18563         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18564         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18565         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18566         Instead of probing at configure for unix_scm_rights_bsd44_way,
18567         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18568         check to a struct member probe.
18569         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18570         (sendfd, recvfd): Update preprocessor checks.
18571         * modules/passfd (Files): Reflect rename, and drop unused file.
18572         (Depends-on): Drop unused dependency.
18573
18574         passfd: allow compilation on mingw
18575         * modules/sys_socket (Depends-on): Add sys_uio.
18576         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18577         iovec and a minimal struct msghdr.
18578         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18579         * tests/test-sys_socket.c (main): Enhance test.
18580         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18581         guaranteed to provide what we need.
18582         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18583         * modules/passfd-tests (Depends-on): Add sys_wait.
18584         * tests/test-passfd.c (main): Skip test on mingw, for now.
18585         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18586         partial 'struct msghdr' implementation.
18587
18588         sys_uio: new module
18589         * modules/sys_uio: New module.
18590         * modules/sys_uio-tests: Likewise.
18591         * lib/sys_uio.in.h: New file.
18592         * m4/sys_uio_h.m4: Likewise.
18593         * tests/test-sys_uio.c: Likewise.
18594         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18595         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18596
18597 2011-04-20  Jim Meyering  <meyering@redhat.com>
18598
18599         useless-if-before-free: avoid false-positive
18600         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18601         disjunct so that it too requires a terminating ";".  Without that,
18602         this script would identify as useless one statement from gcc that
18603         was not:
18604           if (aligned_ptr)
18605             free (((void **) aligned_ptr) [-1]);
18606
18607 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18608
18609         doc: update users.txt.
18610         * users.txt: Add barcode.
18611
18612 2011-04-19  Bruno Haible  <bruno@clisp.org>
18613
18614         ioctl: Remove link dependency on native Windows.
18615         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18616         (gl_close_fn, gl_ioctl_fn): New types.
18617         (struct fd_hook): Renamed from struct close_hook. Change type of
18618         private_close_fn field. Add private_ioctl_fn field.
18619         (close_hook_fn): Add parameter for primary close method.
18620         (execute_close_hooks, execute_all_close_hooks): Likewise.
18621         (ioctl_hook_fn): New type.
18622         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18623         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18624         argument.
18625         (unregister_fd_hook): Renamed from unregister_close_hook.
18626         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18627         Don't include <unistd.h>.
18628         (close): Remove undef.
18629         (anchor): Update.
18630         (execute_close_hooks): Add argument for primary close method.
18631         (execute_all_close_hooks): Likewise.
18632         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18633         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18634         argument. Allow each argument to be NULL.
18635         (unregister_fd_hook): Renamed from unregister_close_hook.
18636         * lib/close.c (rpl_close): Pass 'close' function pointer to
18637         execute_all_close_hooks.
18638         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18639         (primary_ioctl): New function.
18640         (ioctl): Don't call ioctlsocket here. Instead, call
18641         execute_all_ioctl_hooks.
18642         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18643         close method.
18644         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18645         (fd_sockets_hook): Renamed from close_sockets_hook.
18646         (gl_sockets_startup, gl_sockets_cleanup): Update.
18647         * modules/fd-hook: Renamed from modules/close-hook. Update.
18648         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18649         * modules/sockets (Depends-on): Likewise.
18650         * modules/ioctl (Depends-on): Add fd-hook.
18651         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18652         GNULIB_SOCKET.
18653
18654 2011-04-19  Bruno Haible  <bruno@clisp.org>
18655
18656         Move the support of O_NONBLOCK in open() to the 'open' module.
18657         * modules/nonblocking (Depends-on): Remove 'open'.
18658         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18659         gl_cv_have_open_O_NONBLOCK.
18660         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18661         O_NONBLOCK support.
18662         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18663
18664 2011-04-17  Bruno Haible  <bruno@clisp.org>
18665
18666         pipe2: Simplify code.
18667         * lib/pipe2.c (pipe2): Reduce code duplication.
18668
18669 2011-04-17  Bruno Haible  <bruno@clisp.org>
18670
18671         nonblocking: Add comment.
18672         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18673
18674 2011-04-17  Bruno Haible  <bruno@clisp.org>
18675
18676         nonblocking: Add tests for sockets.
18677         * tests/test-nonblocking-socket.sh: New file.
18678         * tests/test-nonblocking-socket-main.c: New file.
18679         * tests/test-nonblocking-socket-child.c: New file.
18680         * tests/test-nonblocking-socket.h: New file.
18681         * tests/socket-server.h: New file.
18682         * tests/socket-client.h: New file.
18683         * modules/nonblocking-socket-tests: New file.
18684         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18685
18686 2011-04-17  Bruno Haible  <bruno@clisp.org>
18687
18688         nonblocking: Add tests for pipes.
18689         * tests/test-nonblocking-pipe.sh: New file.
18690         * tests/test-nonblocking-pipe-main.c: New file.
18691         * tests/test-nonblocking-pipe-child.c: New file.
18692         * tests/test-nonblocking-pipe.h: New file.
18693         * tests/test-nonblocking-writer.h: New file.
18694         * tests/test-nonblocking-reader.h: New file.
18695         * tests/test-nonblocking-misc.h: New file.
18696         * modules/nonblocking-pipe-tests: New file.
18697         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18698
18699 2011-04-16  Bruno Haible  <bruno@clisp.org>
18700
18701         gettext: Clarify the needed programmer actions.
18702         * modules/gettext (Notice): New field.
18703         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18704
18705 2011-04-16  Bruno Haible  <bruno@clisp.org>
18706
18707         strchrnul: Tweak last commit.
18708         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18709         bug.
18710         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18711         as in _GL_FUNCDECL_SYS.
18712         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18713         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18714
18715 2011-04-15  Eric Blake  <eblake@redhat.com>
18716
18717         strchrnul: work around cygwin bug
18718         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18721         * modules/string (Makefile.am): Substitute it.
18722         * lib/string.in.h (strchrnul): Use it.
18723
18724 2011-04-15  Bruno Haible  <bruno@clisp.org>
18725
18726         Don't require lib/stdio-write.c when only module 'stdio' is used.
18727         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18728         invocation.
18729         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18730
18731 2011-04-14  Bruno Haible  <bruno@clisp.org>
18732
18733         Support non-blocking pipe I/O in read() on native Windows.
18734         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18735         (read): New declaration.
18736         * lib/read.c: New file.
18737         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18738         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18739         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18740         vscanf): New declarations.
18741         * lib/stdio-read.c: New file.
18742         * m4/read.m4: New file.
18743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18744         REPLACE_READ.
18745         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18746         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18747         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18748         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18749         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18750         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18751         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18752         * modules/read: New file.
18753         * modules/nonblocking (Files): Add lib/stdio-read.c.
18754         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18755         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18756         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18757         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18758         * modules/pread (Depends-on): Add read.
18759         * modules/safe-read (Depends-on): Likewise.
18760         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18761         gets, scanf, vfscanf, vscanf): Verify signatures.
18762         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18763         problem with non-blocking pipes.
18764         * doc/posix-functions/fgetc.texi: Likewise.
18765         * doc/posix-functions/fgets.texi: Likewise.
18766         * doc/posix-functions/fread.texi: Likewise.
18767         * doc/posix-functions/fscanf.texi: Likewise.
18768         * doc/posix-functions/getc.texi: Likewise.
18769         * doc/posix-functions/getchar.texi: Likewise.
18770         * doc/posix-functions/gets.texi: Likewise.
18771         * doc/posix-functions/scanf.texi: Likewise.
18772         * doc/posix-functions/vfscanf.texi: Likewise.
18773         * doc/posix-functions/vscanf.texi: Likewise.
18774
18775 2011-04-14  Bruno Haible  <bruno@clisp.org>
18776
18777         Support non-blocking pipe I/O in write() on native Windows.
18778         * lib/write.c (rpl_write): Split a write request that failed merely
18779         because the byte count was larger than the pipe buffer's size.
18780         * doc/posix-functions/write.texi: Mention the problem with large byte
18781         counts.
18782
18783 2011-04-14  Bruno Haible  <bruno@clisp.org>
18784
18785         wchar: Ensure that wchar_t gets defined on uClibc.
18786         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18787         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18788
18789 2011-04-13  Bruno Haible  <bruno@clisp.org>
18790
18791         safe-write, full-read: Avoid unnecessary compilation units.
18792         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18793         (Depends-on): Remove safe-read. Add ssize_t.
18794         * modules/full-read (Files): Add lib/full-write.c.
18795         (Depends-on): Add full-write.
18796
18797 2011-04-13  Bruno Haible  <bruno@clisp.org>
18798
18799         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18800         * modules/pwrite (Depends-on): Add 'write'.
18801
18802 2011-04-13  Bruno Haible  <bruno@clisp.org>
18803
18804         Support non-blocking pipe I/O in write() on native Windows.
18805         * lib/unistd.in.h (write): Enable replacement also if
18806         GNULIB_UNISTD_H_NONBLOCKING is 1.
18807         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18808         (rpl_write): When failing to write on a non-blocking pipe, change
18809         errno from ENOSPC to EAGAIN.
18810         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18811         putchar, puts, vfprintf, vprintf): Enable replacement also if
18812         GNULIB_STDIO_H_NONBLOCKING is 1.
18813         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18814         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18815         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18816         CALL_WITH_SIGPIPE_EMULATION.
18817         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18818         * m4/nonblocking.m4: New file.
18819         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18820         for non-blocking I/O support.
18821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18822         GNULIB_UNISTD_H_NONBLOCKING.
18823         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18824         required for non-blocking I/O support.
18825         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18826         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18827         lib/stdio-write.c, m4/asm-underscore.m4.
18828         (Depends-on): Add stdio, unistd.
18829         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18830         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18831         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18832         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18833         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18834         problem with non-blocking pipes.
18835         * doc/posix-functions/fputc.texi: Likewise.
18836         * doc/posix-functions/fputs.texi: Likewise.
18837         * doc/posix-functions/fwrite.texi: Likewise.
18838         * doc/posix-functions/printf.texi: Likewise.
18839         * doc/posix-functions/putc.texi: Likewise.
18840         * doc/posix-functions/putchar.texi: Likewise.
18841         * doc/posix-functions/puts.texi: Likewise.
18842         * doc/posix-functions/vfprintf.texi: Likewise.
18843         * doc/posix-functions/vprintf.texi: Likewise.
18844         * doc/posix-functions/write.texi: Likewise.
18845
18846 2011-04-10  Jim Meyering  <meyering@redhat.com>
18847
18848         maint.mk: prohibit doubled words
18849         Detect them also when they're separated by a newline.
18850         There are 3 ways to customize it:
18851           - disable the test on a per file basis, as usual with rules using
18852             $(VC_LIST_EXCEPT)
18853           - replace the default doubled-word-selecting regexp (affects all files)
18854           - ignore a particular file-vs-doubled-word match
18855         I nearly used that last one to ignore the "is is" match in
18856         coreutils' NEWS file, since the text was "ls -is is ..."
18857         To do that, I would have added this line to cfg.mk:
18858           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18859         but it would have ignored any "is is" match in NEWS.
18860         Low probability, but still...
18861         Instead, I changed the text, slightly:
18862           -  ls -is is now consistent with ls -lis in ignoring values returned
18863           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18864         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18865         (prohibit_doubled_word_): Define.
18866         (sc_prohibit_doubled_word): New rule.
18867         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18868
18869 2011-04-10  Jim Meyering  <meyering@redhat.com>
18870
18871         maint: fix doubled-word typo in comment
18872         * m4/gethostname.m4: s/is is/it is/
18873         * m4/getdomainname.m4: Likewise.
18874
18875 2011-04-10  Jim Meyering  <meyering@redhat.com>
18876
18877         maint: remove doubled word: s/it it/it/
18878         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18879
18880 2011-04-10  Jim Meyering  <meyering@redhat.com>
18881
18882         maint.mk: remove useless semicolon and backslash
18883         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18884         semicolon and backslash.
18885
18886 2011-04-10  Bruno Haible  <bruno@clisp.org>
18887
18888         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18889         * modules/stdint-tests (Depends-on): Add wchar.
18890
18891 2011-04-10  Jim Meyering  <meyering@redhat.com>
18892
18893         maint: remove doubled words in comments, e.g., s/a a/a/
18894         * lib/strptime.c (day_of_the_week): s/the the/the/
18895         * tests/test-chown.h (test_chown): s/a a/a/
18896
18897         test-chown.h: correct a cast
18898         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18899         when the destination is a stat.st_gid.
18900
18901 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18902
18903         getaddrinfo: Fix test for sa_len member.
18904         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18905         include <sys/types.h> before <sys/socket.h>.
18906
18907 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18908
18909         maint: change "can not" to "cannot"
18910         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18911         boundaries.
18912
18913 2011-04-09  Jim Meyering  <meyering@redhat.com>
18914
18915         maint: change "a a" to "a"
18916         * tests/test-lchown.h (test_lchown): s/a a/a/
18917
18918         maint.mk: prohibit \<the the\>
18919         * top/maint.mk (sc_prohibit_the_the): New rule.
18920
18921         maint: fix "the the" in comment
18922         * lib/count-one-bits.h: s/the the/the/
18923
18924         maint: change "can not" to "cannot"
18925         But do not change the occurrences in maintain.texi or in
18926         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18927         * doc/gnulib-tool.texi: s/can not/cannot/
18928         * doc/posix-functions/accept.texi (accept): Likewise.
18929         * doc/posix-functions/socket.texi (socket): Likewise.
18930         * lib/mbrtowc.c: Likewise.
18931
18932         maint.mk: prohibit use of "can not"
18933         * top/maint.mk (sc_prohibit_can_not): New rule.
18934         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18935
18936 2011-04-09  Bruno Haible  <bruno@clisp.org>
18937
18938         careadlinkat: Guard against misuse of careadlinkatcwd.
18939         * lib/careadlinkat.c: Include <stdlib.h>.
18940         (careadlinkatcwd): Check that the fd argument is as expected.
18941
18942 2011-04-09  Bruno Haible  <bruno@clisp.org>
18943
18944         careadlinkat: Use common coding style.
18945         * lib/careadlinkat.c: Move gnulib includes after system includes.
18946
18947 2011-04-09  Bruno Haible  <bruno@clisp.org>
18948
18949         careadlinkat: Clarify specification.
18950         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18951         (careadlinkatcwd): Add comment.
18952         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18953
18954 2011-04-09  Bruno Haible  <bruno@clisp.org>
18955
18956         areadlinkat: Avoid link error on many platforms.
18957         * modules/areadlinkat (Depends-on): Add areadlink.
18958
18959 2011-04-09  Bruno Haible  <bruno@clisp.org>
18960
18961         allocator, careadlinkat: Fix double-inclusion guard.
18962         * lib/allocator.h: Fix double-inclusion guard.
18963         * lib/careadlinkat.h: Likewise.
18964
18965 2011-04-09  Bruno Haible  <bruno@clisp.org>
18966
18967         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18968         * lib/relocwrapper.c: Update dependencies hierarchy.
18969         * build-aux/install-reloc: Update list of files to be compiled.
18970         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18971         lib/allocator.[hc].
18972
18973 2011-04-08  Eric Blake  <eblake@redhat.com>
18974
18975         strftime: silence gnulib-tool warning
18976         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18977
18978 2011-04-08  Bruno Haible  <bruno@clisp.org>
18979
18980         verify: Fix syntax error with GCC 4.6 in C++ mode.
18981         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18982         (HAVE_STATIC_ASSERT): New macro.
18983         (verify_true, verify): Use 'static_assert' if it is supported and
18984         '_Static_assert' is not supported.
18985
18986 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18987
18988         allocator: New module.
18989         * modules/allocator, lib/allocator.c: New files.
18990         * lib/allocator.h (stdlib_allocator): New decl.
18991         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18992         Remove.  Do not include <stdlib.h>.
18993         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18994         * modules/careadlinkat (Files): Remove lib/allocator.h.
18995         (Depends-on): Add allocator.
18996
18997         stdlib: let modules use system malloc, realloc
18998         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18999         if !_GL_USE_STDLIB_ALLOC.
19000         (malloc, realloc): Limit this change to a smaller scope.
19001
19002         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19003         (malloc, realloc): Don't #undef; no longer needed.
19004         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19005         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19006         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19007         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19008         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19009         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19010         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19011         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19012
19013         careadlinkat: rename members to avoid problem
19014         * lib/allocator.h (struct allocator): Rename members from
19015         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19016         and realloc are #define'd.  Reported by Eric Blake in
19017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19018         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19019
19020 2011-04-08  Eric Blake  <eblake@redhat.com>
19021
19022         nonblocking: reduce dependency
19023         * tests/test-nonblocking.c: Only test sockets when in use.
19024         * modules/nonblocking-tests (Depends-on): Drop socket.
19025         (Makefile.am): Link even if sockets are not present.
19026         * modules/pipe2-tests (Makefile.am): Likewise.
19027         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19028
19029         pipe2: fix O_NONBLOCK support on mingw
19030         * modules/pipe2 (Depends-on): Add nonblocking.
19031         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19032         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19033         * tests/test-nonblocking.c (main): Likewise.
19034         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19035
19036         fcntl-h: fix O_ACCMODE on cygwin
19037         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19038         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19039
19040         pipe-filter: drop O_NONBLOCK workarounds
19041         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19042         * modules/pipe-filter-ii (Depends-on): Likewise.
19043         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19044
19045         nonblocking: provide O_NONBLOCK for mingw
19046         * modules/nonblocking (Depends-on): Add open.
19047         (configure.ac): Set new witness macro.
19048         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19049         * modules/fcntl-h (Makefile.am): Substitute it.
19050         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19051         nonblocking module is in use.
19052         * lib/nonblocking.c: Adjust portability test.
19053         * lib/open.c (open): Don't let native open see gnulib flag.
19054         * tests/test-fcntl-h.c (main): Enhance test.
19055         * tests/test-open.h (test_open): Likewise.
19056         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19057
19058         careadlinkat: fix compilation error on mingw
19059         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19060         within struct allocator.
19061
19062 2011-04-06  Eric Blake  <eblake@redhat.com>
19063
19064         binary-io: relicense under LGPLv2+
19065         * modules/binary-io (License): Relax to LGPLv2+.
19066         Requested for libvirt, and required by pipe2.
19067
19068 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19069
19070         verify: use _Static_assert if available
19071         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19072         (verify_true, verify): Use it if available.  This generates better
19073         diagnostics with GCC 4.6.0 and later.
19074
19075 2011-04-05  Bruno Haible  <bruno@clisp.org>
19076
19077         Remove leftover generated .h files after config.status changed.
19078
19079         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19080         GL_GENERATE_ALLOCA_H.
19081         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19082         GL_GENERATE_ALLOCA_H evaluates to false.
19083
19084         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19085         GL_GENERATE_ARGZ_H.
19086         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19087         evaluates to false.
19088
19089         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19090         GL_GENERATE_BYTESWAP_H.
19091         * modules/byteswap (Makefile.am): Remove byteswap.h if
19092         GL_GENERATE_BYTESWAP_H evaluates to false.
19093
19094         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19095         GL_GENERATE_ERRNO_H.
19096         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19097         evaluates to false.
19098
19099         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19100         GL_GENERATE_FLOAT_H.
19101         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19102         evaluates to false.
19103
19104         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19105         GL_GENERATE_FNMATCH_H.
19106         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19107         GL_GENERATE_FNMATCH_H evaluates to false.
19108
19109         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19110         GL_GENERATE_GLOB_H.
19111         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19112         evaluates to false.
19113
19114         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19115         automake conditional GL_GENERATE_ICONV_H.
19116         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19117         evaluates to false.
19118
19119         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19120         GL_GENERATE_NETINET_IN_H.
19121         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19122         GL_GENERATE_NETINET_IN_H evaluates to false.
19123
19124         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19125         conditional GL_GENERATE_PTHREAD_H.
19126         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19127         * modules/pthread (Makefile.am): Remove pthread.h if
19128         GL_GENERATE_PTHREAD_H evaluates to false.
19129
19130         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19131         GL_GENERATE_SCHED_H.
19132         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19133         evaluates to false.
19134
19135         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19136         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19137         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19138         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19139
19140         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19141         GL_GENERATE_STDARG_H.
19142         * modules/stdarg (Makefile.am): Remove stdarg.h if
19143         GL_GENERATE_STDARG_H evaluates to false.
19144
19145         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19146         GL_GENERATE_STDBOOL_H.
19147         * modules/stdbool (Makefile.am): Remove stdbool.h if
19148         GL_GENERATE_STDBOOL_H evaluates to false.
19149
19150         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19151         conditional GL_GENERATE_STDDEF_H.
19152         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19153         * modules/stddef (Makefile.am): Remove stddef.h if
19154         GL_GENERATE_STDDEF_H evaluates to false.
19155
19156         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19157         GL_GENERATE_STDINT_H.
19158         * modules/stdint (Makefile.am): Remove stdint.h if
19159         GL_GENERATE_STDINT_H evaluates to false.
19160
19161         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19162         GL_GENERATE_SYSEXITS_H.
19163         * modules/sysexits (Makefile.am): Remove sysexits.h if
19164         GL_GENERATE_SYSEXITS_H evaluates to false.
19165
19166         Reported by Karl Berry and Ralf Wildenhues.
19167
19168 2011-04-05  Bruno Haible  <bruno@clisp.org>
19169
19170         Ensure to rebuild generated .h files when config.status has changed.
19171         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19172         config.status.
19173         * modules/ctype (Makefile.am): Likewise.
19174         * modules/dirent (Makefile.am): Likewise.
19175         * modules/errno (Makefile.am): Likewise.
19176         * modules/fcntl-h (Makefile.am): Likewise.
19177         * modules/float (Makefile.am): Likewise.
19178         * modules/getopt-posix (Makefile.am): Likewise.
19179         * modules/glob (Makefile.am): Likewise.
19180         * modules/iconv-h (Makefile.am): Likewise.
19181         * modules/inttypes (Makefile.am): Likewise.
19182         * modules/langinfo (Makefile.am): Likewise.
19183         * modules/locale (Makefile.am): Likewise.
19184         * modules/math (Makefile.am): Likewise.
19185         * modules/netdb (Makefile.am): Likewise.
19186         * modules/netinet_in (Makefile.am): Likewise.
19187         * modules/poll-h (Makefile.am): Likewise.
19188         * modules/pthread (Makefile.am): Likewise.
19189         * modules/pty (Makefile.am): Likewise.
19190         * modules/sched (Makefile.am): Likewise.
19191         * modules/search (Makefile.am): Likewise.
19192         * modules/selinux-h (Makefile.am): Likewise.
19193         * modules/signal (Makefile.am): Likewise.
19194         * modules/spawn (Makefile.am): Likewise.
19195         * modules/stdarg (Makefile.am): Likewise.
19196         * modules/stdbool (Makefile.am): Likewise.
19197         * modules/stddef (Makefile.am): Likewise.
19198         * modules/stdint (Makefile.am): Likewise.
19199         * modules/stdio (Makefile.am): Likewise.
19200         * modules/stdlib (Makefile.am): Likewise.
19201         * modules/string (Makefile.am): Likewise.
19202         * modules/strings (Makefile.am): Likewise.
19203         * modules/sys_file (Makefile.am): Likewise.
19204         * modules/sys_ioctl (Makefile.am): Likewise.
19205         * modules/sys_select (Makefile.am): Likewise.
19206         * modules/sys_socket (Makefile.am): Likewise.
19207         * modules/sys_stat (Makefile.am): Likewise.
19208         * modules/sys_time (Makefile.am): Likewise.
19209         * modules/sys_times (Makefile.am): Likewise.
19210         * modules/sys_utsname (Makefile.am): Likewise.
19211         * modules/sys_wait (Makefile.am): Likewise.
19212         * modules/sysexits (Makefile.am): Likewise.
19213         * modules/termios (Makefile.am): Likewise.
19214         * modules/time (Makefile.am): Likewise.
19215         * modules/unistd (Makefile.am): Likewise.
19216         * modules/wchar (Makefile.am): Likewise.
19217         * modules/wctype-h (Makefile.am): Likewise.
19218         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19219
19220 2011-04-05  Bruno Haible  <bruno@clisp.org>
19221
19222         pipe2: Relicense under LGPLv2+.
19223         * modules/pipe2 (License): Change to LGPLv2+.
19224         Requested by Eric Blake, for libvirt.
19225
19226 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19227
19228         bootstrap: compute gnulib_extra_files after updating build_aux
19229         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19230         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19231
19232 2011-04-05  Eric Blake  <eblake@redhat.com>
19233
19234         bootstrap: preserve git whitelist item sorting
19235         * build-aux/bootstrap (sort_patterns): New function.
19236         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19237
19238 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19239
19240         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19241         sc_space_tab check.
19242
19243 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19244
19245         areadlink, areadlinkat: rewrite in terms of careadlinkat
19246         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19247         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19248         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19249         (malloc, realloc): Remove #undefs.
19250         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19251         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19252         readlink, ssize_t, stdint, unistd.
19253         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19254         areadlink, stdint.
19255
19256         careadlinkat: new module
19257         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19258         * modules/careadlinkat: New files, written by me with
19259         a review and feedback from Ben Pfaff in
19260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19261
19262 2011-04-01  Bruno Haible  <bruno@clisp.org>
19263
19264         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19265         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19266         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19267         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19268         Reported by Bruce Korb <bruce.korb@gmail.com>.
19269
19270 2011-04-01  Bruno Haible  <bruno@clisp.org>
19271
19272         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19273         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19274         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19275         * modules/wcpcpy (Depends-on): Add extensions.
19276         * modules/wcpncpy (Depends-on): Likewise.
19277         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19278         systems.
19279         * doc/posix-functions/wcpncpy.texi: Likewise.
19280         * doc/posix-functions/wcwidth.texi: Likewise.
19281
19282 2011-03-31  Eric Blake  <eblake@redhat.com>
19283
19284         nonblocking: fix mingw test failures
19285         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19286         non-blocking flag on regular file.
19287         (get_nonblocking_flag): Set errno on invalid fd.
19288         * tests/test-nonblocking.c (main): Avoid test failure on
19289         directories if fchdir is not active.
19290         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19291
19292 2011-03-31  Bruno Haible  <bruno@clisp.org>
19293
19294         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19295         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19296         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19297         Reported by Simon Josefsson <simon@josefsson.org>.
19298
19299 2011-03-31  Bruno Haible  <bruno@clisp.org>
19300         and Eric Blake  <eblake@redhat.com>
19301
19302         nonblocking: new module
19303         * modules/nonblocking: New module.
19304         * modules/nonblocking-tests: Likewise.
19305         * lib/nonblocking.h: New file.
19306         * lib/nonblocking.c: Likewise.
19307         * tests/test-nonblocking.c: New test.
19308         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19309
19310 2011-03-30  Bruno Haible  <bruno@clisp.org>
19311
19312         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19313         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19314         instead of 'printf' format for GCC >= 4.4.
19315         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19316         (fprintf, printf, vfprintf, vprintf): Declare with
19317         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19318         the system's vfprintf() function.
19319         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19320
19321 2011-03-30  Eric Blake  <eblake@redhat.com>
19322
19323         passfd: fix scoping bug
19324         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19325         before sendmsg/recvmsg.
19326
19327         passfd: standardize coding conventions
19328         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19329         can be learned at compile time.
19330         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19331         ifdefs.
19332         (sendfd, recvfd): Follow gnulib code conventions.
19333
19334         passfd: fix incorrect sendmsg arguments
19335         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19336         incorrect msg_controllen value.
19337         * modules/passfd-tests (Depends-on): Check for alarm.
19338         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19339         Reported by Bastien ROUCARIES.
19340
19341 2011-03-30  Bruno Haible  <bruno@clisp.org>
19342
19343         c-strcasestr: Relicense under LGPLv2+.
19344         * modules/c-strcasestr (License): Change to LGPLv2+.
19345         Requested by Eric Blake, for libvirt.
19346
19347 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19348
19349         * users.txt: Add libidn2.  Fix libtasn1 link.
19350
19351 2011-03-30  Jim Meyering  <meyering@redhat.com>
19352
19353         tests: readlink* ("",... fails with EINVAL on newer kernels
19354         readlink and readlinkat have typically failed with ENOENT for
19355         the invalid, empty file name,  "".  However, with the advent
19356         of linux-2.6.39, they fail with EINVAL.
19357         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19358         when operating on the empty file name.
19359         * tests/test-readlink.h (test_readlink): Likewise.
19360
19361 2011-03-29  Bruno Haible  <bruno@clisp.org>
19362
19363         Relicense some modules under LGPLv2+, for libidn2.
19364         * modules/array-mergesort (License): Change to LGPLv2+.
19365         * modules/c-strcaseeq (License): Likewise.
19366         * modules/striconveh (License): Likewise.
19367         * modules/striconveha (License): Likewise.
19368         * modules/uniconv/base (License): Likewise.
19369         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19370         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19371         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19372         * modules/unictype/base (License): Likewise.
19373         * modules/unictype/bidiclass-of (License): Likewise.
19374         * modules/unictype/category-M (License): Likewise.
19375         * modules/unictype/category-none (License): Likewise.
19376         * modules/unictype/category-of (License): Likewise.
19377         * modules/unictype/category-test (License): Likewise.
19378         * modules/unictype/category-test-withtable (License): Likewise.
19379         * modules/unictype/combining-class (License): Likewise.
19380         * modules/unictype/joiningtype-of (License): Likewise.
19381         * modules/unictype/scripts (License): Likewise.
19382         * modules/uninorm/base (License): Likewise.
19383         * modules/uninorm/canonical-decomposition (License): Likewise.
19384         * modules/uninorm/composition (License): Likewise.
19385         * modules/uninorm/decompose-internal (License): Likewise.
19386         * modules/uninorm/decomposition-table (License): Likewise.
19387         * modules/uninorm/nfc (License): Likewise.
19388         * modules/uninorm/nfd (License): Likewise.
19389         * modules/uninorm/u32-normalize (License): Likewise.
19390         * modules/unistr/base (License): Likewise.
19391         * modules/unistr/u32-cpy (License): Likewise.
19392         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19393         * modules/unistr/u32-to-u8 (License): Likewise.
19394         * modules/unistr/u32-uctomb (License): Likewise.
19395         * modules/unistr/u8-check (License): Likewise.
19396         * modules/unistr/u8-mblen (License): Likewise.
19397         * modules/unistr/u8-mbtouc (License): Likewise.
19398         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19399         * modules/unistr/u8-mbtoucr (License): Likewise.
19400         * modules/unistr/u8-prev (License): Likewise.
19401         * modules/unistr/u8-strlen (License): Likewise.
19402         * modules/unistr/u8-to-u32 (License): Likewise.
19403         * modules/unistr/u8-uctomb (License): Likewise.
19404         * modules/unitypes (License): Likewise.
19405         Requested by Simon Josefsson.
19406
19407 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19408
19409         lib-symbol-visibility: Add a notice.
19410         * modules/lib-symbol-visibility (Notice): New field.
19411
19412 2011-03-29  Bruno Haible  <bruno@clisp.org>
19413
19414         getaddrinfo: Doc fix.
19415         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19416         section "fixed in Gnulib".
19417
19418 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19419
19420         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19421         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19422
19423 2011-03-26  Bruno Haible  <bruno@clisp.org>
19424
19425         unictype/property-byname: Reduce the number of load-time relocations.
19426         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19427         (UC_PROPERTY_INDEX_*): New enumeration values.
19428         (uc_property_byname): Convert an index from the lookup table to an
19429         uc_property_t.
19430         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19431         values.
19432
19433 2011-03-26  Bruno Haible  <bruno@clisp.org>
19434
19435         unictype/property-byname: Allow omitted word separators and aliases.
19436         * lib/unictype/pr_byname.gperf: Add property names without word
19437         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19438         for 'space'.
19439
19440 2011-03-26  Bruno Haible  <bruno@clisp.org>
19441
19442         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19443         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19444         also hyphens to space.
19445         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19446         without spaces.
19447         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19448
19449 2011-03-26  Bruno Haible  <bruno@clisp.org>
19450
19451         unictype/joiningtype-byname: Recognize long names as well.
19452         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19453         a long name.
19454         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19455         unictype/joiningtype_byname.h.
19456         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19457         * lib/unictype/joiningtype_byname.gperf: New file.
19458         * modules/unictype/joiningtype-byname (Files): Add
19459         lib/unictype/joiningtype_byname.gperf.
19460         (Depends-on): Add gperf.
19461         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19462         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19463         long names.
19464
19465         Tests for module 'unictype/joiningtype-longname'.
19466         * modules/unictype/joiningtype-longname-tests: New file.
19467         * tests/unictype/test-joiningtype_longname.c: New file.
19468
19469         New module 'unictype/joiningtype-longname'.
19470         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19471         * lib/unictype/joiningtype_longname.c: New file.
19472         * modules/unictype/joiningtype-longname: New file.
19473         * modules/unictype/joiningtype-all (Depends-on): Add
19474         unictype/joiningtype-longname.
19475
19476 2011-03-26  Bruno Haible  <bruno@clisp.org>
19477
19478         unictype/bidiclass-byname: Recognize long names as well.
19479         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19480         name.
19481         * lib/unictype/bidi_byname.c: Include <string.h>,
19482         unictype/bidi_byname.h.
19483         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19484         * lib/unictype/bidi_byname.gperf: New file.
19485         * modules/unictype/bidiclass-byname (Files): Add
19486         lib/unictype/bidi_byname.gperf.
19487         (Depends-on): Add gperf.
19488         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19489         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19490         long names.
19491
19492         Tests for module 'unictype/bidiclass-longname'.
19493         * modules/unictype/bidiclass-longname-tests: New file.
19494         * tests/unictype/test-bidi_longname.c: New file.
19495
19496         New module 'unictype/bidiclass-longname'.
19497         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19498         * lib/unictype/bidi_longname.c: New file.
19499         * modules/unictype/bidiclass-longname: New file.
19500         * modules/unictype/bidiclass-all (Depends-on): Add
19501         unictype/bidiclass-longname.
19502
19503 2011-03-26  Bruno Haible  <bruno@clisp.org>
19504
19505         unictype/bidi*: Rename modules.
19506         * modules/unictype/bidiclass-all: Renamed from
19507         modules/unictype/bidicategory-all.
19508         * modules/unictype/bidiclass-name: Renamed from
19509         modules/unictype/bidiclass-name.
19510         (Description): Update.
19511         * modules/unictype/bidiclass-name-tests: Renamed from
19512         modules/unictype/bidicategory-name-tests.
19513         * modules/unictype/bidiclass-byname: Renamed from
19514         modules/unictype/bidicategory-byname.
19515         (Description): Update.
19516         * modules/unictype/bidiclass-byname-tests: Renamed from
19517         modules/unictype/bidicategory-byname-tests.
19518         * modules/unictype/bidiclass-of: Renamed from
19519         modules/unictype/bidicategory-of.
19520         (Description): Update.
19521         * modules/unictype/bidiclass-of-tests: Renamed from
19522         modules/unictype/bidicategory-of-tests.
19523         * modules/unictype/bidiclass-test: Renamed from
19524         modules/unictype/bidicategory-test.
19525         (Description): Update.
19526         * modules/unictype/bidiclass-test-tests: Renamed from
19527         modules/unictype/bidicategory-test-tests.
19528         * modules/unictype/bidicategory-all: New file, a simple redirection.
19529         * modules/unictype/bidicategory-name: Likewise.
19530         * modules/unictype/bidicategory-byname: Likewise.
19531         * modules/unictype/bidicategory-of: Likewise.
19532         * modules/unictype/bidicategory-test: Likewise.
19533         * modules/unictype/property-bidi-* (Dependencies): Update.
19534         * lib/unictype/bidi_*.c: Update comment.
19535
19536 2011-03-26  Bruno Haible  <bruno@clisp.org>
19537
19538         unictype/bidi*: Rename functions, part 2.
19539         * modules/unictype/bidicategory-name (configure.ac): Update required
19540         libunistring version.
19541         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19542
19543 2011-03-25  Bruno Haible  <bruno@clisp.org>
19544
19545         New module 'unictype/combining-class-all'.
19546         * modules/unictype/combining-class-all: New file.
19547
19548         Tests for module 'unictype/combining-class-byname'.
19549         * modules/unictype/combining-class-byname-tests: New file.
19550         * tests/unictype/test-combiningclass_byname.c: New file.
19551
19552         New module 'unictype/combining-class-byname'.
19553         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19554         * lib/unictype/combiningclass_byname.c: New file.
19555         * lib/unictype/combiningclass_byname.gperf: New file.
19556         * modules/unictype/combining-class-byname: New file.
19557
19558         Tests for module 'unictype/combining-class-longname'.
19559         * modules/unictype/combining-class-longname-tests: New file.
19560         * tests/unictype/test-combiningclass_longname.c: New file.
19561
19562         New module 'unictype/combining-class-longname'.
19563         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19564         * lib/unictype/combiningclass_longname.c: New file.
19565         * modules/unictype/combining-class-longname: New file.
19566
19567         Tests for module 'unictype/combining-class-name'.
19568         * modules/unictype/combining-class-name-tests: New file.
19569         * tests/unictype/test-combiningclass_name.c: New file.
19570
19571         New module 'unictype/combining-class-name'.
19572         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19573         * lib/unictype/combiningclass_name.c: New file.
19574         * modules/unictype/combining-class-name: New file.
19575
19576 2011-03-25  Bruno Haible  <bruno@clisp.org>
19577
19578         unictype/combining-class: Rename source files.
19579         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19580         of unictype/combining.h.
19581         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19582         Update.
19583         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19584         * modules/unictype/combining-class (Description): Fix.
19585         (Files, Makefile.am): Update.
19586         * tests/unictype/test-combiningclass.c: Renamed from
19587         tests/unictype/test-combining.c.
19588         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19589
19590 2011-03-25  Bruno Haible  <bruno@clisp.org>
19591
19592         unictype: Update list of canonical combining classes.
19593         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19594
19595 2011-03-25  Bruno Haible  <bruno@clisp.org>
19596
19597         unictype/category-byname: Recognize long names as well.
19598         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19599         a long name.
19600         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19601         unictype/categ_byname.h.
19602         (UC_CATEGORY_INDEX_*): New enumeration values.
19603         (uc_general_category_byname): Use uc_general_category_lookup and
19604         convert from index to value.
19605         * lib/unictype/categ_byname.gperf: New file.
19606         * modules/unictype/category-byname (Files): Add
19607         lib/unictype/categ_byname.gperf.
19608         (Depends-on): Add gperf.
19609         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19610         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19611         long names.
19612
19613         Tests for module 'unictype/category-longname'.
19614         * modules/unictype/category-longname-tests: New file.
19615         * tests/unictype/test-categ_longname.c: New file.
19616
19617         New module 'unictype/category-longname'.
19618         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19619         * lib/unictype/categ_longname.c: New file.
19620         * modules/unictype/category-longname: New file.
19621         * modules/unictype/category-all (Depends-on): Add it.
19622
19623 2011-03-25  Bruno Haible  <bruno@clisp.org>
19624
19625         Tests for module 'unictype/category-LC'.
19626         * modules/unictype/category-LC-tests: New file.
19627         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19628
19629         New module 'unictype/category-LC'.
19630         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19631         (UC_CATEGORY_LC): New declaration.
19632         (UC_CASED_LETTER): New macro.
19633         * lib/gen-uni-tables.c (is_category_LC): New function.
19634         (output_categories): Also handle category LC.
19635         (UC_CATEGORY_MASK_LC): New enumeration value.
19636         (general_category_byname): Also handle category LC.
19637         * lib/unictype/categ_LC.c: New file.
19638         * lib/unictype/categ_LC.h: New file, automatically generated.
19639         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19640         category LC.
19641         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19642         * modules/unictype/category-LC: New file.
19643         * modules/unictype/category-byname (Depends-on): Add
19644         unictype/category-LC.
19645         * modules/unictype/category-all (Depends-on): Likewise.
19646
19647 2011-03-25  Eric Blake  <eblake@redhat.com>
19648
19649         xmalloc: revert yesterday's regression
19650         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19651         realloc's underlying behavior (allowing allocation of zero-size
19652         objects, especially if malloc-gnu is also in use).
19653
19654 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19655
19656         maint.mk: add missing version to VC-tag
19657         * top/maint.mk: git tag was missing actual tag name; add it.
19658
19659         valgrind: do leak checking, and exit with code 1 on error (not 0)
19660         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19661         to VALGRIND.
19662
19663 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19664
19665         posix-modules: say what it does.
19666         * posix-modules: Add a line to the --help output saying what it does.
19667
19668 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19669
19670         xmalloc: Do not leak if underlying realloc is C99 compatible.
19671         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19672         This avoids a leak on C99-based systems.  See
19673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19674
19675 2011-03-24  Eric Blake  <eblake@redhat.com>
19676
19677         realloc: document portability problem
19678         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19679         passing 0 size to realloc.
19680
19681 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19682
19683         doc: update users.txt
19684         * users.txt: Add cvsps, tmpwatch
19685
19686 2011-03-23  Matt Rice  <ratmice@gmail.com>
19687
19688         doc: update users.txt
19689         * users.txt: Add gdb.
19690
19691 2011-03-23  Jim Meyering  <meyering@redhat.com>
19692
19693         doc: update users.txt
19694         Looking through matches up to the following URL (there are still
19695         several more pages), I found several projects that use gnulib:
19696         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19697         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19698         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19699
19700 2011-03-22  Bruno Haible  <bruno@clisp.org>
19701
19702         unictype/bidi*: Rename functions.
19703         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19704         uc_bidi_class, uc_is_bidi_class): New declarations.
19705         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19706         uc_bidi_category_byname.
19707         (uc_bidi_category_byname): New function.
19708         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19709         u_bidi_category_name.
19710         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19711         (uc_bidi_category_name): New function.
19712         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19713         uc_bidi_category.
19714         (uc_bidi_category): New function.
19715         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19716         uc_is_bidi_category. Invoke uc_bidi_class.
19717         (uc_is_bidi_category): New function.
19718         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19719         instead of uc_bidi_category_byname.
19720         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19721         instead of uc_bidi_category_name.
19722         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19723         uc_bidi_category.
19724         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19725         instead of uc_is_bidi_category.
19726
19727 2011-03-21  Bruno Haible  <bruno@clisp.org>
19728
19729         New module 'unictype/joininggroup-all'.
19730         * modules/unictype/joininggroup-all: New file.
19731
19732         Tests for module 'unictype/joininggroup-of'.
19733         * modules/unictype/joininggroup-of-tests: New file.
19734         * tests/unictype/test-joininggroup_of.c: New file.
19735         * tests/unictype/test-joininggroup_of.h: New file, automatically
19736         generated by gen-uni-tables.
19737
19738         New module 'unictype/joininggroup-of'.
19739         * modules/unictype/joininggroup-of: New file.
19740         * lib/unictype/joininggroup_of.c: New file.
19741         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19742         gen-uni-tables.
19743
19744         Tests for module 'unictype/joininggroup-byname'.
19745         * modules/unictype/joininggroup-byname-tests: New file.
19746         * tests/unictype/test-joininggroup_byname.c: New file.
19747
19748         New module 'unictype/joininggroup-byname'.
19749         * modules/unictype/joininggroup-byname: New file.
19750         * lib/unictype/joininggroup_byname.c: New file.
19751         * lib/unictype/joininggroup_byname.gperf: New file.
19752
19753         Tests for module 'unictype/joininggroup-name'.
19754         * modules/unictype/joininggroup-name-tests: New file.
19755         * tests/unictype/test-joininggroup_name.c: New file.
19756
19757         New module 'unictype/joininggroup-name'.
19758         * modules/unictype/joininggroup-name: New file.
19759         * lib/unictype/joininggroup_name.c: New file.
19760         * lib/unictype/joininggroup_name.h: New file.
19761
19762         New module 'unictype/joiningtype-all'.
19763         * modules/unictype/joiningtype-all: New file.
19764
19765         Tests for module 'unictype/joiningtype-of'.
19766         * modules/unictype/joiningtype-of-tests: New file.
19767         * tests/unictype/test-joiningtype_of.c: New file.
19768         * tests/unictype/test-joiningtype_of.h: New file, automatically
19769         generated by gen-uni-tables.
19770
19771         New module 'unictype/joiningtype-of'.
19772         * modules/unictype/joiningtype-of: New file.
19773         * lib/unictype/joiningtype_of.c: New file.
19774         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19775         gen-uni-tables.
19776
19777         Tests for module 'unictype/joiningtype-byname'.
19778         * modules/unictype/joiningtype-byname-tests: New file.
19779         * tests/unictype/test-joiningtype_byname.c: New file.
19780
19781         New module 'unictype/joiningtype-byname'.
19782         * modules/unictype/joiningtype-byname: New file.
19783         * lib/unictype/joiningtype_byname.c: New file.
19784
19785         Tests for module 'unictype/joiningtype-name'.
19786         * modules/unictype/joiningtype-name-tests: New file.
19787         * tests/unictype/test-joiningtype_name.c: New file.
19788
19789         New module 'unictype/joiningtype-name'.
19790         * modules/unictype/joiningtype-name: New file.
19791         * lib/unictype/joiningtype_name.c: New file.
19792
19793         unictype: Add support for Arabic shaping properties.
19794         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19795         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19796         declarations.
19797         (UC_JOINING_GROUP_*): New enumeration values.
19798         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19799         declarations.
19800         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19801         (unicode_joining_type): New variable.
19802         (UC_JOINING_GROUP_*): New enumeration values.
19803         (unicode_joining_group): New variable.
19804         (fill_arabicshaping, joining_type_as_c_identifier,
19805         output_joining_type_test, output_joining_type,
19806         joining_group_as_c_identifier, output_joining_group_test,
19807         output_joining_group): New functions.
19808         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19809         fill_arabicshaping and output_joining_type_test, output_joining_type,
19810         output_joining_group_test, output_joining_group.
19811         Reported by Simon Josefsson.
19812
19813 2011-03-21  Jim Meyering  <meyering@redhat.com>
19814
19815         strftime: fix a bug in yesterday's change
19816         * lib/strftime.c (add): Accommodate width's initial value of -1.
19817         Otherwise, nstrftime would copy uninitialized data into
19818         the result buffer.
19819
19820 2011-03-21  Jim Meyering  <meyering@redhat.com>
19821
19822         tests: add strftime-tests module
19823         * tests/test-strftime.c: New file.
19824         * modules/strftime-tests: New module.
19825
19826 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19827
19828         strftime: don't assume a byte count fits in 'int'
19829         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19830         found this problem by static analysis, using gcc -Wstrict-overflow
19831         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19832         on an integer overflow having undefined behavior, but it turns out
19833         that the argument is a size, which might not fit in 'int' anyway,
19834
19835 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19836
19837         stdio: don't require ignore_value around fwrite
19838
19839         This patch works around libc bug 11959
19840         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19841         Without this patch, applications must often write
19842         ignore_value (fwrite (...)) even though the ignore_value is
19843         not helpful here.  It's common to write many objects, using
19844         fwrite/printf/etc., and then use ferror to detect output error.
19845
19846         I considered making this patch optional, but decided against it,
19847         because libc is obviously being inconsistent here: there is no
19848         reason libc should insist that user code must inspect fwrite
19849         return's value without also insisting that it inspect printf's,
19850         putchar's, etc.  If user code wants to have a strict style where
19851         all these functions' values are checked (so that ferror need not
19852         be checked), we could add support for that style in a new gnulib
19853         module, but in the meantime it's better to be consistent and to
19854         support common usage.
19855
19856         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19857         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19858         that we are compiling in checking mode, and if not C++, and
19859         if not already wrapping fwrite for some other reason.
19860         (fwrite): #define to rpl_fwrite if the latter is defined.
19861
19862 2011-03-20  Bruno Haible  <bruno@clisp.org>
19863
19864         verror: Fix compilation error introduced on 2011-02-13.
19865         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19866         instead of __attribute__.
19867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19868
19869 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19870             Bruno Haible  <bruno@clisp.org>
19871
19872         socklen: do not depend on sys_socket
19873         While trying to modify Emacs to use gnulib's socklen module,
19874         I discovered a circular dependency: socklen depends on sys_socket
19875         and vice versa.  Emacs can use socklen, but it does not need
19876         sys_socket because it has its own substitute for sys/socket.h.
19877         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19878         gl_TYPE_SOCKLEN_T.
19879         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19880         gl_PREREQ_SYS_H_SOCKET.
19881         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19882         gl_PREREQ_SYS_H_SOCKET.
19883         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19884         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19885         * modules/socklen (Depends-on): Do not depend on sys_socket.
19886         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19887
19888 2011-03-20  Jim Meyering  <meyering@redhat.com>
19889
19890         maint.mk: sort file names *after* new transformation
19891         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19892         prefix would have led to an unwarranted failure in GNU parted.
19893         Sort after that transformation.
19894
19895 2011-03-19  Jim Meyering  <meyering@redhat.com>
19896
19897         maint.mk: fix po-file syntax-check rule
19898         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19899         Patch by Bruno Haible.
19900
19901 2011-03-19  Bruno Haible  <bruno@clisp.org>
19902
19903         socklen: Update comment.
19904         * m4/socklen.m4: Update comment about platforms.
19905
19906 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19907             Bruno Haible  <bruno@clisp.org>
19908
19909         inet_ntop, inet_pton: Simplify.
19910         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19911         documented to provide socklen_t and we already depend on sys_socket.
19912         * modules/inet_pton (Depends-on): Likewise.
19913         * lib/arpa_inet.in.h: Adjust comment.
19914
19915 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19916             Bruno Haible  <bruno@clisp.org>
19917
19918         netdb: Simplify.
19919         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19920         documented to provide socklen_t and we already depend on sys_socket.
19921         * lib/netdb.in.h: Adjust comment.
19922
19923 2011-03-19  Bruno Haible  <bruno@clisp.org>
19924
19925         sys_socket, netdb: Document problem with socklen_t.
19926         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19927         platforms.
19928         * doc/posix-headers/netdb.texi: Likewise.
19929
19930 2011-03-18  Eric Blake  <eblake@redhat.com>
19931
19932         maint.mk: let po check work in VPATH build
19933         * top/maint.mk (po_file): Allow cfg.mk override.
19934         (sc_po_check): Allow VPATH use.
19935         Reported by Jiri Denemark.
19936
19937 2011-03-16  Jim Meyering  <meyering@redhat.com>
19938
19939         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19940         Before, you would have had to create one .x-sc_ file per rule in order
19941         to exempt offending files.  Now, you may instead use a Make variable --
19942         usually defined in cfg.mk -- whose name identifies the affected rule.
19943         * top/maint.mk (_sc_excl): Define.
19944         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19945         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19946
19947 2011-03-13  Bruno Haible  <bruno@clisp.org>
19948
19949         ignore-value tests: Avoid warnings.
19950         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19951         empty for gcc < 3.4.
19952
19953 2011-03-13  Bruno Haible  <bruno@clisp.org>
19954
19955         passfd: Fix link error on Solaris.
19956         * modules/passfd (Description): Correct.
19957         (Depends-on): Add socketlib.
19958         (Link): New section.
19959         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19960
19961 2011-03-13  Bruno Haible  <bruno@clisp.org>
19962
19963         passfd: Fix link error on AIX 5.2.
19964         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19965
19966 2011-03-13  Bruno Haible  <bruno@clisp.org>
19967
19968         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19969         * lib/sys_socket.in.h: Include <stddef.h>.
19970         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19971         CMSG_FIRSTHDR. Remove unused variable.
19972
19973 2011-03-13  Bruno Haible  <bruno@clisp.org>
19974
19975         passfd: Fix compilation error on OpenBSD.
19976         * lib/passfd.c: Include <sys/uio.h>.
19977
19978 2011-03-13  Bruno Haible  <bruno@clisp.org>
19979
19980         passfd test: Fix warnings.
19981         * tests/test-passfd.c: Include <sys/wait.h>.
19982         (main): Fix typo.
19983
19984 2011-03-13  Bruno Haible  <bruno@clisp.org>
19985
19986         passfd module, part 4, tweaks.
19987         * tests/test-passfd.c: Reorder includes.
19988         (main): Fix perror and printf calls.
19989
19990 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19991
19992         passfd module, part 4.
19993         * modules/passfd-tests: New file.
19994         * tests/test-passfd.c: New file.
19995
19996 2011-03-13  Jim Meyering  <meyering@redhat.com>
19997
19998         Makefile: rely on GNU make; derive syntax-check rule names
19999         Rather than requiring that each sc_ rule be listed as a dependent
20000         of "check", use features of GNU make to derive the list.
20001         * Makefile (syntax-check-rules): Define.
20002         (check): Depend on the new variable, not the hard-coded list.
20003
20004 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20005             Bruno Haible  <bruno@clisp.org>
20006
20007         passfd module, part 3.
20008         * lib/passfd.h (recvfd): Add a flags argument.
20009         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20010         (recvfd): Add a flags argument.
20011         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20012         exists.
20013         * modules/passfd (Depends-on): Add cloexec.
20014         Suggested by Eric Blake.
20015
20016 2011-03-13  Bruno Haible  <bruno@clisp.org>
20017
20018         passfd module, part 2, tweaks.
20019         * modules/passfd (Files): Reorder.
20020         (Depends-on): Remove errno.
20021         (Include): Remove <sys/socket.h>, <sys/un.h>.
20022         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20023         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20024         specification header. Include <sys/socket.h> always. Don't include
20025         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20026         (sendfd): Clarify that it sets errno when it fails.
20027         (recvfd): Fix specification.
20028
20029 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20030
20031         passfd module, part 2.
20032         * modules/passfd: New file.
20033         * lib/passfd.h: New file.
20034         * lib/passfd.c: New file.
20035
20036 2011-03-12  Bruno Haible  <bruno@clisp.org>
20037
20038         wcswidth, mbswidth: Avoid integer overflow.
20039         * lib/wcswidth.c: Include <limits.h>.
20040         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20041         * lib/mbswidth.c: Include <limits.h>.
20042         (mbsnwidth): Avoid 'int' overflow.
20043         Reported by Jim Meyering.
20044
20045 2011-03-12  Bruno Haible  <bruno@clisp.org>
20046
20047         futimens, utimensat: Avoid endless recursion on Solaris 10.
20048         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20049         Solaris.
20050         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20051         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20052
20053 2011-03-11  Jim Meyering  <meyering@redhat.com>
20054
20055         maint.mk: relax a regexp to accommodate other formatting styles
20056         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20057         between "ngettext" and the following "(".
20058
20059 2011-03-11  Pádraig Brady <P@draigBrady.com>
20060
20061         maint.mk: suppress a false positive warning
20062         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20063         diagnostics are marked with ngettext.
20064
20065 2011-03-10  Eric Blake  <eblake@redhat.com>
20066
20067         wchar: add explicit dependencies, for Tru64
20068         * modules/mbmemcasecoll (Depends-on): Add wchar.
20069         * modules/mbtowc (Depends-on): Likewise.
20070         * modules/vasnprintf (Depends-on): Likewise.
20071         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20072         * modules/wctomb (Depends-on): Likewise.
20073         Reported by Peter O'Gorman.
20074
20075 2011-03-08  Bruno Haible  <bruno@clisp.org>
20076
20077         passfd module, part 1, tweaks.
20078         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20079         Improve indentation. Improve AC_MSG_CHECKING messages.
20080         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20081         gl_SOCKET_FAMILIES.
20082
20083 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20084
20085         passfd module, part 1.
20086         * m4/afunix.m4: New file.
20087         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20088         sockets.
20089
20090 2011-03-08  Bruno Haible  <bruno@clisp.org>
20091
20092         regex-quote: New API.
20093         * lib/regex-quote.h: Include <stdbool.h>.
20094         (struct regex_quote_spec): New type.
20095         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20096         New declarations.
20097         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20098         'const struct regex_quote_spec *' argument.
20099         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20100         (pcre_special): New constant.
20101         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20102         New functions.
20103         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20104         'const struct regex_quote_spec *' argument.
20105         * modules/regex-quote (Depends-on): Add stdbool.
20106         * tests/test-regex-quote.c (check): Update for new API. Add test for
20107         anchored results.
20108         * NEWS: Mention the API change.
20109         Reported by Reuben Thomas and Eric Blake.
20110
20111 2011-03-06  Bruno Haible  <bruno@clisp.org>
20112
20113         regex-quote: Fix creation of POSIX extended regular expressions.
20114         * lib/regex-quote.c (ere_special): Add grouping and alternation
20115         operators.
20116
20117 2011-03-05  Bruno Haible  <bruno@clisp.org>
20118
20119         doc: Improve doc regarding autopoint vs. gnulib.
20120         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20121         disable autopoint while running autoreconf.
20122         Suggested by Ralf Wildenhues.
20123
20124 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20125
20126         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20127         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20128
20129 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20130
20131         parse-duration: remove xalloc.h dependency
20132         * lib/parse-duration.c (parse_period): handle NULL return from
20133         strdup instead of calling xstrdup().
20134         * modules/parse-duration: remove "xalloc" dependency
20135
20136 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20137
20138         bootstrap: honor m4_base when running aclocal
20139         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20140
20141 2011-03-02  Jim Meyering  <meyering@redhat.com>
20142
20143         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20144         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20145         on request from Matt Booth.
20146
20147 2011-03-01  Eric Blake  <eblake@redhat.com>
20148
20149         test-link: work on Hurd
20150         * tests/test-link.h (test_link): Hurd rejects linking directories
20151         with EISDIR instead of the POSIX-mandated EPERM.
20152
20153 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20154
20155         stdio: simplify by moving files to printf-posix, sigpipe
20156         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20157         since this symbol is needed only if printf is replaced.
20158         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20159         Require gl_ASM_SYMBOL_PREFIX.
20160         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20161         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20162         (Depends-on): Add 'raise'.
20163         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20164         * modules/stdio (Files): Remove lib/stdio-write.c,
20165         m4/asm-underscore.m4.
20166         (Depends-on): Remove 'raise'.
20167
20168         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20169         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20170         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20171         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20172
20173 2011-02-28  Bruno Haible  <bruno@clisp.org>
20174
20175         localcharset: Assume ANSI C behaviour of free().
20176         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20177         calling free().
20178         Suggested by Simon Josefsson <simon@josefsson.org>.
20179
20180 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20181             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20182             Bruno Haible  <bruno@clisp.org>  (tiny change)
20183
20184         On Cygwin, use /proc file system instead of win32 API.
20185         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20186         Win32 file names.
20187         (DllMain): Simplify by removing Cygwin specific code.
20188         (find_shared_library_fullname): Use Linux specific implementation also
20189         for Cygwin.
20190         (get_shared_library_fullname): Update accordingly.
20191         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20192         Win32 file names.
20193         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20194         Cygwin specific code.
20195
20196 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20197             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20198
20199         Fix OpenMP flag detection for various Fortran compilers.
20200         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20201         OpenMP-conditional compilation construct, to force compile
20202         failure with missing OpenMP flag.
20203         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20204
20205 2011-02-25  Eric Blake  <eblake@redhat.com>
20206
20207         strstr: expand test coverage
20208         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20209         compilation.
20210         * tests/test-memmem.c (main): Duplicate tests.
20211         * tests/test-strcasestr.c (main): Likewise.
20212         * tests/test-c-strcasestr.c (main): Likewise.
20213
20214 2011-02-25  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: detect missing-NL-at-EOF, too
20217         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20218         it also detects when a file lacks a newline at EOF.
20219         (require_exactly_one_NL_at_EOF_): Renamed from
20220         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20221         since people may well have .x-sc_... file names tied to the
20222         existing name.  Suggested by Eric Blake.
20223
20224 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         dirname: move m4/dos.m4 functionality into lib/dosname.h
20227
20228         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20229         extracts symbols from it, puts them into config.h; but it's much
20230         easier to use the symbols directly.  filename.h already does this,
20231         but it disagrees with dos.m4 in some respects.  This patch
20232         introduces a different include file dosname.h that packages up
20233         dos.m4, and then later we can work on merging filename.h and
20234         dosname.h.  Applications that need only the easy-to-configure
20235         symbols should consider including dosname.h rather than dirname.h.
20236         * NEWS: Mention incompatible changes.
20237         * m4/dos.m4: Remove.
20238         * lib/dosname.h, modules/dosname: New files.
20239         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20240         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20241         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20242         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20243         Include dosname.h, not dirname.h.
20244         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20245         Include dosname.h, for definitions of symbols like ISSLASH
20246         that used to be in config.h.
20247         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20248         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20249         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20250         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20251         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20252         * modules/rmdir (Files): Likewise.
20253         * modules/stat (Files): Likewise.
20254         * modules/unlink (Files): Likewise.
20255         * modules/dirname-lgpl (Depends-on): Add dosname.
20256         * modules/lstat (Depends-on): Likewise.
20257         * modules/openat (Depends-on): Likewise.
20258         * modules/rmdir (Depends-on): Likewise.
20259         * modules/savewd (Depends-on): Likewise.
20260         * modules/stat (Depends-on): Likewise.
20261         * modules/unlink (Depends-on): Likewise.
20262         * modules/openat (Depends-on): Remove dirname-lgpl.
20263         * modules/savewd (Depends-on): Likewise.
20264         * tests/test-dirname.c: Do not use removed symbols like
20265         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20266         the remaining symbols, e.g., ISSLASH ('\\').
20267
20268 2011-02-25  Eric Blake  <eblake@redhat.com>
20269
20270         strstr: revert patches that introduced bug and pessimization
20271         * lib/str-two-way.h: Add another reference.
20272         (two_way_short_needle, two_way_long_needle): Revert changes from
20273         2011-02-24; they pessimize search speed.
20274         (critical_factorization): Partially revert changes from
20275         2010-06-22; they violate the requirement that the left half of the
20276         needle be smaller than the period of the needle.
20277
20278 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20279
20280         filenamecat: remove unnecessary dependency on dirname-lgpl
20281         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20282         is no direct dependency, just an indirect one via filenamecat-lgpl.
20283
20284         remove: remove unnecessary use of m4/dos.m4
20285         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20286         * modules/remove (FILES): Remove m4/dos.m4.
20287
20288         * lib/openat-proc.c: Don't include dirname.h; not needed.
20289
20290         backupfile: remove unnecessary use of m4/dos.m4
20291         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20292         of its symbols are used by the backupfile code.  backupfile.c does
20293         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20294         for the rare case of programs that want all their backup file
20295         names to live within 8+3 limits, and dos.m4 doesn't address that.
20296         * modules/backupfile (Files): Remove m4/dos.m4.
20297
20298 2011-02-24  Jim Meyering  <meyering@redhat.com>
20299
20300         strstr: fix a bug whereby strstr would mistakenly return NULL
20301         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20302         in period calculation.
20303         (two_way_long_needle): Likewise.
20304         The original problem was reported by Mike Stump in
20305         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20306         Ralf Wildenhues provided the short needle and haystack.
20307         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20308         Add a more involved test to trigger the bug in two_way_long_needle.
20309
20310 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20311
20312         gnulib-tool: remove use of bold display in help screen
20313         * gnulib-tool (func_usage): Do not use bold display anymore in the
20314         help screen.  That was just meant to be a temporary emphasis for a
20315         backward-incompatible change.
20316
20317 2011-02-23  Bruno Haible  <bruno@clisp.org>
20318
20319         Fix misindentation of preprocessor directives.
20320         * lib/argp-namefrob.h: Reindent preprocessor directives.
20321         * lib/getopt_int.h (struct _getopt_data): Likewise.
20322         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20323         * lib/vasnprintf.c (decode_long_double): Likewise.
20324         * tests/test-argmatch.c: Insert blank lines, for clarity.
20325         * tests/test-exclude.c: Likewise.
20326
20327 2011-02-22  Bruno Haible  <bruno@clisp.org>
20328
20329         ioctl: Fix for MacOS X in 64-bit mode.
20330         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20331         value.
20332         Suggested by Eric Blake.
20333         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20334
20335 2011-02-22  Jim Meyering  <meyering@redhat.com>
20336
20337         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20338         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20339         in lib/.
20340
20341 2011-02-22  Eric Blake  <eblake@redhat.com>
20342
20343         maint: avoid any CDPATH issue
20344         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20345
20346         maint: adjust cpp indentation for my modules, as well
20347         * Makefile (sc_cpp_indent_check): Add my name.
20348         * lib/fbufmode.c: Filter through cppi.
20349         * lib/fpurge.c: Likewise.
20350         * lib/freadable.c: Likewise.
20351         * lib/freading.c: Likewise.
20352         * lib/fwritable.c: Likewise.
20353         * lib/fwriting.c: Likewise.
20354         * lib/sigaction.c: Likewise.
20355
20356 2011-02-22  Jim Meyering  <meyering@redhat.com>
20357
20358         maint: adjust cpp indentation to reflect nesting depth
20359         I.e., in a block of code that begins with an unnested "#if",
20360         put one space between the "#" in column 1 and following token.
20361         For example,
20362         -#include <sys/vfs.h>
20363         +# include <sys/vfs.h>
20364         Do this only in .c files that are part of a module I maintain.
20365         * lib/linkat.c: Filter through cppi.
20366         * lib/nanosleep.c: Likewise.
20367         * lib/openat.c: Likewise.
20368         * lib/openat-die.c: Likewise.
20369         * lib/dup3.c: Likewise.
20370         * lib/fchownat.c: Likewise.
20371         * lib/flock.c: Likewise.
20372         * lib/fsync.c: Likewise.
20373         * lib/fts.c: Likewise.
20374         * lib/getpass.c: Likewise.
20375         * lib/gettimeofday.c: Likewise.
20376         * lib/userspec.c: Likewise.
20377         * Makefile (sc_cpp_indent_check): New rule, to check this.
20378
20379 2011-02-22  Bruno Haible  <bruno@clisp.org>
20380
20381         New module 'wctomb'.
20382         * lib/stdlib.in.h (wctomb): New declaration.
20383         * lib/wctomb.c: New file.
20384         * lib/wctomb-impl.h: New file.
20385         * m4/wctomb.m4: New file.
20386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20387         REPLACE_WCTOMB.
20388         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20389         REPLACE_WCTOMB.
20390         * modules/wctomb: New file.
20391         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20392         * doc/posix-functions/wctomb.texi: Mention the new module.
20393         * modules/wctob (Depends-on): Add wctomb.
20394
20395 2011-02-22  Bruno Haible  <bruno@clisp.org>
20396
20397         New module 'mbtowc'.
20398         * lib/stdlib.in.h (mbtowc): New declaration.
20399         * lib/mbtowc.c: New file.
20400         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20401         * m4/mbtowc.m4: New file.
20402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20403         REPLACE_MBTOWC.
20404         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20405         REPLACE_MBTOWC.
20406         * modules/mbtowc: New file.
20407         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20408         * doc/posix-functions/mbtowc.texi: Mention the new module.
20409         * modules/btowc (Depends-on): Add mbtowc.
20410
20411 2011-02-22  Bruno Haible  <bruno@clisp.org>
20412
20413         wcrtomb: Add more tests for native Windows platforms.
20414         * tests/test-wcrtomb-w32-1.sh: New file.
20415         * tests/test-wcrtomb-w32-2.sh: New file.
20416         * tests/test-wcrtomb-w32-3.sh: New file.
20417         * tests/test-wcrtomb-w32-4.sh: New file.
20418         * tests/test-wcrtomb-w32-5.sh: New file.
20419         * tests/test-wcrtomb-w32.c: New file.
20420         * modules/wcrtomb-tests (Files): Add them.
20421         (Makefile.am): Arrange to run these tests.
20422         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20423         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20424
20425 2011-02-20  Bruno Haible  <bruno@clisp.org>
20426
20427         wcrtomb: Enhance test.
20428         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20429
20430 2011-02-20  Bruno Haible  <bruno@clisp.org>
20431
20432         mbrtowc: Tiny optimization.
20433         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20434
20435 2011-02-20  Jim Meyering  <meyering@redhat.com>
20436
20437         test-exclude.c: remove unmatched #endif
20438         * tests/test-exclude.c: Remove stray #endif, left over from
20439         the change of a week ago.
20440
20441 2011-02-19  Jim Meyering  <meyering@redhat.com>
20442
20443         git-version-gen: skip "-dirty" check when appropriate
20444         * build-aux/git-version-gen: Don't run any git commands when the
20445         version string comes from .tarball-version.  Prior to this, we
20446         would run git update-index --refresh even from a just-unpacked
20447         tarball directory, and that could affect a .git/ directory in a
20448         parent of the build directory.  Reported by Mike Frysinger.
20449
20450 2011-02-19  Bruno Haible  <bruno@clisp.org>
20451
20452         unictype/property-byname: Reduce the size of the 'data' segment.
20453         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20454
20455 2011-02-19  Bruno Haible  <bruno@clisp.org>
20456
20457         unictype/scripts: Reduce the size of the 'data' segment.
20458         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20459         '%pic'.
20460         * lib/unictype/scripts_byname.gperf: Regenerated.
20461
20462 2011-02-19  Bruno Haible  <bruno@clisp.org>
20463
20464         stdint: Update documentation.
20465         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20466
20467 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20468
20469         stdint: omit redundant check for wchar.h
20470         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20471         always tests whether wchar.h exists, so remove the now-redundant test.
20472
20473 2011-02-18  Bruno Haible  <bruno@clisp.org>
20474
20475         stdint: Cut dependency to module 'wchar'.
20476         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20477         include the necessary prerequisites.
20478         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20479         * modules/stdint (Depends-on): Remove wchar.
20480         (Makefile.am): Substitute HAVE_WCHAR_H.
20481         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20482
20483 2011-02-18  Eric Blake  <eblake@redhat.com>
20484
20485         longlong: skip, rather than fail, on cross-compilation
20486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20487         when cross-compiling; regression from 2011-02-16.
20488
20489 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20490
20491         * NEWS: Mention 2011-02-08 change to stdlib.
20492
20493 2011-02-17  Bruno Haible  <bruno@clisp.org>
20494
20495         getloadavg: Add comments about platforms.
20496         * m4/getloadavg.m4: Add comment.
20497         * lib/getloadavg.c: Likewise.
20498
20499 2011-02-17  Bruno Haible  <bruno@clisp.org>
20500
20501         getloadavg: Fix link error on Solaris 2.6.
20502         * modules/getloadavg (Link): New section.
20503         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20504         linking test-getloadavg.
20505         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20506         getloadavg.
20507
20508 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20509
20510         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20511         It was 'int', but this doesn't match the IRIX 6.5 manual.
20512         Suggested by Bruno Haible in
20513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20514
20515 2011-02-17  Bruno Haible  <bruno@clisp.org>
20516
20517         havelib: Fix comments.
20518         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20519         change.
20520
20521 2011-02-17  Bruno Haible  <bruno@clisp.org>
20522
20523         havelib: Update config.rpath.
20524         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20525
20526 2011-02-17  Bruno Haible  <bruno@clisp.org>
20527
20528         getloadavg test: Add some plausibility checks.
20529         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20530         is improbable.
20531
20532 2011-02-16  Eric Blake  <eblake@redhat.com>
20533
20534         maintainer-makefile: make syntax-check a no-op from tarballs
20535         * top/maint.mk (no-vc-detected): New rule.
20536         (local-checks-available): Use it to avoid hanging if someone tries
20537         'make syntax-check' from a tarball.  Also append to any non-syntax
20538         checks already defined in cfg.mk.
20539
20540 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         longlong: tune, particularly for common case of c99
20543
20544         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20545         or running anything if c99, or if unsigned long long int does not
20546         work.  In either case, we know the answer without further tests.
20547         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20548         it at most once, and use its results for both long long int and
20549         unsigned long long int.  This is more likely to be efficient in
20550         the common case where the program wants to check for both long
20551         long int and unsigned long long int.
20552         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20553         since the answer is already known.
20554
20555 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20556
20557         getloadavg: set errno
20558         * lib/getloadavg.c: Set errno when returning -1.  If no other
20559         error number looks appropriate, set it to ENOSYS if the getloadavg
20560         looks like it can't possibly ever work, ENOTSUP otherwise.
20561         Suggested by Bruno Haible in
20562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20563
20564         getloadavg: trim unused parts and speed up 'configure'
20565         * NEWS: Document this.
20566         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20567         always compiled if getloadavg is absent.
20568         Move test code to ...
20569         * tests/test-getloadavg.c: New file, containing previous
20570         contents of test from lib/getloadavg.c.  It also contains
20571         suggestions by Bruno Haible in
20572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20573         * modules/getloadavg-tests: New file.
20574         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20575         Do tests in the same order as they're needed for getloadavg.c.
20576         Omit setgid-related tests that generate symbols KMEM_GROUP,
20577         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20578         Do only the tests that are needed to see whether the system has
20579         getloadavg, moving the other tests into ...
20580         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20581         NLIST_NAME_UNION; nobody should be using it.  Do not define
20582         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20583         relevant, as the user of this module shouldn't care how getloadavg
20584         is implemented.
20585
20586         getloadavg: omit unused var
20587         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20588
20589 2011-02-15  Jim Meyering  <meyering@redhat.com>
20590
20591         doc: update users.txt
20592         * users.txt: Update iwhd's URL.
20593
20594 2011-02-13  Bruno Haible  <bruno@clisp.org>
20595
20596         Consistent macro naming for macros that use GCC __attribute__.
20597         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20598         _ATTRIBUTE_NONNULL_.
20599         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20600         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20601         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20602         ATTRIBUTE_DEPRECATED.
20603         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20604         ATTRIBUTE_NORETURN.
20605         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20606         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20607         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20608         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20609         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20610         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20611         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20612         ATTRIBUTE_SENTINEL.
20613         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20614         ATTRIBUTE_RETURN_CHECK.
20615         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20616         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20617         ATTRIBUTE_NORETURN.
20618         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20619         Reported by Paul Eggert.
20620
20621 2011-02-13  Bruno Haible  <bruno@clisp.org>
20622
20623         Don't interfere with a program's definition of __attribute__.
20624         * lib/argp.h (__attribute__): Remove definition.
20625         (_GL_ATTRIBUTE_FORMAT): New macro.
20626         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20627         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20628         (_GL_ATTRIBUTE_FORMAT): New macro.
20629         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20630         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20631         GCC 3 or newer.
20632         * lib/error.h (__attribute__): Remove definition.
20633         (_GL_ATTRIBUTE_FORMAT): New macro.
20634         (error, error_at_line): Use it.
20635         * lib/hash.h (__attribute__): Remove definition.
20636         (ATTRIBUTE_WUR): Update definition. Define always.
20637         * lib/openat.h (__attribute__): Remove definition.
20638         (ATTRIBUTE_NORETURN): Update definition. Define always.
20639         * lib/sigpipe-die.h (__attribute__): Remove definition.
20640         (ATTRIBUTE_NORETURN): Update definition. Define always.
20641         * lib/vasnprintf.h (__attribute__): Remove definition.
20642         (_GL_ATTRIBUTE_FORMAT): New macro.
20643         (asnprintf, vasnprintf): Use it.
20644         * lib/xalloc.h (__attribute__): Remove definition.
20645         (ATTRIBUTE_NORETURN): Update definition. Define always.
20646         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20647         * lib/xmemdup0.h (__attribute__): Remove definition.
20648         (ATTRIBUTE_NORETURN): Update definition. Define always.
20649         * lib/xprintf.h (__attribute__): Remove definition.
20650         (_GL_ATTRIBUTE_FORMAT): New macro.
20651         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20652         * lib/xstrtol.h (__attribute__): Remove definition.
20653         (ATTRIBUTE_NORETURN): Update definition. Define always.
20654         * lib/xvasprintf.h (__attribute__): Remove definition.
20655         (_GL_ATTRIBUTE_FORMAT): New macro.
20656         (xasprintf, xvasprintf): Use it.
20657         * tests/test-argmatch.c (__attribute__): Remove definition.
20658         (ATTRIBUTE_NORETURN): Update definition. Define always.
20659         * tests/test-exclude.c (__attribute__): Remove definition.
20660         (ATTRIBUTE_NORETURN): Update definition. Define always.
20661         Reported by Paul Eggert.
20662
20663 2011-02-13  Bruno Haible  <bruno@clisp.org>
20664
20665         mbrtowc: Add more tests for native Windows platforms.
20666         * tests/test-mbrtowc-w32-1.sh: New file.
20667         * tests/test-mbrtowc-w32-2.sh: New file.
20668         * tests/test-mbrtowc-w32-3.sh: New file.
20669         * tests/test-mbrtowc-w32-4.sh: New file.
20670         * tests/test-mbrtowc-w32-5.sh: New file.
20671         * tests/test-mbrtowc-w32.c: New file.
20672         * modules/mbrtowc-tests (Files): Add them.
20673         (Makefile.am): Arrange to run these tests.
20674         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20675         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20676
20677 2011-02-13  Bruno Haible  <bruno@clisp.org>
20678
20679         mbrtowc: Work around native Windows bug.
20680         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20681         guess when no suitable locale for testing was found.
20682         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20683
20684 2011-02-13  Bruno Haible  <bruno@clisp.org>
20685
20686         mbsinit: Work around mingw bug.
20687         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20688         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20689         Windows.
20690         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20691
20692 2011-02-13  Bruno Haible  <bruno@clisp.org>
20693
20694         mbsinit: Don't crash for a NULL argument.
20695         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20696         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20697
20698 2011-02-13  Bruno Haible  <bruno@clisp.org>
20699
20700         Don't interfere with a program's definition of __attribute__.
20701         * lib/stdio.in.h (__attribute__): Remove definition.
20702         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20703         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20704         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20705         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20706         * lib/string.in.h (__attribute__): Remove definition.
20707         Reported by Paul Eggert.
20708
20709 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         stdlib: don't get in the way of non-GCC __attribute__
20712         See thread starting at
20713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20714         Revert previous stdlib change, installing the following instead:
20715         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20716         to get in the way of a non-GCC compiler that supports __attribute__.
20717         (_GL_ATTRIBUTE_RETURN): New macro.
20718         (_Exit): Use it instead of __attribute__.
20719
20720 2011-02-12  Bruno Haible  <bruno@clisp.org>
20721
20722         quotearg test: Avoid test failure on mingw.
20723         * tests/test-quotearg.sh: Convert the locale identifier from native
20724         Windows syntax to Unix syntax.
20725
20726 2011-02-12  Bruno Haible  <bruno@clisp.org>
20727
20728         setlocale: Prefer gnulib's override over libintl's override.
20729         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20730         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20731         GNULIB_defined_setlocale is set.
20732
20733 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20734
20735         stdlib: support non-GCC __attribute__
20736
20737         Fix a serious and tricky problem encountered when attempting to
20738         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20739         5.5, but it crashed due to memory corruption on Solaris 10 with
20740         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20741         bits that are otherwise zero.  This tagging is optional inside
20742         Emacs but is preferred and is used when __attribute__ ((__aligned
20743         (8))) works, as it does with both recent-enough GCC and with Sun C
20744         5.11.  However, Sun C 5.11 is not GCC and does not #define
20745         __GNUC__ and __GNUC_MINOR__.
20746
20747         When I added the getloadavg module to Emacs, it brought in
20748         stdlib.in.h, which contained this fragment:
20749
20750            #ifndef __attribute__
20751            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20752            #  define __attribute__(Spec)   /* empty */
20753            # endif
20754            #endif
20755
20756         When files that include <stdlib.h> were compiled with Sun C 5.11,
20757         the above code disabled __attribute__ ((__aligned (8))), which
20758         caused variables to not be properly aligned, which eventually led
20759         to the pointer corruption mentioned above.  (This was a bit hard
20760         to diagnose, unfortunately.)
20761
20762         Several "#define __attribute__(X) /* empty */" code snippets need
20763         to be eradicated from Gnulib to work with non-GCC compilers that
20764         support __attribute__.  The Autoconf way to do this is to test for
20765         each kind of attribute that we want support for, and selectively
20766         enable that in source code.
20767
20768         Fix this problem just for stdlib.h, by adding a test for the
20769         __noreturn__ attribute, and change stdlib.in.h to use that test
20770         when needed.  This technique can be easily generalized to the
20771         other *.in.h files and attributes, and a similar technique can be
20772         used for *.h and *.c files.  This patch is enough to solve the
20773         problem for Emacs + getloadavg, and I thought I'd publish it for
20774         feedback before undertaking further, similar fixes in other
20775         modules.
20776
20777         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20778         because it's not needed for stdlib.h.  It merely substitutes the
20779         value directly into stdlib.h.  We may well need to #define it, or
20780         similar symbols, for other modules, but it's nice to also have an
20781         option to not #define it for applications like Emacs that do not
20782         need it.
20783
20784         * lib/stdlib.in.h (__attribute__): Do not #define.
20785         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20786         be defined only if the _Exit module is also used.
20787         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20789         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20790         platforms.
20791         * modules/_Exit (Files): Add m4/attribute.m4.
20792         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20793         * m4/attribute.m4: New file.
20794
20795 2011-02-12  Bruno Haible  <bruno@clisp.org>
20796
20797         wcsrtombs: Work around bug on native Windows.
20798         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20799         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20800         instead of len.
20801         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20802
20803 2011-02-12  Bruno Haible  <bruno@clisp.org>
20804
20805         mbsrtowcs: Work around bug on native Windows.
20806         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20807         against mingw bug.
20808         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20809
20810 2011-02-12  Bruno Haible  <bruno@clisp.org>
20811
20812         Avoid setlocale bugs in tests.
20813         * modules/btowc (Dependencies): Add setlocale.
20814         * modules/c-strcase (Dependencies): Likewise.
20815         * modules/mbmemcasecmp (Dependencies): Likewise.
20816         * modules/mbmemcasecoll (Dependencies): Likewise.
20817         * modules/mbrtowc (Dependencies): Likewise.
20818         * modules/mbscasecmp (Dependencies): Likewise.
20819         * modules/mbscasestr (Dependencies): Likewise.
20820         * modules/mbschr (Dependencies): Likewise.
20821         * modules/mbscspn (Dependencies): Likewise.
20822         * modules/mbsinit (Dependencies): Likewise.
20823         * modules/mbsncasecmp (Dependencies): Likewise.
20824         * modules/mbsnrtowcs (Dependencies): Likewise.
20825         * modules/mbspbrk (Dependencies): Likewise.
20826         * modules/mbspcasecmp (Dependencies): Likewise.
20827         * modules/mbsrchr (Dependencies): Likewise.
20828         * modules/mbsrtowcs (Dependencies): Likewise.
20829         * modules/mbsspn (Dependencies): Likewise.
20830         * modules/mbsstr (Dependencies): Likewise.
20831         * modules/nl_langinfo (Dependencies): Likewise.
20832         * modules/quotearg (Dependencies): Likewise.
20833         * modules/unicase/locale-language (Dependencies): Likewise.
20834         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20835         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20836         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20837         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20838         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20839         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20840         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20841         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20842         * modules/vasnprintf-posix (Dependencies): Likewise.
20843         * modules/wcrtomb (Dependencies): Likewise.
20844         * modules/wcsnrtombs (Dependencies): Likewise.
20845         * modules/wcsrtombs (Dependencies): Likewise.
20846
20847 2011-02-12  Bruno Haible  <bruno@clisp.org>
20848
20849         setlocale: Workaround native Windows bug.
20850         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20851         succeeds but sets LC_CTYPE to "C", report a failure.
20852         * tests/test-setlocale2.sh: New file.
20853         * tests/test-setlocale2.c: New file.
20854         * modules/setlocale-tests (Files): Add the new files.
20855         (Makefile.am): Enable test-setlocale2.sh test.
20856         * doc/posix-functions/setlocale.texi: Mention workaround.
20857
20858 2011-02-11  Bruno Haible  <bruno@clisp.org>
20859
20860         Tests for module 'setlocale'.
20861         * modules/setlocale-tests: New file.
20862         * tests/test-setlocale1.sh: New file.
20863         * tests/test-setlocale1.c: New file.
20864
20865         New module 'setlocale'.
20866         * lib/locale.in.h (setlocale): New declaration.
20867         * lib/setlocale.c: New file, based on
20868         gettext/gettext-runtime/intl/setlocale.c.
20869         * m4/setlocale.m4: New file.
20870         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20871         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20872         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20873         REPLACE_SETLOCALE.
20874         * modules/setlocale: New file.
20875         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20876         * doc/posix-functions/setlocale.texi: Mention the new module.
20877
20878 2011-02-11  Bruno Haible  <bruno@clisp.org>
20879
20880         Prepare for locale dependent tests on mingw.
20881         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20882         because it has the wrong locale encoding.
20883         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20884         French_France.1252 instead of "fr".
20885         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20886         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20887         because it has the wrong locale encoding.
20888         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20889         native Windows, try Turkish_Turkey.65001.
20890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20891         Chinese_China.54936.
20892
20893         Prepare for locale dependent tests on mingw.
20894         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20895         differently.
20896         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20897         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20898         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20900
20901 2011-02-11  Eric Blake  <eblake@redhat.com>
20902
20903         strptime: avoid compiler warnings
20904         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20905         compiler warnings about dead code.
20906         Reported by Daniel P. Berrange.
20907
20908 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20909
20910         doc: update users.txt
20911         * users.txt: Add rcs.
20912
20913 2011-02-10  John W. Eaton  <jwe@gnu.org>
20914
20915         doc: update users.txt
20916         * users.txt: Add octave.
20917
20918 2011-02-10  Jim Meyering  <meyering@redhat.com>
20919
20920         doc: update users.txt
20921         * users.txt: Add iwhd.
20922
20923 2011-02-09  Bruno Haible  <bruno@clisp.org>
20924
20925         gnulib-tool: Make copyright notice adjustment more robust.
20926         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20927         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20928         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20929         License".
20930         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20931
20932 2011-02-06  Bruno Haible  <bruno@clisp.org>
20933
20934         New module 'towctrans'.
20935         * modules/towctrans: New file.
20936         * lib/wctype.in.h (towctrans): New declaration.
20937         * lib/towctrans.c: New file.
20938         * lib/towctrans-impl.h: New file.
20939         * m4/towctrans.m4: New file.
20940         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20941         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20942         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20943         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20944         * doc/posix-functions/towctrans.texi: Mention the new module.
20945
20946 2011-02-06  Bruno Haible  <bruno@clisp.org>
20947
20948         New module 'wctrans'.
20949         * modules/wctrans: New file.
20950         * lib/wctype.in.h (wctrans): New declaration.
20951         * lib/wctrans.c: New file.
20952         * lib/wctrans-impl.h: New file.
20953         * m4/wctrans.m4: New file.
20954         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20955         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20956         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20957         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20958         * doc/posix-functions/wctrans.texi: Mention the new module.
20959
20960 2011-02-06  Bruno Haible  <bruno@clisp.org>
20961
20962         New module 'iswctype'.
20963         * modules/iswctype: New file.
20964         * lib/wctype.in.h (iswctype): New declaration.
20965         * lib/iswctype.c: New file.
20966         * lib/iswctype-impl.h: New file.
20967         * m4/iswctype.m4: New file.
20968         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20969         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20970         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20971         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20972         * doc/posix-functions/iswctype.texi: Mention the new module and the
20973         HP-UX 11.00 problem.
20974
20975 2011-02-06  Bruno Haible  <bruno@clisp.org>
20976
20977         New module 'wctype'.
20978         * modules/wctype: Change to represent the wctype() substitute.
20979         * lib/wctype.in.h (wctype): New declaration.
20980         * lib/wctype.c: New file.
20981         * lib/wctype-impl.h: New file.
20982         * m4/wctype.m4: New file.
20983         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20984         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20985         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20986         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20987         * doc/posix-functions/wctype.texi: Mention the new module and the
20988         HP-UX 11.00 problem.
20989
20990 2011-02-06  Bruno Haible  <bruno@clisp.org>
20991
20992         wctype-h: Ensure wctype_t and wctrans_t are defined.
20993         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20994         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20995         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20996         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20997         HAVE_WCTRANS_T.
20998         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20999
21000 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21001
21002         flock: fix license typo
21003
21004         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21005         omitted.
21006
21007 2011-02-08  Bruno Haible  <bruno@clisp.org>
21008
21009         Split large sed scripts, for HP-UX sed.
21010         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21011         to avoid HP-UX limit of 99 commands, in the near future.
21012         * modules/stdlib (Makefile.am): Likewise.
21013         * modules/unistd (Makefile.am): Likewise.
21014         * modules/wchar (Makefile.am): Likewise.
21015         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21016         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21017         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21018
21019 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21020             Bruno Haible  <bruno@clisp.org>
21021
21022         stdlib: improve random_r modularization
21023         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21024         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21025         you also need the random_r module to get this material right.
21026         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21027         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21028         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21029
21030 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21031
21032         stdlib: don't depend on stdint
21033         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21034         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21035         be independent of whether stdint.h is needed.
21036         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21037         here, instead of ...
21038         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21039         struct random_data should be using the random_r module, not just
21040         the stdlib module (which wouldn't make sense: what package needs
21041         just struct random_data without also needing random_r?).
21042         * modules/stdlib (Depends-on): Remove stdint.
21043
21044         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21045         See the thread rooted at
21046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21047         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21048         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21049         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21050         __VMS)); previously it was always included (via fcntl--.h).
21051         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21052         hand; this is good enough for load averages.  Also, do not use
21053         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21054         flags directly if available and don't bother otherwise.  (Packages
21055         that need the extra reliability should use the modules that define
21056         these flags on older platforms that lack them.)
21057         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21058         fcntl-safer.
21059
21060 2011-02-08  Jim Meyering  <meyering@redhat.com>
21061
21062         di-set.h, ino-map.h: add multiple-inclusion guard
21063         Technically, the guard is required only for ino-map.h, due to its
21064         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21065         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21066         * lib/ino-map.h: Likewise.
21067
21068 2011-02-06  Bruno Haible  <bruno@clisp.org>
21069
21070         iswblank: Ensure declaration on glibc systems.
21071         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21072         * modules/iswblank (Dependencies): Add 'extensions'.
21073         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21074
21075 2011-02-06  Bruno Haible  <bruno@clisp.org>
21076
21077         New module 'iswblank'.
21078         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21079         * modules/iswblank: New file.
21080         * modules/wctype-h (Files): Remove lib/iswblank.c.
21081         (Makefile.am): Substitute GNULIB_ISWBLANK.
21082         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21083         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21084         (gl_WCTYPE_H_DEFAULTS): New macro.
21085         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21086         * modules/iswblank-tests: New file.
21087         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21088         * tests/test-wctype-h.c (main): Remove iswblank tests.
21089         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21090         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21091         of 'wctype-h'.
21092         * NEWS: Mention the change.
21093         * modules/mbchar (Depends-on): Add iswblank.
21094
21095 2011-02-08  Bruno Haible  <bruno@clisp.org>
21096
21097         di-set tests: Refactor.
21098         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21099         unnecessary includes.
21100         (ASSERT): Remove macro.
21101         (main): Make C90 compliant by avoiding variable declaration after
21102         statement.
21103         * modules/di-set-tests (Files): Add tests/macros.h.
21104
21105 2011-02-08  Bruno Haible  <bruno@clisp.org>
21106
21107         ino-map tests: Refactor.
21108         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21109         unnecessary includes.
21110         (ASSERT): Remove macro.
21111         (main): Make C90 compliant by avoiding variable declaration after
21112         statement.
21113         * modules/ino-map-tests (Files): Add tests/macros.h.
21114
21115 2011-02-08  Jim Meyering  <meyering@redhat.com>
21116
21117         di-set: add "const" to a cast
21118         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21119         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21120
21121 2011-02-06  Bruno Haible  <bruno@clisp.org>
21122
21123         Rename module 'wctype' to 'wctype-h'.
21124         * modules/wctype-h: Renamed from modules/wctype.
21125         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21126         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21127         (Files, Depends-on, Makefile.am): Update.
21128         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21129         (Files, Makefile.am): Update.
21130         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21131         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21132         * doc/posix-headers/wctype.texi: Update.
21133         * doc/posix-functions/iswalnum.texi: Update.
21134         * doc/posix-functions/iswalpha.texi: Update.
21135         * doc/posix-functions/iswblank.texi: Update.
21136         * doc/posix-functions/iswcntrl.texi: Update.
21137         * doc/posix-functions/iswdigit.texi: Update.
21138         * doc/posix-functions/iswgraph.texi: Update.
21139         * doc/posix-functions/iswlower.texi: Update.
21140         * doc/posix-functions/iswprint.texi: Update.
21141         * doc/posix-functions/iswpunct.texi: Update.
21142         * doc/posix-functions/iswspace.texi: Update.
21143         * doc/posix-functions/iswupper.texi: Update.
21144         * doc/posix-functions/iswxdigit.texi: Update.
21145         * doc/posix-functions/towlower.texi: Update.
21146         * doc/posix-functions/towupper.texi: Update.
21147         * NEWS: Mention the change.
21148         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21149         * modules/mbchar (Dependencies): Likewise.
21150         * modules/mbswidth (Dependencies): Likewise.
21151         * modules/quotearg (Dependencies): Likewise.
21152         * modules/regex (Dependencies): Likewise.
21153         * modules/wcscasecmp (Dependencies): Likewise.
21154         * modules/wcsncasecmp (Dependencies): Likewise.
21155         * modules/wcwidth (Dependencies): Likewise.
21156
21157 2011-02-06  Bruno Haible  <bruno@clisp.org>
21158
21159         New module 'wcswidth'.
21160         * modules/wcswidth: New file.
21161         * lib/wchar.in.h (wcswidth): New declaration.
21162         * lib/wcswidth.c: New file.
21163         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21164         * m4/wcswidth.m4: New file.
21165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21167         REPLACE_WCSWIDTH.
21168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21169         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21170         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21171         * doc/posix-functions/wcswidth.texi: Mention the new module.
21172
21173 2011-02-06  Bruno Haible  <bruno@clisp.org>
21174
21175         New module 'wcstok'.
21176         * modules/wcstok: New file.
21177         * lib/wchar.in.h (wcstok): New declaration.
21178         * lib/wcstok.c: New file.
21179         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21180         * m4/wcstok.m4: New file.
21181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21184         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21185         * doc/posix-functions/wcstok.texi: Mention the new module.
21186
21187 2011-02-06  Bruno Haible  <bruno@clisp.org>
21188
21189         New module 'wcsstr'.
21190         * modules/wcsstr: New file.
21191         * lib/wchar.in.h (wcsstr): New declaration.
21192         * lib/wcsstr.c: New file.
21193         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21194         * m4/wcsstr.m4: New file.
21195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21198         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21199         * doc/posix-functions/wcsstr.texi: Mention the new module.
21200
21201 2011-02-06  Bruno Haible  <bruno@clisp.org>
21202
21203         New module 'wcspbrk'.
21204         * modules/wcspbrk: New file.
21205         * lib/wchar.in.h (wcspbrk): New declaration.
21206         * lib/wcspbrk.c: New file.
21207         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21208         * m4/wcspbrk.m4: New file.
21209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21212         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21213         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21214
21215 2011-02-06  Bruno Haible  <bruno@clisp.org>
21216
21217         New module 'wcsspn'.
21218         * modules/wcsspn: New file.
21219         * lib/wchar.in.h (wcsspn): New declaration.
21220         * lib/wcsspn.c: New file.
21221         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21222         * m4/wcsspn.m4: New file.
21223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21226         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21227         * doc/posix-functions/wcsspn.texi: Mention the new module.
21228
21229 2011-02-06  Bruno Haible  <bruno@clisp.org>
21230
21231         New module 'wcscspn'.
21232         * modules/wcscspn: New file.
21233         * lib/wchar.in.h (wcscspn): New declaration.
21234         * lib/wcscspn.c: New file.
21235         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21236         * m4/wcscspn.m4: New file.
21237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21240         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21241         * doc/posix-functions/wcscspn.texi: Mention the new module.
21242
21243 2011-02-06  Bruno Haible  <bruno@clisp.org>
21244
21245         New module 'wcsrchr'.
21246         * modules/wcsrchr: New file.
21247         * lib/wchar.in.h (wcsrchr): New declaration.
21248         * lib/wcsrchr.c: New file.
21249         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21250         * m4/wcsrchr.m4: New file.
21251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21254         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21255         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21256
21257 2011-02-06  Bruno Haible  <bruno@clisp.org>
21258
21259         New module 'wcschr'.
21260         * modules/wcschr: New file.
21261         * lib/wchar.in.h (wcschr): New declaration.
21262         * lib/wcschr.c: New file.
21263         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21264         * m4/wcschr.m4: New file.
21265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21268         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21269         * doc/posix-functions/wcschr.texi: Mention the new module.
21270
21271 2011-02-06  Bruno Haible  <bruno@clisp.org>
21272
21273         New module 'wcsdup'.
21274         * modules/wcsdup: New file.
21275         * lib/wchar.in.h (wcsdup): New declaration.
21276         * lib/wcsdup.c: New file.
21277         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21278         * m4/wcsdup.m4: New file.
21279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21282         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21283         * doc/posix-functions/wcsdup.texi: Mention the new module.
21284
21285 2011-02-06  Bruno Haible  <bruno@clisp.org>
21286
21287         New module 'wcsxfrm'.
21288         * modules/wcsxfrm: New file.
21289         * lib/wchar.in.h (wcsxfrm): New declaration.
21290         * lib/wcsxfrm.c: New file.
21291         * lib/wcsxfrm-impl.h: New file.
21292         * m4/wcsxfrm.m4: New file.
21293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21296         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21297         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21298
21299 2011-02-06  Bruno Haible  <bruno@clisp.org>
21300
21301         New module 'wcscoll'.
21302         * modules/wcscoll: New file.
21303         * lib/wchar.in.h (wcscoll): New declaration.
21304         * lib/wcscoll.c: New file.
21305         * lib/wcscoll-impl.h: New file.
21306         * m4/wcscoll.m4: New file.
21307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21310         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21311         * doc/posix-functions/wcscoll.texi: Mention the new module.
21312
21313 2011-02-06  Bruno Haible  <bruno@clisp.org>
21314
21315         New module 'wcsncasecmp'.
21316         * modules/wcsncasecmp: New file.
21317         * lib/wchar.in.h (wcsncasecmp): New declaration.
21318         * lib/wcsncasecmp.c: New file.
21319         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21320         * m4/wcsncasecmp.m4: New file.
21321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21324         HAVE_WCSNCASECMP.
21325         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21326         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21327
21328 2011-02-06  Bruno Haible  <bruno@clisp.org>
21329
21330         New module 'wcscasecmp'.
21331         * modules/wcscasecmp: New file.
21332         * lib/wchar.in.h (wcscasecmp): New declaration.
21333         * lib/wcscasecmp.c: New file.
21334         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21335         * m4/wcscasecmp.m4: New file.
21336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21339         HAVE_WCSCASECMP.
21340         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21341         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21342
21343 2011-02-05  Bruno Haible  <bruno@clisp.org>
21344
21345         New module 'wcsncmp'.
21346         * modules/wcsncmp: New file.
21347         * lib/wchar.in.h (wcsncmp): New declaration.
21348         * lib/wcsncmp.c: New file.
21349         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21350         * m4/wcsncmp.m4: New file.
21351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21354         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21355         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21356
21357 2011-02-05  Bruno Haible  <bruno@clisp.org>
21358
21359         New module 'wcscmp'.
21360         * modules/wcscmp: New file.
21361         * lib/wchar.in.h (wcscmp): New declaration.
21362         * lib/wcscmp.c: New file.
21363         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21364         * m4/wcscmp.m4: New file.
21365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21368         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21369         * doc/posix-functions/wcscmp.texi: Mention the new module.
21370
21371 2011-02-05  Bruno Haible  <bruno@clisp.org>
21372
21373         New module 'wcsncat'.
21374         * modules/wcsncat: New file.
21375         * lib/wchar.in.h (wcsncat): New declaration.
21376         * lib/wcsncat.c: New file.
21377         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21378         * m4/wcsncat.m4: New file.
21379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21382         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21383         * doc/posix-functions/wcsncat.texi: Mention the new module.
21384
21385 2011-02-05  Bruno Haible  <bruno@clisp.org>
21386
21387         New module 'wcscat'.
21388         * modules/wcscat: New file.
21389         * lib/wchar.in.h (wcscat): New declaration.
21390         * lib/wcscat.c: New file.
21391         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21392         * m4/wcscat.m4: New file.
21393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21396         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21397         * doc/posix-functions/wcscat.texi: Mention the new module.
21398
21399 2011-02-05  Bruno Haible  <bruno@clisp.org>
21400
21401         New module 'wcpncpy'.
21402         * modules/wcpncpy: New file.
21403         * lib/wchar.in.h (wcpncpy): New declaration.
21404         * lib/wcpncpy.c: New file.
21405         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21406         * m4/wcpncpy.m4: New file.
21407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21409         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21410         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21411         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21412
21413 2011-02-05  Bruno Haible  <bruno@clisp.org>
21414
21415         New module 'wcsncpy'.
21416         * modules/wcsncpy: New file.
21417         * lib/wchar.in.h (wcsncpy): New declaration.
21418         * lib/wcsncpy.c: New file.
21419         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21420         * m4/wcsncpy.m4: New file.
21421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21424         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21425         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21426
21427 2011-02-05  Bruno Haible  <bruno@clisp.org>
21428
21429         New module 'wcpcpy'.
21430         * modules/wcpcpy: New file.
21431         * lib/wchar.in.h (wcpcpy): New declaration.
21432         * lib/wcpcpy.c: New file.
21433         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21434         * m4/wcpcpy.m4: New file.
21435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21437         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21438         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21439         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21440
21441 2011-02-05  Bruno Haible  <bruno@clisp.org>
21442
21443         New module 'wcscpy'.
21444         * modules/wcscpy: New file.
21445         * lib/wchar.in.h (wcscpy): New declaration.
21446         * lib/wcscpy.c: New file.
21447         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21448         * m4/wcscpy.m4: New file.
21449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21452         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21453         * doc/posix-functions/wcscpy.texi: Mention the new module.
21454
21455 2011-02-05  Bruno Haible  <bruno@clisp.org>
21456
21457         New module 'wcsnlen'.
21458         * modules/wcsnlen: New file.
21459         * lib/wchar.in.h (wcsnlen): New declaration.
21460         * lib/wcsnlen.c: New file.
21461         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21462         * m4/wcsnlen.m4: New file.
21463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21466         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21467         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21468
21469 2011-02-05  Bruno Haible  <bruno@clisp.org>
21470
21471         New module 'wcslen'.
21472         * modules/wcslen: New file.
21473         * lib/wchar.in.h (wcslen): New declaration.
21474         * lib/wcslen.c: New file.
21475         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21476         * m4/wcslen.m4: New file.
21477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21480         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21481         * doc/posix-functions/wcslen.texi: Mention the new module.
21482
21483 2011-02-05  Bruno Haible  <bruno@clisp.org>
21484
21485         New module 'wmemset'.
21486         * modules/wmemset: New file.
21487         * lib/wchar.in.h (wmemset): New declaration.
21488         * lib/wmemset.c: New file.
21489         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21490         * m4/wmemset.m4: New file.
21491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21493         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21494         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21495         * doc/posix-functions/wmemset.texi: Mention the new module.
21496
21497 2011-02-05  Bruno Haible  <bruno@clisp.org>
21498
21499         New module 'wmemmove'.
21500         * modules/wmemmove: New file.
21501         * lib/wchar.in.h (wmemmove): New declaration.
21502         * lib/wmemmove.c: New file.
21503         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21504         * m4/wmemmove.m4: New file.
21505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21507         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21508         HAVE_WMEMMOVE.
21509         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21510         * doc/posix-functions/wmemmove.texi: Mention the new module.
21511
21512 2011-02-05  Bruno Haible  <bruno@clisp.org>
21513
21514         New module 'wmemcpy'.
21515         * modules/wmemcpy: New file.
21516         * lib/wchar.in.h (wmemcpy): New declaration.
21517         * lib/wmemcpy.c: New file.
21518         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21519         * m4/wmemcpy.m4: New file.
21520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21522         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21523         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21524         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21525
21526 2011-02-05  Bruno Haible  <bruno@clisp.org>
21527
21528         New module 'wmemcmp'.
21529         * modules/wmemcmp: New file.
21530         * lib/wchar.in.h (wmemcmp): New declaration.
21531         * lib/wmemcmp.c: New file.
21532         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21533         * m4/wmemcmp.m4: New file.
21534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21536         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21537         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21538         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21539
21540 2011-02-07  Jim Meyering  <meyering@redhat.com>
21541
21542         di-set, ino-map: new modules, from coreutils
21543         * lib/di-set.c: New file.
21544         * lib/di-set.h: Likewise.
21545         * lib/ino-map.c: Likewise.
21546         * lib/ino-map.h: Likewise.
21547         * modules/di-set: Likewise.
21548         * modules/di-set-tests: Likewise.
21549         * modules/ino-map: Likewise.
21550         * modules/ino-map-tests: Likewise.
21551         * tests/test-di-set.c: Likewise.
21552         * tests/test-ino-map.c: Likewise.
21553
21554 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21555
21556         getloadavg: merge minor changes from Emacs
21557
21558         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21559         (getloadavg): Use memset, not bzero.
21560
21561         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21562         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21563         clash (bug#86).
21564
21565 2010-11-14  Bruno Haible  <bruno@clisp.org>
21566
21567         Allow multiple gnulib generated replacements to coexist.
21568         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21569         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21570         * lib/langinfo.in.h (nl_item): Likewise.
21571         * lib/math.in.h (_NaN, NAN): Likewise.
21572         * lib/netdb.in.h (struct addrinfo): Likewise.
21573         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21574         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21575         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21576         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21577         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21578         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21579         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21580         pthread_mutexattr_init, pthread_mutexattr_settype,
21581         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21582         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21583         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21584         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21585         * lib/sched.in.h (struct sched_param): Likewise.
21586         * lib/se-selinux.in.h (security_class_t, security_context_t,
21587         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21588         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21589         lsetfilecon, fsetfilecon, security_check_context,
21590         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21591         Likewise.
21592         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21593         Likewise.
21594         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21595         _gl_function_taking_int_returning_void_t, union sigval,
21596         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21597         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21598         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21599         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21600         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21601         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21602         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21603         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21604         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21605         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21606         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21607         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21608         socklen_t, rpl_fd_isset): Likewise.
21609         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21610         * lib/sys_time.in.h (struct timeval): Likewise.
21611         * lib/sys_times.in.h (struct tms): Likewise.
21612         * lib/sys_utsname.in.h (struct utsname):
21613         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21614         * lib/unistd.in.h (getpagesize): Likewise.
21615         * lib/wchar.in.h (mbstate_t): Likewise.
21616         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21617         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21618         towlower, towupper): Likewise.
21619         Reported by Sam Steingold <sds@gnu.org>.
21620
21621 2011-02-05  Eric Blake  <eblake@redhat.com>
21622
21623         unsetenv: work around Haiku issues
21624         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21625         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21626
21627 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21628
21629         libposix: avoid calling error() within libposix
21630         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21631         is defined.
21632
21633 2011-02-05  Eric Blake  <eblake@redhat.com>
21634
21635         strerror_r-posix: port to cygwin
21636         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21637         implementation.
21638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21639         * tests/test-strerror_r.c (main): Fix test.
21640         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21641         issue.
21642
21643 2011-02-05  Bruno Haible  <bruno@clisp.org>
21644
21645         New module 'wmemchr'.
21646         * modules/wmemchr: New file.
21647         * lib/wchar.in.h (wmemchr): New declaration.
21648         * lib/wmemchr.c: New file.
21649         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21650         * m4/wmemchr.m4: New file.
21651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21653         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21654         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21655         * doc/posix-functions/wmemchr.texi: Mention the new module.
21656
21657 2011-02-04  Eric Blake  <eblake@redhat.com>
21658
21659         fdopendir: detect FreeBSD bug
21660         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21661         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21662
21663 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21664
21665         stdbool: do not define HAVE_STDBOOL_H
21666         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21667         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21668         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21669         imported from the latest Autoconf git.  It was motivated by Emacs,
21670         which uses gnulib but does not need HAVE_STDBOOL_H.
21671
21672 2011-02-04  Bruno Haible  <bruno@clisp.org>
21673
21674         wcsnrtombs: Prepare for new module wwcsnrtombs.
21675         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21676         * lib/wcsnrtombs.c: Include it.
21677         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21678
21679         wcsrtombs: Prepare for new module wwcsrtombs.
21680         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21681         * lib/wcsrtombs.c: Include it.
21682         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21683
21684         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21685         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21686         * lib/mbsnrtowcs.c: Include it.
21687         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21688
21689         mbsrtowcs: Prepare for new module mbsrtowwcs.
21690         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21691         * lib/mbsrtowcs.c: Include it.
21692         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21693
21694 2011-02-04  Bruno Haible  <bruno@clisp.org>
21695
21696         vasnprintf: Reduce use of malloc for small format strings.
21697         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21698         (arguments): Add room for the first 7 arguments.
21699         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21700         (char_directives, u8_directives, u16_directives, u32_directives): Add
21701         room for the first 7 directives.
21702         * lib/printf-parse.c: Include <string.h>.
21703         (PRINTF_PARSE): Change memory handling code so that it uses the first
21704         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21705         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21706         Reported by Pádraig Brady <P@draigbrady.com>.
21707
21708 2011-01-31  Eric Blake  <eblake@redhat.com>
21709
21710         dup2: work around Haiku bug
21711         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21712         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21713         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21714         * tests/test-dup2.c (main): Enhance test.
21715
21716 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21717
21718         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21719         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21720         declared by eglibc 2.11.2.
21721         * lib/stdio.in.h: Likewise.
21722
21723 2011-01-31  Eric Blake  <eblake@redhat.com>
21724
21725         ignore-value: add missing test dependency
21726         * tests/test-ignore-value.c: Revert previous change; stdio.h
21727         provides off_t.
21728         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21729
21730 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         mktime: clarify long_int width checking
21733         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21734         the top level, to make it clearer that the assumption about
21735         long_int width is being checked.  See
21736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21737
21738 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21739
21740         ignore-value: Fix self-test.
21741         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21742
21743 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21744
21745         TYPE_MAXIMUM: avoid theoretically undefined behavior
21746         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21747         negative number, which the C Standard says has undefined behavior.
21748         In practice this is not a problem, but might as well do it by the book.
21749         Reported by Rich Felker and Eric Blake; see
21750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21751         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21752         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21754         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21755         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21756         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21757
21758         mktime: #undef mktime before #defining it
21759         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21760
21761         mktime: systematically normalize tm_isdst comparisons
21762         * lib/mktime.c (isdst_differ): New function.
21763         (__mktime_internal): Use it systematically for all isdst comparisons.
21764         This completes the fix for libc BZ #6723, and removes the need for
21765         normalizing tm_isdst.  See
21766         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21767         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21768
21769         mktime: fix some integer overflow issues and sidestep the rest
21770
21771         This was prompted by a bug report by Benjamin Lindner for MinGW
21772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21773         His bug is due to signed integer overflow (0 - INT_MIN), and I
21774         I scanned through mktime.c looking for other integer overflow
21775         problems, fixing all the bugs I found.
21776
21777         Although the C Standard says the resulting code is still not safe
21778         in the presence of integer overflow, in practice it should be good
21779         enough for all real-world two's-complement implementations, except
21780         for debugging environments that deliberately trap on integer
21781         overflow (e.g., gcc -ftrapv).
21782
21783         * lib/mktime.c (WRAPV): New macro.
21784         (SHR): Also check that long_int and time_t shift right in the
21785         usual way, before using the fast-but-unportable method.
21786         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21787         used.  The code already assumed two's complement, so there's
21788         no need to test for alternatives.  All uses removed.
21789         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21790         the C standard.  Problem reported by Rich Felker in
21791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21792         (twos_complement_arithmetic): Also check long_int and time_t.
21793         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21794         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21795         (__mktime_internal): Avoid integer overflow with unary subtraction
21796         in two instances where -1 - X is an adequate replacement for -X,
21797         since the calculations are approximate.
21798
21799 2011-01-29  Eric Blake  <eblake@redhat.com>
21800
21801         mktime: avoid infinite loop
21802         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21803         type; behavior is still undefined but portable to all known targets.
21804         Reported by Rich Felker.
21805
21806 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21807
21808         rename, unlink, same-inode: Relicense.
21809         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21810         * modules/unlink (License): Likewise.
21811         * modules/same-inode (License): Likewise.
21812
21813 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21814
21815         mktime: avoid problems on NetBSD 5 / i386
21816         * lib/mktime.c (long_int): New type.  This works around a problem
21817         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21818         but time_t is 64 bits, and where I expect the existing code is
21819         wrong in some cases.
21820         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21821         (ydhms_diff): Bring back the compile-time check for wide-enough
21822         year and yday.
21823
21824         mktime: fix misspelling in comment
21825         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21826         This merges all recent glibc changes of importance.
21827
21828 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21829
21830         move-if-change: cope with concurrent mv of identical file.
21831         * build-aux/move-if-change (CMPPROG): Accept environment
21832         variable as an override for `cmp'.
21833         (usage): Document CMPPROG.
21834         Adjust comparison to drop stdout.  Cope with failure of mv if
21835         the target file exists and is identical to the source, for
21836         parallel builds.
21837         Report from H.J. Lu against binutils in PR binutils/12283.
21838
21839 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21840
21841         * users.txt: Mention sharutils.
21842
21843 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21844
21845         * users.txt: Mention OATH Toolkit.
21846
21847 2011-01-27  Bruno Haible  <bruno@clisp.org>
21848
21849         Prepare for supporting FreeBSD 10.
21850         * build-aux/config.libpath: Remove handling of freebsd1*.
21851
21852 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21853
21854         Prepare for supporting FreeBSD 10.
21855         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21856         match FreeBSD 10.0.
21857
21858 2011-01-27  Bruno Haible  <bruno@clisp.org>
21859
21860         vma-iter, get-rusage-as: Add OpenBSD support.
21861         * modules/vma-iter (configure.ac): Test for mquery.
21862         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21863         * lib/vma-iter.c: Include <sys/mman.h>.
21864         (vma_iterate): Add an implementation based on mquery().
21865         * lib/resource-ext.h (get_rusage_as): Update comments.
21866         * lib/get-rusage-as.c: Likewise.
21867         * lib/get-rusage-data.c: Likewise.
21868
21869 2011-01-26  Karl Berry  <karl@gnu.org>
21870
21871         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21872         variables to make it easier to override the makeinfo program used.
21873
21874 2011-01-26  Eric Blake  <eblake@redhat.com>
21875
21876         fcntl: work around Haiku F_DUPFD bugs
21877         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21878         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21879         cloexec bit on duplication.
21880         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21881
21882 2011-01-26  Bruno Haible  <bruno@clisp.org>
21883
21884         Enable memory leak tests on AIX.
21885         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21886         * tests/test-fprintf-posix3.c (main): Likewise.
21887
21888 2011-01-26  Bruno Haible  <bruno@clisp.org>
21889
21890         Tests for module 'get-rusage-data'.
21891         * modules/get-rusage-data-tests: New file.
21892         * tests/test-get-rusage-data.c: New file.
21893
21894         New module 'get-rusage-data'.
21895         * lib/resource-ext.h (get_rusage_data): New declaration.
21896         * lib/get-rusage-data.c: New file.
21897         * modules/get-rusage-data: New file.
21898
21899 2011-01-25  Bruno Haible  <bruno@clisp.org>
21900
21901         get-rusage-as: Allow for easier testing.
21902         * lib/resource-ext.h (get_rusage_as): Add comment.
21903         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21904         (main): New function for interactive testing.
21905
21906 2011-01-25  Bruno Haible  <bruno@clisp.org>
21907
21908         vma-iter: Treat Haiku like BeOS.
21909         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21910         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21911
21912 2011-01-25  Eric Blake  <eblake@redhat.com>
21913
21914         c-stack: fix regression on cygwin when libsigsegv is present
21915         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21916
21917 2011-01-24  Bruno Haible  <bruno@clisp.org>
21918
21919         vma-iter: Avoid empty intervals.
21920         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21921         on an empty interval.
21922
21923 2011-01-24  Jim Meyering  <meyering@redhat.com>
21924
21925         u64: remove unnecessary #include
21926         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21927
21928 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21929
21930         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21931         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21932
21933 2011-01-23  Bruno Haible  <bruno@clisp.org>
21934
21935         New module 'vma-iter'.
21936         * lib/vma-iter.h: New file.
21937         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21938         * modules/vma-iter: New file.
21939         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21940         for get_rusage_as_via_iterator.
21941         (vma_iterate_callback): New function.
21942         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21943         * modules/get-rusage-as (Depends-on): Add vma-iter.
21944
21945 2011-01-23  Bruno Haible  <bruno@clisp.org>
21946
21947         uninorm: Tweak includes.
21948         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21949         Reported by Jim Meyering.
21950
21951 2011-01-23  Bruno Haible  <bruno@clisp.org>
21952
21953         get-rusage-as: Improve on NetBSD.
21954         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21955         /proc, like on FreeBSD.
21956
21957 2011-01-23  Jim Meyering  <meyering@redhat.com>
21958
21959         xreadlink.h: remove unnecessary #include
21960         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21961
21962         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21963         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21964
21965 2011-01-23  Bruno Haible  <bruno@clisp.org>
21966
21967         get-rusage-as: Fix bug.
21968         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21969         original limit when aborting the first loop.
21970
21971 2011-01-23  Bruno Haible  <bruno@clisp.org>
21972
21973         wctype: Ensure valid C syntax.
21974         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21975         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21976
21977 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21978
21979         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21981         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21982         as they are needed only for configure's test case.
21983         This removes two unnecessary symbols from config.h.
21984
21985         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21986         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21988         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21989         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21990         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21991         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21992         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21993         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21994         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21995         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21997         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21999         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22000         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22001         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22002         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22003
22004 2011-01-21  Eric Blake  <eblake@redhat.com>
22005
22006         maintainer-makefile: work with older git for submodule check
22007         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22008         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22009         Reported by Matthias Bolte.
22010
22011         bootstrap: minor portability fixes
22012         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22013         (usage): Omit leading capital and trailing . on help phrases, per
22014         GNU Coding Standards.
22015         (check_versions, top level): Prefix messages with script name.
22016
22017 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22018
22019         bootstrap: support --no-git option
22020         * build-aux/bootstrap: Add --no-git option, to be used when
22021         --gnulib-srcdir points to the exact desired checkout.
22022
22023 2011-01-21  Eric Blake  <eblake@redhat.com>
22024
22025         strerror_r-posix: work with glibc 2.13
22026         * lib/strerror_r.c (strerror_r): Fix return type.
22027
22028 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22029             Bruno Haible  <bruno@clisp.org>
22030
22031         uN_strstr: New unit tests.
22032         * modules/unistr/u8-strstr-tests: New file.
22033         * modules/unistr/u16-strstr-tests: New file.
22034         * modules/unistr/u32-strstr-tests: New file.
22035         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22036         * tests/unistr/test-u8-strstr.c: New file.
22037         * tests/unistr/test-u16-strstr.c: New file.
22038         * tests/unistr/test-u32-strstr.c: New file.
22039
22040 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22041             Bruno Haible  <bruno@clisp.org>
22042
22043         Make uN_strstr functions O(n) worst-case.
22044         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22045         16-bit and 32-bit unit cases, use the unibyte algorithm from
22046         lib/mbsstr.c.
22047         * lib/unistr/u8-strstr.c: Include <string.h>.
22048         (UNIT_IS_UINT8_T): New macro.
22049         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22050         (U_STRLEN, U_STRNLEN): New macros.
22051         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22052         (U_STRLEN, U_STRNLEN): New macros.
22053         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22054         (configure.ac): Update required libunistring version.
22055         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22056         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22057         malloca.
22058         (configure.ac): Update required libunistring version.
22059         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22060         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22061         malloca.
22062         (configure.ac): Update required libunistring version.
22063
22064 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22065             Bruno Haible  <bruno@clisp.org>
22066
22067         Prepare for faster uN_strstr functions.
22068         * lib/str-kmp.h: Support definable UNITs.
22069         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22070         needle_len argument.
22071         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22072         * lib/mbscasestr.c (mbscasestr): Likewise.
22073
22074 2011-01-21  Pádraig Brady <P@draigBrady.com>
22075
22076         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22077         * tests/test-malloca.c (main): Unset the environment variable
22078         to greatly speed up the test.
22079         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22080         * modules/malloca-tests: Depend on unsetenv.
22081
22082 2011-01-21  Pádraig Brady <P@draigBrady.com>
22083
22084         ignore-value: remove stdint dependency
22085         * lib/ignore-value.h: Remove <stdint.h>
22086         * modules/ignore-value: Remove stdint dependency.
22087
22088 2011-01-21  Jim Meyering  <meyering@redhat.com>
22089
22090         maint.mk: adjust variable name to be consistent with other gl_ vars
22091         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22092         to be lower case.
22093
22094 2011-01-20  Jim Meyering  <meyering@redhat.com>
22095
22096         maint.mk: make "check" depend on public-submodule-commit by default
22097         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22098
22099 2011-01-20  Bruno Haible  <bruno@clisp.org>
22100
22101         mbfile, mbiter: Complete change from 2008-12-21.
22102         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22103         * m4/mbiter.m4 (gl_MBITER): Likewise.
22104
22105 2011-01-20  Jim Meyering  <meyering@redhat.com>
22106
22107         init.sh: insert space between each function name and "()"
22108         * tests/init.sh: Make it a little easier to see that a function's
22109         name is "warn_", and not "warn" when looking at the first part of
22110         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22111
22112 2011-01-20  Jim Meyering  <meyering@redhat.com>
22113
22114         mountlist: clean up code formatting
22115         * lib/mountlist.c (read_file_system_list): Split a long line,
22116         correct bracing style, use NULL in place of "(struct statfs *)0",
22117         don't parenthesize return value, add spaces around "=" and after
22118         ";-in-for-stmt".
22119
22120 2011-01-14  Markus Duft <mduft@gentoo.org>
22121
22122         mountlist: add support for Interix
22123         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22124         Apply statvfs to all entries of /dev/fs.
22125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22126         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22127
22128 2011-01-20  Jim Meyering  <meyering@redhat.com>
22129
22130         maint.mk: improve the public-submodule-commit rule
22131         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22132         to suppress printing of its commands... unless V=1.
22133         Add git submodule's --quiet option to suppress printing of e.g.,
22134         "Entering gnulib" output.
22135         "cd" into $(srcdir) before running git submodule.
22136
22137 2011-01-20  Bruno Haible  <bruno@clisp.org>
22138
22139         include_next: Fix bug introduced on 2011-01-18.
22140         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22141         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22142         ac_cv_header_... variable if the second argument is not 'check'.
22143         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22144         gl_NEXT_HEADERS_INTERNAL.
22145
22146 2011-01-20  Bruno Haible  <bruno@clisp.org>
22147
22148         Allow the user to avoid the GNULIB_TEST_* macros.
22149         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22150         Suggested by Paul Eggert.
22151
22152 2011-01-14  Jim Meyering  <meyering@redhat.com>
22153
22154         bootstrap: avoid failure when there is no .gitmodules file
22155         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22156         has been assigned to, even when its value is the empty string.
22157         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22158         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22159         Reported by John W. Eaton <jwe@gnu.org>.
22160
22161 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         assume <ctype.h>, ..., <time.h> exist
22164         For years gnulib has been assuming the existence of the headers
22165         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22166         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22167         them, since they don't appear to be needed.
22168         * README (Portability guidelines): Document this.
22169         * lib/flock.c: Assume <fcntl.h> exists.
22170         * lib/regex_internal.h: Assume <locale.h> exists.
22171         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22172         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22173         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22174         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22175         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22176         * m4/regex.m4 (gl_REGEX): Likewise.
22177         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22178         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22179         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22180         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22181         * tests/test-argp.c: Likewise.
22182         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22183
22184         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22185         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22186         AA_APPLE_UNIVERSAL_BUILD.  See
22187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22188         * NEWS: Document this.
22189
22190 2011-01-19  Eric Blake  <eblake@redhat.com>
22191
22192         c-stack: assume stack overflow if SA_SIGINFO unsupported
22193         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22194         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22195         sigaction will work.
22196         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22197         behavior match Linux.
22198         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22199
22200         stdbool-tests: accommodate Haiku
22201         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22202
22203         binary-io: fix O_TEXT on Haiku
22204         * modules/binary-io (Depends-on): Add fcntl-h.
22205         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22206         than blindly undefining O_TEXT.
22207         Reported by Scott McCreary.
22208
22209 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22210
22211         include_next: do not check for standard headers like stddef.h
22212
22213         I found this problem when modifying Emacs to use gnulib.
22214         I noticed that it added HAVE_STDDEF_H to config.h, even though
22215         gnulib always assumes <stddef.h> exists as per README and this
22216         symbol is unnecessary.
22217         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22218         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22219         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22220         faster for headers like stddef.h that are known to exist.
22221         (gl_CHECK_NEXT_HEADERS): Use it.
22222         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22223         rather than gl_CHECK_NEXT_HEADERS.
22224         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22225         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22226
22227 2011-01-18  Eric Blake  <eblake@redhat.com>
22228
22229         ansi-c++-opt: skip C++ dependency style if C++ is unused
22230         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22231         tests when we know C++ compilation is not desired.
22232         Reported by Scott McCreary.
22233
22234 2011-01-18  Bruno Haible  <bruno@clisp.org>
22235
22236         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22237         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22238         (main): Perform test also when getrlimit and setrlimit don't exist or
22239         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22240         limiting the address space size using setrlimit, compare the address
22241         space size before and after the the test.
22242         * tests/test-dprintf-posix2.c: Likewise.
22243         * tests/test-fprintf-posix3.sh: Update skip messages.
22244         * tests/test-dprintf-posix2.sh: Likewise.
22245         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22246         * modules/dprintf-posix-tests (Depends-on): Likewise.
22247         Reported by Bruce Korb <bkorb@gnu.org> and
22248         Gary V. Vaughan <gary@gnu.org>.
22249
22250 2011-01-18  Bruno Haible  <bruno@clisp.org>
22251
22252         get-rusage-as: Improvement for Cygwin.
22253         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22254         areas that are merely reserved.
22255
22256 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22257
22258         strftime: remove dependencies on multibyte modules
22259
22260         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22261         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22262         only if __osf__ is defined, and I suspect OSF doesn't need these
22263         other modules.  If my guess is wrong, we'll need to come up with a
22264         variant of strftime that doesn't need the multibyte modules.
22265
22266         I discovered this problem when attempting modify Emacs to use the
22267         strftime module.  With the previous gnulib, this caused Emacs to
22268         need 31 new files, ranging from lib/config.charset to
22269         m4/wint_t.m4.  This was overkill and I expect would be offputting
22270         to the Emacs maintainers.  After this change, only 6 new files are
22271         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22272         stdbool.m4, and tm_gmtoff.m4.
22273
22274         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22275         Suggested by Bruno Haible in
22276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22277         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22278         and do not check for wchar.h.
22279         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22280         (Depends-on): Remove mbrlen, mbsinit, wchar.
22281
22282 2011-01-18  Bruno Haible  <bruno@clisp.org>
22283
22284         Tests for module 'get-rusage-as'.
22285         * modules/get-rusage-as-tests: New file.
22286         * tests/test-get-rusage-as.c: New file.
22287
22288         New module 'get-rusage-as'.
22289         * modules/get-rusage-as: New file.
22290         * lib/resource-ext.h: New file.
22291         * lib/get-rusage-as.c: New file.
22292
22293 2011-01-17  Eric Blake  <eblake@redhat.com>
22294
22295         sigaction: relax license from LGPLv3+ to LGPLv2+
22296         * modules/sigaction (License): Relax to LGPLv2+.
22297
22298 2011-01-14  Bruno Haible  <bruno@clisp.org>
22299
22300         filemode: Make function declarations usable in C++ mode.
22301         * lib/filemode.h: Enclose function declarations in extern "C" block.
22302         Reported by John W. Eaton <jwe@gnu.org>.
22303
22304 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22305
22306         save-cwd: no longer include "xgetcwd.h"
22307         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22308         This avoids a compilation failure in projects that use save-cwd
22309         without also using the xgetcwd module.
22310
22311 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22312
22313         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22314         This is so that a program like Emacs, which needs only dtoastr,
22315         does not have to bother with distributing and compiling ftoastr
22316         and ldtoastr.
22317         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22318         * modules/dtoastr, modules/ldtoastr: New files.
22319         * modules/ftoastr: Now works just for 'float'.
22320         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22321         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22322         dtoastr.c, ldtoastr.c.
22323
22324 2011-01-11  Jim Meyering  <meyering@redhat.com>
22325
22326         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22327         There is no need to work around the lack of the fchdir function,
22328         since gnulib can now provide a replacement when required.
22329         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22330         * modules/save-cwd (Depends-on): Add fchdir.
22331
22332 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22333
22334         openat, save-cwd: avoid xmalloc
22335
22336         This removes a direct (but undocumented) dependency of openat on
22337         xalloc, along with an indirect dependency via save-cwd.  It also
22338         removes a dependency of save-cwd on xgetcwd, and thereby
22339         indirectly on xalloc.  This change causes the openat substitute
22340         to fall back on save_cwd when memory is tight, and for save_cwd to
22341         fail instead of dying when memory is tight, but that's good enough.
22342         Problem and initial idea for fix reported by Bastien Roucaries in
22343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22344
22345         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22346         xalloc.h (for xmalloc).
22347         (openat_proc_name): Use malloc, not xmalloc.
22348         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22349         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22350
22351         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22352         This avoids heap allocation for file names whose lengths are in
22353         the range 512..1023, with the upper bound increasing to at most
22354         4031 depending on the platform's PATH_MAX.  (We do not want
22355         pathmax.h here as it might supply a non-constant PATH_MAX.)
22356         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22357         Perhaps they should be moved to malloca.h?
22358         (OPENAT_BUFFER_SIZE): Use them.
22359
22360 2011-01-10  Bruno Haible  <bruno@clisp.org>
22361
22362         doc: Update users.txt.
22363         * users.txt: Add recutils.
22364
22365 2011-01-09  Karl Berry  <karl@gnu.org>
22366
22367         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22368
22369         * doc/configmake.texi: New file.
22370         * doc/gnulib.texi: Include it.
22371         * modules/configmake: Move documentation from here.
22372
22373 2011-01-09  Bruno Haible  <bruno@clisp.org>
22374
22375         Update to Unicode 6.0.0.
22376         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22377         (get_lbp): Update for Unicode 6.0.0.
22378         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22379         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22380         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22381         U+11001, U+11038..U+11046. Remove U+06DE.
22382         (uc_width): Fix bounds of planes.
22383         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22384         lib/uniwidth/width.c.
22385         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22386         trailing whitespace removed.
22387         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22388         without comments, but with the original copyright notice.
22389         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22390         * lib/unicase/ignorable.h: Likewise.
22391         * lib/unicase/tocasefold.h: Likewise.
22392         * lib/unicase/tolower.h: Likewise.
22393         * lib/unicase/totitle.h: Likewise.
22394         * lib/unicase/toupper.h: Likewise.
22395         * lib/unictype/bidi_of.h: Likewise.
22396         * lib/unictype/blocks.h: Likewise.
22397         * lib/unictype/categ_C.h: Likewise.
22398         * lib/unictype/categ_Cn.h: Likewise.
22399         * lib/unictype/categ_L.h: Likewise.
22400         * lib/unictype/categ_Ll.h: Likewise.
22401         * lib/unictype/categ_Lm.h: Likewise.
22402         * lib/unictype/categ_Lo.h: Likewise.
22403         * lib/unictype/categ_Lu.h: Likewise.
22404         * lib/unictype/categ_M.h: Likewise.
22405         * lib/unictype/categ_Mc.h: Likewise.
22406         * lib/unictype/categ_Me.h: Likewise.
22407         * lib/unictype/categ_Mn.h: Likewise.
22408         * lib/unictype/categ_N.h: Likewise.
22409         * lib/unictype/categ_Nd.h: Likewise.
22410         * lib/unictype/categ_No.h: Likewise.
22411         * lib/unictype/categ_P.h: Likewise.
22412         * lib/unictype/categ_Po.h: Likewise.
22413         * lib/unictype/categ_S.h: Likewise.
22414         * lib/unictype/categ_Sc.h: Likewise.
22415         * lib/unictype/categ_Sk.h: Likewise.
22416         * lib/unictype/categ_Sm.h: Likewise.
22417         * lib/unictype/categ_So.h: Likewise.
22418         * lib/unictype/categ_of.h: Likewise.
22419         * lib/unictype/combining.h: Likewise.
22420         * lib/unictype/ctype_alnum.h: Likewise.
22421         * lib/unictype/ctype_alpha.h: Likewise.
22422         * lib/unictype/ctype_graph.h: Likewise.
22423         * lib/unictype/ctype_lower.h: Likewise.
22424         * lib/unictype/ctype_print.h: Likewise.
22425         * lib/unictype/ctype_punct.h: Likewise.
22426         * lib/unictype/ctype_upper.h: Likewise.
22427         * lib/unictype/decdigit.h: Likewise.
22428         * lib/unictype/digit.h: Likewise.
22429         * lib/unictype/numeric.h: Likewise.
22430         * lib/unictype/pr_alphabetic.h: Likewise.
22431         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22432         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22433         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22434         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22435         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22436         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22437         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22438         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22439         * lib/unictype/pr_case_ignorable.h: Likewise.
22440         * lib/unictype/pr_cased.h: Likewise.
22441         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22442         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22443         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22444         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22445         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22446         * lib/unictype/pr_combining.h: Likewise.
22447         * lib/unictype/pr_composite.h: Likewise.
22448         * lib/unictype/pr_currency_symbol.h: Likewise.
22449         * lib/unictype/pr_decimal_digit.h: Likewise.
22450         * lib/unictype/pr_deprecated.h: Likewise.
22451         * lib/unictype/pr_format_control.h: Likewise.
22452         * lib/unictype/pr_grapheme_base.h: Likewise.
22453         * lib/unictype/pr_grapheme_extend.h: Likewise.
22454         * lib/unictype/pr_grapheme_link.h: Likewise.
22455         * lib/unictype/pr_id_continue.h: Likewise.
22456         * lib/unictype/pr_id_start.h: Likewise.
22457         * lib/unictype/pr_ideographic.h: Likewise.
22458         * lib/unictype/pr_lowercase.h: Likewise.
22459         * lib/unictype/pr_math.h: Likewise.
22460         * lib/unictype/pr_numeric.h: Likewise.
22461         * lib/unictype/pr_other_alphabetic.h: Likewise.
22462         * lib/unictype/pr_other_id_continue.h: Likewise.
22463         * lib/unictype/pr_other_math.h: Likewise.
22464         * lib/unictype/pr_punctuation.h: Likewise.
22465         * lib/unictype/pr_sentence_terminal.h: Likewise.
22466         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22467         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22468         * lib/unictype/pr_unified_ideograph.h: Likewise.
22469         * lib/unictype/pr_uppercase.h: Likewise.
22470         * lib/unictype/pr_xid_continue.h: Likewise.
22471         * lib/unictype/pr_xid_start.h: Likewise.
22472         * lib/unictype/scripts.h: Likewise.
22473         * lib/unictype/scripts_byname.gperf: Likewise.
22474         * lib/unictype/sy_java_ident.h: Likewise.
22475         * lib/unigbrk/gbrkprop.h: Likewise.
22476         * lib/unilbrk/lbrkprop1.h: Likewise.
22477         * lib/unilbrk/lbrkprop2.h: Likewise.
22478         * lib/uninorm/decomposition-table2.h: Likewise.
22479         * lib/uniwbrk/wbrkprop.h: Likewise.
22480         * tests/unicase/test-cased.c: Likewise.
22481         * tests/unicase/test-ignorable.c: Likewise.
22482         * tests/unicase/test-uc_tolower.c: Likewise.
22483         * tests/unicase/test-uc_totitle.c: Likewise.
22484         * tests/unicase/test-uc_toupper.c: Likewise.
22485         * tests/unictype/test-categ_C.c: Likewise.
22486         * tests/unictype/test-categ_Cn.c: Likewise.
22487         * tests/unictype/test-categ_L.c: Likewise.
22488         * tests/unictype/test-categ_Ll.c: Likewise.
22489         * tests/unictype/test-categ_Lm.c: Likewise.
22490         * tests/unictype/test-categ_Lo.c: Likewise.
22491         * tests/unictype/test-categ_Lu.c: Likewise.
22492         * tests/unictype/test-categ_M.c: Likewise.
22493         * tests/unictype/test-categ_Mc.c: Likewise.
22494         * tests/unictype/test-categ_Me.c: Likewise.
22495         * tests/unictype/test-categ_Mn.c: Likewise.
22496         * tests/unictype/test-categ_N.c: Likewise.
22497         * tests/unictype/test-categ_Nd.c: Likewise.
22498         * tests/unictype/test-categ_No.c: Likewise.
22499         * tests/unictype/test-categ_P.c: Likewise.
22500         * tests/unictype/test-categ_Po.c: Likewise.
22501         * tests/unictype/test-categ_S.c: Likewise.
22502         * tests/unictype/test-categ_Sc.c: Likewise.
22503         * tests/unictype/test-categ_Sk.c: Likewise.
22504         * tests/unictype/test-categ_Sm.c: Likewise.
22505         * tests/unictype/test-categ_So.c: Likewise.
22506         * tests/unictype/test-ctype_alnum.c: Likewise.
22507         * tests/unictype/test-ctype_alpha.c: Likewise.
22508         * tests/unictype/test-ctype_graph.c: Likewise.
22509         * tests/unictype/test-ctype_lower.c: Likewise.
22510         * tests/unictype/test-ctype_print.c: Likewise.
22511         * tests/unictype/test-ctype_punct.c: Likewise.
22512         * tests/unictype/test-ctype_upper.c: Likewise.
22513         * tests/unictype/test-decdigit.h: Likewise.
22514         * tests/unictype/test-digit.h: Likewise.
22515         * tests/unictype/test-numeric.h: Likewise.
22516         * tests/unictype/test-pr_alphabetic.c: Likewise.
22517         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22518         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22519         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22520         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22521         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22522         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22523         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22524         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22525         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22526         * tests/unictype/test-pr_cased.c: Likewise.
22527         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22528         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22529         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22530         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22531         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22532         * tests/unictype/test-pr_combining.c: Likewise.
22533         * tests/unictype/test-pr_composite.c: Likewise.
22534         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22535         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22536         * tests/unictype/test-pr_deprecated.c: Likewise.
22537         * tests/unictype/test-pr_format_control.c: Likewise.
22538         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22539         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22540         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22541         * tests/unictype/test-pr_id_continue.c: Likewise.
22542         * tests/unictype/test-pr_id_start.c: Likewise.
22543         * tests/unictype/test-pr_ideographic.c: Likewise.
22544         * tests/unictype/test-pr_lowercase.c: Likewise.
22545         * tests/unictype/test-pr_math.c: Likewise.
22546         * tests/unictype/test-pr_numeric.c: Likewise.
22547         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22548         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22549         * tests/unictype/test-pr_other_math.c: Likewise.
22550         * tests/unictype/test-pr_punctuation.c: Likewise.
22551         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22552         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22553         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22554         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22555         * tests/unictype/test-pr_uppercase.c: Likewise.
22556         * tests/unictype/test-pr_xid_continue.c: Likewise.
22557         * tests/unictype/test-pr_xid_start.c: Likewise.
22558         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22559         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22560         changes.
22561         * lib/unictype/categ_Cc.h: Likewise.
22562         * lib/unictype/categ_Cf.h: Likewise.
22563         * lib/unictype/categ_Co.h: Likewise.
22564         * lib/unictype/categ_Cs.h: Likewise.
22565         * lib/unictype/categ_Lt.h: Likewise.
22566         * lib/unictype/categ_Nl.h: Likewise.
22567         * lib/unictype/categ_Pc.h: Likewise.
22568         * lib/unictype/categ_Pd.h: Likewise.
22569         * lib/unictype/categ_Pe.h: Likewise.
22570         * lib/unictype/categ_Pf.h: Likewise.
22571         * lib/unictype/categ_Pi.h: Likewise.
22572         * lib/unictype/categ_Ps.h: Likewise.
22573         * lib/unictype/categ_Z.h: Likewise.
22574         * lib/unictype/categ_Zl.h: Likewise.
22575         * lib/unictype/categ_Zp.h: Likewise.
22576         * lib/unictype/categ_Zs.h: Likewise.
22577         * lib/unictype/ctype_blank.h: Likewise.
22578         * lib/unictype/ctype_cntrl.h: Likewise.
22579         * lib/unictype/ctype_digit.h: Likewise.
22580         * lib/unictype/ctype_space.h: Likewise.
22581         * lib/unictype/ctype_xdigit.h: Likewise.
22582         * lib/unictype/mirror.h: Likewise.
22583         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22584         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22585         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22586         * lib/unictype/pr_bidi_control.h: Likewise.
22587         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22588         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22589         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22590         * lib/unictype/pr_bidi_pdf.h: Likewise.
22591         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22592         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22593         * lib/unictype/pr_dash.h: Likewise.
22594         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22595         * lib/unictype/pr_diacritic.h: Likewise.
22596         * lib/unictype/pr_extender.h: Likewise.
22597         * lib/unictype/pr_hex_digit.h: Likewise.
22598         * lib/unictype/pr_hyphen.h: Likewise.
22599         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22600         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22601         * lib/unictype/pr_ignorable_control.h: Likewise.
22602         * lib/unictype/pr_iso_control.h: Likewise.
22603         * lib/unictype/pr_join_control.h: Likewise.
22604         * lib/unictype/pr_left_of_pair.h: Likewise.
22605         * lib/unictype/pr_line_separator.h: Likewise.
22606         * lib/unictype/pr_logical_order_exception.h: Likewise.
22607         * lib/unictype/pr_non_break.h: Likewise.
22608         * lib/unictype/pr_not_a_character.h: Likewise.
22609         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22610         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22611         * lib/unictype/pr_other_id_start.h: Likewise.
22612         * lib/unictype/pr_other_lowercase.h: Likewise.
22613         * lib/unictype/pr_other_uppercase.h: Likewise.
22614         * lib/unictype/pr_paired_punctuation.h: Likewise.
22615         * lib/unictype/pr_paragraph_separator.h: Likewise.
22616         * lib/unictype/pr_pattern_syntax.h: Likewise.
22617         * lib/unictype/pr_pattern_white_space.h: Likewise.
22618         * lib/unictype/pr_private_use.h: Likewise.
22619         * lib/unictype/pr_quotation_mark.h: Likewise.
22620         * lib/unictype/pr_radical.h: Likewise.
22621         * lib/unictype/pr_soft_dotted.h: Likewise.
22622         * lib/unictype/pr_space.h: Likewise.
22623         * lib/unictype/pr_titlecase.h: Likewise.
22624         * lib/unictype/pr_variation_selector.h: Likewise.
22625         * lib/unictype/pr_white_space.h: Likewise.
22626         * lib/unictype/pr_zero_width.h: Likewise.
22627         * lib/unictype/sy_c_ident.h: Likewise.
22628         * lib/unictype/sy_c_whitespace.h: Likewise.
22629         * lib/unictype/sy_java_whitespace.h: Likewise.
22630         * lib/uninorm/composition-table.gperf: Likewise.
22631         * lib/uninorm/decomposition-table1.h: Likewise.
22632         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22633         LB8.
22634         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22635         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22636         * modules/unictype/*: Bump version number of expected libunistring
22637         version.
22638
22639 2011-01-09  Bruno Haible  <bruno@clisp.org>
22640
22641         Update to Unicode 5.2.0.
22642         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22643         trailing whitespace removed.
22644
22645 2011-01-09  Bruno Haible  <bruno@clisp.org>
22646
22647         New Unicode character properties, from Unicode 5.2.0.
22648         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22649         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22650         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22651         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22652         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22653         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22654         uc_is_property_cased, uc_is_property_case_ignorable,
22655         uc_is_property_changes_when_lowercased,
22656         uc_is_property_changes_when_uppercased,
22657         uc_is_property_changes_when_titlecased,
22658         uc_is_property_changes_when_casefolded,
22659         uc_is_property_changes_when_casemapped): New declarations.
22660         * lib/unictype/pr_byname.gperf: Add the new properties.
22661         * modules/unictype/property-byname (Depends-on): Depend on the new
22662         properties modules.
22663         * modules/unictype/property-all (Depends-on): Likewise.
22664         * MODULES.html.sh (Unicode string functions): Add
22665         unictype/property-case-ignorable, unictype/property-cased,
22666         unictype/property-changes-when-casefolded,
22667         unictype/property-changes-when-casemapped,
22668         unictype/property-changes-when-lowercased,
22669         unictype/property-changes-when-titlecased,
22670         unictype/property-changes-when-uppercased.
22671
22672         New module 'unictype/property-changes-when-casemapped'.
22673         * modules/unictype/property-changes-when-casemapped: New file.
22674         * lib/unictype/pr_changes_when_casemapped.c: New file.
22675         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22676         generated by gen-uni-tables.
22677         * modules/unictype/property-changes-when-casemapped-tests: New file.
22678         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22679         automatically generated by gen-uni-tables.
22680
22681         New module 'unictype/property-changes-when-casefolded'.
22682         * modules/unictype/property-changes-when-casefolded: New file.
22683         * lib/unictype/pr_changes_when_casefolded.c: New file.
22684         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22685         generated by gen-uni-tables.
22686         * modules/unictype/property-changes-when-casefolded-tests: New file.
22687         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22688         automatically generated by gen-uni-tables.
22689
22690         New module 'unictype/property-changes-when-titlecased'.
22691         * modules/unictype/property-changes-when-titlecased: New file.
22692         * lib/unictype/pr_changes_when_titlecased.c: New file.
22693         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22694         generated by gen-uni-tables.
22695         * modules/unictype/property-changes-when-titlecased-tests: New file.
22696         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22697         automatically generated by gen-uni-tables.
22698
22699         New module 'unictype/property-changes-when-uppercased'.
22700         * modules/unictype/property-changes-when-uppercased: New file.
22701         * lib/unictype/pr_changes_when_uppercased.c: New file.
22702         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22703         generated by gen-uni-tables.
22704         * modules/unictype/property-changes-when-uppercased-tests: New file.
22705         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22706         automatically generated by gen-uni-tables.
22707
22708         New module 'unictype/property-changes-when-lowercased'.
22709         * modules/unictype/property-changes-when-lowercased: New file.
22710         * lib/unictype/pr_changes_when_lowercased.c: New file.
22711         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22712         generated by gen-uni-tables.
22713         * modules/unictype/property-changes-when-lowercased-tests: New file.
22714         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22715         automatically generated by gen-uni-tables.
22716
22717         New module 'unictype/property-case-ignorable'.
22718         * modules/unictype/property-case-ignorable: New file.
22719         * lib/unictype/pr_case_ignorable.c: New file.
22720         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22721         by gen-uni-tables.
22722         * modules/unictype/property-case-ignorable-tests: New file.
22723         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22724         generated by gen-uni-tables.
22725
22726         New module 'unictype/property-cased'.
22727         * modules/unictype/property-cased: New file.
22728         * lib/unictype/pr_cased.c: New file.
22729         * lib/unictype/pr_cased.h: New file, automatically generated by
22730         gen-uni-tables.
22731         * modules/unictype/property-cased-tests: New file.
22732         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22733         gen-uni-tables.
22734
22735 2011-01-09  Bruno Haible  <bruno@clisp.org>
22736
22737         Update to Unicode 5.2.0.
22738         * lib/gen-uni-tables.c (output_predicate, output_category,
22739         output_combclass, output_bidi_category, output_decimal_digit_test,
22740         output_decimal_digit, output_digit_test, output_digit,
22741         output_numeric_test, output_numeric, output_mirror, output_scripts,
22742         output_scripts_byname, output_blocks, output_ident_category): Fix
22743         comment header.
22744         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22745         get_wbp.
22746         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22747         items.
22748         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22749         Changes_When_Lowercased, Changes_When_Uppercased,
22750         Changes_When_Titlecased, Changes_When_Casefolded,
22751         Changes_When_Casemapped.
22752         (is_property_alphabetic, is_property_default_ignorable_code_point):
22753         Update for Unicode 5.2.0.
22754         (is_property_cased, is_property_case_ignorable,
22755         is_property_changes_when_lowercased,
22756         is_property_changes_when_uppercased,
22757         is_property_changes_when_titlecased,
22758         is_property_changes_when_casefolded,
22759         is_property_changes_when_casemapped): New functions.
22760         (output_properties): Output also the properties cased, case_ignorable,
22761         changes_when_lowercased, changes_when_uppercased,
22762         changes_when_titlecased, changes_when_casefolded,
22763         changes_when_casemapped.
22764         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22765         Unicode TR#11 revision 17 -> 19.
22766         (LBP_CP): New enumeration value.
22767         (LBP_*): Adjust values accordingly.
22768         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22769         TR#14 revision 22 -> 24.
22770         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22771         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22772         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22773         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22774         is_WBP_MIDLETTER.
22775         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22776         the code1 and code2 of each composition rule.
22777         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22778         * lib/unicase/ignorable.h: Likewise.
22779         * lib/unicase/tocasefold.h: Likewise.
22780         * lib/unicase/tolower.h: Likewise.
22781         * lib/unicase/totitle.h: Likewise.
22782         * lib/unicase/toupper.h: Likewise.
22783         * lib/unictype/bidi_of.h: Likewise.
22784         * lib/unictype/blocks.h: Likewise.
22785         * lib/unictype/categ_C.h: Likewise.
22786         * lib/unictype/categ_Cf.h: Likewise.
22787         * lib/unictype/categ_Cn.h: Likewise.
22788         * lib/unictype/categ_L.h: Likewise.
22789         * lib/unictype/categ_Ll.h: Likewise.
22790         * lib/unictype/categ_Lm.h: Likewise.
22791         * lib/unictype/categ_Lo.h: Likewise.
22792         * lib/unictype/categ_Lu.h: Likewise.
22793         * lib/unictype/categ_M.h: Likewise.
22794         * lib/unictype/categ_Mc.h: Likewise.
22795         * lib/unictype/categ_Mn.h: Likewise.
22796         * lib/unictype/categ_N.h: Likewise.
22797         * lib/unictype/categ_Nd.h: Likewise.
22798         * lib/unictype/categ_Nl.h: Likewise.
22799         * lib/unictype/categ_No.h: Likewise.
22800         * lib/unictype/categ_P.h: Likewise.
22801         * lib/unictype/categ_Pd.h: Likewise.
22802         * lib/unictype/categ_Po.h: Likewise.
22803         * lib/unictype/categ_S.h: Likewise.
22804         * lib/unictype/categ_Sc.h: Likewise.
22805         * lib/unictype/categ_So.h: Likewise.
22806         * lib/unictype/categ_of.h: Likewise.
22807         * lib/unictype/combining.h: Likewise.
22808         * lib/unictype/ctype_alnum.h: Likewise.
22809         * lib/unictype/ctype_alpha.h: Likewise.
22810         * lib/unictype/ctype_graph.h: Likewise.
22811         * lib/unictype/ctype_lower.h: Likewise.
22812         * lib/unictype/ctype_print.h: Likewise.
22813         * lib/unictype/ctype_punct.h: Likewise.
22814         * lib/unictype/ctype_upper.h: Likewise.
22815         * lib/unictype/decdigit.h: Likewise.
22816         * lib/unictype/digit.h: Likewise.
22817         * lib/unictype/numeric.h: Likewise.
22818         * lib/unictype/pr_alphabetic.h: Likewise.
22819         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22820         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22821         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22822         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22823         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22824         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22825         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22826         * lib/unictype/pr_combining.h: Likewise.
22827         * lib/unictype/pr_composite.h: Likewise.
22828         * lib/unictype/pr_currency_symbol.h: Likewise.
22829         * lib/unictype/pr_dash.h: Likewise.
22830         * lib/unictype/pr_decimal_digit.h: Likewise.
22831         * lib/unictype/pr_deprecated.h: Likewise.
22832         * lib/unictype/pr_diacritic.h: Likewise.
22833         * lib/unictype/pr_extender.h: Likewise.
22834         * lib/unictype/pr_grapheme_base.h: Likewise.
22835         * lib/unictype/pr_grapheme_extend.h: Likewise.
22836         * lib/unictype/pr_grapheme_link.h: Likewise.
22837         * lib/unictype/pr_id_continue.h: Likewise.
22838         * lib/unictype/pr_id_start.h: Likewise.
22839         * lib/unictype/pr_ideographic.h: Likewise.
22840         * lib/unictype/pr_ignorable_control.h: Likewise.
22841         * lib/unictype/pr_logical_order_exception.h: Likewise.
22842         * lib/unictype/pr_lowercase.h: Likewise.
22843         * lib/unictype/pr_numeric.h: Likewise.
22844         * lib/unictype/pr_other_alphabetic.h: Likewise.
22845         * lib/unictype/pr_punctuation.h: Likewise.
22846         * lib/unictype/pr_sentence_terminal.h: Likewise.
22847         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22848         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22849         * lib/unictype/pr_unified_ideograph.h: Likewise.
22850         * lib/unictype/pr_uppercase.h: Likewise.
22851         * lib/unictype/pr_xid_continue.h: Likewise.
22852         * lib/unictype/pr_xid_start.h: Likewise.
22853         * lib/unictype/pr_zero_width.h: Likewise.
22854         * lib/unictype/scripts.h: Likewise.
22855         * lib/unictype/scripts_byname.gperf: Likewise.
22856         * lib/unictype/sy_java_ident.h: Likewise.
22857         * lib/unigbrk/gbrkprop.h: Likewise.
22858         * lib/unilbrk/lbrkprop1.h: Likewise.
22859         * lib/unilbrk/lbrkprop2.h: Likewise.
22860         * lib/unilbrk/lbrktables.h: Likewise.
22861         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22862         LBP_CP. Implement rule LB30.
22863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22864         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22865         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22866         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22867         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22868         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22869         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22870         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22871         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22872         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22873         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22874         bits instead of 16 bits in the code1 and code2 of each composition
22875         rule.
22876         (uc_composition): Update for Unicode 5.2.0.
22877         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22878         * lib/uninorm/decomposition-table2.h: Likewise.
22879         * lib/uniwbrk/wbrkprop.h: Likewise.
22880         * tests/unicase/test-cased.c: Likewise.
22881         * tests/unicase/test-ignorable.c: Likewise.
22882         * tests/unicase/test-uc_tolower.c: Likewise.
22883         * tests/unicase/test-uc_totitle.c: Likewise.
22884         * tests/unicase/test-uc_toupper.c: Likewise.
22885         * tests/unictype/test-categ_C.c: Likewise.
22886         * tests/unictype/test-categ_Cf.c: Likewise.
22887         * tests/unictype/test-categ_Cn.c: Likewise.
22888         * tests/unictype/test-categ_L.c: Likewise.
22889         * tests/unictype/test-categ_Ll.c: Likewise.
22890         * tests/unictype/test-categ_Lm.c: Likewise.
22891         * tests/unictype/test-categ_Lo.c: Likewise.
22892         * tests/unictype/test-categ_Lu.c: Likewise.
22893         * tests/unictype/test-categ_M.c: Likewise.
22894         * tests/unictype/test-categ_Mc.c: Likewise.
22895         * tests/unictype/test-categ_Mn.c: Likewise.
22896         * tests/unictype/test-categ_N.c: Likewise.
22897         * tests/unictype/test-categ_Nd.c: Likewise.
22898         * tests/unictype/test-categ_Nl.c: Likewise.
22899         * tests/unictype/test-categ_No.c: Likewise.
22900         * tests/unictype/test-categ_P.c: Likewise.
22901         * tests/unictype/test-categ_Pd.c: Likewise.
22902         * tests/unictype/test-categ_Po.c: Likewise.
22903         * tests/unictype/test-categ_S.c: Likewise.
22904         * tests/unictype/test-categ_Sc.c: Likewise.
22905         * tests/unictype/test-categ_So.c: Likewise.
22906         * tests/unictype/test-ctype_alnum.c: Likewise.
22907         * tests/unictype/test-ctype_alpha.c: Likewise.
22908         * tests/unictype/test-ctype_graph.c: Likewise.
22909         * tests/unictype/test-ctype_lower.c: Likewise.
22910         * tests/unictype/test-ctype_print.c: Likewise.
22911         * tests/unictype/test-ctype_punct.c: Likewise.
22912         * tests/unictype/test-ctype_upper.c: Likewise.
22913         * tests/unictype/test-decdigit.h: Likewise.
22914         * tests/unictype/test-digit.h: Likewise.
22915         * tests/unictype/test-numeric.h: Likewise.
22916         * tests/unictype/test-pr_alphabetic.c: Likewise.
22917         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22918         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22919         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22920         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22921         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22922         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22923         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22924         * tests/unictype/test-pr_combining.c: Likewise.
22925         * tests/unictype/test-pr_composite.c: Likewise.
22926         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22927         * tests/unictype/test-pr_dash.c: Likewise.
22928         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22929         * tests/unictype/test-pr_deprecated.c: Likewise.
22930         * tests/unictype/test-pr_diacritic.c: Likewise.
22931         * tests/unictype/test-pr_extender.c: Likewise.
22932         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22933         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22934         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22935         * tests/unictype/test-pr_id_continue.c: Likewise.
22936         * tests/unictype/test-pr_id_start.c: Likewise.
22937         * tests/unictype/test-pr_ideographic.c: Likewise.
22938         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22939         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22940         * tests/unictype/test-pr_lowercase.c: Likewise.
22941         * tests/unictype/test-pr_numeric.c: Likewise.
22942         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22943         * tests/unictype/test-pr_punctuation.c: Likewise.
22944         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22945         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22946         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22947         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22948         * tests/unictype/test-pr_uppercase.c: Likewise.
22949         * tests/unictype/test-pr_xid_continue.c: Likewise.
22950         * tests/unictype/test-pr_xid_start.c: Likewise.
22951         * tests/unictype/test-pr_zero_width.c: Likewise.
22952         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22953         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22954         changed behaviour: line breaking is now disallowed between a letter
22955         or '=' and '('.
22956         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22957         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22958         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22959         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22960         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22961         lib/uniwidth/width.c.
22962         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22963         without comments, but with the original copyright notice.
22964         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22965         changes.
22966         * lib/unictype/categ_Cc.h: Likewise.
22967         * lib/unictype/categ_Co.h: Likewise.
22968         * lib/unictype/categ_Cs.h: Likewise.
22969         * lib/unictype/categ_Lt.h: Likewise.
22970         * lib/unictype/categ_Me.h: Likewise.
22971         * lib/unictype/categ_Pc.h: Likewise.
22972         * lib/unictype/categ_Pe.h: Likewise.
22973         * lib/unictype/categ_Pf.h: Likewise.
22974         * lib/unictype/categ_Pi.h: Likewise.
22975         * lib/unictype/categ_Ps.h: Likewise.
22976         * lib/unictype/categ_Sk.h: Likewise.
22977         * lib/unictype/categ_Sm.h: Likewise.
22978         * lib/unictype/categ_Z.h: Likewise.
22979         * lib/unictype/categ_Zl.h: Likewise.
22980         * lib/unictype/categ_Zp.h: Likewise.
22981         * lib/unictype/categ_Zs.h: Likewise.
22982         * lib/unictype/ctype_blank.h: Likewise.
22983         * lib/unictype/ctype_cntrl.h: Likewise.
22984         * lib/unictype/ctype_digit.h: Likewise.
22985         * lib/unictype/ctype_space.h: Likewise.
22986         * lib/unictype/ctype_xdigit.h: Likewise.
22987         * lib/unictype/mirror.h: Likewise.
22988         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22989         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22990         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22991         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22992         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22993         * lib/unictype/pr_bidi_control.h: Likewise.
22994         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22995         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22996         * lib/unictype/pr_bidi_pdf.h: Likewise.
22997         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22998         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22999         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23000         * lib/unictype/pr_format_control.h: Likewise.
23001         * lib/unictype/pr_hex_digit.h: Likewise.
23002         * lib/unictype/pr_hyphen.h: Likewise.
23003         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23004         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23005         * lib/unictype/pr_iso_control.h: Likewise.
23006         * lib/unictype/pr_join_control.h: Likewise.
23007         * lib/unictype/pr_left_of_pair.h: Likewise.
23008         * lib/unictype/pr_line_separator.h: Likewise.
23009         * lib/unictype/pr_math.h: Likewise.
23010         * lib/unictype/pr_non_break.h: Likewise.
23011         * lib/unictype/pr_not_a_character.h: Likewise.
23012         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23013         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23014         * lib/unictype/pr_other_id_continue.h: Likewise.
23015         * lib/unictype/pr_other_id_start.h: Likewise.
23016         * lib/unictype/pr_other_lowercase.h: Likewise.
23017         * lib/unictype/pr_other_math.h: Likewise.
23018         * lib/unictype/pr_other_uppercase.h: Likewise.
23019         * lib/unictype/pr_paired_punctuation.h: Likewise.
23020         * lib/unictype/pr_paragraph_separator.h: Likewise.
23021         * lib/unictype/pr_pattern_syntax.h: Likewise.
23022         * lib/unictype/pr_pattern_white_space.h: Likewise.
23023         * lib/unictype/pr_private_use.h: Likewise.
23024         * lib/unictype/pr_quotation_mark.h: Likewise.
23025         * lib/unictype/pr_radical.h: Likewise.
23026         * lib/unictype/pr_soft_dotted.h: Likewise.
23027         * lib/unictype/pr_space.h: Likewise.
23028         * lib/unictype/pr_titlecase.h: Likewise.
23029         * lib/unictype/pr_variation_selector.h: Likewise.
23030         * lib/unictype/pr_white_space.h: Likewise.
23031         * lib/unictype/sy_c_ident.h: Likewise.
23032         * lib/unictype/sy_c_whitespace.h: Likewise.
23033         * lib/unictype/sy_java_whitespace.h: Likewise.
23034         * modules/uni*/*: Bump version number of expected libunistring version.
23035         Reported by Simon Josefsson.
23036
23037 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23038
23039         useless-if-before-free: fix typo in --help and make the internal,
23040         automatic version date update process work once again.
23041         --help output contained a NUL character instead of the
23042         backslash-zero that was intended.  Also, the "must lie within
23043         the first 8 lines" line is on line 9, and hence not getting
23044         automatically updated.
23045         * build-aux/useless-if-before-free: Fix the former by adding a
23046         backslash, and the latter by condensing the three lines of what-it-does
23047         to a single line, leaving one line of slack for the future.
23048
23049 2011-01-09  Bruno Haible  <bruno@clisp.org>
23050
23051         uniwidth/width: Fix width of U+1D173..U+1D17A.
23052         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23053         symbolic_width, output_width_property_test): New functions.
23054         (main): Invoke output_nonspacing_property, output_width_property_test.
23055         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23056         U+1D173..U+1D17A.
23057         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23058         1.
23059         * modules/uniwidth/*: Bump version number of expected libunistring
23060         version.
23061         * modules/unilbrk/*: Likewise.
23062
23063 2011-01-08  Bruno Haible  <bruno@clisp.org>
23064
23065         uninorm tests: Preserve copyright of Unicode data file.
23066         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23067         Mention modifications.
23068
23069 2011-01-08  Bruno Haible  <bruno@clisp.org>
23070
23071         gen-uni-tables: Prepare for Unicode 5.2.0.
23072         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23073         (debug_output_lbp, output_lbp): Update.
23074
23075 2011-01-08  Bruno Haible  <bruno@clisp.org>
23076
23077         unilbrk: Clarify gen-uni-tables.c code.
23078         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23079         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23080         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23081
23082 2011-01-07  Bruno Haible  <bruno@clisp.org>
23083
23084         strtod: Restore errno when successfully parsing Infinity or NaN.
23085         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23086         restore the original errno.
23087
23088 2011-01-07  Bruno Haible  <bruno@clisp.org>
23089
23090         remove test: Avoid failure on HP-UX 11.
23091         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23092
23093 2011-01-07  Bruno Haible  <bruno@clisp.org>
23094
23095         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23096         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23097         error code.
23098
23099 2011-01-07  Pádraig Brady <P@draigBrady.com>
23100
23101         ignore-value: fixup comments, and add Eric Blake
23102         as an author since he rewrote the macros.
23103         * lib/ignore-value.h (ignore_value):  State that
23104         we now support aggregates.  Also specify exactly
23105         when the GCC warn_unused_result feature was added.
23106
23107 2011-01-06  Eric Blake  <eblake@redhat.com>
23108
23109         ignore-value: support aggregate types
23110         * lib/ignore-value.h (ignore_value): Provide separate gcc
23111         definition.
23112         * modules/ignore-value-tests: New test module.
23113         * tests/test-ignore-value.c: New test.
23114
23115         maint.mk: improve sc_prohibit_strcmp regex
23116         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23117         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23118         definition of STRNEQ.
23119
23120         signal: work around Haiku issue with SIGBUS
23121         * lib/siglist.h: Add comment.
23122         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23123         strsignal's favoring of SIGSEGV.
23124         * tests/test-signal.c (main): Avoid test failure.
23125         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23126         Reported by Scott McCreary.
23127
23128         maint.mk: add pre-release check to ensure submodule commits are public
23129         * top/maint.mk (public-submodule-commit): New rule.
23130         (submodule-checks): New variable.
23131         (alpha beta stable): Depend on the variable.
23132
23133 2011-01-05  Pádraig Brady <P@draigBrady.com>
23134         and Jim Meyering  <meyering@redhat.com>
23135
23136         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23137         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23138         (ATTRIBUTE_DEPRECATED): Define.
23139         (_ignore_case): New function.
23140         (ignore_value): New macro, to replace the old function.
23141         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23142         * modules/ignore-value (Depends-on): Add stdint.
23143
23144 2011-01-04  Eric Blake  <eblake@redhat.com>
23145
23146         doc: regenerate INSTALL
23147         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23148         @firstparagraphindent support, now that autoconf dropped it.
23149         (INSTALL_PRELUDE): Reinstate old macro.
23150         * doc/install.texi: Resync from autoconf.
23151         * doc/INSTALL: Reflect recent autoconf update.
23152         * doc/INSTALL.ISO: Likewise.
23153         * doc/INSTALL.UTF-8: Likewise.
23154         Reported by Karl Berry.
23155
23156 2011-01-04  Bruce Korb  <address@hidden>
23157
23158         git-version-gen: avoid a sub-shell
23159         * build-aux/git-version-gen: Redirect stderr in `...` via
23160         "exec 2>...", rather than via an added sub-shell.
23161
23162 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23163
23164         git-version-gen: use (...) rather than sh -c '...'
23165         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23166         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23167
23168 2011-01-03  Jim Meyering  <meyering@redhat.com>
23169
23170         git-version-gen: convert leading TABs to spaces
23171         * build-aux/git-version-gen: Expand leading TABs.
23172
23173         git-version-gen: handle failed "git rev-list"
23174         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23175         from git and proceeding as if it had succeeded but printed no SHA1
23176         checksums, suppress the diagnostic and handle the failure.
23177         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23178
23179         git-version-gen: include command name in one more diagnostic
23180         * build-aux/git-version-gen: When the required .tarball-version file
23181         was missing or unreadable, you might see the diagnostic from "cat",
23182         but no trace of the name of the invoking script.  Now, you still see
23183         the diagnostic from cat, but also get one from "git-version-gen: ".
23184         Inspired by a patch from Bruce Korb.
23185
23186         update-copyright: adjust test to match changed code
23187         * tests/test-update-copyright.sh: Change test's expected output
23188         to match new actual output.
23189
23190 2011-01-02  Bruno Haible  <bruno@clisp.org>
23191
23192         getlogin_r: Avoid test failure on HP-UX 11.
23193         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23194         ERANGE when the second argument is zero.
23195         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23196         portability problem.
23197
23198 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23199
23200         * build-aux/update-copyright: doc Simon's changes
23201
23202 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23203
23204         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23205         environment variable.
23206
23207 2011-01-02  Bruno Haible  <bruno@clisp.org>
23208
23209         unigbrk: Avoid gcc warnings.
23210         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23211         unused variable.
23212         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23213         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23214         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23215         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23216         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23217         Change type of first argument to 'const char *'.
23218         (main): Remove unused variable.
23219         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23220         type of first argument to 'const char *'.
23221         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23222         Likewise.
23223         (main): Change type of variable 's'.
23224         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23225         to 'int'.
23226
23227 2011-01-02  Bruno Haible  <bruno@clisp.org>
23228
23229         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23230         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23231         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23232         bug.
23233         * lib/pwrite.c: Undo 2010-12-31 patch.
23234         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23235
23236 2011-01-02  Bruno Haible  <bruno@clisp.org>
23237
23238         pread: Fix test whether it works.
23239         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23240
23241 2011-01-02  Bruno Haible  <bruno@clisp.org>
23242
23243         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23244         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23245         ends in "6". Don't require a specific month name. Try also the locale
23246         names found on HP-UX 11 and Solaris 7.
23247
23248 2011-01-02  Bruno Haible  <bruno@clisp.org>
23249
23250         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23251         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23252         C linkage.
23253         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23254
23255 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23256
23257         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23258         for consistency, since the "cluster" term is not used elsewhere.
23259         * lib/unigbrk.in.h: Update name.
23260         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23261         * lib/unigbrk/u16-grapheme-next.c: Update name.
23262         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23263         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23264         * lib/unigbrk/u32-grapheme-next.c: Update name.
23265         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23266         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23267         * lib/unigbrk/u8-grapheme-next.c: Update name.
23268         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23269         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23270         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23271         Suggested by Bruno Haible.
23272
23273 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23274
23275         Remove module 'u8-grapheme-len' as too redundant with
23276         'u8-grapheme-next'.
23277         * modules/unigbrk/u8-grapheme-len: Delete file.
23278         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23279         * lib/unigbrk.in.h: Remove prototype for deleted function.
23280         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23281         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23282
23283         Remove module 'u16-grapheme-len' as too redundant with
23284         'u16-grapheme-next'.
23285         * modules/unigbrk/u16-grapheme-len: Delete file.
23286         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23287         * lib/unigbrk.in.h: Remove prototype for deleted function.
23288         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23289         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23290
23291         Remove module 'u32-grapheme-len' as too redundant with
23292         'u32-grapheme-next'.
23293         * modules/unigbrk/u32-grapheme-len: Delete file.
23294         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23295         * lib/unigbrk.in.h: Remove prototype for deleted function.
23296         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23297         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23298
23299         Suggested by Bruno Haible.
23300
23301 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23302
23303         * unigbrk.in.h: Fix typo: "ben" => "been".
23304         Reported by Bruno Haible.
23305
23306 2011-01-01  Jim Meyering  <meyering@redhat.com>
23307
23308         maint: update almost all copyright ranges to include 2011
23309         Run the new "make update-copyright" rule.
23310
23311 2011-01-01  Jim Meyering  <meyering@redhat.com>
23312
23313         maint: update-copyright: exempt doc/INSTALL*
23314         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23315         since they are generated.  Suggested by Bruno Haible.
23316
23317 2011-01-01  Jim Meyering  <meyering@redhat.com>
23318
23319         maint: refine the update-copyright rule
23320         * Makefile (update-copyright): Also exclude any file that includes
23321         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23322         code that merely generates the comment.
23323
23324 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23325
23326         New module 'u8-grapheme-len'.
23327         * modules/unigbrk/u8-grapheme-len: New file.
23328         * modules/unigbrk/u8-grapheme-len-tests: New file.
23329         * lib/unigbrk.in.h: Add prototype for new function.
23330         * lib/unigbrk/u8-grapheme-len.c: New file.
23331         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23332
23333         New module 'u16-grapheme-len'.
23334         * modules/unigbrk/u16-grapheme-len: New file.
23335         * modules/unigbrk/u16-grapheme-len-tests: New file.
23336         * lib/unigbrk.in.h: Add prototype for new function.
23337         * lib/unigbrk/u16-grapheme-len.c: New file.
23338         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23339
23340         New module 'u32-grapheme-len'.
23341         * modules/unigbrk/u32-grapheme-len: New file.
23342         * modules/unigbrk/u32-grapheme-len-tests: New file.
23343         * lib/unigbrk.in.h: Add prototype for new function.
23344         * lib/unigbrk/u32-grapheme-len.c: New file.
23345         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23346
23347         New module 'u8-grapheme-next'.
23348         * modules/unigbrk/u8-grapheme-next: New file.
23349         * modules/unigbrk/u8-grapheme-next-tests: New file.
23350         * lib/unigbrk.in.h: Add prototype for new function.
23351         * lib/unigbrk/u8-grapheme-next.c: New file.
23352         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23353
23354         New module 'u16-grapheme-next'.
23355         * modules/unigbrk/u16-grapheme-next: New file.
23356         * modules/unigbrk/u16-grapheme-next-tests: New file.
23357         * lib/unigbrk.in.h: Add prototype for new function.
23358         * lib/unigbrk/u16-grapheme-next.c: New file.
23359         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23360
23361         New module 'u32-grapheme-next'.
23362         * modules/unigbrk/u32-grapheme-next: New file.
23363         * modules/unigbrk/u32-grapheme-next-tests: New file.
23364         * lib/unigbrk.in.h: Add prototype for new function.
23365         * lib/unigbrk/u32-grapheme-next.c: New file.
23366         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23367
23368         New module 'u8-grapheme-prev'.
23369         * modules/unigbrk/u8-grapheme-prev: New file.
23370         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23371         * lib/unigbrk.in.h: Add prototype for new function.
23372         * lib/unigbrk/u8-grapheme-prev.c: New file.
23373         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23374
23375         New module 'u16-grapheme-prev'.
23376         * modules/unigbrk/u16-grapheme-prev: New file.
23377         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23378         * lib/unigbrk.in.h: Add prototype for new function.
23379         * lib/unigbrk/u16-grapheme-prev.c: New file.
23380         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23381
23382         New module 'u32-grapheme-prev'.
23383         * modules/unigbrk/u32-grapheme-prev: New file.
23384         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23385         * lib/unigbrk.in.h: Add prototype for new function.
23386         * lib/unigbrk/u32-grapheme-prev.c: New file.
23387         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23388
23389         New module 'u8-grapheme-breaks'.
23390         * modules/unigbrk/u8-grapheme-breaks: New file.
23391         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23392         * lib/unigbrk.in.h: Add prototype for new function.
23393         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23394         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23395
23396         New module 'u16-grapheme-breaks'.
23397         * modules/unigbrk/u16-grapheme-breaks: New file.
23398         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23399         * lib/unigbrk.in.h: Add prototype for new function.
23400         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23401         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23402
23403         New module 'u32-grapheme-breaks'.
23404         * modules/unigbrk/u32-grapheme-breaks: New file.
23405         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23406         * lib/unigbrk.in.h: Add prototype for new function.
23407         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23408         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23409
23410         New module 'ulc-grapheme-breaks'.
23411         * modules/unigbrk/ulc-grapheme-breaks: New file.
23412         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23413         * m4/locale-ar.m4: New file.
23414         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23415         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23416         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23417
23418 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23419
23420         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23421         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23422         modified how this file was generated before I initially submitted
23423         the module, but failed to regenerate it.  This meant that several
23424         of the level2 entries were wrong.
23425         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23426         Remove the division-by-2 that is folded into the table now that
23427         gbrkprop.h has been regenerated properly.  Now -1 entries are
23428         handled correctly.
23429
23430         New module 'unigbrk/uc-gbrk-prop-tests'.
23431         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23432         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23433         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23434         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23435
23436 2011-01-01  Bruno Haible  <bruno@clisp.org>
23437
23438         Avoid use of hexadecimal escapes.
23439         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23440         instead of hexadecimal escapes.
23441
23442 2011-01-01  Jim Meyering  <meyering@redhat.com>
23443
23444         maint: new rule to update copyright year ranges
23445         * Makefile (update-copyright): New rule.
23446
23447         maint: indent with TABs in Makefile
23448         * Makefile: Expand leading sequences of spaces to TABs
23449
23450         version-etc: update the copyright year it reports
23451         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23452
23453 2010-12-31  Bruno Haible  <bruno@clisp.org>
23454
23455         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23456         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23457         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23458         zero.
23459
23460 2010-12-31  Bruno Haible  <bruno@clisp.org>
23461
23462         pwrite: Work around HP-UX 11.11 bug.
23463         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23464         works and set REPLACE_PWRITE if not.
23465         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23466         function.
23467         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23468
23469 2010-12-31  Bruno Haible  <bruno@clisp.org>
23470
23471         pread: Work around HP-UX 11 bugs.
23472         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23473         and set REPLACE_PREAD if not.
23474         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23475
23476 2010-12-31  Eric Blake  <eblake@redhat.com>
23477
23478         nl_langinfo: fix YESEXPR on Irix 6.5
23479         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23480         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23481         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23482         it.
23483
23484 2010-12-31  Bruno Haible  <bruno@clisp.org>
23485
23486         iconv: Document HP-UX 11 bug.
23487         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23488
23489 2010-12-31  Bruno Haible  <bruno@clisp.org>
23490
23491         ldexpl: Fix link error on HP-UX 11.
23492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23493         LDEXPL_LIBM, using $ISNANL_LIBM.
23494
23495 2010-12-31  Eric Blake  <eblake@redhat.com>
23496
23497         ftello: avoid compilation failure with SunStudio c89
23498         * lib/ftello.c (ftello): Use lseek, not llseek.
23499
23500         tests: avoid failing coreutils tests on cygwin
23501         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23502         (create_exe_shims_): Return 0 when skipping.
23503
23504 2010-12-31  Bruno Haible  <bruno@clisp.org>
23505
23506         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23507         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23508
23509 2010-12-31  Bruno Haible  <bruno@clisp.org>
23510
23511         waitpid: Fix link error in C++ mode.
23512         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23513
23514 2010-12-31  Bruno Haible  <bruno@clisp.org>
23515
23516         isnan: Use GCC built-ins when possible.
23517         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23518         __builtin_isnan.
23519         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23520         (isnan): Define using GCC built-ins for GCC >= 4.0.
23521
23522 2010-12-31  Bruno Haible  <bruno@clisp.org>
23523
23524         isnand: Fix mistake.
23525         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23526         __builtin_isnand.
23527
23528 2010-12-31  Bruno Haible  <bruno@clisp.org>
23529
23530         open: Avoid C++ error on HP-UX 11.
23531         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23532
23533 2010-12-31  Bruno Haible  <bruno@clisp.org>
23534
23535         time_r: Add missing declarations on HP-UX 11.
23536         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23537         instead of HAVE_LOCALTIME_R.
23538         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23539         HAVE_LOCALTIME_R always.
23540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23541         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23542         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23543         HAVE_LOCALTIME_R.
23544         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23545         * doc/posix-functions/localtime_r.texi: Likewise.
23546
23547 2010-12-29  Eric Blake  <eblake@redhat.com>
23548
23549         mountlist: tweak previous commit
23550         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23551         Reported by Paul Eggert.
23552
23553         mountlist: fix local drive detection on cygwin
23554         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23555         that works for cygwin.
23556
23557 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         ftoastr, snprintf: ftoastr + snprintf module
23560         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23561         since the snprintf module now should be good enough here.
23562         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23563         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23564         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23565         GNULIB_SNPRINTF only for the test directory, and the latter
23566         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23567         seems to suffice by itself.
23568
23569 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23570
23571         alloca: one step towards thread-safety
23572         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23573         need for a static variable.  All callers changed.  This does not
23574         make the alloca replacement thread-safe, but it's one step.
23575
23576         tests: minor indenting change
23577         * tests/init.sh: Sync from coreutils housekeeping patch
23578         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23579         to keep lines within 80 columns.
23580
23581 2010-12-28  Jim Meyering  <meyering@redhat.com>
23582
23583         regex: don't infloop on persistent failing calloc
23584         * lib/regexec.c (build_trtable): Return failure indication upon
23585         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23586         In glibc, this was fixed for version 2.13:
23587         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23588
23589 2010-12-28  Bruno Haible  <bruno@clisp.org>
23590             Paul Eggert <eggert@cs.ucla.edu>
23591
23592         linkat: Make implementation robust against system behaviour variations.
23593         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23594         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23595         way, and to -2 if it needs a generic runtime test.
23596         * lib/linkat.c (solaris_optimized_link_immediate,
23597         solaris_optimized_link_follow): New functions.
23598         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23599         (check_same_link): Use it.
23600
23601 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23602
23603         New module 'unigbrk/base'.
23604         * modules/unigbrk/base: New file.
23605         * lib/unigbrk.in.h: New file.
23606
23607         New module 'unigbrk/uc-gbrk-prop'.
23608         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23609         * modules/unigbrk/uc-gbrk-prop: New file.
23610         * lib/unigbrk/gbrkprop.h: New file.
23611         * lib/unigbrk/uc-gbrk-prop.c: New file.
23612
23613         New module 'unigbrk/uc-is-grapheme-break'.
23614         * modules/unigbrk/uc-is-grapheme-break: New file.
23615         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23616         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23617         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23618         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23619         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23620
23621         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23622
23623 2010-12-27  Bruno Haible  <bruno@clisp.org>
23624
23625         linkat test: Avoid failure on Solaris 11 2010-11.
23626         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23627
23628 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23629
23630         utimens: work around glibc rounding bug on more platforms
23631         * lib/utimens.c (fdutimens): Work around rounding bug even if
23632         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23634
23635 2010-12-27  Bruno Haible  <bruno@clisp.org>
23636
23637         select tests: Improve comments.
23638         * tests/test-select.c (do_select): Add comments.
23639
23640 2010-12-27  Bruno Haible  <bruno@clisp.org>
23641
23642         select tests: Safer way of handling timeout.
23643         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23644         at every invocation.
23645
23646 2010-12-27  Bruno Haible  <bruno@clisp.org>
23647
23648         select tests: Use 'bool' where appropriate.
23649         * tests/test-select.c (connect_to_socket): Change argument type to
23650         'bool'.
23651
23652 2010-12-27  Bruno Haible  <bruno@clisp.org>
23653
23654         select tests: Use existing modules.
23655         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23656         (configure.ac): Don't test for unistd.h.
23657         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23658         declared in <unistd.h>.
23659
23660 2010-12-27  Bruno Haible  <bruno@clisp.org>
23661
23662         mbrtowc: Work around a Solaris 7 bug.
23663         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23664         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23665         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23666         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23667         MBRTOWC_NULL_ARG1_BUG.
23668         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23669         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23670         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23671         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23672
23673 2010-12-27  Jim Meyering  <meyering@redhat.com>
23674
23675         read-file.c: tweak syntax
23676         * lib/read-file.c (fread_file): Remove space after "*" in function
23677         definitions.
23678
23679 2010-12-27  Bruno Haible  <bruno@clisp.org>
23680
23681         times test: Avoid gcc warnings on OSF/1.
23682         * tests/test-times.c (main): Cast printf arguments from clock_t to
23683         'long int'.
23684
23685 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23686
23687         utimens: work around glibc rounding bug on older Linux kernels
23688         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23689         on Linux with a glibc whose utimes might not work, then work
23690         around a longstanding glibc bug involving rounding rather than
23691         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23693
23694 2010-12-26  Bruno Haible  <bruno@clisp.org>
23695
23696         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23697         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23698         _GL_CXXALIAS_SYS.
23699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23700
23701 2010-12-26  Bruno Haible  <bruno@clisp.org>
23702
23703         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23704         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23705         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23706         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23707         looking for the declaration.
23708         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23709         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23710         problem.
23711         * doc/posix-functions/inet_pton.texi: Likewise.
23712
23713 2010-12-26  Bruno Haible  <bruno@clisp.org>
23714
23715         arpa_inet: Use the common idioms with C++ support.
23716         * lib/arpa_inet.in.h: Include c++defs.h.
23717         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23718         support.
23719         * modules/arpa_inet (Depends-on): Add c++defs.
23720         (Makefile.am): Substitute the contents of c++defs.h.
23721         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23722         * modules/arpa_inet-c++-tests: New file.
23723         * tests/test-arpa_inet-c++.cc: New file.
23724
23725 2010-12-25  Bruno Haible  <bruno@clisp.org>
23726
23727         Fix more C++ link errors on Solaris 8.
23728         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23729         $(LIB_EACCESS).
23730         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23731         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23732         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23733         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23734         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23735
23736 2010-12-25  Bruno Haible  <bruno@clisp.org>
23737
23738         printf-posix: Fix link error when a non-GCC compiler is used.
23739         * lib/stdio.in.h (printf): When not using GCC, override printf
23740         correctly.
23741         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23742
23743 2010-12-25  Bruno Haible  <bruno@clisp.org>
23744
23745         strerror_r-posix: Update doc.
23746         * doc/posix-functions/strerror_r.texi: Update doc about the return
23747         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23748
23749 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         utimens: simplify the logic of the previous change
23752         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23753         This should not affect whether the test succeeds or fails.
23754
23755         utimens: configure better on hosts with NFS clock skew
23756         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23757         uses the clock of the local host.  It might use the clock of the
23758         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23759         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23760
23761 2010-12-25  Bruno Haible  <bruno@clisp.org>
23762
23763         ptsname test: Avoid failure on Solaris.
23764         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23765         open a pseudo-terminal; don't use BSD-style ptys.
23766         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23767
23768 2010-12-25  Bruno Haible  <bruno@clisp.org>
23769
23770         ptsname: Avoid ERANGE failure on some systems.
23771         * lib/ptsname.c (buffer): Increase size.
23772
23773 2010-12-25  Bruno Haible  <bruno@clisp.org>
23774
23775         rename, renameat: Avoid test failures at NFS mounted locations.
23776         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23777         so that subsequent mkdir calls succeed.
23778
23779 2010-12-25  Bruno Haible  <bruno@clisp.org>
23780
23781         iswblank: Fix C++ link error on Solaris 8.
23782         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23783         _GL_FUNCDECL_SYS.
23784
23785 2010-12-25  Bruno Haible  <bruno@clisp.org>
23786
23787         unistd: Fix C++ link error on Solaris 8.
23788         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23789
23790 2010-12-25  Bruno Haible  <bruno@clisp.org>
23791
23792         readlink doc: Mention an old glibc bug.
23793         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23794
23795 2010-12-25  Bruno Haible  <bruno@clisp.org>
23796
23797         fcntl-h: Fix for use of C++ on glibc systems.
23798         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23799         also on glibc systems in C++ mode.
23800         Reported by Gary V. Vaughan <gary@gnu.org>.
23801
23802 2010-12-25  Bruno Haible  <bruno@clisp.org>
23803
23804         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23805         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23806
23807 2010-12-25  Bruno Haible  <bruno@clisp.org>
23808
23809         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23810         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23811         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23812         test whether truncl works according to ISO C 99 with IEC 60559.
23813         * m4/truncl-ieee.m4: New file.
23814         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23815         m4/signbit.m4.
23816         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23817
23818 2010-12-25  Bruno Haible  <bruno@clisp.org>
23819
23820         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23821         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23822         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23823         test whether ceill works according to ISO C 99 with IEC 60559.
23824         * m4/ceill-ieee.m4: New file.
23825         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23826         m4/signbit.m4.
23827         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23828
23829 2010-12-25  Bruno Haible  <bruno@clisp.org>
23830
23831         Ensure all prerequisites of <wchar.h> are included.
23832         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23833         before <wchar.h>.
23834         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23835         gl_MBRLEN_NUL_RETVAL): Likewise.
23836         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23837         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23838         AC_FUNC_MBRTOWC): Likewise.
23839         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23840         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23842         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23843         Likewise.
23844         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23845         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23846         (gl_WCHAR_H): Improve comments.
23847         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23848
23849 2010-12-25  Bruno Haible  <bruno@clisp.org>
23850
23851         strtok_r: Fix C syntax error in autoconf macro.
23852         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23853         characters in test program.
23854
23855 2010-12-24  Bruno Haible  <bruno@clisp.org>
23856
23857         ceil, trunc, round: Fix gcc warnings.
23858         * lib/ceil.c (MIN): Undefine before redefining.
23859         * lib/trunc.c (MIN): Likewise.
23860         * lib/round.c (MIN): Likewise.
23861         Include <math.h> first.
23862
23863 2010-12-24  Bruno Haible  <bruno@clisp.org>
23864
23865         select tests: Avoid failures on OSF/1 5.1.
23866         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23867         failure of closing the last socket; it may fail with ECONNRESET.
23868
23869 2010-12-24  Eric Blake  <eblake@redhat.com>
23870
23871         stdint: avoid HP-UX 10.20 preprocessor bug
23872         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23873         than #if.
23874         * tests/test-floor2.c (main): Likewise.
23875         Reported by Peter O'Gorman.
23876
23877         pipe: make obsoletion transition easier
23878         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23879         * modules/pipe (Files): Include revived file.
23880         (Include): Drop reference, to mirror getdate's behavior.
23881
23882 2010-12-24  Bruno Haible  <bruno@clisp.org>
23883
23884         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23885         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23886         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23887         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23888
23889 2010-12-24  Bruno Haible  <bruno@clisp.org>
23890
23891         gethostname: Ensure declaration on NonStop Kernel.
23892         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23893         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23894
23895 2010-12-24  Bruno Haible  <bruno@clisp.org>
23896
23897         sys_select: Ensure all necessary types on NonStop Kernel.
23898         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23899         include <sys/time.h>.
23900         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23901         NonStop Kernel.
23902         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23903
23904 2010-12-24  Bruno Haible  <bruno@clisp.org>
23905
23906         sys_select: Remove unneeded include.
23907         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23908         have <sys/select.h>.
23909
23910 2010-12-24  Bruno Haible  <bruno@clisp.org>
23911
23912         gethostname: Provide a fallback for HOST_NAME_MAX.
23913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23914         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23915         instead.
23916         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23917
23918 2010-12-24  Bruno Haible  <bruno@clisp.org>
23919
23920         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23921         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23922         (SA_RESTART): Likewise.
23923         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23924
23925 2010-12-24  Bruno Haible  <bruno@clisp.org>
23926
23927         signal: Define NSIG.
23928         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23929         * tests/test-signal.c (nsig): New variable.
23930         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23931
23932 2010-12-24  Bruno Haible  <bruno@clisp.org>
23933
23934         rename, renameat: Avoid test failures on OSF/1 5.1.
23935         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23936         alternative error codes.
23937         * tests/test-renameat.c (main): Likewise.
23938
23939 2010-12-24  Bruno Haible  <bruno@clisp.org>
23940
23941         *printf: Detect large precisions bug on Solaris 10/SPARC.
23942         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23943         by Paul Eggert.
23944         * tests/test-snprintf-posix.h (test_function): Add this test code here
23945         too.
23946         * tests/test-sprintf-posix.h (test_function): Likewise.
23947         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23948         * tests/test-vasprintf-posix.c (test_function): Likewise.
23949         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23950         around by gnulib.
23951         * doc/posix-functions/printf.texi: Likewise.
23952         * doc/posix-functions/snprintf.texi: Likewise.
23953         * doc/posix-functions/sprintf.texi: Likewise.
23954         * doc/posix-functions/vfprintf.texi: Likewise.
23955         * doc/posix-functions/vprintf.texi: Likewise.
23956         * doc/posix-functions/vsnprintf.texi: Likewise.
23957         * doc/posix-functions/vsprintf.texi: Likewise.
23958         * doc/posix-functions/dprintf.texi: Undo last commit.
23959         * doc/posix-functions/vdprintf.texi: Likewise.
23960
23961 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         tests: port test-fdutimensat.c to Solaris 8
23964         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23965         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23966         On Solaris 8, it fails with errno == ENOSYS, because there is no
23967         futimens (so it can't use the fd), and there is no lutimens (so it
23968         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23969
23970         vsnprintf: make more consistent with snprintf; doc fixes
23971
23972         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23973         the byte count return problem was promoted from the snprintf-posix
23974         to the snprintf module.
23975         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23976         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23977         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23978         * tests/test-snprintf.c (main): Check the byte count returned.
23979         * tests/test-vsnprintf.c (main): Likewise.
23980
23981 2010-12-23  Eric Blake  <eblake@redhat.com>
23982
23983         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23984         * modules/sigpipe (License): Relax license.
23985
23986 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23987
23988         doc: document Solaris printf bug with large float precisions
23989         * doc/posix-functions/dprintf.texi (dprintf):
23990         * doc/posix-functions/fprintf.texi (fprintf):
23991         * doc/posix-functions/printf.texi (printf):
23992         * doc/posix-functions/snprintf.texi (snprintf):
23993         * doc/posix-functions/sprintf.texi (sprintf):
23994         * doc/posix-functions/vdprintf.texi (vdprintf):
23995         * doc/posix-functions/vfprintf.texi (vfprintf):
23996         * doc/posix-functions/vprintf.texi (vprintf):
23997         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23998         * doc/posix-functions/vsprintf.texi (vsprintf):
23999         Mention that these functions mishandle large floating point
24000         precisions on Solaris 10.  The same bug is also present in Solaris
24001         8, and I assume earlier.  This causes "cd gnulib-tests; make
24002         check" to fail on Solaris 8 (and I assume, later) when building
24003         the latest coreutils, in test-vasprintf-posix's call to
24004         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24005         the wide flavors (e.g., wprintf) so this patch just updates the
24006         documentation for the narrow ones.
24007
24008         test-posixtm.c: add two tests
24009         * tests/test-posixtm.c: Add two tests, to highlight the
24010         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24011         around this bug; this is merely to document it.
24012
24013 2010-12-22  Bruno Haible  <bruno@clisp.org>
24014
24015         getlogin_r: Work around portability problem on OSF/1.
24016         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24017         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24018         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24019         test for a truncated result.
24020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24021         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24022         * modules/getlogin_r (Depends-on): Add memchr.
24023         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24024
24025 2010-12-22  Bruno Haible  <bruno@clisp.org>
24026
24027         ptsname: Avoid test failure on OSF/1 5.1.
24028         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24029         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24030         (same_slave): New function.
24031         (main): Use it to compare ptsname's result with the expected file name.
24032
24033 2010-12-22  Bruno Haible  <bruno@clisp.org>
24034
24035         Port extended stdio modules to HP NonStop Kernel.
24036         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24037         macros.
24038         * lib/fbufmode.c: Update comments.
24039         * lib/fflush.c: Likewise.
24040         * lib/fpurge.c: Likewise.
24041         * lib/freadable.c: Likewise.
24042         * lib/freadahead.c: Likewise.
24043         * lib/freading.c: Likewise.
24044         * lib/freadptr.c: Likewise.
24045         * lib/freadseek.c: Likewise.
24046         * lib/fseeko.c: Likewise.
24047         * lib/fseterr.c: Likewise.
24048         * lib/fwritable.c: Likewise.
24049         * lib/fwriting.c: Likewise.
24050         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24051
24052 2010-12-22  Bruno Haible  <bruno@clisp.org>
24053
24054         ttyname_r: Work around bug on OSF/1 5.1.
24055         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24056         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24057         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24058         present.
24059         * lib/ttyname_r.c (ttyname_r): Update comments.
24060
24061 2010-12-22  Bruno Haible  <bruno@clisp.org>
24062
24063         round: Implement result sign according to IEEE 754.
24064         * lib/round.c (MIN, MINUS_ZERO): New macros.
24065         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24066         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24067         * tests/test-round-ieee.c (main): Likewise.
24068         * tests/test-roundl-ieee.c (main): Likewise.
24069
24070         trunc: Implement result sign according to IEEE 754.
24071         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24072         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24073         * tests/test-trunc2.c: Include minus-zero.h.
24074         (MINUS_ZERO): New macro.
24075         (trunc_reference): Keep in sync with lib/trunc.c.
24076         * tests/test-truncf2.c: Include minus-zero.h.
24077         (MINUS_ZERO): New macro.
24078         (truncf_reference): Keep in sync with lib/trunc.c.
24079         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24080         * tests/test-trunc-ieee.c (main): Likewise.
24081         * tests/test-truncl-ieee.c (main): Likewise.
24082
24083         ceil: Implement result sign according to IEEE 754.
24084         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24085         (FUNC): Return -0.0 for -1 < x < 0.
24086         * tests/test-ceil2.c: Include minus-zero.h.
24087         (MINUS_ZERO): New macro.
24088         (ceil_reference): Keep in sync with lib/ceil.c.
24089         * tests/test-ceilf2.c: Include minus-zero.h.
24090         (MINUS_ZERO): New macro.
24091         (ceilf_reference): Keep in sync with lib/ceil.c.
24092         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24093         * tests/test-ceil-ieee.c (main): Likewise.
24094         * tests/test-ceill-ieee.c (main): Likewise.
24095
24096         floor: Implement result sign according to IEEE 754.
24097         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24098         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24099         * tests/test-floorf2.c (floorf_reference): Likewise.
24100         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24101         * tests/test-floor-ieee.c (main): Likewise.
24102         * tests/test-floorl-ieee.c (main): Likewise.
24103
24104 2010-12-22  Bruno Haible  <bruno@clisp.org>
24105
24106         getaddrinfo: Update doc.
24107         * doc/posix-functions/gai_strerror.texi: Return type is also different
24108         on AIX and HP-UX.
24109
24110 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24111
24112         getaddrinfo, inet_ntop: Update doc for Solaris.
24113         * doc/posix-functions/gai_strerror.texi: Return type is also an
24114         issue on Solaris 9 and earlier.
24115         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24116         on Solaris 10 and earlier.
24117
24118 2010-12-21  Bruno Haible  <bruno@clisp.org>
24119
24120         New module 'roundl-ieee'.
24121         * modules/roundl-ieee: New file.
24122         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24123         test whether roundl works according to ISO C 99 with IEC 60559.
24124         * m4/roundl-ieee.m4: New file.
24125         * modules/roundl-ieee-tests: New file.
24126         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24127         * tests/test-roundl.c (main): Remove signbit tests.
24128         * modules/roundl-tests (Depends-on): Remove signbit.
24129         * doc/posix-functions/roundl.texi: Mention the new module.
24130
24131 2010-12-21  Bruno Haible  <bruno@clisp.org>
24132
24133         New module 'truncl-ieee'.
24134         * modules/truncl-ieee: New file.
24135         * modules/truncl-ieee-tests: New file.
24136         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24137         * tests/test-truncl.c (main): Remove signbit tests.
24138         * modules/truncl-tests (Depends-on): Remove signbit.
24139         * doc/posix-functions/truncl.texi: Mention the new module.
24140
24141 2010-12-21  Bruno Haible  <bruno@clisp.org>
24142
24143         New module 'ceill-ieee'.
24144         * modules/ceill-ieee: New file.
24145         * modules/ceill-ieee-tests: New file.
24146         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24147         * tests/test-ceill.c (main): Remove signbit tests.
24148         * modules/ceill-tests (Depends-on): Remove signbit.
24149         * doc/posix-functions/ceill.texi: Mention the new module.
24150
24151 2010-12-21  Bruno Haible  <bruno@clisp.org>
24152
24153         New module 'floorl-ieee'.
24154         * modules/floorl-ieee: New file.
24155         * modules/floorl-ieee-tests: New file.
24156         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24157         * tests/test-floorl.c (main): Remove signbit tests.
24158         * modules/floorl-tests (Depends-on): Remove signbit.
24159         * doc/posix-functions/floorl.texi: Mention the new module.
24160
24161 2010-12-21  Bruno Haible  <bruno@clisp.org>
24162
24163         New module 'round-ieee'.
24164         * modules/round-ieee: New file.
24165         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24166         whether round works according to ISO C 99 with IEC 60559.
24167         * m4/round-ieee.m4: New file.
24168         * modules/round-ieee-tests: New file.
24169         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24170         * tests/test-round1.c (main): Remove signbit tests.
24171         * modules/round-tests (Depends-on): Remove 'signbit'.
24172         * doc/posix-functions/round.texi: Mention the new module.
24173
24174 2010-12-21  Bruno Haible  <bruno@clisp.org>
24175
24176         New module 'trunc-ieee'.
24177         * modules/trunc-ieee: New file.
24178         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24179         whether trunc works according to ISO C 99 with IEC 60559.
24180         * m4/trunc-ieee.m4: New file.
24181         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24183         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24184         * modules/trunc-ieee-tests: New file.
24185         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24186         * tests/test-trunc1.c (main): Remove signbit tests.
24187         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24188         * doc/posix-functions/trunc.texi: Mention the new module.
24189
24190 2010-12-21  Bruno Haible  <bruno@clisp.org>
24191
24192         New module 'ceil-ieee'.
24193         * modules/ceil-ieee: New file.
24194         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24195         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24196         ISO C 99 with IEC 60559.
24197         * m4/ceil-ieee.m4: New file.
24198         * modules/ceil (Files): Add lib/ceil.c.
24199         (Depends-on): Add 'float'.
24200         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24201         * lib/math.in.h (ceil): New declaration.
24202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24203         REPLACE_CEIL.
24204         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24205         * modules/ceil-ieee-tests: New file.
24206         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24207         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24208         * doc/posix-functions/ceil.texi: Mention the new module.
24209
24210 2010-12-21  Bruno Haible  <bruno@clisp.org>
24211
24212         New module 'floor-ieee'.
24213         * modules/floor-ieee: New file.
24214         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24215         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24216         ISO C 99 with IEC 60559.
24217         * m4/floor-ieee.m4: New file.
24218         * modules/floor (Files): Add lib/floor.c.
24219         (Depends-on): Add 'float'.
24220         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24221         * lib/math.in.h (floor): New declaration.
24222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24223         REPLACE_FLOOR.
24224         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24225         * modules/floor-ieee-tests: New file.
24226         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24227         * tests/test-math-c++.cc: Check the signature of 'floor'.
24228         * doc/posix-functions/floor.texi: Mention the new module.
24229
24230 2010-12-21  Bruno Haible  <bruno@clisp.org>
24231
24232         New module 'roundf-ieee'.
24233         * modules/roundf-ieee: New file.
24234         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24235         test whether roundf works according to ISO C 99 with IEC 60559.
24236         * m4/roundf-ieee.m4: New file.
24237         * modules/roundf-ieee-tests: New file.
24238         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24239         * tests/test-roundf1.c (main): Remove signbit tests.
24240         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24241         * doc/posix-functions/roundf.texi: Mention the new module.
24242
24243 2010-12-21  Bruno Haible  <bruno@clisp.org>
24244
24245         New module 'truncf-ieee'.
24246         * modules/truncf-ieee: New file.
24247         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24248         test whether truncf works according to ISO C 99 with IEC 60559.
24249         * m4/truncf-ieee.m4: New file.
24250         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24252         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24253         * modules/truncf-ieee-tests: New file.
24254         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24255         * tests/test-truncf1.c (main): Remove signbit tests.
24256         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24257         * doc/posix-functions/truncf.texi: Mention the new module.
24258
24259 2010-12-21  Bruno Haible  <bruno@clisp.org>
24260
24261         New module 'ceilf-ieee'.
24262         * modules/ceilf-ieee: New file.
24263         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24264         test whether ceilf works according to ISO C 99 with IEC 60559.
24265         * m4/ceilf-ieee.m4: New file.
24266         * modules/ceilf-ieee-tests: New file.
24267         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24268         * tests/test-ceilf1.c (main): Remove signbit tests.
24269         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24270         * doc/posix-functions/ceilf.texi: Mention the new module.
24271
24272 2010-12-21  Bruno Haible  <bruno@clisp.org>
24273
24274         New module 'floorf-ieee'.
24275         * modules/floorf-ieee: New file.
24276         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24277         test whether floorf works according to ISO C 99 with IEC 60559.
24278         * m4/floorf-ieee.m4: New file.
24279         * modules/floorf-ieee-tests: New file.
24280         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24281         * tests/test-floorf1.c (main): Remove signbit tests.
24282         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24283         * doc/posix-functions/floorf.texi: Mention the new module.
24284
24285 2010-12-21  Bruno Haible  <bruno@clisp.org>
24286
24287         Support for minus zero in autoconf macros.
24288         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24289         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24290         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24291         * tests/minus-zero.h: Update comments.
24292
24293 2010-12-21  Bruno Haible  <bruno@clisp.org>
24294
24295         Tests for module 'ceil'.
24296         * modules/ceil-tests: New file.
24297         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24298         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24299
24300 2010-12-21  Bruno Haible  <bruno@clisp.org>
24301
24302         Tests for module 'floor'.
24303         * modules/floor-tests: New file.
24304         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24305         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24306
24307 2010-12-21  Bruno Haible  <bruno@clisp.org>
24308
24309         math: Fix indentation.
24310         * lib/math.in.h (floorf): Fix indentation.
24311
24312 2010-12-21  Bruno Haible  <bruno@clisp.org>
24313
24314         Fix cross-compilation guesses on Solaris.
24315         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24316         not match "solaris2.10".
24317         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24318         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24319         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24320
24321 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24322
24323         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24324         This fixes a problem observed with the latest coreutils snapshot
24325         that caused a test to fail on Solaris 8.  src/csplit.c's call
24326         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24327         earlier, instead of returning the number of bytes that would have
24328         been generated; this causes csplit to incorrectly report memory
24329         exhaustion.
24330         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24331         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24332         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24333         comments to match.
24334         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24335         Fix typo in matching older versions of Solaris: "solaris2.10"
24336         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24337         only for guessing while cross-compiling.
24338         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24339
24340 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24341
24342         ftoastr: fix comment again
24343         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24345         Also, simplify example a bit by using flags = 0.
24346
24347 2010-12-20  Bruno Haible  <bruno@clisp.org>
24348
24349         round*, trunc*: Update documentation regarding glibc.
24350         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24351         * doc/posix-functions/round.texi: Likewise.
24352         * doc/posix-functions/roundl.texi: Likewise.
24353         * doc/posix-functions/truncf.texi: Likewise.
24354         * doc/posix-functions/trunc.texi: Likewise.
24355         * doc/posix-functions/truncl.texi: Likewise.
24356
24357 2010-12-20  Bruno Haible  <bruno@clisp.org>
24358
24359         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24360         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24361         * doc/posix-functions/round.texi: Likewise.
24362         * doc/posix-functions/roundl.texi: Likewise.
24363
24364 2010-12-20  Bruno Haible  <bruno@clisp.org>
24365
24366         ttyname_r: Add missing declaration on HP-UX 11.
24367         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24368         HAVE_TTYNAME_R.
24369         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24370         declared. Set HAVE_TTYNAME_R always.
24371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24372         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24373         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24374         HAVE_TTYNAME_R.
24375         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24376
24377 2010-12-20  Bruno Haible  <bruno@clisp.org>
24378
24379         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24380         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24381         * doc/posix-functions/getlogin_r.texi: Likewise.
24382         * tests/test-getlogin.c: Include <errno.h>.
24383         (main): Avoid test failure on HP-UX 11.11.
24384         * tests/test-getlogin_r.c (main): Likewise.
24385
24386 2010-12-20  Bruno Haible  <bruno@clisp.org>
24387
24388         getlogin_r: Add missing declaration on HP-UX 11.
24389         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24390         declared also when it exists as a function.
24391         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24392
24393 2010-12-20  Bruno Haible  <bruno@clisp.org>
24394
24395         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24396         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24397         through wcrtomb.
24398
24399 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24400
24401         ftoastr: fix comment
24402         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24404
24405 2010-12-19  Bruno Haible  <bruno@clisp.org>
24406
24407         isnan: Ensure it is a macro.
24408         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24409         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24410         Solaris.
24411
24412 2010-12-19  Bruno Haible  <bruno@clisp.org>
24413
24414         ldexpl test: Fix link error on OSF/1 5.1.
24415         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24416
24417 2010-12-19  Bruno Haible  <bruno@clisp.org>
24418
24419         wctype: Make it work in C++ mode on OSF/1 5.1.
24420         * lib/wctype.in.h (iswblank): Declare but not define here.
24421         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24422         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24423         * modules/wctype (Files): Add lib/iswblank.c.
24424
24425 2010-12-19  Bruno Haible  <bruno@clisp.org>
24426
24427         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24428         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24429         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24430
24431 2010-12-19  Bruno Haible  <bruno@clisp.org>
24432
24433         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24435         _POSIX_PII_SOCKET.
24436         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24437         * doc/posix-functions/recvfrom.texi: Likewise.
24438         * doc/posix-functions/send.texi: Likewise.
24439         * doc/posix-functions/sendto.texi: Likewise.
24440
24441 2010-12-19  Bruno Haible  <bruno@clisp.org>
24442
24443         tcgetsid: Add missing declaration on OSF/1 5.1.
24444         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24445         HAVE_TCGETSID.
24446         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24447         Don't set HAVE_TCGETSID.
24448         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24449         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24450         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24451         HAVE_TCGETSID.
24452         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24453
24454 2010-12-19  Bruno Haible  <bruno@clisp.org>
24455
24456         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24457         * lib/stdio.in.h: During the include_next statement, let recursive
24458         includes of this file include only the system header file.
24459
24460 2010-12-19  Bruno Haible  <bruno@clisp.org>
24461
24462         iconv_open: Fix regression from 2010-12-04.
24463         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24464         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24465
24466 2010-12-19  Bruno Haible  <bruno@clisp.org>
24467
24468         stdbool test: Avoid a gcc warning.
24469         * tests/test-stdbool.c (main): Fail if e1 is false.
24470         Reported by Jim Meyering.
24471
24472 2010-12-19  Jim Meyering  <meyering@redhat.com>
24473
24474         setenv: restore to working order
24475         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24476         mistakenly removed.
24477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24478         HAVE_SETENV.
24479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24480         HAVE_SETENV.
24481
24482 2010-12-19  Bruno Haible  <bruno@clisp.org>
24483
24484         Document some different function declarations on OSF/1 5.1.
24485         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24486         * doc/posix-functions/inet_ntop.texi: Likewise.
24487         * doc/posix-functions/gethostname.texi: Likewise.
24488         * lib/unistd.in.h (gethostname): Update comment.
24489
24490 2010-12-19  Bruno Haible  <bruno@clisp.org>
24491
24492         doc: Mention vasprintf-posix module.
24493         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24494         the 'vasprintf-posix' module.
24495         * doc/glibc-functions/vasprintf.texi: Likewise.
24496
24497 2010-12-19  Bruno Haible  <bruno@clisp.org>
24498
24499         unsetenv: Add missing declaration on OSF/1 5.1.
24500         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24502         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24504         not HAVE_UNSETENV.
24505         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24506         HAVE_UNSETENV.
24507         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24508
24509 2010-12-19  Bruno Haible  <bruno@clisp.org>
24510
24511         setenv: Add missing declaration on OSF/1 5.1.
24512         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24513         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24514         declared. Don't set HAVE_SETENV.
24515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24516         not HAVE_SETENV.
24517         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24518         HAVE_SETENV.
24519         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24520
24521 2010-12-19  Bruno Haible  <bruno@clisp.org>
24522
24523         nl_langinfo tests: Avoid gcc warning.
24524         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24525
24526 2010-12-19  Bruno Haible  <bruno@clisp.org>
24527
24528         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24529         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24530         _GL_CXXALIAS_SYS.
24531
24532 2010-12-19  Bruno Haible  <bruno@clisp.org>
24533
24534         stdbool: Relax test.
24535         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24536         address to 'bool' work in static initializer, for compilers other than
24537         GCC.
24538
24539 2010-12-19  Bruno Haible  <bruno@clisp.org>
24540
24541         ftello: Add missing declaration on OSF/1 5.1.
24542         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24543         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24545         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24546         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24547
24548 2010-12-19  Bruno Haible  <bruno@clisp.org>
24549
24550         fseeko: Add missing declaration on OSF/1 5.1.
24551         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24554         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24555         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24556
24557 2010-12-19  Bruno Haible  <bruno@clisp.org>
24558
24559         fchdir: Add missing declaration on OSF/1 5.1.
24560         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24564         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24565
24566 2010-12-19  Bruno Haible  <bruno@clisp.org>
24567
24568         relocatable-prog-wrapper: Separate from relocatable-prog.
24569         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24570         uninstall-relocwrapper rule here.
24571         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24572         Reported by Ian Beckwith <ianb@erislabs.net>.
24573
24574 2010-12-19  Bruno Haible  <bruno@clisp.org>
24575
24576         unistr/u8-mbsnlen: Add missing dependency.
24577         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24578         Reported by Ian Beckwith <ianb@erislabs.net>.
24579
24580 2010-12-19  Bruno Haible  <bruno@clisp.org>
24581
24582         iconv: Make it possible again to use this module without 'iconv-h'.
24583         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24584         if it is not defined.
24585         Reported by Ian Beckwith <ianb@erislabs.net>.
24586
24587 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24588
24589         acl: port to Solaris 8 when copying from tmpfs to ufs
24590         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24591         error number.  Problem observed on Solaris 8 with latest
24592         coreutils, with "mv A B", where A is on a tmpfs file system and B
24593         is on a ufs file system.  This caused coreutils' mv/part-symlink
24594         test to fail.
24595
24596         tests: set fail=0 at start
24597         * tests/init.sh (setup_): Move fail=0 initialization here ...
24598         (mktempd_): ... from here, so that tests can rely on fail being
24599         set to 0 initially.  This fixes a problem in coreutils; see:
24600         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24601
24602 2010-12-18  Bruno Haible  <bruno@clisp.org>
24603
24604         memmem-simple: Stylistic changes.
24605         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24606         Fix preprocessor directive indentation.
24607
24608 2010-12-15  Pádraig Brady <P@draigBrady.com>
24609
24610         memmem, memmem-simple: reorganize and expand empty needle check
24611         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24612         functional checks to memmem-simple so that one has a fully functional
24613         memmem by using just this module.
24614         Restrict the performance only check to the memmem module.
24615         Also expand the empty needle check to ensure the correct
24616         pointer is returned, not just a non NULL pointer.
24617         * doc/glibc-functions/memmem.texi: Rearrange the portability
24618         documentation to correlate with the rearranged checks.
24619         Clarify exactly how the memmem and memmem-simple modules
24620         relate to each other.
24621
24622 2010-12-15  Pádraig Brady <P@draigBrady.com>
24623             Bruno Haible  <bruno@clisp.org>
24624
24625         Improve cross-compilation guesses for uClibc.
24626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24627         that uClibc does not have the glibc bug.
24628         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24629         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24630
24631 2010-12-14  Eric Blake  <eblake@redhat.com>
24632
24633         configmake: provide fallbacks for oldest supported autotools
24634         * m4/configmake.m4: New file.
24635         * modules/configmake (Files): Ship it.
24636         (configure.ac): Use it to guarantee fallbacks.
24637
24638 2010-12-13  Pádraig Brady <P@draigBrady.com>
24639
24640         read-file: Improve handling of large files
24641         * lib/read-file.c (fread_file): Minimize realloc()s
24642         for regular files, and better manage sizes around SIZE_MAX.
24643
24644 2010-12-13  Eric Blake  <eblake@redhat.com>
24645
24646         cloexec, fcntl: relax license
24647         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24648         consent from all contributors.
24649         * modules/fcntl (License): Likewise.
24650
24651 2010-12-10  Bruno Haible  <bruno@clisp.org>
24652
24653         Tests for module 'pipe-posix'.
24654         * modules/pipe-posix-tests: New file.
24655         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24656
24657 2010-12-10  Bruno Haible  <bruno@clisp.org>
24658
24659         pipe-posix: Make it work in C++ mode.
24660         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24661         (pipe): Use common idiom, not a macro definition.
24662         * lib/pipe.c: New file.
24663         * m4/pipe.m4: New file.
24664         * modules/pipe-posix (Description): Enhance.
24665         (Files): Add lib/pipe.c, m4/pipe.m4.
24666         (configure.ac): Invoke gl_FUNC_PIPE.
24667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24668         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24669         * tests/test-unistd-c++.cc: Check the signature of pipe.
24670
24671 2010-12-10  Bruno Haible  <bruno@clisp.org>
24672
24673         Rename module 'pipe' to 'spawn-pipe'.
24674         * modules/spawn-pipe: New file, renamed from modules/pipe.
24675         (Files, configure.ac, Makefile.am): Update.
24676         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24677         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24678         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24679         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24680         "spawn-pipe.h" instead of "pipe.h".
24681         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24682         to gl_SPAWN_PIPE.
24683         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24684         (Files, Makefile.am): Update.
24685         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24686         Update.
24687         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24688         Include "spawn-pipe.h" instead of "pipe.h".
24689         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24690         * lib/javacomp.c: Likewise.
24691         * lib/javaversion.c: Likewise.
24692         * lib/pipe-filter-gi.c: Likewise.
24693         * lib/pipe-filter-ii.c: Likewise.
24694         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24695         * modules/javacomp (Depends-on): Likewise.
24696         * modules/javaversion (Depends-on): Likewise.
24697         * modules/pipe-filter-gi (Depends-on): Likewise.
24698         * modules/pipe-filter-ii (Depends-on): Likewise.
24699         * MODULES.html.sh (Executing programs): Update.
24700         * NEWS: Mention the change.
24701
24702 2010-12-10  Eric Blake  <eblake@redhat.com>
24703
24704         pipe-posix: new module
24705         * modules/pipe-posix: New file.
24706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24707         (gl_UNISTD_H): Check for declaration.
24708         * modules/unistd (Makefile.am): Substitute it.
24709         * lib/unistd.in.h (pipe): Provide it for mingw.
24710         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24711         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24712
24713 2010-12-07  Bruno Haible  <bruno@clisp.org>
24714
24715         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24716         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24717         u8_strcmp_gnu.
24718         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24719
24720 2010-12-06  Bruno Haible  <bruno@clisp.org>
24721
24722         Update internal documentation.
24723         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24724
24725 2010-12-04  Bruno Haible  <bruno@clisp.org>
24726
24727         Put more information about failed tests into the test return codes.
24728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24729         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24730         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24732         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24733         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24734         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24735         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24736         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24738         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24739         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24740         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24741         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24742         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24743         returns a bit mask.
24744         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24745         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24746         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24747         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24748         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24752         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24754         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24755         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24756         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24758         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24759         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24760         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24761         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24763         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24765         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24767         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24768         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24769         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24770         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24771         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24772         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24773         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24774         gl_PRINTF_PRECISION): Likewise.
24775         * m4/regex.m4 (gl_REGEX): Likewise.
24776         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24778         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24779         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24782         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24783         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24784         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24785         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24786         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24787         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24788         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24789         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24790         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24791         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24792         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24793         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24795         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24796         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24797         enumerated value.
24798         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24799
24800 2010-12-04  Bruno Haible  <bruno@clisp.org>
24801
24802         Update for Solaris 11 2010-11.
24803         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24804         Express, released in November 2010.
24805
24806 2010-12-04  Bruno Haible  <bruno@clisp.org>
24807
24808         nproc: Relax license.
24809         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24810         and Paul Eggert.
24811         Requested by Ludovic Courtès <ludo@gnu.org>.
24812
24813 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         utimecmp: fine-grained src to nearby coarse-grained dest
24816
24817         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24818         and the source is on a file system with higher-resolution time
24819         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24820         not work, and the time stamps are close together, the algorithm to
24821         determine the exact resolution from the read-back mtime was buggy:
24822         it had a "!=" where it should have had an "==".  This bug has been
24823         in the code ever since it was introduced to gnulib.
24824         Problem reported by Dan Jacobson in
24825         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24826
24827 2010-11-30  Bruno Haible  <bruno@clisp.org>
24828
24829         strerror_r-posix: Fix autoconf test.
24830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24831
24832 2010-11-28  Bruno Haible  <bruno@clisp.org>
24833             Paul Eggert  <eggert@cs.ucla.edu>
24834
24835         Tests for module 'getdomainname'.
24836         * modules/getdomainname-tests: New file.
24837         * tests/test-getdomainname.c: New file, based on
24838         tests/test-gethostname.c.
24839
24840 2010-11-28  Bruno Haible  <bruno@clisp.org>
24841             Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         getdomainname: Use the system function when possible.
24844         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24845         (getdomainname): Replace if needed. Provide the declaration if it is
24846         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24847         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24848         (getdomainname): When the system has getdomainname, call the system
24849         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24850         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24851         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24852         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24853         the function if its second argument is of type 'int' or if it is found
24854         in libnsl.
24855         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24856         <sys/systeminfo.h> and sysinfo().
24857         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24859         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24860         HAVE_GETDOMAINNAME.
24861         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24862         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24863         * doc/glibc-functions/getdomainname.texi: Document the problems with
24864         the getdomainname declaration.
24865
24866 2010-11-28  Bruno Haible  <bruno@clisp.org>
24867
24868         sys_socket: Ensure ss_family field on AIX.
24869         * lib/sys_socket.in.h (ss_family): New macro definition.
24870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24871         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24872         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24873         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24874         * modules/sys_socket (Makefile.am): Substitute
24875         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24876         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24877
24878 2010-11-27  Bruno Haible  <bruno@clisp.org>
24879
24880         readline: Improve configure output.
24881         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24882         "checking for readline..." result understandable.
24883
24884 2010-11-27  Bruno Haible  <bruno@clisp.org>
24885
24886         *printf-posix: Detect a bug on Solaris 10/x86.
24887         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24888         for floating-point output.
24889         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24890         directive.
24891         * tests/test-snprintf-posix.h (test_function): Likewise.
24892         * tests/test-sprintf-posix.h (test_function): Likewise.
24893         * tests/test-vasprintf-posix.c (test_function): Likewise.
24894         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24895         * doc/posix-functions/printf.texi: Likewise.
24896         * doc/posix-functions/snprintf.texi: Likewise.
24897         * doc/posix-functions/sprintf.texi: Likewise.
24898         * doc/posix-functions/vfprintf.texi: Likewise.
24899         * doc/posix-functions/vprintf.texi: Likewise.
24900         * doc/posix-functions/vsnprintf.texi: Likewise.
24901         * doc/posix-functions/vsprintf.texi: Likewise.
24902         * doc/glibc-functions/obstack_printf.texi: Likewise.
24903         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24904
24905 2010-11-27  Bruno Haible  <bruno@clisp.org>
24906
24907         Fix link error when module libunistring-optional is in use.
24908         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24909         * modules/striconveha-tests (Makefile.am): Likewise.
24910
24911 2010-11-27  Bruno Haible  <bruno@clisp.org>
24912
24913         regex: Mention link dependencies.
24914         * modules/regex (Link): New section.
24915         * modules/rpmatch (Link): Likewise.
24916         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24917
24918 2010-11-27  Bruno Haible  <bruno@clisp.org>
24919
24920         ftoastr: Fix compilation error on Solaris.
24921         * lib/ftoastr.c: Include <config.h>.
24922
24923 2010-11-27  Bruno Haible  <bruno@clisp.org>
24924
24925         getloadavg: Update documentation.
24926         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24927
24928 2010-11-27  Bruno Haible  <bruno@clisp.org>
24929
24930         sys_socket: Fix test whether the functions are declared.
24931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24932         not <sys/select.h>.
24933
24934 2010-11-27  Bruno Haible  <bruno@clisp.org>
24935
24936         getpass: Make sure to get system declaration on some platforms.
24937         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24938         gl_USE_SYSTEM_EXTENSIONS.
24939         * modules/getpass (Depends-on): Add extensions.
24940
24941 2010-11-26  Bruno Haible  <bruno@clisp.org>
24942
24943         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24944         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24945         'iconv' module is present.
24946         (ICONV_CONST): New macro.
24947         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24948         ICONV_CONST.
24949         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24950         set ICONV_CONST.
24951         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24952         here.
24953         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24954         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24955         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24956         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24957         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24958         present.
24959
24960 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24961
24962         ftoastr: comment fix
24963         * lib/ftoastr.c: "little" -> "little or no" in comment
24964
24965 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24966
24967         stdint: port to GCC 4.3 + OSX + Octave
24968         On this platform, stdint.h is buggy and defines int64_t to long
24969         long int.  The replacement defined it to long int, causing
24970         problems with C++ style name mangling.  Instead, trust the system
24971         definition if INT64_MAX is defined, and likewise for the unsigned
24972         variant.   Problem reported by Jarno Rajahalme in
24973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24974         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24975         and don't mess with int64_t and INT64_MAX in this case.
24976         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24977
24978 2010-11-24  Bruno Haible  <bruno@clisp.org>
24979
24980         doc: Corrections regarding MacOS X 10.4 and 10.5.
24981         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24982         MacOS X.
24983         Reported by Simon Josefsson.
24984
24985 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24986
24987         Uninstall ".bin" files installed by relocwrapper.
24988         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24989         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24990         unless it is already there.
24991
24992 2010-11-21  Bruno Haible  <bruno@clisp.org>
24993
24994         Update for NetBSD 5.0.
24995         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24996         NetBSD; the test fails on NetBSD 5.0.
24997         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24998         about NetBSD.
24999
25000 2010-11-21  Bruno Haible  <bruno@clisp.org>
25001
25002         Update for HP-UX 11.23 and HP-UX 11.31.
25003         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25004         HP-UX.
25005
25006 2010-11-21  Bruno Haible  <bruno@clisp.org>
25007
25008         Update for MacOS X 10.5.
25009         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25010         MacOS X; the test fails on MacOS X 10.5.8.
25011         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25012         about MacOS X.
25013
25014 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25015
25016         bootstrap: add bootstrap_sync option.
25017         See discussion at
25018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25020         * build-aux/bootstrap: Accept --bootstrap-sync to update
25021         bootstrap if it is not identical to the local gnulib's
25022         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25023         enable this by default.  Accept --no-bootstrap-sync to disable
25024         it.
25025
25026 2010-11-20  Bruno Haible  <bruno@clisp.org>
25027
25028         Ensure that <features.h> is included before __GLIBC__ is tested.
25029         * lib/printf-parse.h: Include <features.h>.
25030         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25031         Reported by Mike Frysinger <vapier@gentoo.org>.
25032
25033         Ensure that <features.h> is included before __GLIBC__ is tested.
25034         * lib/wchar.in.h: Include <features.h>.
25035         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25036         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25037         Reported by Mike Frysinger <vapier@gentoo.org>.
25038
25039         Ensure that <features.h> is included before __GLIBC__ is tested.
25040         * lib/arpa_inet.in.h: Include <features.h>.
25041         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25042         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25043         Reported by Mike Frysinger <vapier@gentoo.org>.
25044
25045         Ensure that <features.h> is included before __GLIBC__ is tested.
25046         * build-aux/link-warning.h: Include <features.h>.
25047         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25048         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25049         Reported by Mike Frysinger <vapier@gentoo.org>.
25050
25051         Ensure that <features.h> is included before __GLIBC__ is tested.
25052         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25053         Reported by Mike Frysinger <vapier@gentoo.org>.
25054
25055 2010-11-20  Bruno Haible  <bruno@clisp.org>
25056
25057         memmem: Fix autoconf test.
25058         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25059
25060 2010-11-20  Bruno Haible  <bruno@clisp.org>
25061
25062         Port to uClibc.
25063         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25064         * lib/fcntl.in.h: Likewise.
25065         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25066         * lib/mbrtowc.c (mbrtowc): Likewise.
25067         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25068         * lib/strerror_r.c: Likewise.
25069         * lib/unistr/u8-strnlen.c: Likewise.
25070         * lib/vasnprintf.c (decimal_point_char): Likewise.
25071         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25072         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25073         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25074         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25075         * tests/test-sigaction.c (handler, main): Likewise.
25076         * lib/freading.h: Treat uClibc like a non-glibc platform.
25077         * lib/freading.c: Likewise.
25078         * lib/gettext.h: Likewise.
25079         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25080         Likewise.
25081         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25082         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25083         * lib/propername.c (proper_name_utf8): Likewise.
25084         * lib/spawn.in.h: Likewise.
25085         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25086         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25087         mem_cd_iconveh_internal): Likewise.
25088         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25089         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25090         strstr, strcasestr): Likewise.
25091         * lib/unicodeio.c (unicode_to_mb): Likewise.
25092         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25093         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25094         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25095         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25096         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25097         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25098         * lib/unistr/u8-stpncpy.c: Likewise.
25099         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25100         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25103         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25104         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25105         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25108         Likewise.
25109         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25110         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25111         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25113         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25114         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25115         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25116         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25117         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25118         * tests/test-striconveha.c (main): Likewise.
25119         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25120         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25121         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25122         * doc/posix-functions/getline.texi: Likewise.
25123         Reported by Mike Frysinger <vapier@gentoo.org>.
25124
25125 2010-11-20  Bruno Haible  <bruno@clisp.org>
25126
25127         nproc: Fix condition.
25128         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25129         HAVE_PTHREAD_AFFINITY_NP.
25130
25131 2010-11-20  Bruno Haible  <bruno@clisp.org>
25132
25133         Fix a comment.
25134         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25135
25136 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         ftoastr: don't assume snprintf
25139         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25140         Implement a subset of snprintf here, by using sprintf safely.
25141         * modules/ftoastr (Depends-on): Remove snprintf.
25142
25143 2010-11-19  Jim Meyering  <meyering@redhat.com>
25144
25145         test-rename.h: fix compilation failure
25146         * tests/test-rename.h (test_rename): Add omitted "}".
25147
25148 2010-11-17  Jim Meyering  <meyering@redhat.com>
25149
25150         maint.mk: add a URL discussing the no-@acronym policy
25151         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25152
25153 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25154
25155         ftoastr: depend on snprintf, improve comments
25156         * lib/ftoastr.c: Also mention Loitsch's draft.
25157         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25158         needed in the current implementation, but it might simplify
25159         speeding up the code later.
25160         * modules/ftoastr: Depend on snprintf; this improves portability.
25161         Suggested by Bruno Haible in the same email.
25162
25163         ftoastr: port to hosts lacking strtof and strtold
25164         Problem reported by Bruno Haible in
25165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25166         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25167         environment and strtold (and presumably strtof) are not available.
25168         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25169         (configure.ac): Require gl_C99_STRTOLD.
25170
25171 2010-11-18  Bruno Haible  <bruno@clisp.org>
25172
25173         c-strtold: Avoid link error on AIX 7.
25174         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25175         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25176         (gl_C_STRTOLD): Test whether strtold_l exists.
25177         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25178
25179 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         intprops: new macro INT_BITS_STRLEN_BOUND
25182         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25183         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25184         not exposed.  Also, it uses a slightly tighter bound than before;
25185         though this makes no practical difference, we might as well be as
25186         tight as we easily can.
25187
25188         ftoastr: new module, for lossless conversion of floats to short strings
25189         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25190         * modules/ftoastr: New files.
25191
25192 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25193
25194         bootstrap: port to Solaris sed
25195         * build-aux/bootstrap (get_version): Port to Solaris sed.
25196         See Ralf Wildenhues's note in
25197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25198
25199 2010-11-14  Jim Meyering  <meyering@redhat.com>
25200
25201         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25202         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25203         and move definition closer to sole use.
25204
25205 2010-11-13  Jim Meyering  <meyering@redhat.com>
25206
25207         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25208         Now we require at least autoconf-2.59, which means the work-around
25209         is no longer needed.
25210         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25212         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25214         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25215
25216 2010-11-13  Bruno Haible  <bruno@clisp.org>
25217
25218         rename, renameat: Avoid test failures at NFS mounted locations.
25219         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25220         functions.
25221         (test_rename): Use assert_nonexistent.
25222         * tests/test-rename.c: Include <dirent.h>.
25223         * tests/test-renameat.c: Likewise.
25224         Reported by Gary V. Vaughan <gary@gnu.org>.
25225
25226         rename, renameat: Document Linux bug with NFS
25227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25228         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25229         * doc/posix-functions/renameat.texi: Likewise.
25230         Suggested by Eric Blake.
25231
25232 2010-11-13  Bruno Haible  <bruno@clisp.org>
25233
25234         rename test: Add comments.
25235         * tests/test-rename.h (test_rename): Add structure and comments.
25236
25237 2010-11-13  Eric Blake  <eblake@redhat.com>
25238
25239         maintainer-makefile: cover a few more files
25240         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25241         scripts generated within C files, for libvirt.
25242
25243 2010-11-13  Bruno Haible  <bruno@clisp.org>
25244
25245         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25246         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25247         character, return the number of bytes that belong together, not always
25248         1.
25249         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25250         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25251         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25252         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25253         number of bytes of an invalid character.
25254         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25255         (main): Invoke it.
25256         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25257         results.
25258         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25259         malformed byte sequences.
25260         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25261         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25262         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25263         Reported by Ben Pfaff and Paolo Bonzini.
25264
25265 2010-11-13  Bruno Haible  <bruno@clisp.org>
25266
25267         openat: Work around glibc bug with fchownat() and empty file names.
25268         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25269         (gl_FUNC_FCHOWNAT): Invoke it.
25270         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25271         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25272         Reported by Gary V. Vaughan <gary@gnu.org>.
25273
25274 2010-11-13  Bruno Haible  <bruno@clisp.org>
25275
25276         openat: Ensure autoconf macro ordering.
25277         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25278         gl_USE_SYSTEM_EXTENSIONS.
25279         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25280
25281 2010-11-13  Bruno Haible  <bruno@clisp.org>
25282
25283         Update comments.
25284         * lib/unistr/u8-check.c: Update file name in comments.
25285         * lib/unistr/u8-mblen.c: Likewise.
25286         * lib/unistr/u8-prev.c: Likewise.
25287         * lib/unistr/u8-strmblen.c: Likewise.
25288         * lib/unistr/u8-strmbtouc.c: Likewise.
25289
25290 2010-11-13  Jim Meyering  <meyering@redhat.com>
25291
25292         tests: avoid test failure on Solaris 10 due to lack of PATH export
25293         * tests/test-update-copyright.sh: Don't forget to export PATH.
25294
25295         init.sh: ensure that IFS is defined, just in case...
25296         * tests/init.sh (setup_): Ensure that IFS is defined,
25297         so that saving and restoring it works as expected.  This
25298         appears to be useful at least for an old version of dash
25299         from a long time ago (RH 6).  See here for details:
25300         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25301
25302         maint.mk: tighten "test a == b" check
25303         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25304         test to files that contain something like #!/bin/sh.
25305         Without this, coreutils would get two false positives in
25306         the comments of C source files.
25307
25308 2010-11-12  Eric Blake  <eblake@redhat.com>
25309
25310         bootstrap: fix typo in previous attempt
25311         * build-aux/bootstrap (buildreq): Correct the grouping.
25312         Reported by Paul Eggert.
25313
25314         maintainer-makefile: prohibit test x == x
25315         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25316         Based on a report by Matthias Bolte.
25317
25318         bootstrap: allow FreeBSD gzip
25319         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25320         which has no '.' and goes to stderr.
25321         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25322         Reported by Matthias Bolte.
25323
25324         maintainer-makefile: check for i18n setup
25325         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25326         will likely work.
25327
25328 2010-11-12  Bruno Haible  <bruno@clisp.org>
25329
25330         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25331         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25332         * lib/nanosleep.c (nanosleep): Likewise.
25333
25334 2010-11-11  Bruno Haible  <bruno@clisp.org>
25335
25336         fcntl-h: Fix for use of C++ on glibc systems.
25337         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25338         also on glibc systems in C++ mode.
25339         Reported by Gary V. Vaughan <gary@gnu.org>.
25340
25341 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25342
25343         mknod: avoid false failure with dash
25344         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25345
25346 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         unlink: Fix "is it should" typo in diagnostic.
25349         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25351
25352 2010-11-11  Bruno Haible  <bruno@clisp.org>
25353
25354         Tests for module 'strerror_r-posix'.
25355         * modules/strerror_r-posix-tests: New file.
25356         * tests/test-strerror_r.c: New file.
25357         * tests/test-string-c++.cc: Check the signature of strerror_r.
25358
25359         New module 'strerror_r-posix'.
25360         * lib/string.in.h (strerror_r): New declaration.
25361         * lib/strerror_r.c: New file.
25362         * m4/strerror_r.m4: New file.
25363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25364         of strerror_r.
25365         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25366         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25367         * modules/strerror_r-posix: New file.
25368         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25369         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25370         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25371         portability problems.
25372
25373 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25374
25375         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25376         line is also considered for output. Quoted function name in shell
25377         command, so temporary files for functions like MyClass::operator()
25378         are removed correctly without errors.
25379
25380 2010-11-09  Bruno Haible  <bruno@clisp.org>
25381
25382         * doc/posix-functions/strerror.texi: List more failing platforms.
25383
25384         * doc/posix-functions/strerror.texi: Add a comment.
25385
25386 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25387
25388         fdopendir: fix bug on MacOS X when low on file descriptors
25389
25390         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25391         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25392         All callers changed.
25393         (fdopendir): Invoke save_cwd at the top level, not after using
25394         multiple dup() calls to use up file descriptors.  Then retry
25395         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25396         less than the maximum number of open file descriptors, because
25397         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25398         on Mac OS X 10.6.4 for tar 1.24
25399         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25400         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25401         and for tar 1.25
25402         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25403
25404 2010-11-07  Bruno Haible  <bruno@clisp.org>
25405
25406         vasnprintf: Support I flag on glibc systems.
25407         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25408         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25409         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25410         snprintf function.
25411         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25412         glibc systems.
25413         * tests/test-vasnprintf-posix3.c: New file.
25414         * modules/vasnprintf-posix-tests (Files): Add it.
25415         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25416
25417 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25418
25419         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25420         * MODULES.html.sh: For compiler warnings, use name
25421         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25422
25423 2010-11-05  Eric Blake  <eblake@redhat.com>
25424
25425         ceil, floor: avoid spurious failure with icc
25426         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25427         [denormals-as-zero] when optimizing without -mieee-fp option.
25428         * tests/test-floorf2.c (floorf_reference): Likewise.
25429         * tests/test-ceilf1.c (dummy): New function.
25430         (main): Use it to outsmart icc's optimization.
25431         * tests/test-floorf1.c (dummy, main): Likewise.
25432
25433         tests: require working signbit
25434         * modules/ceilf-tests (Depends-on): Add signbit.
25435         * modules/ceill-tests (Depends-on): Likewise.
25436         * modules/floorf-tests (Depends-on): Likewise.
25437         * modules/floorl-tests (Depends-on): Likewise.
25438         * modules/round-tests (Depends-on): Likewise.
25439         * modules/roundf-tests (Depends-on): Likewise.
25440         * modules/roundl-tests (Depends-on): Likewise.
25441         * modules/trunc-tests (Depends-on): Likewise.
25442         * modules/truncf-tests (Depends-on): Likewise.
25443         * modules/truncl-tests (Depends-on): Likewise.
25444
25445         strtod: work around icc bug
25446         * lib/strtod.c (minus_zero): Define to working value.
25447         (strtod): Use it to avoid icc bug.
25448
25449         copysign: enhance tests
25450         * modules/copysign-tests (Files): Add minus-zero.h.
25451         * tests/test-copysign.c (main): Also test zeros.
25452
25453 2010-11-04  Eric Blake  <eblake@redhat.com>
25454
25455         ceil, floor, round, trunc: enhance tests of -0
25456         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25457         * tests/test-ceill.c (main): Likewise.
25458         * tests/test-floorf1.c (main): Likewise.
25459         * tests/test-floorl.c (main): Likewise.
25460         * tests/test-round1.c (main): Likewise.
25461         * tests/test-roundf1.c (main): Likewise.
25462         * tests/test-roundl.c (main): Likewise.
25463         * tests/test-trunc1.c (main): Likewise.
25464         * tests/test-truncf1.c (main): Likewise.
25465         * tests/test-truncl.c (main): Likewise.
25466
25467 2010-11-04  Eric Blake  <eblake@redhat.com>
25468
25469         frexp, tests: work around ICC bug with -zero
25470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25471         works with more compilers.
25472         * tests/minus-zero.h: New file.
25473         * modules/ceilf-tests (Files): Include it.
25474         * modules/ceill-tests (Files): Likewise.
25475         * modules/floorf-tests (Files): Likewise.
25476         * modules/floorl-tests (Files): Likewise.
25477         * modules/frexp-nolibm-tests (Files): Likewise.
25478         * modules/frexp-tests (Files): Likewise.
25479         * modules/frexpl-nolibm-tests (Files): Likewise.
25480         * modules/frexpl-tests (Files): Likewise.
25481         * modules/isnan-tests (Files): Likewise.
25482         * modules/isnand-nolibm-tests (Files): Likewise.
25483         * modules/isnand-tests (Files): Likewise.
25484         * modules/isnanf-nolibm-tests (Files): Likewise.
25485         * modules/isnanf-tests (Files): Likewise.
25486         * modules/isnanl-nolibm-tests (Files): Likewise.
25487         * modules/isnanl-tests (Files): Likewise.
25488         * modules/round-tests (Files): Likewise.
25489         * modules/roundf-tests (Files): Likewise.
25490         * modules/roundl-tests (Files): Likewise.
25491         * modules/ldexpl-tests (Files): Likewise.
25492         * modules/signbit-tests (Files): Likewise.
25493         * modules/snprintf-posix-tests (Files): Likewise.
25494         * modules/sprintf-posix-tests (Files): Likewise.
25495         * modules/strtod-tests (Files): Likewise.
25496         * modules/trunc-tests (Files): Likewise.
25497         * modules/truncf-tests (Files): Likewise.
25498         * modules/truncl-tests (Files): Likewise.
25499         * modules/vsnprintf-posix-tests (Files): Likewise.
25500         * modules/vsprintf-posix-tests (Files): Likewise.
25501         * modules/vasnprintf-posix-tests (Files): Likewise.
25502         * modules/vasprintf-posix-tests (Files): Likewise.
25503         * tests/test-ceilf1.c (main): Use it.
25504         * tests/test-ceill.c (main): Likewise.
25505         * tests/test-floorf1.c (main): Likewise.
25506         * tests/test-floorl.c (main): Likewise.
25507         * tests/test-frexp.c (main): Likewise.
25508         * tests/test-frexpl.c (main): Likewise.
25509         * tests/test-isnan.c (main): Likewise.
25510         * tests/test-isnand.h (main): Likewise.
25511         * tests/test-isnanf.h (main): Likewise.
25512         * tests/test-isnanl.h (main): Likewise.
25513         * tests/test-ldexpl.c (main): Likewise.
25514         * tests/test-round.c (main): Likewise.
25515         * tests/test-roundf.c (main): Likewise.
25516         * tests/test-roundl.c (main): Likewise.
25517         * tests/test-signbit.c (test_signbitf, test_signbitd)
25518         (test_signbitl): Likewise.
25519         * tests/test-snprintf-posix.h (test_function): Likewise.
25520         * tests/test-sprintf-posix.h (test_function): Likewise.
25521         * tests/test-strtod.c (main): Likewise.
25522         * tests/test-trunc1.c (main): Likewise.
25523         * tests/test-truncf1.c (main): Likewise.
25524         * tests/test-truncl.c (main): Likewise.
25525
25526         isnanl: work around icc bug
25527         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25528
25529 2010-11-03  Eric Blake  <eblake@redhat.com>
25530
25531         tests: fix compiler warnings
25532         * tests/test-getopt.h (test_getopt): Fix condition.
25533         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25534         * tests/test-pipe2.c (main): Likewise.
25535         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25536
25537         utimens: fix broken m4 test
25538         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25539
25540 2010-10-28  Bruno Haible  <bruno@clisp.org>
25541
25542         posix_spawn*, getdtablesize: Relax license.
25543         * modules/posix_spawn (License): Change to LGPLv2+.
25544         * modules/posix_spawnp (License): Likewise.
25545         * modules/posix_spawn-internal (License): Likewise.
25546         * modules/posix_spawnattr_init (License): Likewise.
25547         * modules/posix_spawnattr_getflags (License): Likewise.
25548         * modules/posix_spawnattr_setflags (License): Likewise.
25549         * modules/posix_spawnattr_getpgroup (License): Likewise.
25550         * modules/posix_spawnattr_setpgroup (License): Likewise.
25551         * modules/posix_spawnattr_getschedparam (License): Likewise.
25552         * modules/posix_spawnattr_setschedparam (License): Likewise.
25553         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25554         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25555         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25556         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25557         * modules/posix_spawnattr_getsigmask (License): Likewise.
25558         * modules/posix_spawnattr_setsigmask (License): Likewise.
25559         * modules/posix_spawnattr_destroy (License): Likewise.
25560         * modules/posix_spawn_file_actions_init (License): Likewise.
25561         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25562         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25563         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25564         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25565         * modules/getdtablesize (License): Likewise.
25566         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25567
25568 2010-10-26  Bruno Haible  <bruno@clisp.org>
25569
25570         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25571         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25572         Cygwin and mingw.
25573         Suggested by Eric Blake.
25574
25575 2010-10-26  Bruno Haible  <bruno@clisp.org>
25576
25577         stdio: Work around compilation error due to renameat() on Solaris 10.
25578         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25579         * lib/renameat.c: Don't include <unistd.h> here.
25580         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25581         Reported by Paul Eggert and Eric Blake.
25582
25583 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25584
25585         renameat: port to Solaris 10, which declares renameat in unistd.h
25586
25587         * lib/renameat.c: Include unistd.h before stdio.h, because
25588         Solaris 10 declares renameat in unistd.h.  Problem encountered
25589         when building GNU tar 1.24 on Solaris 10.
25590
25591 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25592
25593         fdopendir: fix C89 compilation
25594         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25595         compilers.
25596
25597 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25598
25599         inttostr: simplify by removing unnecessary redundancy
25600         * lib/anytostr.c: Don't include verify.h.
25601         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25602         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25603         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25604         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25605         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25606         Likewise.
25607         * modules/inttostr (Depends-on): Remove 'verify'.
25608
25609 2010-10-23  Bruno Haible  <bruno@clisp.org>
25610
25611         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25612         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25613         Reported by Eric Blake.
25614
25615 2010-10-23  Bruno Haible  <bruno@clisp.org>
25616
25617         Tests: Fix LOCALE_JA on MirBSD 10.
25618         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25619         to an UTF-8 locale.
25620         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25622         Reported by Eric Blake.
25623
25624 2010-10-21  Bruno Haible  <bruno@clisp.org>
25625
25626         nl_langinfo test: Avoid test failure on NetBSD 5.
25627         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25628         Reported by Eric Blake.
25629
25630 2010-10-21  Eric Blake  <eblake@redhat.com>
25631
25632         c-stack: work around libsigsegv 2.8 bug
25633         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25634         overflow on at least PowerPC64.
25635
25636 2010-10-17  Bruno Haible  <bruno@clisp.org>
25637
25638         userspec: Drop redundant file.
25639         * modules/userspec (Files): Remove lib/inttostr.h.
25640
25641 2010-10-17  Bruno Haible  <bruno@clisp.org>
25642
25643         nl_langinfo tests: Silence some warnings.
25644         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25645         Reported by Jim Meyering.
25646
25647 2010-10-17  Bruno Haible  <bruno@clisp.org>
25648
25649         Make use of GCC's attribute __alloc_size__.
25650         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25651         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25652         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25653         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25654         __alloc_size__.
25655         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25656         Suggested by Jim Meyering.
25657
25658 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25659
25660         bootstrap: anchor .gitignore entries.
25661         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25662         with...
25663         (insert_vc_ignore): ... this new function, which prepends `/' to
25664         all .gitignore entries before passing them to
25665         insert_sorted_if_absent.
25666
25667 2010-10-16  Bruno Haible  <bruno@clisp.org>
25668
25669         nextafter: Fix configure check.
25670         * modules/nextafter (configure.ac): Correct expected prototype.
25671
25672 2010-10-16  Bruno Haible  <bruno@clisp.org>
25673
25674         termios: Update documentation.
25675         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25676
25677 2010-10-16  Bruno Haible  <bruno@clisp.org>
25678
25679         tests: Make them compile with TinyCC.
25680         * tests/test-strstr.c (main): Remove parentheses around array
25681         initializer.
25682
25683 2010-10-15  Eric Blake  <eblake@redhat.com>
25684
25685         ignore-value: make header idempotent
25686         * lib/ignore-value.h: Add double-inclusion guards.
25687         Reported by Stefan Berger.
25688
25689 2010-10-15  Jim Meyering  <meyering@redhat.com>
25690
25691         GNUmakefile: handle "stable" target, not "major"
25692         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25693         lists in maint.mk and announce-gen.  Without this, "make stable"
25694         would fail to ensure that $(VERSION) is up to date.
25695
25696 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25697
25698         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25699         & co.
25700
25701 2010-10-14  Bruno Haible  <bruno@clisp.org>
25702
25703         vasnprintf: Don't set errno to 0.
25704         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25705         block that sets it to 0.
25706         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25707
25708 2010-10-14  Bruno Haible  <bruno@clisp.org>
25709
25710         socketlib: Fix.
25711         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25712         gl_PREREQ_SYS_H_WINSOCK2.
25713         Reported by Ian Beckwith <ianb@erislabs.net>.
25714
25715 2010-10-13  Jim Meyering  <meyering@redhat.com>
25716
25717         test-select-stdin.c: avoid warn_unused_result warnings
25718         * tests/test-select-stdin.c: Include "macros.h".
25719         ASSERT that read and fflush succeed.
25720
25721 2010-10-13  Jim Meyering  <meyering@redhat.com>
25722
25723         git-version-gen: do require git-VC'd files in cwd
25724         * build-aux/git-version-gen: Reject a git version string
25725         if there are no commits associated with the current directory.
25726         This avoids an unlikely false-positive (unrelated dir whose parent
25727         repository also contains a tag matching v*), as pointed out
25728         by Giuseppe Scrivano in
25729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25730
25731 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25732
25733         argv-iter: omit nonconforming declaration
25734         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25735         enum arg_iter_err declaration, which doesn't conform to C99.
25736         Solaris 10 cc warns about this.
25737
25738 2010-10-13  Eric Blake  <eblake@redhat.com>
25739
25740         termios: fix compilation on mingw
25741         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25742         (gl_TERMIOS_H): Adjust it on mingw.
25743         * modules/termios (Makefile.am): Substitute new key.
25744         * lib/termios.in.h (includes): Make include_next conditional.
25745         * doc/posix-headers/termios.texi (termios.h): Update
25746         documentation.
25747         Reported by Daniel P. Berrange.
25748
25749 2010-10-13  Jim Meyering  <meyering@redhat.com>
25750
25751         git-version-gen: don't require that .git/ be in the current dir
25752         * build-aux/git-version-gen: Adjust this script so that it works
25753         when run from any working directory beneath the top-level .git/-
25754         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25756
25757         test-select: avoid warn_unused_result warnings
25758         * tests/test-select.c: Include "macros.h".
25759         ASSERT that each call to read, write, and pipe succeeds.
25760         While not technically required, also check each "close".
25761         * modules/select-tests (Files): Add tests/macros.h.
25762
25763         test-symlinkat: remove declaration of unused local
25764         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25765
25766         test-inttostr: avoid shadowing warnings
25767         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25768         and use malloc rather than the stack for the same reason as
25769         mentioned in the comment justifying the other allocation.
25770
25771 2010-10-11  Bruno Haible  <bruno@clisp.org>
25772
25773         stdlib: Allow multiple gnulib generated replacements to coexist.
25774         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25775         Reported by Sam Steingold <sds@gnu.org>.
25776
25777 2010-10-11  Jim Meyering  <meyering@redhat.com>
25778
25779         fix a documentation typo
25780         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25781
25782 2010-10-11  Eric Blake  <eblake@redhat.com>
25783
25784         futimens: work around Solaris 11 bug
25785         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25786         * tests/test-futimens.h (test_futimens): Enhance, rather than
25787         weaken test.
25788         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25789
25790 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25791
25792         Indentation.
25793         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25794         higher-level operators more to the left.
25795
25796 2010-10-11  Jim Meyering  <meyering@redhat.com>
25797
25798         test-futimens: avoid unwarranted test failure on Solaris 5.11
25799         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25800         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25801         because it tries to dereference the NULL name argument.
25802
25803 2010-10-11  Bruno Haible  <bruno@clisp.org>
25804
25805         Indentation.
25806         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25807         indentation.
25808
25809 2010-10-11  Jim Meyering  <meyering@redhat.com>
25810
25811         spawn.in.h: make indentation consistent with parentheses
25812         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25813         Make indentation consistent with parentheses.
25814
25815 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25816
25817         Fix mismatched parens in previous commit
25818         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25819         parens.
25820
25821 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25822
25823         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25824
25825         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25826         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25827         * lib/malloca.c: Include "verify.h".
25828         (verify1): Remove, replacing with a verify call.
25829         * lib/relocwrapper.c (verify1): Likewise.
25830         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25831         Likewise.
25832         * modules/malloca (Depends-on): Add 'verify'.
25833         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25834         * modules/vasnprintf (Depends-on): Add 'verify'.
25835         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25836         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25837         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25838         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25839         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25840         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25841         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25842
25843         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25844
25845         Formerly the style was sometimes 2*X - 1, because the C standard
25846         was wrongly thought to disallow ?: in integral constant expressions.
25847         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25848         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25849         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25850         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25851         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25852         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25853         verify that time_t cannot be floating.
25854
25855 2010-10-08  Eric Blake  <eblake@redhat.com>
25856
25857         time: enforce recent POSIX ruling that time_t is integral
25858         * lib/time.in.h (__time_t_must_be_integral): Detect any
25859         problematic systems, allowing the rest of gnulib to assume POSIX.
25860
25861 2010-10-08  Jim Meyering  <meyering@redhat.com>
25862
25863         fdopendir: fix a bug on systems lacking openat and /proc support
25864         OpenBSD 4.7 is one such system.  The most noticeable effect was
25865         failure of any application making nontrivial use of fts: rm, du,
25866         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25867           ./rm: traversal failed: `a': Bad file descriptor
25868         Debugging that, you see that even though FD 6 was closed just
25869         prior to the opendir call in fd_clone_opendir, its resulting
25870         dir->dd_fd was 8, rather than the expected value of 6:
25871
25872         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25873         93                close (fd);
25874         (gdb) n
25875         94                dir = fd_clone_opendir (dupfd);
25876         (gdb) n
25877         95                saved_errno = errno;
25878         (gdb) p dir->dd_fd
25879         $11 = 8
25880
25881         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25882         The problem is that on OpenBSD, fd_clone_opendir has to resort
25883         to using the old-style save/restore CWD mechanism, due to its
25884         lack of openat/proc support, and *that* would steal the FD (6)
25885         that opendir was supposed to use.
25886
25887         The fix is to squirrel away the desired FD so that save_cwd uses a
25888         different one, and then free the dest FD right before calling opendir.
25889         That guarantees opendir will use the required file descriptor.
25890
25891         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25892
25893 2010-10-08  Bruno Haible  <bruno@clisp.org>
25894
25895         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25896         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25897
25898 2010-10-08  Bruno Haible  <bruno@clisp.org>
25899
25900         nanosleep: Make replacement POSIX compliant.
25901         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25902         is out of range.
25903         Reported by Jim Meyering.
25904
25905 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25906
25907         bootstrap: add hook for altering gnulib.mk, for Bison
25908         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25909         the Bison bootstrapping process can rewrite file names and variables
25910         in this file before later parts of 'bootstrap' use the file.
25911         Bison wants to include lib/gnulib.mk from the top-level makefile,
25912         so it needs the file names in this file to be relative to the top
25913         level, not relative to lib; plus it needs variable names to be
25914         rewritten.
25915         (slurp): Use the new function.
25916
25917         bootstrap: reformat for readability
25918         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25919
25920 2010-10-08  Eric Blake  <eblake@redhat.com>
25921
25922         docs: update cygwin progress
25923         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25924         1.7.7.
25925         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25926         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25927         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25928         * doc/posix-functions/carg.texi (carg): Likewise.
25929         * doc/posix-functions/cargf.texi (cargf): Likewise.
25930         * doc/posix-functions/casin.texi (casin): Likewise.
25931         * doc/posix-functions/casinf.texi (casinf): Likewise.
25932         * doc/posix-functions/casinh.texi (casinh): Likewise.
25933         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25934         * doc/posix-functions/catan.texi (catan): Likewise.
25935         * doc/posix-functions/catanf.texi (catanf): Likewise.
25936         * doc/posix-functions/catanh.texi (catanh): Likewise.
25937         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25938         * doc/posix-functions/ccos.texi (ccos): Likewise.
25939         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25940         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25941         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25942         * doc/posix-functions/cexp.texi (cexp): Likewise.
25943         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25944         * doc/posix-functions/cimag.texi (cimag): Likewise.
25945         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25946         * doc/posix-functions/clog.texi (clog): Likewise.
25947         * doc/posix-functions/clogf.texi (clogf): Likewise.
25948         * doc/posix-functions/conj.texi (conj): Likewise.
25949         * doc/posix-functions/conjf.texi (conjf): Likewise.
25950         * doc/posix-functions/cpow.texi (cpow): Likewise.
25951         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25952         * doc/posix-functions/cproj.texi (cproj): Likewise.
25953         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25954         * doc/posix-functions/creal.texi (creal): Likewise.
25955         * doc/posix-functions/crealf.texi (crealf): Likewise.
25956         * doc/posix-functions/csin.texi (csin): Likewise.
25957         * doc/posix-functions/csinf.texi (csinf): Likewise.
25958         * doc/posix-functions/csinh.texi (csinh): Likewise.
25959         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25960         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25961         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25962         * doc/posix-functions/ctan.texi (ctan): Likewise.
25963         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25964         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25965         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25966         * doc/posix-headers/complex.texi (complex.h): Likewise.
25967
25968 2010-10-07  Jim Meyering  <meyering@redhat.com>
25969
25970         parse-datetime: avoid compilation failure on OpenBSD 4.7
25971         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25972         This works around a compilation failure on OpenBSD 4.7:
25973         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25974
25975 2010-10-07  Eric Blake  <eblake@redhat.com>
25976
25977         docs: update cygwin progress
25978         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25979         1.7.6.
25980         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25981         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25982         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25983         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25984         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25985         Likewise.
25986         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25987         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25988         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25989         Likewise.
25990         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25991         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25992         Likewise.
25993         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25994         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25995         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25996         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25997         Likewise.
25998         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25999         Likewise.
26000         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26001
26002         docs: update parse-datetime history
26003         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26004         documentation of this function's history and alternatives.
26005
26006         cygwin: use more robust version check
26007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26008         exclude an eventual cygwin 1.9.1.
26009         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26011         (gl_FUNC_STRCASESTR): Likewise.
26012         Reported by Bruno Haible.
26013
26014 2010-10-06  Bruno Haible  <bruno@clisp.org>
26015
26016         string, sys_select: Avoid #including large headers unless necessary.
26017         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26018         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26019         OSF/1, BeOS, Haiku.
26020         Reported by Jim Meyering.
26021
26022 2010-10-05  Eric Blake  <eblake@redhat.com>
26023
26024         memmem, strstr, strcasestr: fix bug with long periodic needle
26025         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26026         periodic needle having false positive.
26027         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26028         and cygwin 1.7.7.
26029         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26031         (gl_FUNC_STRCASESTR): Likewise.
26032         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26033         * tests/test-memmem.c (main): Expose the bug.
26034         * tests/test-strcasestr.c (main): Likewise.
26035         * tests/test-strstr.c (main): Likewise.
26036         * tests/test-c-strcasestr.c (main): Likewise.
26037         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26038         * doc/posix-functions/strstr.texi (strstr): Likewise.
26039         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26040         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26041
26042 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26043
26044         parse-datetime: do some more renaming
26045         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26046         parse_datetime, not get_date.  Mention the renaming.
26047         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26048         in comments.
26049         * m4/bison.m4: Likewise.
26050
26051 2010-10-05  Eric Blake  <eblake@redhat.com>
26052
26053         parse-datetime: better name than get_date
26054         * NEWS: Reword the deprecation notice.
26055         * modules/get_date: Rename to modules/parse-datetime.
26056         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26057         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26058         * lib/get_date.y: Rename to lib/parse-datetime.y.
26059         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26060         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26061         * doc/getdate.texi: Provide fallback wrapper.
26062         * lib/getdate.h: Move guts, and wrap...
26063         * lib/parse-datetime.h: ...new file.
26064         * lib/parse-datetime.y (get_date): Rename...
26065         (parse_datetime): ...to this.
26066         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26067         (gl_PARSE_DATETIME): ...to this.
26068         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26069         documentation.
26070         * modules/getdate (Files): Provide fallback docs and header.
26071         (Notice, Depends-on): Update references.
26072         * tests/test-parse-datetime.c: Likewise.
26073         * DEPENDENCIES: Likewise.
26074         * MODULES.html.sh (Date and time <time.h>): Likewise.
26075         * doc/parse-datetime.texi (Date input formats)
26076         (Authors of parse_datetime): Likewise.
26077         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26078         (Include): Likewise.
26079         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26080         * gnulib-tool: Likewise.
26081         * m4/bison.m4 (gl_BISON): Likewise.
26082         Suggested by Bruno Haible.
26083
26084 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26085
26086         more ports to Solaris tr, which needs [] around ranges
26087         * gnulib-tool: Solaris tr needs [] around ranges.
26088         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26089         * tests/test-pipe-filter-gi1.c (main): Likewise.
26090         * tests/test-pipe-filter-ii1.c (main): Likewise.
26091
26092 2010-10-05  Eric Blake  <eblake@redhat.com>
26093
26094         bootstrap: fix Solaris regression
26095         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26096         around ranges.
26097         Reported by Pádraig Brady.
26098
26099         bootstrap: work with pkg-config
26100         * build-aux/bootstrap (check_versions): Also transliterate - in
26101         prerequisite name.
26102         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26103         prerequisites that were already found, to avoid confusion.
26104         Reported by Justin Clift.
26105
26106         faccessat: remove unused wrappers
26107         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26108         presence of these wrappers dragged in -lgen on Solaris.
26109         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26110
26111 2010-10-05  Jim Meyering  <meyering@redhat.com>
26112
26113         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26114         * Makefile (sc_pragma_columns): New syntax-check rule.
26115
26116 2010-10-04  Bruno Haible  <bruno@clisp.org>
26117
26118         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26119         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26120         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26121         Reported by Bruce Korb and Eric Blake.
26122
26123 2010-10-04  Bruno Haible  <bruno@clisp.org>
26124
26125         threadlib: Make option --with-libpth-prefix work.
26126         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26127         use $LIBPTH, not just -lpth.
26128
26129 2010-10-04  Bruno Haible  <bruno@clisp.org>
26130
26131         Avoid line length limitation from HP NonStop system header files.
26132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26133         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26134         * lib/ctype.in.h: Likewise.
26135         * lib/dirent.in.h: Likewise.
26136         * lib/errno.in.h: Likewise.
26137         * lib/fcntl.in.h: Likewise.
26138         * lib/float.in.h: Likewise.
26139         * lib/getopt.in.h: Likewise.
26140         * lib/iconv.in.h: Likewise.
26141         * lib/inttypes.in.h: Likewise.
26142         * lib/langinfo.in.h: Likewise.
26143         * lib/locale.in.h: Likewise.
26144         * lib/math.in.h: Likewise.
26145         * lib/netdb.in.h: Likewise.
26146         * lib/netinet_in.in.h: Likewise.
26147         * lib/poll.in.h: Likewise.
26148         * lib/pthread.in.h: Likewise.
26149         * lib/pty.in.h: Likewise.
26150         * lib/sched.in.h: Likewise.
26151         * lib/se-selinux.in.h: Likewise.
26152         * lib/search.in.h: Likewise.
26153         * lib/signal.in.h: Likewise.
26154         * lib/spawn.in.h: Likewise.
26155         * lib/stdarg.in.h: Likewise.
26156         * lib/stddef.in.h: Likewise.
26157         * lib/stdint.in.h: Likewise.
26158         * lib/stdio.in.h: Likewise.
26159         * lib/stdlib.in.h: Likewise.
26160         * lib/string.in.h: Likewise.
26161         * lib/strings.in.h: Likewise.
26162         * lib/sys_file.in.h: Likewise.
26163         * lib/sys_ioctl.in.h: Likewise.
26164         * lib/sys_select.in.h: Likewise.
26165         * lib/sys_socket.in.h: Likewise.
26166         * lib/sys_stat.in.h: Likewise.
26167         * lib/sys_time.in.h: Likewise.
26168         * lib/sys_times.in.h: Likewise.
26169         * lib/sys_utsname.in.h: Likewise.
26170         * lib/sys_wait.in.h: Likewise.
26171         * lib/sysexits.in.h: Likewise.
26172         * lib/termios.in.h: Likewise.
26173         * lib/time.in.h: Likewise.
26174         * lib/unistd.in.h: Likewise.
26175         * lib/wchar.in.h: Likewise.
26176         * lib/wctype.in.h: Likewise.
26177         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26178         * modules/ctype (Makefile.am): Likewise.
26179         * modules/dirent (Makefile.am): Likewise.
26180         * modules/errno (Makefile.am): Likewise.
26181         * modules/fcntl-h (Makefile.am): Likewise.
26182         * modules/float (Makefile.am): Likewise.
26183         * modules/getopt-posix (Makefile.am): Likewise.
26184         * modules/iconv-h (Makefile.am): Likewise.
26185         * modules/inttypes (Makefile.am): Likewise.
26186         * modules/langinfo (Makefile.am): Likewise.
26187         * modules/locale (Makefile.am): Likewise.
26188         * modules/math (Makefile.am): Likewise.
26189         * modules/netdb (Makefile.am): Likewise.
26190         * modules/netinet_in (Makefile.am): Likewise.
26191         * modules/poll-h (Makefile.am): Likewise.
26192         * modules/pthread (Makefile.am): Likewise.
26193         * modules/pty (Makefile.am): Likewise.
26194         * modules/sched (Makefile.am): Likewise.
26195         * modules/search (Makefile.am): Likewise.
26196         * modules/selinux-h (Makefile.am): Likewise.
26197         * modules/signal (Makefile.am): Likewise.
26198         * modules/spawn (Makefile.am): Likewise.
26199         * modules/stdarg (Makefile.am): Likewise.
26200         * modules/stddef (Makefile.am): Likewise.
26201         * modules/stdint (Makefile.am): Likewise.
26202         * modules/stdio (Makefile.am): Likewise.
26203         * modules/stdlib (Makefile.am): Likewise.
26204         * modules/string (Makefile.am): Likewise.
26205         * modules/strings (Makefile.am): Likewise.
26206         * modules/sys_file (Makefile.am): Likewise.
26207         * modules/sys_ioctl (Makefile.am): Likewise.
26208         * modules/sys_select (Makefile.am): Likewise.
26209         * modules/sys_socket (Makefile.am): Likewise.
26210         * modules/sys_stat (Makefile.am): Likewise.
26211         * modules/sys_time (Makefile.am): Likewise.
26212         * modules/sys_times (Makefile.am): Likewise.
26213         * modules/sys_utsname (Makefile.am): Likewise.
26214         * modules/sys_wait (Makefile.am): Likewise.
26215         * modules/sysexits (Makefile.am): Likewise.
26216         * modules/termios (Makefile.am): Likewise.
26217         * modules/time (Makefile.am): Likewise.
26218         * modules/unistd (Makefile.am): Likewise.
26219         * modules/wchar (Makefile.am): Likewise.
26220         * modules/wctype (Makefile.am): Likewise.
26221
26222 2010-10-04  Bruno Haible  <bruno@clisp.org>
26223
26224         read-file tests: Avoid a test failure on NonStop Kernel.
26225         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26226         a regular file.
26227         Reported by Joachim Schmitz <schmitz@hp.com>.
26228
26229 2010-10-03  Bruno Haible  <bruno@clisp.org>
26230
26231         gnulib-tool: Fixes for --create-testdir with --libtool.
26232         * gnulib-tool (func_get_automake_snippet): Don't augment
26233         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26234         an executable.
26235         (func_create_testdir): Handle module 'alloca' like func_import.
26236         Reported by Bruce Korb <bruce.korb@gmail.com>.
26237
26238 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26239
26240         Avoid some lines longer than 80 characters.
26241         * lib/stdint.in.h: Break long comment lines.
26242         * lib/math.in.h: Likewise.
26243         (_GL_NUM_UINT_WORDS): New macro, for readability.
26244         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26245         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26246         * lib/stdlib.in.h: Likewise.
26247         * lib/spawn.in.h: Likewise.
26248         * lib/sys_socket.in.h: Update an URL.
26249         * lib/sys_stat.in.h: Break long line.
26250
26251 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26252
26253         Improve pmccabe2html.
26254         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26255         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26256         when the sources change. Remove the line in the HTML about "Used
26257         ranges" (which implied that there might be other unused ranges),
26258         rename "Resume" to "Summary" (easier to understand for more users).
26259         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26260         styles, and some unnecessary blank lines.
26261
26262 2010-10-03  Bruno Haible  <bruno@clisp.org>
26263             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26264
26265         acl: Add support for ACLs on NonStop Kernel.
26266         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26267         Check whether the function aclsort() exists.
26268         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26269         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26270         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26271         (acl_nontrivial [HAVE_ACLSORT]: New function.
26272         (file_has_acl): Implement for NonStop Kernel.
26273         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26274         (qset_acl): Implement for NonStop Kernel.
26275         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26276         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26277         (main): Implement for NonStop Kernel.
26278         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26279         Kernel. Handle this flavor.
26280         * tests/test-set-mode-acl.sh: Likewise.
26281         * tests/test-copy-acl.sh: Likewise.
26282         * tests/test-copy-file.sh: Likewise.
26283
26284 2010-10-03  Bruno Haible  <bruno@clisp.org>
26285
26286         Info about ACLs on NonStop Kernel.
26287         * doc/acl-resources.txt: Add info about NonStop Kernel.
26288         References by Joachim Schmitz <schmitz@hp.com>.
26289
26290 2010-10-02  Bruno Haible  <bruno@clisp.org>
26291
26292         Define missing EDQUOT on NonStop Kernel.
26293         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26294         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26295         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26296         missing.
26297         * doc/posix-headers/errno.texi: Mention the NSK bug.
26298         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26299         Reported by Joachim Schmitz <schmitz@hp.com>.
26300
26301 2010-10-02  Bruno Haible  <bruno@clisp.org>
26302
26303         Update doc for POSIX:2008.
26304         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26305         Update URL of POSIX specification.
26306
26307 2010-10-02  Bruno Haible  <bruno@clisp.org>
26308
26309         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26310         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26311         from gnulib, not from Automake.
26312
26313 2010-10-02  Bruno Haible  <bruno@clisp.org>
26314
26315         New module 'system-posix'.
26316         * modules/system-posix: New file.
26317         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26318         module is present.
26319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26320         GNULIB_SYSTEM_POSIX.
26321         * modules/stdlib (Depends-on): Remove sys_wait.
26322         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26323         * doc/posix-functions/system.texi: Mention the new module.
26324         * doc/posix-headers/stdlib.texi: Likewise.
26325         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26326         define test_sys_wait_macros to a no-op.
26327         Reported by Sam Steingold <sds@gnu.org>.
26328
26329 2010-09-30  Bruno Haible  <bruno@clisp.org>
26330
26331         More renaming from 'getdate' to 'get_date'.
26332         * doc/get_date.texi: Renamed from doc/getdate.texi.
26333         * modules/get_date (Files): Update.
26334         * MODULES.html.sh (Date and time <time.h>): Update.
26335         * DEPENDENCIES: Update.
26336         * gnulib-tool: Update comment.
26337         * m4/bison.m4 (gl_BISON): Likewise.
26338         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26339
26340 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26341
26342         bootstrap: support ACLOCAL_FLAGS during aclocal
26343         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26344         can add additional -I dir for third-party .m4 files.
26345
26346 2010-09-30  Eric Blake  <eblake@redhat.com>
26347
26348         bootstrap: use glibtoolize on MacOS
26349         * build-aux/bootstrap (check_versions): Convert libtool into
26350         libtoolize.
26351         (tool search): Move libtool check earlier, and look for
26352         glibtoolize for MacOS.
26353         (gnulib_tool_options): Auto-add --libtool when appropriate.
26354         Reported by Justin Clift.
26355
26356         poll: fix typo that broke test on MacOS
26357         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26358         Reported by Justin Clift.
26359
26360         getdate: rename to get_date
26361         Note: getdate.h is not renamed, to minimize client impact.
26362         * modules/getdate: Mark obsolete.  Move old contents...
26363         * modules/get_date: ...to new module name.
26364         * modules/getdate-tests: Move...
26365         * modules/get_date-tests: ...here.
26366         * m4/getdate.m4: Move...
26367         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26368         * lib/getdate.y: Move...
26369         * lib/get_date.y: ...here.
26370         * tests/test-getdate.c: Move...
26371         * tests/test-get_date.c: ...here.
26372         * doc/posix-functions/getdate.texi (getdate): Update name.
26373         * NEWS: Mention the change.
26374
26375 2010-09-29  Bruno Haible  <bruno@clisp.org>
26376
26377         Separate the module 'waitpid' from the module 'sys_wait'.
26378         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26379         present.
26380         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26381         gl_MODULE_INDICATOR_FOR_TESTS.
26382         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26383         * modules/sys_wait (Depends-on): Remove waitpid.
26384         (Makefile.am): Substitute GNULIB_WAITPID.
26385         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26386         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26387         signature only if the 'waitpid' module is present.
26388         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26389         * NEWS: Mention the change.
26390         * modules/grantpt (Depends-on): Add waitpid.
26391         * modules/wait-process (Depends-on): Likewise.
26392
26393 2010-09-29  Bruno Haible  <bruno@clisp.org>
26394
26395         More tests for module 'sys_wait'.
26396         * modules/sys_wait-c++-tests: New file.
26397         * tests/test-sys_wait-c++.cc: New file.
26398         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26399         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26400
26401 2010-09-29  Bruno Haible  <bruno@clisp.org>
26402
26403         New module 'waitpid'.
26404         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26405         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26406         Don't include <process.h>.
26407         (waitpid): Declare only, using modern idiom.
26408         * m4/waitpid.m4: New file.
26409         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26410         * modules/waitpid: New file.
26411         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26412         (Makefile.am): Update.
26413         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26414
26415 2010-09-28  Bruno Haible  <bruno@clisp.org>
26416
26417         poll: Assume ANSI C.
26418         * lib/poll.c (poll): Use an ANSI C declaration.
26419
26420 2010-09-28  Bruno Haible  <bruno@clisp.org>
26421
26422         poll-h: Create poll.h on all platforms.
26423         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26424         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26425         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26426         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26427         (gl_REPLACE_POLL_H): Don't set POLL_H.
26428         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26429         * modules/poll-h (Depends-on): Add include_next.
26430         (Makefile.am): Create poll.h unconditionally. Substitute also
26431         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26432
26433 2010-09-28  Bruno Haible  <bruno@clisp.org>
26434
26435         Tests for module 'poll-h'.
26436         * modules/poll-h-c++-tests: New file.
26437         * tests/test-poll-h-c++.cc: New file.
26438
26439         Tests for module 'poll-h'.
26440         * modules/poll-h-tests: New file.
26441         * tests/test-poll-h.c: New file.
26442
26443 2010-09-28  Bruno Haible  <bruno@clisp.org>
26444
26445         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26446         * modules/poll-h (Depends-on): Add 'extensions'.
26447
26448 2010-09-28  Bruno Haible  <bruno@clisp.org>
26449
26450         New module 'poll-h'.
26451         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26452         (poll): Use modern idiom.
26453         * modules/poll-h: New file.
26454         * modules/poll (Files): Remove lib/poll.in.h.
26455         (Depends-on): Add poll-h.
26456         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26457         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26458         * m4/poll_h.m4: New file.
26459         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26460         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26461         and invoke gl_REPLACE_POLL_H.
26462         * lib/poll.c: Use common idiom.
26463         * tests/test-poll.c: Likewise.
26464         * doc/posix-headers/poll.texi: Mention the poll-h module.
26465         Suggested by Eric Blake.
26466
26467 2010-09-26  Bruno Haible  <bruno@clisp.org>
26468
26469         sys_wait: Implement WSTOPSIG.
26470         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26471         Reported by Simon Josefsson.
26472
26473 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26474
26475         stdlib, sys_wait: Avoid compilation error on mingw.
26476         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26477
26478 2010-09-26  Bruno Haible  <bruno@clisp.org>
26479
26480         stdlib tests: Avoid code duplication.
26481         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26482         * modules/sys_wait-tests (Files): Likewise.
26483         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26484         * tests/test-stdlib.c: Include test-sys_wait.h.
26485         (main): Invoke test_sys_wait_macros.
26486         * tests/test-sys_wait.c: Include test-sys_wait.h.
26487         (main): Invoke test_sys_wait_macros.
26488
26489 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26490
26491         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26492         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26493         sure Windows sockets are working before calling getaddrinfo.
26494         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26495         * doc/gnulib.texi (Windows sockets): Fix typo.
26496
26497 2010-09-25  Bruno Haible  <bruno@clisp.org>
26498
26499         Tests for module 'regex-quote'.
26500         * modules/regex-quote-tests: New file.
26501         * tests/test-regex-quote.c: New file.
26502
26503         New module 'regex-quote'.
26504         * lib/regex-quote.h: New file.
26505         * lib/regex-quote.c: New file.
26506         * modules/regex-quote: New file.
26507         Suggested by Reuben Thomas <rrt@sc3d.org>.
26508
26509 2010-09-24  Bruno Haible  <bruno@clisp.org>
26510
26511         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26512         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26513
26514 2010-09-23  Bruno Haible  <bruno@clisp.org>
26515
26516         setenv: Relax license.
26517         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26518         Blake.
26519         Requested by Eric Blake.
26520
26521 2010-09-22  Bruno Haible  <bruno@clisp.org>
26522
26523         termios: Relax license.
26524         * modules/termios (License): Change to LGPLv2+.
26525         Requested by Eric Blake.
26526
26527 2010-09-22  Bruno Haible  <bruno@clisp.org>
26528
26529         threadlib: Allow the package to change the default to 'no'.
26530         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26531         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26532         Reported by Paul Eggert.
26533
26534 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26535             Bruno Haible  <bruno@clisp.org>
26536
26537         Fix endless loop in mbmemcasecoll.
26538         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26539         byte.
26540         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26541
26542 2010-09-22  Bruno Haible  <bruno@clisp.org>
26543
26544         Tests for module 'memcoll'.
26545         * modules/memcoll-tests: New file.
26546         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26547
26548         memcoll, xmemcoll: Clarify size vs. length.
26549         * modules/memcoll.c (memcoll0): Clarify specification.
26550         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26551         passed to collate_error.
26552
26553 2010-09-22  Bruno Haible  <bruno@clisp.org>
26554
26555         Tests for module 'memcasecmp'.
26556         * modules/memcasecmp-tests: New file.
26557         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26558
26559 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26560
26561         * lib/pthread.in.h: Add split double-inclusion guard, and include
26562         system <pthread.h> if there is one.  Use @@-style as in other
26563         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26564         pthread.h doesn't.
26565         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26566         (pthread_mutexattr_settype, pthread_mutex_trylock):
26567         New static inline functions, if there's no system <pthread.h>.
26568         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26569         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26570         Approximate with mutexes if the system lacks spinlocks, as in
26571         MacOS.
26572         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26573         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26574         @@-style.  Check for spinlocks separately.
26575         (gl_PTHREAD_DEFAULTS): New macro.
26576         * modules/pthread: Redo to use a more typical style for in.h files.
26577
26578 2010-09-21  Eric Blake  <eblake@redhat.com>
26579
26580         net_if: enhance tests
26581         * tests/test-net_if.c (main): Move signature checks earlier.
26582         Print failures to stderr.
26583         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26584         Document the bug that we do not yet fix.
26585
26586 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26587
26588         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26589         about gnulib, not GSS.
26590
26591 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26592
26593         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26594         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26595         for Emacs.
26596         * build-aux/pmccabe2html: Make Makefile.am example code more
26597         cut-and-paste friendly.
26598
26599 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26600
26601         * tests/test-net_if.c: New file.
26602         * modules/net_if-tests: New file.
26603
26604 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26605
26606         pthread: add pthread_spin_destroy
26607         * lib/pthread.in.h (pthread_spin_destroy): New function.
26608
26609 2010-09-19  Bruno Haible  <bruno@clisp.org>
26610
26611         gnulib-tool: Fix --help output.
26612         * gnulib-tool (func_usage): Fix help message.
26613         Reported by Reuben Thomas <rrt@sc3d.org>.
26614
26615 2010-09-18  Jim Meyering  <meyering@redhat.com>
26616
26617         maint.mk: avoid unexpanded \n in two diagnostics
26618         * top/maint.mk (sc_prohibit_always_true_header_tests):
26619         Don't use a literal \n in a halt=... assignment.  It would not be
26620         expanded, and the two \n bytes would appear in the diagnostic output
26621         rather than the desired newline.  Use halt=$$(printf ... instead.
26622         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26623
26624 2010-09-18  Bruno Haible  <bruno@clisp.org>
26625
26626         netinet_in: Doc tweak.
26627         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26628         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26629
26630 2010-09-18  Jim Meyering  <meyering@redhat.com>
26631
26632         init.sh: correct an outdated comment
26633         * tests/init.sh (create_exe_shims_):  s/function/alias/
26634
26635         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26636         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26637         a file named "*.exe" is removed between the glob expansion and the
26638         processing of that oddly named file.
26639
26640 2010-09-17  Eric Blake  <eblake@redhat.com>
26641
26642         mirbsd: add some more support
26643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26644         in BSD family.
26645         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26646         devices as OpenBSD.
26647         * m4/host-os.m4 (mirbsd): Add MirBSD.
26648
26649         tests: fix unportable assumption on sys/wait.h
26650         * tests/test-sys_wait.c (main): Relax test.
26651         * tests/test-stdlib.c (main): Likewise.
26652
26653         init.sh: accommodate directory with no .exes
26654         * tests/init.sh: Accomodate directory containing only scripts.
26655
26656         tests: avoid compiler warning
26657         * tests/test-stdlib.c (main): Use the variable.
26658
26659         fdutimens, fdutimensat: update signature, again
26660         * lib/utimens.h (gl_futimens): Delete, and move signature...
26661         (fdutimens): ...here.
26662         (fdutimensat): Rearrange signature.
26663         (lutimensat): Rename variable for clarity.
26664         * lib/fdutimensat.c (fdutimensat): Update signature.
26665         * lib/utimens.c (fdutimens): Likewise.
26666         (gl_futimens): Delete.
26667         (utimens, lutimens): Update callers.
26668         * lib/futimens.c (futimens): Likewise.
26669         * tests/test-fdutimensat.c: Likewise.
26670         * tests/test-utimens.c: Likewise.
26671         * tests/test-futimens.h: Update comment.
26672         * NEWS: Mention this.
26673         Suggested by Paul Eggert.
26674
26675 2010-09-17  Bruno Haible  <bruno@clisp.org>
26676
26677         Take over the maintenance of some older macros from Autoconf.
26678         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26679         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26680         GNU Autoconf.
26681         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26682         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26683
26684 2010-09-17  Eric Blake  <eblake@redhat.com>
26685
26686         fdutimensat: drop atflag validation
26687         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26688         with valid fd, to close a race scenario where futimens is
26689         unsupported and FILE was replaced by a symlink.
26690         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26691         accordingly.
26692         Suggested by Paul Eggert.
26693
26694 2010-09-16  Bruno Haible  <bruno@clisp.org>
26695
26696         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26697         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26698
26699 2010-09-16  Bruno Haible  <bruno@clisp.org>
26700
26701         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26702         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26703         login_tty exists.
26704         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26705
26706 2010-09-16  Bruno Haible  <bruno@clisp.org>
26707
26708         login_tty: Make the replacement code work on BSD systems.
26709         * lib/login_tty.c: Include <sys/ioctl.h>.
26710         (login_tty): Use ioctl TIOCSCTTY when available.
26711         * modules/login_tty (Depends-on): Add sys_ioctl.
26712         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26713
26714 2010-09-16  Bruno Haible  <bruno@clisp.org>
26715
26716         login_tty: Stricter unit test.
26717         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26718         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26719         and tcgetsid() after login_tty.
26720         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26721
26722 2010-09-16  Bruno Haible  <bruno@clisp.org>
26723
26724         New module 'tcgetsid'.
26725         * lib/tcgetsid.c: New file.
26726         * m4/tcgetsid.m4: New file.
26727         * modules/tcgetsid: New file.
26728         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26729         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26730         GNULIB_TCGETSID, HAVE_TCGETSID.
26731         * lib/termios.in.h: Include <sys/types.h>.
26732         (tcgetsid): New declaration.
26733         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26734         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26735         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26736         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26737
26738 2010-09-16  Bruno Haible  <bruno@clisp.org>
26739
26740         Tests for module 'termios'.
26741         * modules/termios-c++-tests: New file.
26742         * modules/termios-tests: New file.
26743         * tests/test-termios-c++.cc: New file.
26744         * tests/test-termios.c: New file.
26745
26746         New module 'termios'.
26747         * modules/termios: New file.
26748         * lib/termios.in.h: New file.
26749         * m4/termios_h.m4: New file.
26750         * doc/posix-headers/termios.texi: Mention the new module.
26751
26752 2010-09-16  Eric Blake  <eblake@redhat.com>
26753
26754         fdutimensat: add an atflag parameter
26755         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26756         * lib/utimens.h (fdutimensat): Update prototype.
26757         * tests/test-fdutimensat.c: Adjust test to match.
26758         * NEWS: Document the change.
26759         Suggested by Paul Eggert.
26760
26761 2010-09-16  Bruno Haible  <bruno@clisp.org>
26762
26763         Fix typos in comments.
26764         * lib/striconveh.h: Fix typo in comment.
26765         * lib/login_tty.c (login_tty): Likewise.
26766
26767 2010-09-15  Bruno Haible  <bruno@clisp.org>
26768
26769         stdlib: clarify MirBSD WEXITSTATUS bug
26770         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26771         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26772
26773 2010-09-15  Eric Blake  <eblake@redhat.com>
26774
26775         stdlib: work around MirBSD WEXITSTATUS bug
26776         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26777         * modules/stdlib (Depends-on): Add sys_wait.
26778         * tests/test-sys_wait.c (main): Enhance test.
26779         * tests/test-stdlib.c (main): Likewise.
26780         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26781
26782         docs: mention MacOS issue with WEXITSTATUS(constant)
26783         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26784         issue.
26785         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26786
26787         strnlen: add tests
26788         * modules/strnlen-tests: New file.
26789         * tests/test-strnlen.c: Likewise.
26790
26791 2010-09-14  Bruno Haible  <bruno@clisp.org>
26792
26793         unistr/base: Avoid link errors when module 'libunistring' is also used.
26794         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26795         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26796         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26797         Declare also when HAVE_LIBUNISTRING is set.
26798         Reported by Pádraig Brady <P@draigbrady.com>.
26799
26800 2010-09-14  Eric Blake  <eblake@redhat.com>
26801
26802         test-rawmemchr: make more robust
26803         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26804         (Depends-on, configure.ac): Add needed prerequisites to use it.
26805         * modules/memchr-tests (Files, Depends-on, configure.ac):
26806         Likewise, to avoid implicit reliance on memchr module prereqs.
26807         * tests/test-memchr.c (main): Ensure proper masking.
26808         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26809         reads.
26810
26811         memchr: detect glibc Alpha bug
26812         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26813         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26814         Alpha.
26815         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26816         * tests/test-memchr.c (main): Enhance test.
26817         Reported by Nelson H. F. Beebe.
26818
26819 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26820
26821         fts, getcwd, glob: audit for dirfd returning -1
26822         * lib/fts.c (opendir): Remove #define; no longer used.
26823         (opendirat): New arg PDIR_FD.  All callers changed.
26824         (fts_build, _opendir2): Use new opendirat to avoid the need for
26825         dirfd, or for checking whether dirfd returns a negative value.
26826         Don't use opendir; always use openat followed by fdopendir.
26827         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26828         it.
26829         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26830         returns -1 here.
26831         * modules/fts (Depends-on): Remove dirfd.
26832         * modules/getcwd (Depends-on): Likewise.
26833
26834 2010-09-13  Eric Blake  <eblake@redhat.com>
26835
26836         float: fix broken MirBSD header
26837         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26838         * doc/posix-headers/float.texi (float.h): Document it.
26839
26840 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26841
26842         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26843         * lib/fts.c (opendirat): New arg extra_flags.
26844         (__opendir2): Use it to avoid following symlinks when opening
26845         a directory, if symlinks are not supposed to be followed.  See
26846         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26847
26848         fdopendir: preserve argument fd before returning
26849         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26850         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26851         (fdopendir): Use them, arranging for FD to be open to the same
26852         directory that it was when it started.  (It might be temporarily
26853         closed while fdopendir is running, so this not thread- or
26854         signal-safe.)  Be careful to do the right thing even when file
26855         descriptors are scarce and dup fails with errno == EMFILE.  See
26856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26857
26858 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26859
26860         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26861         * NEWS: Document change.
26862         * m4/regex.m4: Disable test for regoff_t size.
26863
26864 2010-09-13  Jim Meyering  <meyering@redhat.com>
26865
26866         fts: don't operate on an invalid file descriptor after failed dup
26867         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26868         negative file descriptor.
26869
26870 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26871
26872         savedir: add streamsavedir, deprecate fdsavedir
26873         * NEWS: Mention deprecation of fdsavedir.
26874         * lib/savedir.c (streamsavedir): New extern function, whose name
26875         ends in "savedir" to be consistent with the others.  This differs
26876         from savedirstream in that it doesn't close its argument.  The
26877         next version of GNU tar will use this instead of fdsavedir, to
26878         avoid some race conditions and conserve file descriptors.
26879         (savedirstream): Reimplement as a wrapper around streamsavedir.
26880         (fdsavedir): Add a comment deprecating this function.  As far as
26881         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26882         * lib/savedir.h (streamsavedir): New decl.
26883         (fdsavedir): Add a comment deprecating this.
26884
26885 2010-09-10  Bruno Haible  <bruno@clisp.org>
26886
26887         langinfo: Fix last commit.
26888         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26889         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26891
26892 2010-09-10  Bruno Haible  <bruno@clisp.org>
26893
26894         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26895         * lib/progreloc.c (O_EXEC): Define fallback.
26896
26897 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26900         * NEWS: Document recent changes to fcntl-h.
26901         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26902         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26903         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26904         Similarly for O_SEARCH; this last was already true, but not documented.
26905         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26906         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26907         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26908         Likewise.
26909         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26910         is zero, not whether it is defined.
26911         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26912         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26913         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26914
26915 2010-09-10  Bruno Haible  <bruno@clisp.org>
26916
26917         langinfo, nl_langinfo: Fix for IRIX 5.3.
26918         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26919         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26920         HAVE_LANGINFO_YESEXPR.
26921         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26922         HAVE_LANGINFO_YESEXPR.
26923         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26924         HAVE_LANGINFO_T_FMT_AMPM is 0.
26925         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26926         HAVE_LANGINFO_YESEXPR is 0.
26927         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26928         NOEXPR.
26929         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26930         * doc/posix-functions/nl_langinfo.texi: Likewise.
26931         Reported by Eric Blake.
26932
26933 2010-09-10  Bruno Haible  <bruno@clisp.org>
26934
26935         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26936         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26937         on FreeBSD 8.0 and OpenBSD 4.6.
26938         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26939         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26940         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26941         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26942         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26943         ac_includes_default.
26944         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26945
26946 2010-09-09  Eric Blake  <eblake@redhat.com>
26947
26948         strsignal: work around NetBSD bug
26949         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26950         * lib/string.in.h (includes): Likewise.
26951         * doc/posix-functions/strsignal.texi (strsignal): Document the
26952         bug.
26953         Reported by Nelson H. F. Beebe.
26954
26955         gnulib-tool: work with NetBSD /bin/sh
26956         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26957         (func_get_description, func_get_comment, func_get_status)
26958         (func_get_notice, func_get_applicability, func_get_filelist)
26959         (func_get_dependencies, func_get_autoconf_early_snippet)
26960         (func_get_autoconf_snippet, func_get_automake_snippet)
26961         (func_get_include_directive, func_get_link_directive)
26962         (func_get_license, func_get_maintainer, func_import): Avoid
26963         shell syntax errors from parsing syntax extensions.
26964
26965 2010-09-09  Bruno Haible  <bruno@clisp.org>
26966
26967         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26968         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26969         a reliable way to determine whether the 'alias' command works.
26970
26971 2010-09-08  Jim Meyering  <meyering@redhat.com>
26972
26973         init.sh: penalize a set-x-impaired shell; don't disqualify it
26974         * tests/init.sh: Too many shells corrupt application stderr when
26975         you set -x, so we can't afford to disqualify them, since at least
26976         on Irix-6.5, that would disqualify all bourne shells.
26977         Instead, use a two-pass approach.
26978         On the first pass, try to find a shell that meets the stricter
26979         condition that set -x does not corrupt stderr.
26980         If no shell meets the stricter condition, retest each candidate
26981         shell, but without that extra condition.  Finally, when
26982         VERBOSE=yes is requested and set -x might cause trouble, simply
26983         issue a warning and refrain from enabling debug output.
26984
26985 2010-09-08  Eric Blake  <eblake@redhat.com>
26986
26987         unsetenv: fix OpenBSD bug
26988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26989         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26990         documentation.
26991         Reported by Jim Meyering.
26992
26993         strtod: work around IRIX 6.5 bug
26994         * lib/strtod.c (strtod): Reparse number on shorter string if
26995         exponent parse was invalid.
26996         * tests/test-strtod.c (main): Add check for "0x1p 2".
26997         Reported by Tom G. Christensen.
26998
26999         getopt: optimize previous patch
27000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27001         empty variable.  Speed up awk script.
27002         Reported by Paolo Bonzini.
27003
27004 2010-09-08  Jim Meyering  <meyering@redhat.com>
27005
27006         test.sh: disqualify shells for which set -x corrupts stderr
27007         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27008         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27009         appear in stderr output.  For example, this command:
27010             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27011         prints "P=1" on those two systems:
27012
27013 2010-09-08  Bruno Haible  <bruno@clisp.org>
27014
27015         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27016         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27017         commands, because some shells ignore redirections when there is an
27018         error in the command lookup.
27019         Reported by Eric Blake.
27020
27021 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27022
27023         * lib/regex.h: Fix a mention of `regex_compile' (should be
27024         `re_compile_pattern').
27025         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27026         (re_set_registers): Correct name of parameter in comment.
27027
27028         * doc/regex.texi: Add documentation for missing syntax flags.
27029         Remove commented-out documentation of defunct syntax option
27030         RE_NO_EMPTY_ALTS.
27031         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27032         Add documentation of re_set_registers.
27033         Document trick to re-use a pattern buffer by setting fastmap manually.
27034         Update documentation of struct re_pattern_buffer per public members.
27035         Uncomment documentation of equivalence class operators and
27036         collating symbol operators, since they are now implemented,
27037         Explain leftmost-longest matching in relation to alternatives.
27038         Tidy documentation of substring matching.
27039         Remove POSIX documentation, which is done better in
27040         glibc, and refer the reader there. Keep BSD API documentation, as
27041         that is not readily available elsewhere.
27042
27043 2010-09-07  Eric Blake  <eblake@redhat.com>
27044
27045         getopt: handle POSIXLY_CORRECT set but not exported
27046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27047         export state of POSIXLY_CORRECT, due to bash set -o posix.
27048         Reported by Dustin J. Mitchell.
27049
27050 2010-09-05  Bruno Haible  <bruno@clisp.org>
27051
27052         gnulib-tool: Highlight the changed options.
27053         * gnulib-tool (func_usage): Display the --import, --add-import,
27054         --remove-import explanations in bold font.
27055
27056 2010-09-06  Karl Berry  <karl@gnu.org>
27057
27058         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27059
27060 2010-09-05  Bruno Haible  <bruno@clisp.org>
27061
27062         uniwidth/width: Update comment.
27063         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27064         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27065
27066 2010-09-05  Bruno Haible  <bruno@clisp.org>
27067
27068         isinf, isnan: Relax license.
27069         * modules/isinf (License): Change from GPL to LGPL, with consent from
27070         Ben Pfaff.
27071         * modules/isnan (License): Likewise.
27072         Requested by Ludovic Courtès.
27073
27074 2010-09-04  Bruno Haible  <bruno@clisp.org>
27075
27076         gnulib-tool: Help migration from --import to --add-import or --update.
27077         * gnulib-tool: Emit a verbose error message when --import is used
27078         without any module name.
27079
27080 2010-09-04  Bruno Haible  <bruno@clisp.org>
27081
27082         Update doc about gnulib-tool.
27083         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27084         'gnulib-tool --update' in more detail.
27085         Reported by Eric Blake.
27086
27087 2010-09-04  Bruno Haible  <bruno@clisp.org>
27088
27089         gnulib-tool: Change --import. New options --add/remove-import.
27090         * gnulib-tool: New options --add-import, --remove-import.
27091         (func_usage): Document them.
27092         (have_associative): Define always.
27093         (func_import): In import mode, don't merge the specified settings with
27094         the cached settings. Implement remove-import mode.
27095         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27096         Explain when to use them versus --import.
27097         (Simple update): Use --add-import instead of --import.
27098         * NEWS: Mention the change.
27099
27100 2010-09-04  Bruno Haible  <bruno@clisp.org>
27101
27102         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27103         separate gnulib.mk.
27104
27105 2010-09-04  Bruno Haible  <bruno@clisp.org>
27106
27107         gnulib-tool: Don't talk about CVS any more.
27108         * gnulib-tool (func_usage, func_import): Write "version control"
27109         instead of CVS.
27110
27111 2010-09-04  Jim Meyering  <meyering@redhat.com>
27112
27113         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27114         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27115         false positives (whose names may be ill-chosen) when searching
27116         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27117         would cause a false-positive.
27118
27119         avoid coreutils "make distcheck" failure
27120         Coreutils tests with an absolute build directory name that contains
27121         a space.  Not quoting this directory name caused a failure.
27122         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27123         * tests/test-vc-list-files-cvs.sh: Likewise.
27124
27125 2010-09-04  Bruno Haible  <bruno@clisp.org>
27126
27127         gnulib-tool: Avoid error when run in a package without Makefile.am.
27128         * gnulib-tool: When collecting the m4dirs in a package that does not
27129         have a Makefile.am, eliminate those directories that contain no
27130         gnulib-cache.m4. Fix expression that counts these directories.
27131
27132 2010-09-04  Bruno Haible  <bruno@clisp.org>
27133
27134         update-copyright test: Improve output when perl is missing or too old.
27135         * tests/test-update-copyright.sh: Move test of Perl version down after
27136         the test whether Perl exists. Provide an explanation relating Perl's
27137         error message to Automake's SKIP: message.
27138
27139 2010-09-04  Bruno Haible  <bruno@clisp.org>
27140
27141         Don't augment PATH in TESTS_ENVIRONMENT.
27142         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27143         set abs_aux_dir instead of augmenting PATH.
27144         * modules/vc-list-files-tests (Makefile.am): Likewise.
27145         * tests/test-update-copyright.sh: Augment PATH here.
27146         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27147         path_prepend_.
27148         * tests/test-vc-list-files-git.sh: Likewise.
27149
27150 2010-09-04  Jim Meyering  <meyering@redhat.com>
27151
27152         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27153         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27154
27155 2010-09-04  Bruno Haible  <bruno@clisp.org>
27156
27157         strdup: Fix compilation error in C++ mode.
27158         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27159         the macro.
27160
27161 2010-09-04  Bruno Haible  <bruno@clisp.org>
27162
27163         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27164         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27165         macro into a function.
27166         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27167
27168 2010-09-04  Bruno Haible  <bruno@clisp.org>
27169
27170         Set PATH_SEPARATOR the same way autoconf does.
27171         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27172         the value of PATH_SEPARATOR the same way autoconf-generated configure
27173         scripts do.
27174         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27175         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27176
27177 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27178
27179         Set PATH_SEPARATOR the same way autoconf does.
27180         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27181         the same way autoconf-generated configure scripts do.
27182         * posix-modules: Likewise.
27183
27184 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27185
27186         hash: fix safe_hasher const typo
27187         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27188         const; otherwise, there is a type error later.
27189
27190 2010-09-02  Jim Meyering  <meyering@redhat.com>
27191
27192         test-update-copyright.sh: require perl 5.8.0
27193         * tests/test-update-copyright.sh: Require 5.8.0,
27194         which Tom G. Christensen has confirmed is adequate,
27195         while 5.6.1 is not.
27196
27197 2010-09-02  Eric Blake  <eblake@redhat.com>
27198
27199         tests: init.sh improvements for re-exec'ing with zsh
27200         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27201         -vx through shell re-exec.
27202         Reported by Tom G. Christensen.
27203
27204         wctype: fix typo in previous commit
27205         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27206         Reported by Ludovic Courtès.
27207
27208 2010-09-02  Jim Meyering  <meyering@redhat.com>
27209
27210         test-update-copyright.sh: skip test if Perl is too old
27211         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27212         Reported by Tom G. Christensen.
27213
27214 2010-09-02  Bruno Haible  <bruno@clisp.org>
27215
27216         wctype: Avoid compilation error on IRIX 6.5.30.
27217         * lib/wctype.in.h (iswblank): Declare with a replacement if
27218         REPLACE_ISWBLANK is set.
27219         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27220         declared. Set REPLACE_ISWBLANK.
27221         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27222         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27223         * doc/posix-headers/wctype.texi: Likewise.
27224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27225
27226 2010-09-01  Bruno Haible  <bruno@clisp.org>
27227
27228         New module 'socketlib'.
27229         * modules/socketlib: New file.
27230         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27231         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27232         * modules/sockets (Depends-on): Add socketlib.
27233         Suggested by Sam Steingold <sds@gnu.org>.
27234
27235 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27236
27237         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27238
27239         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27240         when one needs search access to a directory but not read access.
27241         On systems where it is available, it works in some cases where
27242         O_RDONLY does not, namely on directories that are searchable but
27243         not readable, and which need only to be searchable.  If O_SEARCH
27244         is not available, fall back to the traditional method of using
27245         O_RDONLY.
27246
27247         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27248         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27249         when opening a directory that needs only to be searchable.
27250         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27251         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27252         * lib/openat-proc.c (openat_proc_name): Likewise.
27253         * lib/openat.c (openat_needs_fchdir): Likewise.
27254         * lib/save-cwd.c (save_cwd): Likewise.
27255         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27256
27257 2010-08-28  Bruno Haible  <bruno@clisp.org>
27258
27259         New module 'host-cpu-c-abi'.
27260         * modules/host-cpu-c-abi: New file.
27261         * m4/host-cpu-c-abi.m4: New file, based on part of
27262         clisp/src/m4/general.m4.
27263         Requested by Sam Steingold <sds@gnu.org>.
27264
27265 2010-08-31  Eric Blake  <eblake@redhat.com>
27266         and Jim Meyering  <meyering@redhat.com>
27267
27268         hash: factor, and guard against misbehaving hasher function
27269         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27270         of table->hasher's return value.  Also protect against a hash value
27271         so large that adding it to table->bucket results in a NULL pointer.
27272         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27273         Use it in place of open-coded check-and-abort.
27274
27275 2010-08-30  Bruno Haible  <bruno@clisp.org>
27276
27277         hash: silence spurious clang warning
27278         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27279         Reported by Eric Blake.
27280
27281 2010-08-30  Eric Blake  <eblake@redhat.com>
27282
27283         strstr, memmem, strcasestr: avoid leaked shell message
27284         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27285         FreeBSD.
27286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27288
27289         tests: silence clang warning
27290         * tests/test-malloca.c (do_allocation): Avoid dead store.
27291
27292 2010-08-29  Bruno Haible  <bruno@clisp.org>
27293
27294         gettext: Fix recent mistake.
27295         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27296
27297 2010-08-29  Bruno Haible  <bruno@clisp.org>
27298
27299         selinux-h: Offer a --without-selinux option.
27300         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27301         --without-selinux was specified, skip all tests and define
27302         HAVE_SELINUX_SELINUX_H to 0.
27303         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27304         set LIB_SELINUX to empty.
27305         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27306         gl_LIBSELINUX. If --without-selinux was specified, replace
27307         selinux/context.h.
27308         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27309
27310 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27311             Bruno Haible  <bruno@clisp.org>
27312
27313         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27314         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27315         of HAVE_REALLOC.
27316         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27317         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27318         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27319         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27320
27321 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27322             Bruno Haible  <bruno@clisp.org>
27323
27324         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27325         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27326         HAVE_CALLOC.
27327         * lib/xmalloc.c: Update accordingly.
27328         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27329         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27330         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27331
27332 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27333             Bruno Haible  <bruno@clisp.org>
27334
27335         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27336         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27337         HAVE_MALLOC.
27338         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27339         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27340         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27341
27342 2010-08-29  Bruno Haible  <bruno@clisp.org>
27343
27344         Update modules list.
27345         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27346         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27347         (String handling <string.h>): Add astrxfrm.
27348         (File system functions): Add readlinkat.
27349
27350 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27351
27352         Tests for module 'realloc-gnu'.
27353         * modules/realloc-gnu-tests: New file.
27354         * tests/test-realloc-gnu.c: New file.
27355
27356         Tests for module 'calloc-gnu'.
27357         * modules/calloc-gnu-tests: New file.
27358         * tests/test-calloc-gnu.c: New file.
27359
27360         Tests for module 'malloc-gnu'.
27361         * modules/malloc-gnu-tests: New file.
27362         * tests/test-malloc-gnu.c: New file.
27363
27364 2010-08-28  Bruno Haible  <bruno@clisp.org>
27365
27366         Rename module 'realloc' -> 'realloc-gnu'.
27367         * modules/realloc-gnu: New file, copied from modules/realloc.
27368         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27369         obsolete.
27370         * modules/mgetgroups (Depends-on): Update.
27371         * doc/posix-functions/realloc.texi: Update.
27372         * NEWS: Mention the change.
27373
27374         Rename module 'calloc' -> 'calloc-gnu'.
27375         * modules/calloc-gnu: New file, copied from modules/calloc.
27376         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27377         obsolete.
27378         * doc/posix-functions/calloc.texi: Update.
27379         * NEWS: Mention the change.
27380
27381         Rename module 'malloc' -> 'malloc-gnu'.
27382         * modules/malloc-gnu: New file, copied from modules/malloc.
27383         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27384         obsolete.
27385         * modules/argp (Depends-on): Update.
27386         * modules/regex (Depends-on): Update.
27387         * doc/posix-functions/malloc.texi: Update.
27388         * NEWS: Mention the change.
27389
27390 2010-08-28  Eric Blake  <eblake@redhat.com>
27391
27392         pread, pwrite: add missing dependency
27393         * modules/pread (Depends-on): Add extensions.
27394         * modules/pwrite (Depends-on): Likewise.
27395
27396 2010-08-28  Bruno Haible  <bruno@clisp.org>
27397
27398         unistr/u*-strchr: Fix tests dependencies.
27399         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27400         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27401         Reported by Ian Beckwith <ianb@erislabs.net>.
27402
27403 2010-08-28  Bruno Haible  <bruno@clisp.org>
27404
27405         read-file: Don't occupy too much unused memory.
27406         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27407
27408 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27409             Eric Blake  <eblake@redhat.com>
27410             Bruno Haible  <bruno@clisp.org>
27411
27412         read-file: Avoid memory reallocations with regular files.
27413         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27414         (fread_file): With regular files, use the remaining length as the
27415         initial buffer size.  Check against overflow.
27416         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27417         sys_stat.
27418
27419 2010-08-28  Bruno Haible  <bruno@clisp.org>
27420
27421         ftello: Relax license.
27422         * modules/ftello (License): Relax to LGPLv2+.
27423         Reported by Eric Blake.
27424
27425 2010-08-28  Bruno Haible  <bruno@clisp.org>
27426
27427         Avoid relocwrapper link errors due to gnulib replacement functions.
27428         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27429         function.
27430         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27431
27432 2010-08-28  Bruno Haible  <bruno@clisp.org>
27433
27434         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27435         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27436         defined.
27437         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27438         Suggested by Eric Blake.
27439
27440 2010-08-28  Bruno Haible  <bruno@clisp.org>
27441
27442         sys_socket, netdb: Ensure socklen_t gets defined.
27443         * modules/sys_socket (Depends-on): Add socklen.
27444         * modules/netdb (Depends-on): Likewise.
27445         * modules/getaddrinfo (Depends-on): Remove socklen.
27446         * modules/getsockopt (Depends-on): Likewise.
27447         * modules/setsockopt (Depends-on): Likewise.
27448         * tests/test-sys_socket.c: Check that socklen_t is defined.
27449         * tests/test-netdb.c: Likewise.
27450         * m4/socklen.m4: Update comments.
27451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27452
27453 2010-08-27  Eric Blake  <eblake@redhat.com>
27454
27455         login_tty: add missing dependency
27456         * modules/login_tty (Depends-on): Add pty.
27457
27458 2010-08-26  Eric Blake  <eblake@redhat.com>
27459
27460         lib-symbol-versions: fix m4 quoting
27461         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27462         format for AC_LINK_IFELSE.
27463
27464         glob: fix compile test
27465         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27466
27467         btowc: fix missing file
27468         * modules/btowc (Files): Also ship locale-fr.m4.
27469
27470         lseek: fix link test
27471         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27472         AC_LINK_IFELSE.
27473
27474         include_next: silence autoconf 2.68 warning
27475         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27476         AC_COMPILE_IFELSE as special.
27477         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27478         autoconf < 2.68.
27479
27480         acl: fix compilation test
27481         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27482         AC_COMPILE_IFELSE.
27483
27484 2010-08-26  Bruno Haible  <bruno@clisp.org>
27485
27486         Modernize AC_TRY_RUN invocations.
27487         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27488         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27489         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27490         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27491         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27492         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27493         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27495         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27496         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27497         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27498         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27499         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27502         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27503         gl_MBRLEN_NUL_RETVAL): Likewise.
27504         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27505         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27506         Likewise.
27507         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27508         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27509         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27510         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27511         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27512         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27513         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27514         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27515         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27516         Likewise.
27517         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27518         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27520         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27522         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27523         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27524         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27525         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27527
27528 2010-08-26  Bruno Haible  <bruno@clisp.org>
27529
27530         Modernize AC_TRY_LINK invocations.
27531         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27532         AC_TRY_LINK.
27533         * m4/argp.m4 (gl_ARGP): Likewise.
27534         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27535         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27536         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27537         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27538         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27539         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27540         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27541         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27542         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27543         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27544         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27545         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27546         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27547         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27548         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27549         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27550         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27551         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27552         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27553         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27554         Likewise.
27555         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27556         Likewise.
27557         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27558         Likewise.
27559         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27561         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27562         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27563         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27564         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27565         * m4/servent.m4 (gl_SERVENT): Likewise.
27566         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27567         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27568         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27569         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27570         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27571         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27572         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27574         * modules/tsearch-tests (configure.ac): Likewise.
27575
27576 2010-08-26  Bruno Haible  <bruno@clisp.org>
27577
27578         Modernize AC_TRY_COMPILE invocations.
27579         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27580         AC_TRY_COMPILE.
27581         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27582         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27583         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27584         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27585         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27586         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27587         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27588         * m4/lock.m4 (gl_LOCK): Likewise.
27589         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27590         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27591         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27592         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27593         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27594         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27595         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27597         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27598         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27599         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27600         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27601         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27602         extraneous semicolon.
27603
27604 2010-08-26  Jim Meyering  <meyering@redhat.com>
27605
27606         stat-time: relax license LGPL
27607         * modules/stat-time (License): Change from GPL to LGPL,
27608         with consent from all contributors, for use in libguile.
27609         Requested by Ludovic Courtès.
27610
27611 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27612
27613         poll: return immediately on POLLHUP.
27614         * lib/poll.c (poll): Always set timeout before wait_timeout is
27615         computed.
27616
27617 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27618
27619         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27620         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27621         rmdir ("dir/.//"), unlinkat.
27622
27623 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27624
27625         stdbool: avoid spurious failure with modern xlc
27626         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27627
27628 2010-08-24  Bruno Haible  <bruno@clisp.org>
27629
27630         getloadavg: simplify code
27631         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27632         gl_have_func. Update comments.
27633
27634 2010-08-24  Eric Blake  <eblake@redhat.com>
27635
27636         getloadavg: don't define SVR4 on cygwin
27637         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27638         only define SVR4 when -lkvm is required.
27639         Reported by Yaakov Selkowitz.
27640
27641 2010-08-24  Bruno Haible  <bruno@clisp.org>
27642
27643         priv-set: fix comment
27644         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27645
27646 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27647
27648         priv-set: fix comments
27649         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27650         to match code, as suggested by David Bartley in:
27651         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27652
27653 2010-08-23  Eric Blake  <eblake@redhat.com>
27654
27655         stdbool: avoid rejecting clang
27656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27657         * tests/test-stdbool.c: Enable more tests if using the system
27658         <stdbool.h> instead of the gnulib replacement.
27659         (main): Move xlc bug test to a runtime test for all compilers.
27660         Reported by Anders Kaseorg.
27661
27662         argz: fix shell quoting issue
27663         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27664         Reported by Charles Wilson.
27665
27666 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27667             Erik Faye-Lund <kusmabite@gmail.com>
27668
27669         poll, select: handle ERROR_BROKEN_PIPE.
27670         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27671         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27672         * lib/select.c (win32_compute_revents): Do not mark a pipe
27673         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27674
27675 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27676
27677         fts: allow compilation with C++
27678         * lib/fts_.h: Specify extern "C" linkage with C++.
27679
27680 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27681
27682         Fix gnulib-tool sed script de-commentation for AIX sed.
27683         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27684         sed.
27685
27686 2010-08-17  Eric Blake  <eblake@redhat.com>
27687
27688         test-stddef: test for (some) offsetof bugs
27689         * tests/test-stddef.c: Enhance test to ensure correct type of
27690         offsetof.
27691         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27692         that we are not fixing at this time.
27693
27694 2010-08-15  Bruno Haible  <bruno@clisp.org>
27695
27696         stpncpy: Allow stpncpy to be defined as a macro.
27697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27698         if it's already correctly declared.
27699         * lib/string.in.h (stpncpy): Undefine before redefining.
27700         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27701
27702 2010-08-14  Bruno Haible  <bruno@clisp.org>
27703
27704         Rename module 'memxfrm' to 'amemxfrm'.
27705         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27706         (amemxfrm): Renamed from memxfrm.
27707         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27708         (amemxfrm): Renamed from memxfrm.
27709         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27710         * NEWS: Mention the change.
27711         * MODULES.html.sh (String handling <string.h>): Update.
27712         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27713         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27714         * lib/unicase/u16-casexfrm.c: Likewise.
27715         * lib/unicase/u32-casexfrm.c: Likewise.
27716         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27717         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27718         * lib/uninorm/u16-normxfrm.c: Likewise.
27719         * lib/uninorm/u32-normxfrm.c: Likewise.
27720         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27721         memxfrm.
27722         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27723         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27724         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27725         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27726         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27727         Suggested by Paul Eggert.
27728
27729 2010-08-14  Bruno Haible  <bruno@clisp.org>
27730
27731         Tests for module 'astrxfrm'.
27732         * modules/astrxfrm-tests: New file.
27733         * tests/test-astrxfrm.c: New file.
27734
27735         New module 'astrxfrm'.
27736         * lib/astrxfrm.h: New file.
27737         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27738         * modules/astrxfrm: New file.
27739
27740 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27741
27742         regex: Tweak doc.
27743         * doc/regex.texi (Overview): Don't mention regex.c.
27744         (GNU Regular Expression Compiling): Likewise.
27745         (Match-end-of-line Operator): Mention 'not_eol'.
27746
27747 2010-08-14  Brian Gough  <bjg@gnu.org>
27748             Bruno Haible  <bruno@clisp.org>
27749
27750         git-merge-changelog: add doc relating to use with bzr and hg.
27751         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27752
27753 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27754
27755         pthread: fix pthread.h creation for srcdir != builddir
27756         * modules/pthread (Makefile.am): Fix the rule to work also in a
27757         non-srcdir build.
27758
27759 2010-08-13  Karl Berry  <karl@gnu.org>
27760
27761         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27762         * doc/posix-*/*: force line break before @url of POSIX
27763         specifications.
27764         Suggested by Werner Lemberg.
27765
27766 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27767
27768         strtod: fix const diagnostic
27769         * lib/strtod.c (strtod): Don't assign const char * to char *,
27770         as this elicits a warning from GCC when warnings are enabled.
27771
27772 2010-08-10  Pádraig Brady <P@draigbrady.com>
27773         and Eric Blake  <eblake@redhat.com>
27774
27775         copy-acl: ignore ENOTSUP on HP-UX
27776         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27777         so that it is available for HP-UX.
27778         * lib/copy-acl.c (qcopy_acl): Use it.
27779         Reported by Patrick M. Callahan.
27780
27781 2010-08-10  Eric Blake  <eblake@redhat.com>
27782
27783         open, chown: relax license
27784         * modules/open (License): Change to LGPLv2+, with consent by all
27785         authors, for use in augeas.
27786         * modules/chown (License): Likewise.
27787         * modules/lchown (Likewise): Likewise.
27788         Requested by Adam Stokes.
27789
27790 2010-08-09  Karl Berry  <karl@gnu.org>
27791
27792         * build-aux/ar-lib: new file, import from Automake.
27793         * config/srclist.txt: autocheck for updates.
27794
27795 2010-08-09  Eric Blake  <eblake@redhat.com>
27796
27797         readlinkat: adjust client modules
27798         * modules/areadlinkat (Depends-on): Use readlinkat, not
27799         symlinkat.
27800         * modules/areadlinkat-with-size (Depends-on): Likewise.
27801
27802         mknod: be more vocal about danger of running tests as root
27803         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27804         root, since that is just asking for problems.
27805         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27806
27807         readlinkat: split into its own module
27808         * modules/symlinkat: Split readlinkat...
27809         * modules/readlinkat: ...into separate module.
27810         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27811         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27812         * lib/symlinkat.c (readlinkat): Move...
27813         * lib/readlinkat.c: ...into new file.
27814         * modules/symlinkat-tests: Split readlinkat test...
27815         * modules/readlinkat-tests: ...into separate module.
27816         * tests/test-symlinkat.c: Split...
27817         * tests/test-readlinkat.c: ...into new file.
27818         * NEWS: Document the split.
27819         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27820         * lib/unistd.in.h (readlinkat): Likewise.
27821         Suggested by Bruno Haible.
27822
27823 2010-08-08  Bruno Haible  <bruno@clisp.org>
27824
27825         memxfrm: Speed up.
27826         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27827         that usually only one call to strxfrm is necessary for each string
27828         part.
27829         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27830
27831 2010-08-07  Karl Berry  <karl@gnu.org>
27832
27833         * doc/posix-headers/limits.texi,
27834         * doc/posix-functions/malloc.texi,
27835         * doc/posix-functions/strsignal.texi: missing @item.
27836         * doc/ld-version-script.texi: spurious leading i.
27837         * doc/regex.texi (Interval Operators): no commas inside @var.
27838
27839 2010-08-01  Bruno Haible  <bruno@clisp.org>
27840
27841         Integrate the regex documentation.
27842         * doc/gnulib.texi: Define 'cn' index.
27843         (Regular expressions): New a chapter that includes regex.texi and
27844         regexprops-generic.texi.
27845         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27846         syntax.
27847
27848         Whitespace cleanup.
27849         * doc/regex.texi: Remove trailing spaces.
27850
27851         Add regex documentation.
27852         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27853         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27854         Written by Kathy A. Hargreaves and Karl Berry.
27855
27856 2010-08-01  Bruno Haible  <bruno@clisp.org>
27857
27858         link: Update documentation.
27859         * doc/posix-functions/link.texi: Update regarding Solaris.
27860
27861 2010-07-31  Bruno Haible  <bruno@clisp.org>
27862
27863         Update modules list.
27864         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27865         (String handling <string.h>): Add memcmp2, memxfrm.
27866         (Container data structures): Add xlist, xsublist, xoset.
27867         (Core language properties): Add alignof, unused-parameter.
27868         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27869         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27870         (Unibyte characters <ctype.h>): New section.
27871         (String handling <string.h>): New section.
27872         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27873         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27874         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27875         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27876         tan, tanh, tanl, y0, y1, yn.
27877         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27878         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27879         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27880         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27881         unlockpt, vdprintf, vdprintf-posix.
27882         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27883         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27884         xconcat-filename.
27885         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27886         getdtablesize, pipe2, pipe2-safer.
27887         (Security): New section.
27888         (Networking functions): Add accept4.
27889         (Signal handling): Add sigpipe.
27890         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27891         mbmemcasecoll.
27892         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27893         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27894         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27895         pipe-filter-ii.
27896         (Misc): Add argp-version-etc, login_tty, parse-duration.
27897
27898 2010-07-31  Bruno Haible  <bruno@clisp.org>
27899
27900         Improve doc in MODULES.html.
27901         * modules/linkat (Description): Add the word "function".
27902         * modules/mkfifo (Description): Likewise.
27903         * modules/mknod (Description): Likewise.
27904         * modules/remove (Description): Likewise.
27905         * modules/renameat (Description): Likewise.
27906         * modules/stat (Description): Likewise.
27907         * modules/symlink (Description): Likewise.
27908         * modules/unlink (Description): Likewise.
27909
27910 2010-07-31  Bruno Haible  <bruno@clisp.org>
27911
27912         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27913         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27914         option --enable/disable-c++ instead of --enable/disable-cxx.
27915         * NEWS: Mention the change.
27916
27917 2010-07-31  Bruno Haible  <bruno@clisp.org>
27918
27919         readlink, areadlink: Relax test a bit.
27920         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27921         alternative to ENOTDIR.
27922         * tests/test-areadlink.h (test_areadlink): Likewise.
27923         Reported by Rainer Tammer.
27924
27925 2010-07-31  Bruno Haible  <bruno@clisp.org>
27926
27927         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27928         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27929         character, perform the search using U_STRCHR.
27930         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27931         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27932         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27933         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27934         Suggested by Paolo Bonzini.
27935
27936 2010-07-31  Bruno Haible  <bruno@clisp.org>
27937
27938         unistr/u*-strstr: Fix dependencies.
27939         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27940         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27941         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27942
27943 2010-07-31  Bruno Haible  <bruno@clisp.org>
27944
27945         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27946         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27947         the beginning of the loop.
27948         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27949         cases in 'switch' statement.
27950
27951         unistr/u8-strchr: Fix several bugs.
27952         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27953         the string. When not found, return NULL, not a pointer near the end.
27954
27955         More tests for unistr/u8-strchr.
27956         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27957         that the function does not read past the first occurrence of the byte
27958         being searched.
27959         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27960         * tests/unistr/test-u16-strchr.c (main): New function.
27961         * tests/unistr/test-u32-strchr.c (main): New function.
27962
27963 2010-07-31  Bruno Haible  <bruno@clisp.org>
27964
27965         posix-modules: Ignore backup files of documentation files.
27966         * posix-modules: grep only through files named *.texi.
27967
27968 2010-07-31  Bruno Haible  <bruno@clisp.org>
27969
27970         symlinkat: Fix documentation.
27971         * doc/posix-functions/readlinkat.texi: Fix module name.
27972
27973 2010-07-31  Bruno Haible  <bruno@clisp.org>
27974
27975         fchownat: Replace also when chown has the trailing slash bug.
27976         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27977         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27978         introduced on 2010-04-10.
27979         Reported by Rainer Tammer.
27980
27981 2010-07-31  Bruno Haible  <bruno@clisp.org>
27982
27983         linkat: Work around AIX 7.1 bug.
27984         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27985         whether linkat handles trailing slash correctly. If not, replace linkat
27986         and define LINKAT_TRAILING_SLASH_BUG.
27987         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27988         check whether (fd1,file1) points to a directory if file1 or file2 ends
27989         in a slash. Code taken from lib/link.c.
27990         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27991         Reported by Rainer Tammer.
27992
27993 2010-07-31  Bruno Haible  <bruno@clisp.org>
27994
27995         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27996         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27997         This disables an xlc optimization that was causing wrong test results.
27998         Reported by Rainer Tammer.
27999
28000 2010-07-31  Bruno Haible  <bruno@clisp.org>
28001
28002         iconv: Work around AIX 6.1..7.1 bug.
28003         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28004         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28005         cross-compiling, guess no on all versions of AIX.
28006         Reported by Rainer Tammer.
28007
28008 2010-07-31  Bruno Haible  <bruno@clisp.org>
28009
28010         readlink: Relax test a bit.
28011         * tests/test-readlink.h (test_readlink): Allow different errno value
28012         when readlink is called with a file name that ends in / and refers to
28013         a file.
28014         Suggested by Eric Blake.
28015         Reported by Rainer Tammer.
28016
28017 2010-07-31  Bruno Haible  <bruno@clisp.org>
28018
28019         copysign: Does not require -lm on glibc systems.
28020         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28021         gl_COMMON_DOUBLE_MATHFUNC.
28022         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28023
28024 2010-07-31  Bruno Haible  <bruno@clisp.org>
28025
28026         duplocale: Work around AIX 7.1 bug.
28027         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28028         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28029         * lib/duplocale.c (rpl_duplocale): Update comment.
28030         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28031         Reported by Rainer Tammer.
28032
28033 2010-07-30  Bruno Haible  <bruno@clisp.org>
28034
28035         dirfd: Avoid link error on AIX 7.1.
28036         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28037         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28038         exist, set REPLACE_DIRFD.
28039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28040         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28041         * doc/posix-functions/dirfd.texi: Update.
28042         Reported by Rainer Tammer.
28043
28044 2010-07-30  Eric Blake  <eblake@redhat.com>
28045
28046         strtod: next round of AIX fixes
28047         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28048         exponent.
28049         * tests/test-strtod.c (main): Enhance tests.
28050         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28051         Reported by Rainer Tammer.
28052
28053         futimens: fix configure check
28054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28055         Reported by Bruno Haible.
28056
28057 2010-07-30  Bruno Haible  <bruno@clisp.org>
28058
28059         getline: Update regarding AIX.
28060         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28061         Reported by Rainer Tammer.
28062
28063 2010-07-30  Bruno Haible  <bruno@clisp.org>
28064
28065         wcwidth: Drop replacement on AIX 7.
28066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28067         AIX 7.
28068         Reported by Rainer Tammer.
28069
28070 2010-07-30  Bruno Haible  <bruno@clisp.org>
28071
28072         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28073         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28074         a 'char *'.
28075         Reported by Rainer Tammer.
28076
28077 2010-07-30  Bruno Haible  <bruno@clisp.org>
28078
28079         unlink: Update regarding AIX.
28080         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28081         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28082         Reported by Rainer Tammer.
28083
28084 2010-07-30  Bruno Haible  <bruno@clisp.org>
28085
28086         symlink: Update regarding AIX.
28087         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28088         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28089         Reported by Rainer Tammer.
28090
28091 2010-07-30  Bruno Haible  <bruno@clisp.org>
28092
28093         strndup: Update regarding AIX.
28094         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28095         AIX 7.
28096         Reported by Rainer Tammer.
28097
28098 2010-07-30  Bruno Haible  <bruno@clisp.org>
28099
28100         stat: Update regarding AIX.
28101         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28102         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28103         Reported by Rainer Tammer.
28104
28105 2010-07-30  Bruno Haible  <bruno@clisp.org>
28106
28107         truncl: Fix autoconf test.
28108         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28109         whether truncl works.
28110         Reported by Rainer Tammer.
28111
28112 2010-07-30  Bruno Haible  <bruno@clisp.org>
28113
28114         round: Update regarding AIX.
28115         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28116         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28117         Reported by Rainer Tammer.
28118
28119 2010-07-30  Bruno Haible  <bruno@clisp.org>
28120
28121         rename: Update regarding AIX.
28122         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28123         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28124         Reported by Rainer Tammer.
28125
28126 2010-07-30  Bruno Haible  <bruno@clisp.org>
28127
28128         printf.m4: Update regarding AIX.
28129         * m4/printf.m4: Update comments regarding AIX.
28130         Reported by Rainer Tammer.
28131
28132 2010-07-30  Bruno Haible  <bruno@clisp.org>
28133
28134         iconv: Update regarding AIX.
28135         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28136         AIX 7.
28137         Reported by Rainer Tammer.
28138
28139 2010-07-30  Bruno Haible  <bruno@clisp.org>
28140
28141         getopt: Update regarding AIX.
28142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28143         no on AIX.
28144         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28145         Reported by Rainer Tammer.
28146
28147 2010-07-30  Bruno Haible  <bruno@clisp.org>
28148
28149         ldexpl; Update regarding AIX.
28150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28151         on AIX 7.
28152         Reported by Rainer Tammer.
28153
28154 2010-07-30  Bruno Haible  <bruno@clisp.org>
28155
28156         frexpl: Update regarding AIX.
28157         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28158         on AIX 7.
28159         Reported by Rainer Tammer.
28160
28161 2010-07-30  Bruno Haible  <bruno@clisp.org>
28162
28163         open, fopen: Update regarding AIX.
28164         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28165         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28166         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28167         * doc/posix-functions/fopen.texi: Likewise.
28168         Reported by Rainer Tammer.
28169
28170 2010-07-30  Bruno Haible  <bruno@clisp.org>
28171
28172         chown: Update doc regarding AIX.
28173         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28174         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28175         Reported by Rainer Tammer.
28176
28177 2010-07-30  Eric Blake  <eblake@redhat.com>
28178
28179         strtod: fix bug in replacement function on AIX
28180         * lib/strtod.c (strtod): Special case broken "0x" parse in
28181         underlying strtod.
28182         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28183         * doc/posix-functions/strtod.texi (strtod): Likewise.
28184         Reported by Rainer Tammer.
28185
28186 2010-07-30  Bruno Haible  <bruno@clisp.org>
28187
28188         mbrlen: Fix cross-compilation guess for AIX.
28189         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28190         guess. Leftover from 2008-12-22.
28191
28192 2010-07-30  Bruno Haible  <bruno@clisp.org>
28193
28194         mbrtowc: Fix cross-compilation guess for AIX.
28195         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28196         guess. Leftover from 2008-12-21.
28197
28198 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28199
28200         init.sh: work around trap limitation of some shells
28201         * tests/init.sh (setup_): Move exit trap outside of shell function.
28202
28203 2010-07-29  Eric Blake  <eblake@redhat.com>
28204
28205         strtod: aid debugging
28206         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28207         understanding why strtod is rejected.
28208
28209 2010-07-28  Bruno Haible  <bruno@clisp.org>
28210
28211         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28212         * lib/unistr/u8-chr.c: Include <string.h>.
28213         * tests/unistr/test-u8-chr.c: Likewise.
28214         * tests/unistr/test-u16-chr.c: Likewise.
28215         * tests/unistr/test-u32-chr.c: Likewise.
28216         * tests/unistr/test-u8-strchr.c: Likewise.
28217         * tests/unistr/test-u16-strchr.c: Likewise.
28218         * tests/unistr/test-u32-strchr.c: Likewise.
28219         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28220         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28221         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28222         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28223
28224 2010-07-28  Bruno Haible  <bruno@clisp.org>
28225
28226         Use spaces for indentation, not tabs.
28227         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28228
28229 2010-07-27  Bruno Haible  <bruno@clisp.org>
28230
28231         mbspcasecmp: Fix function specification.
28232         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28233         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28234         Reported by Eric Blake <eblake@redhat.com>.
28235
28236 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28237
28238         timespec: use cast and not conditional, as truncation isn't possible
28239         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28240         instead of a conditional.  Comment about the situation in more detail.
28241         This undoes most of the 2009-10-29 patch.
28242
28243 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28244
28245         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28246         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28247         * lib/unistr/u8-strchr.c: Likewise.
28248         * modules/unistr/u8-chr: Depend on memchr.
28249
28250         unistr/u*-strchr: add tests
28251         * modules/unistr/u8-strchr-tests: New file.
28252         * modules/unistr/u16-strchr-tests: New file.
28253         * modules/unistr/u32-strchr-tests: New file.
28254         * tests/unistr/test-strchr.h: New file.
28255         * tests/unistr/test-u8-strchr.c: New file.
28256         * tests/unistr/test-u16-strchr.c: New file.
28257         * tests/unistr/test-u32-strchr.c: New file.
28258
28259         unistr/u*-chr: test multibyte sequences more
28260         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28261         test vector.
28262         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28263         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28264         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28265
28266         unistr/u*-chr: test multibyte sequences
28267         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28268
28269         unistr/u*-chr: prepare for multibyte tests
28270         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28271         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28272         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28273         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28274         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28275         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28276
28277 2010-07-18  Bruno Haible  <bruno@clisp.org>
28278
28279         unistr/u8-strchr: Optimize non-ASCII argument case.
28280         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28281         because the first byte often matches anyway.
28282         Reported by Pádraig Brady <P@draigbrady.com>.
28283
28284 2010-07-15  Karl Berry  <karl@gnu.org>
28285
28286         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28287
28288 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28289
28290         getcwd: on Solaris, work better if ancestors are inaccessible
28291         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28292         buffer and size, try again with a large buffer.  This works better
28293         on Solaris, since its getcwd succeeds even if the path to the root
28294         is inaccessible, and this is helpful in common cases such as .zfs
28295         hidden directories.  Problem reported by J Chapman Flack in
28296         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28297         Use system getcwd if it's declared, not merely if it's partly
28298         working; use the partly-working test only to avoid needless effort
28299         if the system getcwd fails.
28300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28301         comment that was already obsolete and is now even more obsolete.
28302         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28303         now might call strdup.
28304
28305 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28306
28307         pthread: Add enough so that coreutils/src/sort.c compiles.
28308         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28309         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28310         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28311         Include <sys/types.h>, in case it defines pthread_t.
28312         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28313         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28314         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28315         (pthread_rwlockattr_t, pthread_spinlock_t):
28316         New typedefs, if HAVE_PTHREAD_T is not defined.
28317         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28318         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28319         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28320         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28321         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28322         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28323         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28324         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28325         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28326         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28327         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28328         New macros.
28329         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28330         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28331         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28332         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28333         (pthread_spin_unlock): New dummy functions.
28334         (pthread_create): Return EAGAIN; don't set errno.
28335         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28336         require AC_C_INLINE.
28337         * modules/pthread (Depends-on): Add sched, time.
28338         (pthread.h): Use AM_V_GEN.
28339
28340 2010-07-13  Bruno Haible  <bruno@clisp.org>
28341
28342         striconveh: Don't malloc memory if the result buffer is sufficient.
28343         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28344         buffer if its size is sufficient.
28345         Reported by Ludovic Courtès <ludo@gnu.org>.
28346
28347 2010-07-13  Bruno Haible  <bruno@clisp.org>
28348
28349         strtod: Add safety check.
28350         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28351
28352 2010-07-12  Bruno Haible  <bruno@clisp.org>
28353
28354         Unify tests that set gl_cv_func_ldexpl_no_libm.
28355         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28356         gl_FUNC_LDEXPL.
28357         (gl_FUNC_LDEXPL): Invoke it.
28358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28359
28360 2010-07-12  Bruno Haible  <bruno@clisp.org>
28361
28362         Unify tests that set gl_cv_func_ldexp_no_libm.
28363         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28364         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28365         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28366         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28367         * modules/strtod (Files): Add m4/ldexp.m4.
28368
28369 2010-07-12  Bruno Haible  <bruno@clisp.org>
28370
28371         Unify tests that set gl_cv_func_frexpl_no_libm.
28372         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28373         gl_FUNC_FREXPL_NO_LIBM.
28374         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28376
28377 2010-07-12  Bruno Haible  <bruno@clisp.org>
28378
28379         Unify tests that set gl_cv_func_frexp_no_libm.
28380         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28381         gl_FUNC_FREXP_NO_LIBM.
28382         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28383         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28384
28385 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28386
28387         memcoll: clarify sizes versus lengths, document better, and tweak perf
28388         * lib/memcoll.c (strcoll_loop, memcoll0):
28389         Improve quality of descriptive comments.  Name variables
28390         consistently as to whether they are lengths (which do not include
28391         terminating null) versus sizes (which do).
28392         * lib/xmemcoll.c (xmemcoll0): Likewise.
28393         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28394         returned when s1size == 0; this is easier to compile and saves
28395         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28396
28397 2010-07-12  Bruno Haible  <bruno@clisp.org>
28398
28399         Tests for module '_Exit'.
28400         * modules/_Exit-tests: New file.
28401         * tests/test-_Exit.sh: New file.
28402         * tests/test-_Exit.c: New file.
28403
28404         New module '_Exit'.
28405         * lib/stdlib.in.h (__attribute__): New macro.
28406         (_Exit): New declaration.
28407         * lib/_Exit.c: New file.
28408         * m4/_Exit.m4: New file.
28409         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28410         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28411         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28412         * modules/_Exit: New file.
28413         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28414         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28415
28416 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28417
28418         strtod: make it more-accurate typically, and don't require libm
28419         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28420         Include limits.h.  Don't include string.h.
28421         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28422         (locale_isspace): New function, so that no casts are needed to
28423         check whether *s is a space.
28424         (ldexp): Provide an unused dummy if not available.
28425         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28426         (strtod): Use them.  This implementation prefers to use the
28427         underlying strtod if available, falling back on our own code
28428         only to fix known bugs.  This is more likely to produce an
28429         accurate result.  Also, it avoids the use of libm functions.
28430         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28431         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28432         was absent, but it caused a test failure with coreutils.
28433         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28434         with libm.
28435         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28436         * modules/strtod-tests (Makefile.am): Likewise.
28437
28438 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28439             Bruno Haible  <bruno@clisp.org>
28440
28441         unistr/u8-strchr: Optimize ASCII argument case.
28442         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28443
28444 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         (x)memcoll: minor tweaks
28447         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28448         is after the type that it qualifies.
28449         (memcoll0): Likewise.
28450         * lib/memcoll.h (memcoll0): Likewise.
28451         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28452         * lib/xmemcoll.h (xmemcoll0): Likewise.
28453         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28454         differs from memcoll in that the NUL byte is part of the argument.
28455         Omit the abort-checks, as performance is a real issue here.  Plus,
28456         the checks were wrong anyway (an off-by-one error).  Omit local
28457         variable 'diff', as it's a bit clearer that way.
28458         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28459         no longer needed.
28460
28461 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28462
28463         (x)memcoll: speedup when input is known to be NUL delimited
28464         * lib/memcoll.c: Include stdlib.
28465         (memcoll0): New function.
28466         (strcoll_loop): New function, refactored for use in both memcoll
28467         and memcoll0.
28468         * lib/memcoll.h (memcoll0): Add prototype.
28469         * lib/xmemcoll.c (xmemcoll0): New function.
28470         (collate_error): New function, refactored for use in both xmemcoll
28471         and xmemcoll0.
28472         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28473         * m4/memcoll.m4: add inline invocation.
28474
28475 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28476
28477         * build-aux/bootstrap: Remove any local translations
28478         from the translation project synchronization directory,
28479         so that local only translations are not distributed.
28480
28481 2010-07-04  Bruno Haible  <bruno@clisp.org>
28482
28483         fsusage: Clarify which code applies to which platforms.
28484         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28485         platform.
28486         * lib/fsusage.c (get_fs_usage): Likewise.
28487
28488 2010-07-04  Bruno Haible  <bruno@clisp.org>
28489
28490         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28491         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28492         Reported by Martin Lambers <marlam@marlam.de>.
28493
28494 2010-07-04  Jim Meyering  <meyering@redhat.com>
28495
28496         hash: once again explicitly disallow insertion of NULL
28497         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28498         inserting a NULL pointer cannot work with these functions.
28499         Add a comment with details.
28500         This reverts part of the 2010-07-01 commit, 5bef1a35
28501         "hash: extend module to deal with non-pointer keys".
28502
28503 2010-07-01  Bruno Haible  <bruno@clisp.org>
28504
28505         stdbool: Update doc.
28506         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28507         Info from Christian Weisgerber <naddy@mips.inka.de>.
28508
28509 2010-07-01  Jim Meyering  <meyering@redhat.com>
28510
28511         hash: extend module to deal with non-pointer keys
28512         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28513         but that allows insertion of non-pointer entries.
28514         Do not disallow an ENTRY value of NULL.
28515         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28516         * lib/hash.h (hash_insert0): Declare.
28517
28518 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28519
28520         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28521         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28522         not present (i.e. with autoconf 2.59 and when using gettextize, not
28523         gnulib), require AC_GNU_SOURCE instead.
28524
28525 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28526
28527         idpriv-drop: Fix tests.
28528         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28529         not to the test-idpriv-droptemp program.
28530
28531 2010-06-29  Bruno Haible  <bruno@clisp.org>
28532
28533         string: Fix syntax error with g++ 2.96.
28534         * lib/string.in.h (__pure__): Remove definition.
28535         (_GL_ATTRIBUTE_PURE): New macro.
28536         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28537         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28538         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28539
28540 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28541
28542         unitypes: Fix bug introduced on 2010-05-18.
28543         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28544
28545 2010-06-22  Eric Blake  <eblake@redhat.com>
28546
28547         memmem: slight optimization
28548         * lib/str-two-way.h (critical_factorization): Update comments.
28549         Reduce work during factorization phase.
28550         Reported by Carlos Bueno <carlos@bueno.org>.
28551
28552 2010-06-21  Bruno Haible  <bruno@clisp.org>
28553
28554         Fix HAVE_CALLOC_POSIX misnomer.
28555         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28556         !HAVE_CALLOC_POSIX.
28557         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28558         HAVE_CALLOC_POSIX.
28559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28560         instead of HAVE_CALLOC_POSIX.
28561         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28562         HAVE_CALLOC_POSIX.
28563
28564         Use modern idiom for calloc() replacement.
28565         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28566         AC_FUNC_CALLOC.
28567         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28568         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28569         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28570         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28571         (gl_REPLACE_CALLOC): New macro.
28572
28573 2010-06-21  Bruno Haible  <bruno@clisp.org>
28574
28575         Fix HAVE_REALLOC_POSIX misnomer.
28576         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28577         !HAVE_REALLOC_POSIX.
28578         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28579         HAVE_REALLOC_POSIX.
28580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28581         instead of HAVE_REALLOC_POSIX.
28582         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28583         HAVE_REALLOC_POSIX.
28584
28585         Use modern idiom for realloc() replacement.
28586         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28587         AC_FUNC_REALLOC.
28588         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28589         Autoconf's AC_FUNC_REALLOC.
28590         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28591         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28592         (gl_REPLACE_REALLOC): New macro.
28593         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28594
28595 2010-06-21  Bruno Haible  <bruno@clisp.org>
28596
28597         Fix HAVE_MALLOC_POSIX misnomer.
28598         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28599         !HAVE_MALLOC_POSIX.
28600         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28601         HAVE_MALLOC_POSIX.
28602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28603         instead of HAVE_MALLOC_POSIX.
28604         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28605         HAVE_MALLOC_POSIX.
28606
28607         Use modern idiom for malloc() replacement.
28608         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28609         AC_FUNC_MALLOC.
28610         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28611         Autoconf's AC_FUNC_MALLOC.
28612         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28613         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28614         (gl_REPLACE_MALLOC): New macro.
28615         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28616
28617 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28618
28619         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28620         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28621         This macro takes 3 arguments, not 4.
28622
28623 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28624
28625         ipv6: fix detection under mingw
28626         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28627         in6_addr.
28628
28629 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28630
28631         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28632         that strtod() works when cross-compiling to a glibc version known
28633         to work.
28634
28635 2010-06-15  Bruno Haible  <bruno@clisp.org>
28636
28637         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28638
28639 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28640
28641         select: Correct timeout.
28642         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28643
28644 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28645
28646         git-version-gen: init shell var to avoid env var influence
28647         * build-aux/git-version-gen (v): Init shell var to empty.
28648
28649 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28650
28651         priv-set: Don't assume that priv.h exists merely because getppriv does.
28652         See Jan Andersen's bug report about AIX 5L in
28653         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28654         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28655         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28656         * lib/priv-set.h: Likewise.
28657         * tests/test-priv-set.c: Likewise.
28658
28659 2010-06-13  Bruno Haible  <bruno@clisp.org>
28660
28661         relocatable: Make it easier to test whether to install wrappers.
28662         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28663         RELOCATABLE_VIA_WRAPPER.
28664
28665 2010-06-13  Bruno Haible  <bruno@clisp.org>
28666
28667         gnulib-tool: Display specified modules and dependencies differently.
28668         * gnulib-tool (func_show_module_list): New function.
28669         (func_import, func_create_testdir): Invoke it.
28670         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28671
28672 2010-06-13  Bruno Haible  <bruno@clisp.org>
28673
28674         gnulib-tool: Align code of func_import and func_create_testdir.
28675         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28676         specified_modules.
28677
28678 2010-06-12  Jim Meyering  <meyering@redhat.com>
28679
28680         test-inttostr: avoid spurious failure on Solaris 9
28681         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28682         to accept "%ju".  Reported by Bruno Haible.
28683
28684 2010-06-11  Jim Meyering  <meyering@redhat.com>
28685
28686         test-sys_socket: mark variables as used more readably
28687         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28688         as "used" explicitly via (void) statement casts.  This is more
28689         readable than using them in an artificial return expression.
28690         Suggestion from Bruno Haible.
28691
28692 2010-06-11  Bruno Haible  <bruno@clisp.org>
28693
28694         Avoid some more warnings from "gcc -Wwrite-strings".
28695         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28696         to 'const char *'.
28697         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28698         * tests/test-c-strcasestr.c (main): Likewise.
28699         * tests/test-mbscasestr1.c (main): Likewise.
28700         * tests/test-mbscasestr2.c (main): Likewise.
28701         * tests/test-memmem.c (main): Likewise.
28702         * tests/test-strstr.c (main): Likewise.
28703         * tests/test-strcasestr.c (main): Likewise.
28704
28705 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28706
28707         init.sh: change framework_failure_ to fail with status 99, not 1
28708         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28709         automake's parallel-tests rule that this is an unexpected failure,
28710         even if the test is listed in XFAIL_TESTS.
28711
28712 2010-06-11  Jim Meyering  <meyering@redhat.com>
28713
28714         test-inttostr: avoid warnings about 4-6KB literal strings
28715         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28716         Include "macros.h", for its definition of ASSERT.
28717         (CK): s/assert/ASSERT/
28718         * modules/inttostr-tests (Files): Add macros.h.
28719
28720         init.sh: don't use $ME_ or skip_ before they are defined
28721         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28722         their first uses.  Also hoist their companions: warn_, fail_,
28723         framework_failure_, $stderr_fileno.  Prompted by a patch from
28724         Stefano Lattarini.
28725
28726         test-sys_socket: avoid set-but-not-used warnings from gcc
28727         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28728         avoid warning about set-but-not-used variables.
28729
28730         test-xvasprintf: avoid 'const' discard warnings
28731         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28732         "const" when assigning from literal strings.
28733         (test_xasprintf): Add "void" in function argument list to placate
28734         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28735
28736         tests: avoid compilation warnings in argmatch and exclude tests...
28737         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28738         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28739         Since it always exits, declare with the "noreturn" attribute.
28740         * tests/test-argmatch.c: Likewise.
28741
28742         tests: avoid 'const' discard warnings in mbsstr tests
28743         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28744         * tests/test-mbsstr2.c (main): Likewise.
28745
28746         test-verify: avoid warning from gcc's -Wmissing-declarations
28747         * tests/test-verify.c (function): Declare to be static.
28748
28749         test-inttostr.c: include <string.h> for use of strcmp
28750         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28751
28752         test-linkat: avoid failed assertion on "other" architectures
28753         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28754         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28755         sparc: https://bugs.launchpad.net/bugs/591968
28756
28757 2010-06-11  Jim Meyering  <meyering@redhat.com>
28758
28759         printf.m4: avoid autoconf's "Expanded Before Required" warning
28760         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28761         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28762         autoconf warning.
28763
28764 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28765
28766         Replacement header templates are now named with ".in", not "_".
28767         * doc/gnulib-intro.texi: Correct.
28768
28769 2010-06-10  Jim Meyering  <meyering@redhat.com>
28770
28771         inttostr-tests: depend on snprintf, not snprintf-posix
28772         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28773         snprintf-posix, to avoid this aclocal failure:
28774           missing file gnulib-tests/vasnprintf.c
28775           configure.ac:45: error: expected source file, required through \
28776           AC_LIBSOURCES, not found
28777
28778 2010-06-10  Jim Meyering  <meyering@redhat.com>
28779
28780         inttostr: add a new function, inttostr, and tests
28781         The namesake function was not available.  The existence of the
28782         template file, inttostr.c makes its addition nontrivial.
28783         * lib/anytostr.c: Rename from inttostr.c.
28784         (anytostr): Rename from inttostr.
28785         * lib/inttostr.c: New file.
28786         * modules/inttostr (Files): Add anytostr.c.
28787         (Makefile.am): Set lib_SOURCES instead of ...
28788         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28789         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28790         * lib/offtostr.c: Likewise.
28791         * lib/uinttostr.c: Likewise.
28792         * lib/umaxtostr.c: Likewise.
28793         * modules/inttostr-tests: New file.
28794         * tests/test-inttostr.c: New file.  Test these functions.
28795
28796 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28797             Bruno Haible  <bruno@clisp.org>
28798
28799         Add "Extending Gnulib" chapter to manual.
28800         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28801         chapter.
28802         (Extending Gnulib): New chapter.
28803         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28804         chapter.
28805
28806 2010-06-09  Bruno Haible  <bruno@clisp.org>
28807
28808         Avoid relocwrapper link errors due to gnulib replacement functions.
28809         * lib/areadlink.c: Use the system's malloc, realloc functions.
28810         (areadlink): Set errno to ENOMEM explicitly.
28811         * modules/areadlink (Depends-on): Remove malloc-posix.
28812         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28813
28814 2010-06-09  Bruno Haible  <bruno@clisp.org>
28815
28816         Avoid relocwrapper link errors due to gnulib replacement functions.
28817         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28818         * lib/malloca.c: Likewise.
28819         * lib/relocatable.c: Likewise.
28820         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28821         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28822         * lib/setenv.c: Use the system's malloc, realloc functions.
28823         * lib/strerror.c: Use the system's sprintf function.
28824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28825
28826 2010-06-04  Bruno Haible  <bruno@clisp.org>
28827
28828         Prefer documented low-level autoconf macro names.
28829         * m4/lib-link.m4: Use m4_translit instead of translit.
28830         * m4/environ.m4: Likewise.
28831         * m4/mathfunc.m4: Likewise.
28832         * m4/onceonly.m4: Likewise.
28833         * m4/stdint.m4: Likewise.
28834         Suggested by Eric Blake.
28835
28836 2010-06-04  Martin Lambers  <marlam@marlam.de>
28837             Bruno Haible  <bruno@clisp.org>
28838
28839         havelib: Allow library names with '+' characters.
28840         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28841         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28842
28843 2010-06-09  Bruno Haible  <bruno@clisp.org>
28844
28845         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28846         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28847         realloc failed.
28848
28849 2010-06-08  Peter Simons  <simons@cryp.to>
28850
28851         maint.mk: make the news-check rule more configurable
28852         * top/maint.mk (news-check-lines-spec): New variable.
28853         (news-check): Use "sed -n 1,10p" in place of "head".
28854
28855 2010-06-07  Jim Meyering  <meyering@redhat.com>
28856
28857         do-release-commit-and-tag: fix typo in --help
28858         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28859
28860         regex: avoid new dead-code warning with gcc-4.6.0
28861         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28862         if-block containing a while-loop.  It's been unused for at least
28863         5 years.
28864
28865 2010-06-05  Bruno Haible  <bruno@clisp.org>
28866
28867         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28868         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28869
28870 2010-06-04  Bruno Haible  <bruno@clisp.org>
28871
28872         Update to GNU gettext 0.18.1.
28873         * modules/gettext (configure.ac): Require gettext infrastructure from
28874         version 0.18.1.
28875
28876 2010-06-03  Bruno Haible  <bruno@clisp.org>
28877
28878         Don't use AC_LIBOBJ with file names in subdirectories.
28879         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28880         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28881         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28882         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28883         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28884         gl_LIBUNISTRING_LIBSOURCE.
28885         (Makefile.am): Augment lib_SOURCES here, conditionally.
28886         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28887
28888 2010-06-03  Bruno Haible  <bruno@clisp.org>
28889
28890         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28891         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28892         expansion does not end with a newline.
28893         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28894         unnecessary newline.
28895
28896 2010-06-03  Bruno Haible  <bruno@clisp.org>
28897
28898         Reduce dependencies.
28899         * tests/test-quotearg.h: New file, extracted from
28900         tests/test-quotearg.c.
28901         * tests/test-quotearg-simple.c: New file, extracted from
28902         tests/test-quotearg.c.
28903         * tests/test-quotearg.c: Don't include <ctype.h>.
28904         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28905         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28906         use_quote_double_quotes, use_quotearg_colon): Moved to
28907         tests/test-quotearg.h.
28908         (results_g, flag_results, custom_quotes, custom_results): Moved
28909         to tests/test-quotearg-simple.c.
28910         (main): Moved the part that does not depend on gettext to
28911         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28912         performed.
28913         * modules/quotearg-simple: New file.
28914         * modules/quotearg-simple-tests: New file.
28915         * modules/quotearg (Depends-on): Add quotearg-simple.
28916         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28917         (Files): Add tests/test-quotearg.h.
28918         Reported by Paolo Bonzini.
28919
28920 2010-06-03  Bruno Haible  <bruno@clisp.org>
28921
28922         Reduce dependencies.
28923         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28924
28925 2010-06-03  Bruno Haible  <bruno@clisp.org>
28926
28927         time: Undefine more broken macros.
28928         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28929         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28930         Reported by Eric Blake.
28931
28932 2010-06-03  Bruno Haible  <bruno@clisp.org>
28933
28934         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28935         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28936         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28937         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28938         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28939         Reported by Ludovic Courtès <ludo@gnu.org>.
28940
28941 2010-06-02  Eric Blake  <eblake@redhat.com>
28942
28943         time: work with mingw + pthreads-win32 library
28944         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28945         if timespec is defined only in pthread.h.
28946         * modules/time (Makefile.am): Substitute it.
28947         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28948         <pthread.h>, when needed.
28949         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28950         from the library.
28951
28952 2010-05-31  Bruno Haible  <bruno@clisp.org>
28953
28954         Avoid expanding two macros in the wrong order.
28955         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28956         gl_LIBUNISTRING if it is defined.
28957         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28958         autoconf >= 2.64.
28959         Reported by Ludovic Courtès <ludo@gnu.org>.
28960
28961 2010-05-27  Jim Meyering  <meyering@redhat.com>
28962
28963         maint.mk: also prohibit "#undef" of always-defined symbols
28964         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28965         Allow more than one space before the symbol name.
28966         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28967         the regexp uses alternation.
28968
28969 2010-05-26  Eric Blake  <eblake@redhat.com>
28970
28971         maint.mk: avoid echo -e
28972         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28973         Convert all uses of echo -* to printf.
28974         Reported by Matthias Bolte.
28975
28976 2010-05-25  Bruno Haible  <bruno@clisp.org>
28977
28978         Update to GNU gettext 0.18, part 2.
28979         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28980         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28981
28982 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28983
28984         Add missing include in test-pwrite.c.
28985         * tests/test-pwrite.c: Include string.h, for strcmp.
28986
28987 2010-05-24  Bruno Haible  <bruno@clisp.org>
28988
28989         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28990
28991 2010-05-24  Bruno Haible  <bruno@clisp.org>
28992
28993         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28994         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28995         iconveh_error argument.
28996         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28997         U_STRCONV_TO_LOCALE.
28998         * lib/unistr/u16-strcoll.c: Likewise.
28999         * lib/unistr/u32-strcoll.c: Likewise.
29000         * modules/unistr/u8-strcoll (Depends-on): Add
29001         uniconv/u8-strconv-to-enc, localcharset. Remove
29002         uniconv/u8-strconv-to-locale.
29003         (configure.ac): Bump version number.
29004         * modules/unistr/u16-strcoll (Depends-on): Add
29005         uniconv/u16-strconv-to-enc, localcharset. Remove
29006         uniconv/u16-strconv-to-locale.
29007         (configure.ac): Bump version number.
29008         * modules/unistr/u32-strcoll (Depends-on): Add
29009         uniconv/u32-strconv-to-enc, localcharset. Remove
29010         uniconv/u32-strconv-to-locale.
29011         (configure.ac): Bump version number.
29012
29013 2010-05-24  Bruno Haible  <bruno@clisp.org>
29014
29015         Avoid a test failure on NetBSD 5.0.
29016         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29017         an iconv() bug.
29018
29019 2010-05-24  Bruno Haible  <bruno@clisp.org>
29020
29021         Adjust #include directive style.
29022         * modules/regex (Includes): Recommend to write <regex.h>.
29023
29024 2010-05-24  Bruno Haible  <bruno@clisp.org>
29025
29026         regex: Don't require alloca.
29027         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29028         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29029         only inside if (0).
29030
29031 2010-05-23  Jim Meyering  <meyering@redhat.com>
29032
29033         test-renameat.c: include <sys/stat.h>
29034         * tests/test-renameat.c: Include <sys/stat.h>; required for
29035         definition of S_IS* macros.
29036
29037 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29038
29039         Update maintainer documentation for 'relocatable-prog' module.
29040         * doc/relocatable-maint.texi: Update.
29041         Comments by Bruno Haible.
29042
29043 2010-05-23  Bruno Haible  <bruno@clisp.org>
29044
29045         git-merge-changelog: Enable --split-merged-entry by default.
29046         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29047         (usage): Don't mention this option any more.
29048         Reported by Ralf Wildenhues.
29049
29050 2010-05-23  Jim Meyering  <meyering@redhat.com>
29051
29052         test-pwrite: do not leave behind a test file named "out"
29053         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29054         The trivial-looking use of init.sh is really necessary.
29055         It ensures that the temporary file, "out", is created in
29056         a temporary directory, and removed upon termination.
29057         * tests/test-pwrite.sh: Re-add file.
29058         * modules/pwrite-tests: Reference it.
29059
29060 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29061
29062         Fix output redirection buglet in init.sh.
29063         * tests/init.sh: Fix redirection of stderr.
29064
29065 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29066
29067         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29068
29069 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29070
29071         * modules/valgrind-tests: New file.
29072         * m4/valgrind-tests.m4: New file.
29073         * doc/valgrind-tests.texi: New file.
29074         * doc/gnulib.texi (Running self-tests under valgrind): New
29075         section.
29076
29077 2010-05-19  Bruno Haible  <bruno@clisp.org>
29078
29079         Clean up dead code in recent commit.
29080         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29081         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29082         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29083         Suggested by Paolo Bonzini.
29084
29085 2010-05-19  Bruno Haible  <bruno@clisp.org>
29086
29087         Avoid valgrind error reports from libunistring.
29088         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29089         * modules/libunistring (Files): Add it.
29090         * modules/libunistring-optional (Files): Likewise.
29091
29092 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29093             Bruno Haible  <bruno@clisp.org>
29094
29095         New module 'libunistring-optional'.
29096         * modules/libunistring-optional: New file.
29097         * m4/libunistring-base.m4: New file.
29098         * m4/libunistring-optional.m4: New file.
29099         * lib/unicase.in.h: Renamed from lib/unicase.h.
29100         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29101         * lib/unictype.in.h: Renamed from lib/unictype.h.
29102         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29103         * lib/uniname.in.h: Renamed from lib/uniname.h.
29104         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29105         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29106         * lib/unistr.in.h: Renamed from lib/unistr.h.
29107         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29108         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29109         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29110         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29111         gl_LIBUNISTRING. If the library was found, determine the installed
29112         version and set LIBUNISTRING_VERSION.
29113         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29114         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29115         handle a configuration option --with-included-libunistring.
29116         * modules/libunistring (Files): Add m4/absolute-header.m4.
29117         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29118         Add m4/libunistring-base.m4.
29119         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29120         (Makefile.am): Build unicase.h from unicase.in.h.
29121         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29122         Add m4/libunistring-base.m4.
29123         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29124         (Makefile.am): Build uniconv.h from uniconv.in.h.
29125         * modules/unictype/base (Files): Use unictype.in.h instead of
29126         unictype.h. Add m4/libunistring-base.m4.
29127         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29128         (Makefile.am): Build unictype.h from unictype.in.h.
29129         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29130         Add m4/libunistring-base.m4.
29131         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29132         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29133         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29134         Add m4/libunistring-base.m4.
29135         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29136         (Makefile.am): Build uniname.h from uniname.in.h.
29137         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29138         Add m4/libunistring-base.m4.
29139         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29140         (Makefile.am): Build uninorm.h from uninorm.in.h.
29141         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29142         unistdio.h. Add m4/libunistring-base.m4.
29143         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29144         (Makefile.am): Build unistdio.h from unistdio.in.h.
29145         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29146         Add m4/libunistring-base.m4.
29147         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29148         (Makefile.am): Build unistr.h from unistr.in.h.
29149         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29150         Add m4/libunistring-base.m4.
29151         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29152         (Makefile.am): Build unitypes.h from unitypes.in.h.
29153         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29154         Add m4/libunistring-base.m4.
29155         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29156         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29157         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29158         uniwidth.h. Add m4/libunistring-base.m4.
29159         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29160         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29161         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29162         instead of augmenting lib_SOURCES.
29163         * modules/unicase/empty-suffix-context: Likewise.
29164         * modules/unicase/locale-language: Likewise.
29165         * modules/unicase/tolower: Likewise.
29166         * modules/unicase/totitle: Likewise.
29167         * modules/unicase/toupper: Likewise.
29168         * modules/unicase/u8-casecmp: Likewise.
29169         * modules/unicase/u8-casecoll: Likewise.
29170         * modules/unicase/u8-casefold: Likewise.
29171         * modules/unicase/u8-casexfrm: Likewise.
29172         * modules/unicase/u8-ct-casefold: Likewise.
29173         * modules/unicase/u8-ct-tolower: Likewise.
29174         * modules/unicase/u8-ct-totitle: Likewise.
29175         * modules/unicase/u8-ct-toupper: Likewise.
29176         * modules/unicase/u8-is-cased: Likewise.
29177         * modules/unicase/u8-is-casefolded: Likewise.
29178         * modules/unicase/u8-is-lowercase: Likewise.
29179         * modules/unicase/u8-is-titlecase: Likewise.
29180         * modules/unicase/u8-is-uppercase: Likewise.
29181         * modules/unicase/u8-prefix-context: Likewise.
29182         * modules/unicase/u8-suffix-context: Likewise.
29183         * modules/unicase/u8-tolower: Likewise.
29184         * modules/unicase/u8-totitle: Likewise.
29185         * modules/unicase/u8-toupper: Likewise.
29186         * modules/unicase/u16-casecmp: Likewise.
29187         * modules/unicase/u16-casecoll: Likewise.
29188         * modules/unicase/u16-casefold: Likewise.
29189         * modules/unicase/u16-casexfrm: Likewise.
29190         * modules/unicase/u16-ct-casefold: Likewise.
29191         * modules/unicase/u16-ct-tolower: Likewise.
29192         * modules/unicase/u16-ct-totitle: Likewise.
29193         * modules/unicase/u16-ct-toupper: Likewise.
29194         * modules/unicase/u16-is-cased: Likewise.
29195         * modules/unicase/u16-is-casefolded: Likewise.
29196         * modules/unicase/u16-is-lowercase: Likewise.
29197         * modules/unicase/u16-is-titlecase: Likewise.
29198         * modules/unicase/u16-is-uppercase: Likewise.
29199         * modules/unicase/u16-prefix-context: Likewise.
29200         * modules/unicase/u16-suffix-context: Likewise.
29201         * modules/unicase/u16-tolower: Likewise.
29202         * modules/unicase/u16-totitle: Likewise.
29203         * modules/unicase/u16-toupper: Likewise.
29204         * modules/unicase/u32-casecmp: Likewise.
29205         * modules/unicase/u32-casecoll: Likewise.
29206         * modules/unicase/u32-casefold: Likewise.
29207         * modules/unicase/u32-casexfrm: Likewise.
29208         * modules/unicase/u32-ct-casefold: Likewise.
29209         * modules/unicase/u32-ct-tolower: Likewise.
29210         * modules/unicase/u32-ct-totitle: Likewise.
29211         * modules/unicase/u32-ct-toupper: Likewise.
29212         * modules/unicase/u32-is-cased: Likewise.
29213         * modules/unicase/u32-is-casefolded: Likewise.
29214         * modules/unicase/u32-is-lowercase: Likewise.
29215         * modules/unicase/u32-is-titlecase: Likewise.
29216         * modules/unicase/u32-is-uppercase: Likewise.
29217         * modules/unicase/u32-prefix-context: Likewise.
29218         * modules/unicase/u32-suffix-context: Likewise.
29219         * modules/unicase/u32-tolower: Likewise.
29220         * modules/unicase/u32-totitle: Likewise.
29221         * modules/unicase/u32-toupper: Likewise.
29222         * modules/unicase/ulc-casecmp: Likewise.
29223         * modules/unicase/ulc-casecoll: Likewise.
29224         * modules/unicase/ulc-casexfrm: Likewise.
29225         * modules/uniconv/u8-conv-from-enc: Likewise.
29226         * modules/uniconv/u8-conv-to-enc: Likewise.
29227         * modules/uniconv/u8-strconv-from-enc: Likewise.
29228         * modules/uniconv/u8-strconv-from-locale: Likewise.
29229         * modules/uniconv/u8-strconv-to-enc: Likewise.
29230         * modules/uniconv/u8-strconv-to-locale: Likewise.
29231         * modules/uniconv/u16-conv-from-enc: Likewise.
29232         * modules/uniconv/u16-conv-to-enc: Likewise.
29233         * modules/uniconv/u16-strconv-from-enc: Likewise.
29234         * modules/uniconv/u16-strconv-from-locale: Likewise.
29235         * modules/uniconv/u16-strconv-to-enc: Likewise.
29236         * modules/uniconv/u16-strconv-to-locale: Likewise.
29237         * modules/uniconv/u32-conv-from-enc: Likewise.
29238         * modules/uniconv/u32-conv-to-enc: Likewise.
29239         * modules/uniconv/u32-strconv-from-enc: Likewise.
29240         * modules/uniconv/u32-strconv-from-locale: Likewise.
29241         * modules/uniconv/u32-strconv-to-enc: Likewise.
29242         * modules/uniconv/u32-strconv-to-locale: Likewise.
29243         * modules/unictype/bidicategory-byname: Likewise.
29244         * modules/unictype/bidicategory-name: Likewise.
29245         * modules/unictype/bidicategory-of: Likewise.
29246         * modules/unictype/bidicategory-test: Likewise.
29247         * modules/unictype/block-list: Likewise.
29248         * modules/unictype/block-test: Likewise.
29249         * modules/unictype/category-C: Likewise.
29250         * modules/unictype/category-Cc: Likewise.
29251         * modules/unictype/category-Cf: Likewise.
29252         * modules/unictype/category-Cn: Likewise.
29253         * modules/unictype/category-Co: Likewise.
29254         * modules/unictype/category-Cs: Likewise.
29255         * modules/unictype/category-L: Likewise.
29256         * modules/unictype/category-Ll: Likewise.
29257         * modules/unictype/category-Lm: Likewise.
29258         * modules/unictype/category-Lo: Likewise.
29259         * modules/unictype/category-Lt: Likewise.
29260         * modules/unictype/category-Lu: Likewise.
29261         * modules/unictype/category-M: Likewise.
29262         * modules/unictype/category-Mc: Likewise.
29263         * modules/unictype/category-Me: Likewise.
29264         * modules/unictype/category-Mn: Likewise.
29265         * modules/unictype/category-N: Likewise.
29266         * modules/unictype/category-Nd: Likewise.
29267         * modules/unictype/category-Nl: Likewise.
29268         * modules/unictype/category-No: Likewise.
29269         * modules/unictype/category-P: Likewise.
29270         * modules/unictype/category-Pc: Likewise.
29271         * modules/unictype/category-Pd: Likewise.
29272         * modules/unictype/category-Pe: Likewise.
29273         * modules/unictype/category-Pf: Likewise.
29274         * modules/unictype/category-Pi: Likewise.
29275         * modules/unictype/category-Po: Likewise.
29276         * modules/unictype/category-Ps: Likewise.
29277         * modules/unictype/category-S: Likewise.
29278         * modules/unictype/category-Sc: Likewise.
29279         * modules/unictype/category-Sk: Likewise.
29280         * modules/unictype/category-Sm: Likewise.
29281         * modules/unictype/category-So: Likewise.
29282         * modules/unictype/category-Z: Likewise.
29283         * modules/unictype/category-Zl: Likewise.
29284         * modules/unictype/category-Zp: Likewise.
29285         * modules/unictype/category-Zs: Likewise.
29286         * modules/unictype/category-and: Likewise.
29287         * modules/unictype/category-and-not: Likewise.
29288         * modules/unictype/category-byname: Likewise.
29289         * modules/unictype/category-name: Likewise.
29290         * modules/unictype/category-none: Likewise.
29291         * modules/unictype/category-of: Likewise.
29292         * modules/unictype/category-or: Likewise.
29293         * modules/unictype/category-test: Likewise.
29294         * modules/unictype/combining-class: Likewise.
29295         * modules/unictype/ctype-alnum: Likewise.
29296         * modules/unictype/ctype-alpha: Likewise.
29297         * modules/unictype/ctype-blank: Likewise.
29298         * modules/unictype/ctype-cntrl: Likewise.
29299         * modules/unictype/ctype-digit: Likewise.
29300         * modules/unictype/ctype-graph: Likewise.
29301         * modules/unictype/ctype-lower: Likewise.
29302         * modules/unictype/ctype-print: Likewise.
29303         * modules/unictype/ctype-punct: Likewise.
29304         * modules/unictype/ctype-space: Likewise.
29305         * modules/unictype/ctype-upper: Likewise.
29306         * modules/unictype/ctype-xdigit: Likewise.
29307         * modules/unictype/decimal-digit: Likewise.
29308         * modules/unictype/digit: Likewise.
29309         * modules/unictype/mirror: Likewise.
29310         * modules/unictype/numeric: Likewise.
29311         * modules/unictype/property-alphabetic: Likewise.
29312         * modules/unictype/property-ascii-hex-digit: Likewise.
29313         * modules/unictype/property-bidi-arabic-digit: Likewise.
29314         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29315         * modules/unictype/property-bidi-block-separator: Likewise.
29316         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29317         * modules/unictype/property-bidi-common-separator: Likewise.
29318         * modules/unictype/property-bidi-control: Likewise.
29319         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29320         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29321         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29322         * modules/unictype/property-bidi-european-digit: Likewise.
29323         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29324         * modules/unictype/property-bidi-left-to-right: Likewise.
29325         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29326         * modules/unictype/property-bidi-other-neutral: Likewise.
29327         * modules/unictype/property-bidi-pdf: Likewise.
29328         * modules/unictype/property-bidi-segment-separator: Likewise.
29329         * modules/unictype/property-bidi-whitespace: Likewise.
29330         * modules/unictype/property-byname: Likewise.
29331         * modules/unictype/property-combining: Likewise.
29332         * modules/unictype/property-composite: Likewise.
29333         * modules/unictype/property-currency-symbol: Likewise.
29334         * modules/unictype/property-dash: Likewise.
29335         * modules/unictype/property-decimal-digit: Likewise.
29336         * modules/unictype/property-default-ignorable-code-point: Likewise.
29337         * modules/unictype/property-deprecated: Likewise.
29338         * modules/unictype/property-diacritic: Likewise.
29339         * modules/unictype/property-extender: Likewise.
29340         * modules/unictype/property-format-control: Likewise.
29341         * modules/unictype/property-grapheme-base: Likewise.
29342         * modules/unictype/property-grapheme-extend: Likewise.
29343         * modules/unictype/property-grapheme-link: Likewise.
29344         * modules/unictype/property-hex-digit: Likewise.
29345         * modules/unictype/property-hyphen: Likewise.
29346         * modules/unictype/property-id-continue: Likewise.
29347         * modules/unictype/property-id-start: Likewise.
29348         * modules/unictype/property-ideographic: Likewise.
29349         * modules/unictype/property-ids-binary-operator: Likewise.
29350         * modules/unictype/property-ids-trinary-operator: Likewise.
29351         * modules/unictype/property-ignorable-control: Likewise.
29352         * modules/unictype/property-iso-control: Likewise.
29353         * modules/unictype/property-join-control: Likewise.
29354         * modules/unictype/property-left-of-pair: Likewise.
29355         * modules/unictype/property-line-separator: Likewise.
29356         * modules/unictype/property-logical-order-exception: Likewise.
29357         * modules/unictype/property-lowercase: Likewise.
29358         * modules/unictype/property-math: Likewise.
29359         * modules/unictype/property-non-break: Likewise.
29360         * modules/unictype/property-not-a-character: Likewise.
29361         * modules/unictype/property-numeric: Likewise.
29362         * modules/unictype/property-other-alphabetic: Likewise.
29363         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29364         * modules/unictype/property-other-grapheme-extend: Likewise.
29365         * modules/unictype/property-other-id-continue: Likewise.
29366         * modules/unictype/property-other-id-start: Likewise.
29367         * modules/unictype/property-other-lowercase: Likewise.
29368         * modules/unictype/property-other-math: Likewise.
29369         * modules/unictype/property-other-uppercase: Likewise.
29370         * modules/unictype/property-paired-punctuation: Likewise.
29371         * modules/unictype/property-paragraph-separator: Likewise.
29372         * modules/unictype/property-pattern-syntax: Likewise.
29373         * modules/unictype/property-pattern-white-space: Likewise.
29374         * modules/unictype/property-private-use: Likewise.
29375         * modules/unictype/property-punctuation: Likewise.
29376         * modules/unictype/property-quotation-mark: Likewise.
29377         * modules/unictype/property-radical: Likewise.
29378         * modules/unictype/property-sentence-terminal: Likewise.
29379         * modules/unictype/property-soft-dotted: Likewise.
29380         * modules/unictype/property-space: Likewise.
29381         * modules/unictype/property-terminal-punctuation: Likewise.
29382         * modules/unictype/property-test: Likewise.
29383         * modules/unictype/property-titlecase: Likewise.
29384         * modules/unictype/property-unassigned-code-value: Likewise.
29385         * modules/unictype/property-unified-ideograph: Likewise.
29386         * modules/unictype/property-uppercase: Likewise.
29387         * modules/unictype/property-variation-selector: Likewise.
29388         * modules/unictype/property-white-space: Likewise.
29389         * modules/unictype/property-xid-continue: Likewise.
29390         * modules/unictype/property-xid-start: Likewise.
29391         * modules/unictype/property-zero-width: Likewise.
29392         * modules/unictype/scripts: Likewise.
29393         * modules/unictype/syntax-c-ident: Likewise.
29394         * modules/unictype/syntax-c-whitespace: Likewise.
29395         * modules/unictype/syntax-java-ident: Likewise.
29396         * modules/unictype/syntax-java-whitespace: Likewise.
29397         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29398         * modules/unilbrk/u8-width-linebreaks: Likewise.
29399         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29400         * modules/unilbrk/u16-width-linebreaks: Likewise.
29401         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29402         * modules/unilbrk/u32-width-linebreaks: Likewise.
29403         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29404         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29405         * modules/uniname/uniname: Likewise.
29406         * modules/uninorm/canonical-decomposition: Likewise.
29407         * modules/uninorm/composition: Likewise.
29408         * modules/uninorm/decomposing-form: Likewise.
29409         * modules/uninorm/decomposition: Likewise.
29410         * modules/uninorm/filter: Likewise.
29411         * modules/uninorm/nfc: Likewise.
29412         * modules/uninorm/nfd: Likewise.
29413         * modules/uninorm/nfkc: Likewise.
29414         * modules/uninorm/nfkd: Likewise.
29415         * modules/uninorm/u8-normalize: Likewise.
29416         * modules/uninorm/u8-normcmp: Likewise.
29417         * modules/uninorm/u8-normcoll: Likewise.
29418         * modules/uninorm/u8-normxfrm: Likewise.
29419         * modules/uninorm/u16-normalize: Likewise.
29420         * modules/uninorm/u16-normcmp: Likewise.
29421         * modules/uninorm/u16-normcoll: Likewise.
29422         * modules/uninorm/u16-normxfrm: Likewise.
29423         * modules/uninorm/u32-normalize: Likewise.
29424         * modules/uninorm/u32-normcmp: Likewise.
29425         * modules/uninorm/u32-normcoll: Likewise.
29426         * modules/uninorm/u32-normxfrm: Likewise.
29427         * modules/unistdio/u8-asnprintf: Likewise.
29428         * modules/unistdio/u8-asprintf: Likewise.
29429         * modules/unistdio/u8-snprintf: Likewise.
29430         * modules/unistdio/u8-sprintf: Likewise.
29431         * modules/unistdio/u8-u8-asnprintf: Likewise.
29432         * modules/unistdio/u8-u8-asprintf: Likewise.
29433         * modules/unistdio/u8-u8-snprintf: Likewise.
29434         * modules/unistdio/u8-u8-sprintf: Likewise.
29435         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29436         * modules/unistdio/u8-u8-vasprintf: Likewise.
29437         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29438         * modules/unistdio/u8-u8-vsprintf: Likewise.
29439         * modules/unistdio/u8-vasnprintf: Likewise.
29440         * modules/unistdio/u8-vasprintf: Likewise.
29441         * modules/unistdio/u8-vsnprintf: Likewise.
29442         * modules/unistdio/u8-vsprintf: Likewise.
29443         * modules/unistdio/u16-asnprintf: Likewise.
29444         * modules/unistdio/u16-asprintf: Likewise.
29445         * modules/unistdio/u16-snprintf: Likewise.
29446         * modules/unistdio/u16-sprintf: Likewise.
29447         * modules/unistdio/u16-u16-asnprintf: Likewise.
29448         * modules/unistdio/u16-u16-asprintf: Likewise.
29449         * modules/unistdio/u16-u16-snprintf: Likewise.
29450         * modules/unistdio/u16-u16-sprintf: Likewise.
29451         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29452         * modules/unistdio/u16-u16-vasprintf: Likewise.
29453         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29454         * modules/unistdio/u16-u16-vsprintf: Likewise.
29455         * modules/unistdio/u16-vasnprintf: Likewise.
29456         * modules/unistdio/u16-vasprintf: Likewise.
29457         * modules/unistdio/u16-vsnprintf: Likewise.
29458         * modules/unistdio/u16-vsprintf: Likewise.
29459         * modules/unistdio/u32-asnprintf: Likewise.
29460         * modules/unistdio/u32-asprintf: Likewise.
29461         * modules/unistdio/u32-snprintf: Likewise.
29462         * modules/unistdio/u32-sprintf: Likewise.
29463         * modules/unistdio/u32-u32-asnprintf: Likewise.
29464         * modules/unistdio/u32-u32-asprintf: Likewise.
29465         * modules/unistdio/u32-u32-snprintf: Likewise.
29466         * modules/unistdio/u32-u32-sprintf: Likewise.
29467         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29468         * modules/unistdio/u32-u32-vasprintf: Likewise.
29469         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29470         * modules/unistdio/u32-u32-vsprintf: Likewise.
29471         * modules/unistdio/u32-vasnprintf: Likewise.
29472         * modules/unistdio/u32-vasprintf: Likewise.
29473         * modules/unistdio/u32-vsnprintf: Likewise.
29474         * modules/unistdio/u32-vsprintf: Likewise.
29475         * modules/unistdio/ulc-asnprintf: Likewise.
29476         * modules/unistdio/ulc-asprintf: Likewise.
29477         * modules/unistdio/ulc-fprintf: Likewise.
29478         * modules/unistdio/ulc-snprintf: Likewise.
29479         * modules/unistdio/ulc-sprintf: Likewise.
29480         * modules/unistdio/ulc-vasnprintf: Likewise.
29481         * modules/unistdio/ulc-vasprintf: Likewise.
29482         * modules/unistdio/ulc-vfprintf: Likewise.
29483         * modules/unistdio/ulc-vsnprintf: Likewise.
29484         * modules/unistdio/ulc-vsprintf: Likewise.
29485         * modules/unistr/u8-check: Likewise.
29486         * modules/unistr/u8-chr: Likewise.
29487         * modules/unistr/u8-cmp: Likewise.
29488         * modules/unistr/u8-cmp2: Likewise.
29489         * modules/unistr/u8-cpy: Likewise.
29490         * modules/unistr/u8-cpy-alloc: Likewise.
29491         * modules/unistr/u8-endswith: Likewise.
29492         * modules/unistr/u8-mblen: Likewise.
29493         * modules/unistr/u8-mbsnlen: Likewise.
29494         * modules/unistr/u8-mbtouc: Likewise.
29495         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29496         * modules/unistr/u8-mbtoucr: Likewise.
29497         * modules/unistr/u8-move: Likewise.
29498         * modules/unistr/u8-next: Likewise.
29499         * modules/unistr/u8-prev: Likewise.
29500         * modules/unistr/u8-set: Likewise.
29501         * modules/unistr/u8-startswith: Likewise.
29502         * modules/unistr/u8-stpcpy: Likewise.
29503         * modules/unistr/u8-stpncpy: Likewise.
29504         * modules/unistr/u8-strcat: Likewise.
29505         * modules/unistr/u8-strchr: Likewise.
29506         * modules/unistr/u8-strcmp: Likewise.
29507         * modules/unistr/u8-strcoll: Likewise.
29508         * modules/unistr/u8-strcpy: Likewise.
29509         * modules/unistr/u8-strcspn: Likewise.
29510         * modules/unistr/u8-strdup: Likewise.
29511         * modules/unistr/u8-strlen: Likewise.
29512         * modules/unistr/u8-strmblen: Likewise.
29513         * modules/unistr/u8-strmbtouc: Likewise.
29514         * modules/unistr/u8-strncat: Likewise.
29515         * modules/unistr/u8-strncmp: Likewise.
29516         * modules/unistr/u8-strncpy: Likewise.
29517         * modules/unistr/u8-strnlen: Likewise.
29518         * modules/unistr/u8-strpbrk: Likewise.
29519         * modules/unistr/u8-strrchr: Likewise.
29520         * modules/unistr/u8-strspn: Likewise.
29521         * modules/unistr/u8-strstr: Likewise.
29522         * modules/unistr/u8-strtok: Likewise.
29523         * modules/unistr/u8-to-u16: Likewise.
29524         * modules/unistr/u8-to-u32: Likewise.
29525         * modules/unistr/u8-uctomb: Likewise.
29526         * modules/unistr/u16-check: Likewise.
29527         * modules/unistr/u16-chr: Likewise.
29528         * modules/unistr/u16-cmp: Likewise.
29529         * modules/unistr/u16-cmp2: Likewise.
29530         * modules/unistr/u16-cpy: Likewise.
29531         * modules/unistr/u16-cpy-alloc: Likewise.
29532         * modules/unistr/u16-endswith: Likewise.
29533         * modules/unistr/u16-mblen: Likewise.
29534         * modules/unistr/u16-mbsnlen: Likewise.
29535         * modules/unistr/u16-mbtouc: Likewise.
29536         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29537         * modules/unistr/u16-mbtoucr: Likewise.
29538         * modules/unistr/u16-move: Likewise.
29539         * modules/unistr/u16-next: Likewise.
29540         * modules/unistr/u16-prev: Likewise.
29541         * modules/unistr/u16-set: Likewise.
29542         * modules/unistr/u16-startswith: Likewise.
29543         * modules/unistr/u16-stpcpy: Likewise.
29544         * modules/unistr/u16-stpncpy: Likewise.
29545         * modules/unistr/u16-strcat: Likewise.
29546         * modules/unistr/u16-strchr: Likewise.
29547         * modules/unistr/u16-strcmp: Likewise.
29548         * modules/unistr/u16-strcoll: Likewise.
29549         * modules/unistr/u16-strcpy: Likewise.
29550         * modules/unistr/u16-strcspn: Likewise.
29551         * modules/unistr/u16-strdup: Likewise.
29552         * modules/unistr/u16-strlen: Likewise.
29553         * modules/unistr/u16-strmblen: Likewise.
29554         * modules/unistr/u16-strmbtouc: Likewise.
29555         * modules/unistr/u16-strncat: Likewise.
29556         * modules/unistr/u16-strncmp: Likewise.
29557         * modules/unistr/u16-strncpy: Likewise.
29558         * modules/unistr/u16-strnlen: Likewise.
29559         * modules/unistr/u16-strpbrk: Likewise.
29560         * modules/unistr/u16-strrchr: Likewise.
29561         * modules/unistr/u16-strspn: Likewise.
29562         * modules/unistr/u16-strstr: Likewise.
29563         * modules/unistr/u16-strtok: Likewise.
29564         * modules/unistr/u16-to-u32: Likewise.
29565         * modules/unistr/u16-to-u8: Likewise.
29566         * modules/unistr/u16-uctomb: Likewise.
29567         * modules/unistr/u32-check: Likewise.
29568         * modules/unistr/u32-chr: Likewise.
29569         * modules/unistr/u32-cmp: Likewise.
29570         * modules/unistr/u32-cmp2: Likewise.
29571         * modules/unistr/u32-cpy: Likewise.
29572         * modules/unistr/u32-cpy-alloc: Likewise.
29573         * modules/unistr/u32-endswith: Likewise.
29574         * modules/unistr/u32-mblen: Likewise.
29575         * modules/unistr/u32-mbsnlen: Likewise.
29576         * modules/unistr/u32-mbtouc: Likewise.
29577         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29578         * modules/unistr/u32-mbtoucr: Likewise.
29579         * modules/unistr/u32-move: Likewise.
29580         * modules/unistr/u32-next: Likewise.
29581         * modules/unistr/u32-prev: Likewise.
29582         * modules/unistr/u32-set: Likewise.
29583         * modules/unistr/u32-startswith: Likewise.
29584         * modules/unistr/u32-stpcpy: Likewise.
29585         * modules/unistr/u32-stpncpy: Likewise.
29586         * modules/unistr/u32-strcat: Likewise.
29587         * modules/unistr/u32-strchr: Likewise.
29588         * modules/unistr/u32-strcmp: Likewise.
29589         * modules/unistr/u32-strcoll: Likewise.
29590         * modules/unistr/u32-strcpy: Likewise.
29591         * modules/unistr/u32-strcspn: Likewise.
29592         * modules/unistr/u32-strdup: Likewise.
29593         * modules/unistr/u32-strlen: Likewise.
29594         * modules/unistr/u32-strmblen: Likewise.
29595         * modules/unistr/u32-strmbtouc: Likewise.
29596         * modules/unistr/u32-strncat: Likewise.
29597         * modules/unistr/u32-strncmp: Likewise.
29598         * modules/unistr/u32-strncpy: Likewise.
29599         * modules/unistr/u32-strnlen: Likewise.
29600         * modules/unistr/u32-strpbrk: Likewise.
29601         * modules/unistr/u32-strrchr: Likewise.
29602         * modules/unistr/u32-strspn: Likewise.
29603         * modules/unistr/u32-strstr: Likewise.
29604         * modules/unistr/u32-strtok: Likewise.
29605         * modules/unistr/u32-to-u16: Likewise.
29606         * modules/unistr/u32-to-u8: Likewise.
29607         * modules/unistr/u32-uctomb: Likewise.
29608         * modules/uniwbrk/u8-wordbreaks: Likewise.
29609         * modules/uniwbrk/u16-wordbreaks: Likewise.
29610         * modules/uniwbrk/u32-wordbreaks: Likewise.
29611         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29612         * modules/uniwbrk/wordbreak-property: Likewise.
29613         * modules/uniwidth/u8-strwidth: Likewise.
29614         * modules/uniwidth/u8-width: Likewise.
29615         * modules/uniwidth/u16-strwidth: Likewise.
29616         * modules/uniwidth/u16-width: Likewise.
29617         * modules/uniwidth/u32-strwidth: Likewise.
29618         * modules/uniwidth/u32-width: Likewise.
29619         * modules/uniwidth/width: Likewise.
29620         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29621         with $(LIBUNISTRING).
29622         * modules/unicase/ignorable-tests: Likewise.
29623         * modules/unicase/locale-language-tests: Likewise.
29624         * modules/unicase/tolower-tests: Likewise.
29625         * modules/unicase/totitle-tests: Likewise.
29626         * modules/unicase/toupper-tests: Likewise.
29627         * modules/unicase/u8-casecmp-tests: Likewise.
29628         * modules/unicase/u8-casecoll-tests: Likewise.
29629         * modules/unicase/u8-casefold-tests: Likewise.
29630         * modules/unicase/u8-is-cased-tests: Likewise.
29631         * modules/unicase/u8-is-casefolded-tests: Likewise.
29632         * modules/unicase/u8-is-lowercase-tests: Likewise.
29633         * modules/unicase/u8-is-titlecase-tests: Likewise.
29634         * modules/unicase/u8-is-uppercase-tests: Likewise.
29635         * modules/unicase/u8-tolower-tests: Likewise.
29636         * modules/unicase/u8-totitle-tests: Likewise.
29637         * modules/unicase/u8-toupper-tests: Likewise.
29638         * modules/unicase/u16-casecmp-tests: Likewise.
29639         * modules/unicase/u16-casecoll-tests: Likewise.
29640         * modules/unicase/u16-casefold-tests: Likewise.
29641         * modules/unicase/u16-is-cased-tests: Likewise.
29642         * modules/unicase/u16-is-casefolded-tests: Likewise.
29643         * modules/unicase/u16-is-lowercase-tests: Likewise.
29644         * modules/unicase/u16-is-titlecase-tests: Likewise.
29645         * modules/unicase/u16-is-uppercase-tests: Likewise.
29646         * modules/unicase/u16-tolower-tests: Likewise.
29647         * modules/unicase/u16-totitle-tests: Likewise.
29648         * modules/unicase/u16-toupper-tests: Likewise.
29649         * modules/unicase/u32-casecmp-tests: Likewise.
29650         * modules/unicase/u32-casecoll-tests: Likewise.
29651         * modules/unicase/u32-casefold-tests: Likewise.
29652         * modules/unicase/u32-is-cased-tests: Likewise.
29653         * modules/unicase/u32-is-casefolded-tests: Likewise.
29654         * modules/unicase/u32-is-lowercase-tests: Likewise.
29655         * modules/unicase/u32-is-titlecase-tests: Likewise.
29656         * modules/unicase/u32-is-uppercase-tests: Likewise.
29657         * modules/unicase/u32-tolower-tests: Likewise.
29658         * modules/unicase/u32-totitle-tests: Likewise.
29659         * modules/unicase/u32-toupper-tests: Likewise.
29660         * modules/unicase/ulc-casecmp-tests: Likewise.
29661         * modules/unicase/ulc-casecoll-tests: Likewise.
29662         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29663         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29664         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29665         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29666         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29667         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29668         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29669         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29670         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29671         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29672         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29673         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29674         * modules/unictype/bidicategory-byname-tests: Likewise.
29675         * modules/unictype/bidicategory-name-tests: Likewise.
29676         * modules/unictype/bidicategory-of-tests: Likewise.
29677         * modules/unictype/bidicategory-test-tests: Likewise.
29678         * modules/unictype/block-list-tests: Likewise.
29679         * modules/unictype/block-of-tests: Likewise.
29680         * modules/unictype/block-test-tests: Likewise.
29681         * modules/unictype/category-C-tests: Likewise.
29682         * modules/unictype/category-Cc-tests: Likewise.
29683         * modules/unictype/category-Cf-tests: Likewise.
29684         * modules/unictype/category-Cn-tests: Likewise.
29685         * modules/unictype/category-Co-tests: Likewise.
29686         * modules/unictype/category-Cs-tests: Likewise.
29687         * modules/unictype/category-L-tests: Likewise.
29688         * modules/unictype/category-Ll-tests: Likewise.
29689         * modules/unictype/category-Lm-tests: Likewise.
29690         * modules/unictype/category-Lo-tests: Likewise.
29691         * modules/unictype/category-Lt-tests: Likewise.
29692         * modules/unictype/category-Lu-tests: Likewise.
29693         * modules/unictype/category-M-tests: Likewise.
29694         * modules/unictype/category-Mc-tests: Likewise.
29695         * modules/unictype/category-Me-tests: Likewise.
29696         * modules/unictype/category-Mn-tests: Likewise.
29697         * modules/unictype/category-N-tests: Likewise.
29698         * modules/unictype/category-Nd-tests: Likewise.
29699         * modules/unictype/category-Nl-tests: Likewise.
29700         * modules/unictype/category-No-tests: Likewise.
29701         * modules/unictype/category-P-tests: Likewise.
29702         * modules/unictype/category-Pc-tests: Likewise.
29703         * modules/unictype/category-Pd-tests: Likewise.
29704         * modules/unictype/category-Pe-tests: Likewise.
29705         * modules/unictype/category-Pf-tests: Likewise.
29706         * modules/unictype/category-Pi-tests: Likewise.
29707         * modules/unictype/category-Po-tests: Likewise.
29708         * modules/unictype/category-Ps-tests: Likewise.
29709         * modules/unictype/category-S-tests: Likewise.
29710         * modules/unictype/category-Sc-tests: Likewise.
29711         * modules/unictype/category-Sk-tests: Likewise.
29712         * modules/unictype/category-Sm-tests: Likewise.
29713         * modules/unictype/category-So-tests: Likewise.
29714         * modules/unictype/category-Z-tests: Likewise.
29715         * modules/unictype/category-Zl-tests: Likewise.
29716         * modules/unictype/category-Zp-tests: Likewise.
29717         * modules/unictype/category-Zs-tests: Likewise.
29718         * modules/unictype/category-and-not-tests: Likewise.
29719         * modules/unictype/category-and-tests: Likewise.
29720         * modules/unictype/category-byname-tests: Likewise.
29721         * modules/unictype/category-name-tests: Likewise.
29722         * modules/unictype/category-none-tests: Likewise.
29723         * modules/unictype/category-of-tests: Likewise.
29724         * modules/unictype/category-or-tests: Likewise.
29725         * modules/unictype/category-test-withtable-tests: Likewise.
29726         * modules/unictype/combining-class-tests: Likewise.
29727         * modules/unictype/ctype-alnum-tests: Likewise.
29728         * modules/unictype/ctype-alpha-tests: Likewise.
29729         * modules/unictype/ctype-blank-tests: Likewise.
29730         * modules/unictype/ctype-cntrl-tests: Likewise.
29731         * modules/unictype/ctype-digit-tests: Likewise.
29732         * modules/unictype/ctype-graph-tests: Likewise.
29733         * modules/unictype/ctype-lower-tests: Likewise.
29734         * modules/unictype/ctype-print-tests: Likewise.
29735         * modules/unictype/ctype-punct-tests: Likewise.
29736         * modules/unictype/ctype-space-tests: Likewise.
29737         * modules/unictype/ctype-upper-tests: Likewise.
29738         * modules/unictype/ctype-xdigit-tests: Likewise.
29739         * modules/unictype/decimal-digit-tests: Likewise.
29740         * modules/unictype/digit-tests: Likewise.
29741         * modules/unictype/mirror-tests: Likewise.
29742         * modules/unictype/numeric-tests: Likewise.
29743         * modules/unictype/property-alphabetic-tests: Likewise.
29744         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29745         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29746         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29747         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29748         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29749         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29750         * modules/unictype/property-bidi-control-tests: Likewise.
29751         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29752         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29753         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29754         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29755         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29756         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29757         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29758         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29759         * modules/unictype/property-bidi-pdf-tests: Likewise.
29760         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29761         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29762         * modules/unictype/property-byname-tests: Likewise.
29763         * modules/unictype/property-combining-tests: Likewise.
29764         * modules/unictype/property-composite-tests: Likewise.
29765         * modules/unictype/property-currency-symbol-tests: Likewise.
29766         * modules/unictype/property-dash-tests: Likewise.
29767         * modules/unictype/property-decimal-digit-tests: Likewise.
29768         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29769         * modules/unictype/property-deprecated-tests: Likewise.
29770         * modules/unictype/property-diacritic-tests: Likewise.
29771         * modules/unictype/property-extender-tests: Likewise.
29772         * modules/unictype/property-format-control-tests: Likewise.
29773         * modules/unictype/property-grapheme-base-tests: Likewise.
29774         * modules/unictype/property-grapheme-extend-tests: Likewise.
29775         * modules/unictype/property-grapheme-link-tests: Likewise.
29776         * modules/unictype/property-hex-digit-tests: Likewise.
29777         * modules/unictype/property-hyphen-tests: Likewise.
29778         * modules/unictype/property-id-continue-tests: Likewise.
29779         * modules/unictype/property-id-start-tests: Likewise.
29780         * modules/unictype/property-ideographic-tests: Likewise.
29781         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29782         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29783         * modules/unictype/property-ignorable-control-tests: Likewise.
29784         * modules/unictype/property-iso-control-tests: Likewise.
29785         * modules/unictype/property-join-control-tests: Likewise.
29786         * modules/unictype/property-left-of-pair-tests: Likewise.
29787         * modules/unictype/property-line-separator-tests: Likewise.
29788         * modules/unictype/property-logical-order-exception-tests: Likewise.
29789         * modules/unictype/property-lowercase-tests: Likewise.
29790         * modules/unictype/property-math-tests: Likewise.
29791         * modules/unictype/property-non-break-tests: Likewise.
29792         * modules/unictype/property-not-a-character-tests: Likewise.
29793         * modules/unictype/property-numeric-tests: Likewise.
29794         * modules/unictype/property-other-alphabetic-tests: Likewise.
29795         * modules/unictype/property-other-default-ignorable-code-point-tests:
29796         Likewise.
29797         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29798         * modules/unictype/property-other-id-continue-tests: Likewise.
29799         * modules/unictype/property-other-id-start-tests: Likewise.
29800         * modules/unictype/property-other-lowercase-tests: Likewise.
29801         * modules/unictype/property-other-math-tests: Likewise.
29802         * modules/unictype/property-other-uppercase-tests: Likewise.
29803         * modules/unictype/property-paired-punctuation-tests: Likewise.
29804         * modules/unictype/property-paragraph-separator-tests: Likewise.
29805         * modules/unictype/property-pattern-syntax-tests: Likewise.
29806         * modules/unictype/property-pattern-white-space-tests: Likewise.
29807         * modules/unictype/property-private-use-tests: Likewise.
29808         * modules/unictype/property-punctuation-tests: Likewise.
29809         * modules/unictype/property-quotation-mark-tests: Likewise.
29810         * modules/unictype/property-radical-tests: Likewise.
29811         * modules/unictype/property-sentence-terminal-tests: Likewise.
29812         * modules/unictype/property-soft-dotted-tests: Likewise.
29813         * modules/unictype/property-space-tests: Likewise.
29814         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29815         * modules/unictype/property-test-tests: Likewise.
29816         * modules/unictype/property-titlecase-tests: Likewise.
29817         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29818         * modules/unictype/property-unified-ideograph-tests: Likewise.
29819         * modules/unictype/property-uppercase-tests: Likewise.
29820         * modules/unictype/property-variation-selector-tests: Likewise.
29821         * modules/unictype/property-white-space-tests: Likewise.
29822         * modules/unictype/property-xid-continue-tests: Likewise.
29823         * modules/unictype/property-xid-start-tests: Likewise.
29824         * modules/unictype/property-zero-width-tests: Likewise.
29825         * modules/unictype/scripts-tests: Likewise.
29826         * modules/unictype/syntax-c-ident-tests: Likewise.
29827         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29828         * modules/unictype/syntax-java-ident-tests: Likewise.
29829         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29830         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29831         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29832         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29833         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29834         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29835         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29836         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29837         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29838         * modules/uniname/uniname-tests: Likewise.
29839         * modules/uninorm/canonical-decomposition-tests: Likewise.
29840         * modules/uninorm/compat-decomposition-tests: Likewise.
29841         * modules/uninorm/composition-tests: Likewise.
29842         * modules/uninorm/decomposing-form-tests: Likewise.
29843         * modules/uninorm/decomposition-tests: Likewise.
29844         * modules/uninorm/filter-tests: Likewise.
29845         * modules/uninorm/nfc-tests: Likewise.
29846         * modules/uninorm/nfd-tests: Likewise.
29847         * modules/uninorm/nfkc-tests: Likewise.
29848         * modules/uninorm/nfkd-tests: Likewise.
29849         * modules/uninorm/u8-normcmp-tests: Likewise.
29850         * modules/uninorm/u8-normcoll-tests: Likewise.
29851         * modules/uninorm/u16-normcmp-tests: Likewise.
29852         * modules/uninorm/u16-normcoll-tests: Likewise.
29853         * modules/uninorm/u32-normcmp-tests: Likewise.
29854         * modules/uninorm/u32-normcoll-tests: Likewise.
29855         * modules/unistdio/u8-asnprintf-tests: Likewise.
29856         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29857         * modules/unistdio/u8-vasprintf-tests: Likewise.
29858         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29859         * modules/unistdio/u8-vsprintf-tests: Likewise.
29860         * modules/unistdio/u16-asnprintf-tests: Likewise.
29861         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29862         * modules/unistdio/u16-vasprintf-tests: Likewise.
29863         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29864         * modules/unistdio/u16-vsprintf-tests: Likewise.
29865         * modules/unistdio/u32-asnprintf-tests: Likewise.
29866         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29867         * modules/unistdio/u32-vasprintf-tests: Likewise.
29868         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29869         * modules/unistdio/u32-vsprintf-tests: Likewise.
29870         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29871         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29872         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29873         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29874         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29875         * modules/unistr/u8-check-tests: Likewise.
29876         * modules/unistr/u8-chr-tests: Likewise.
29877         * modules/unistr/u8-cmp-tests: Likewise.
29878         * modules/unistr/u8-cmp2-tests: Likewise.
29879         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29880         * modules/unistr/u8-cpy-tests: Likewise.
29881         * modules/unistr/u8-mblen-tests: Likewise.
29882         * modules/unistr/u8-mbsnlen-tests: Likewise.
29883         * modules/unistr/u8-mbtouc-tests: Likewise.
29884         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29885         * modules/unistr/u8-mbtoucr-tests: Likewise.
29886         * modules/unistr/u8-move-tests: Likewise.
29887         * modules/unistr/u8-next-tests: Likewise.
29888         * modules/unistr/u8-prev-tests: Likewise.
29889         * modules/unistr/u8-set-tests: Likewise.
29890         * modules/unistr/u8-stpcpy-tests: Likewise.
29891         * modules/unistr/u8-stpncpy-tests: Likewise.
29892         * modules/unistr/u8-strcat-tests: Likewise.
29893         * modules/unistr/u8-strcmp-tests: Likewise.
29894         * modules/unistr/u8-strcoll-tests: Likewise.
29895         * modules/unistr/u8-strcpy-tests: Likewise.
29896         * modules/unistr/u8-strdup-tests: Likewise.
29897         * modules/unistr/u8-strlen-tests: Likewise.
29898         * modules/unistr/u8-strmblen-tests: Likewise.
29899         * modules/unistr/u8-strmbtouc-tests: Likewise.
29900         * modules/unistr/u8-strncat-tests: Likewise.
29901         * modules/unistr/u8-strncmp-tests: Likewise.
29902         * modules/unistr/u8-strncpy-tests: Likewise.
29903         * modules/unistr/u8-strnlen-tests: Likewise.
29904         * modules/unistr/u8-to-u16-tests: Likewise.
29905         * modules/unistr/u8-to-u32-tests: Likewise.
29906         * modules/unistr/u8-uctomb-tests: Likewise.
29907         * modules/unistr/u16-check-tests: Likewise.
29908         * modules/unistr/u16-chr-tests: Likewise.
29909         * modules/unistr/u16-cmp-tests: Likewise.
29910         * modules/unistr/u16-cmp2-tests: Likewise.
29911         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29912         * modules/unistr/u16-cpy-tests: Likewise.
29913         * modules/unistr/u16-mblen-tests: Likewise.
29914         * modules/unistr/u16-mbsnlen-tests: Likewise.
29915         * modules/unistr/u16-mbtouc-tests: Likewise.
29916         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29917         * modules/unistr/u16-mbtoucr-tests: Likewise.
29918         * modules/unistr/u16-move-tests: Likewise.
29919         * modules/unistr/u16-next-tests: Likewise.
29920         * modules/unistr/u16-prev-tests: Likewise.
29921         * modules/unistr/u16-set-tests: Likewise.
29922         * modules/unistr/u16-stpcpy-tests: Likewise.
29923         * modules/unistr/u16-stpncpy-tests: Likewise.
29924         * modules/unistr/u16-strcat-tests: Likewise.
29925         * modules/unistr/u16-strcmp-tests: Likewise.
29926         * modules/unistr/u16-strcoll-tests: Likewise.
29927         * modules/unistr/u16-strcpy-tests: Likewise.
29928         * modules/unistr/u16-strdup-tests: Likewise.
29929         * modules/unistr/u16-strlen-tests: Likewise.
29930         * modules/unistr/u16-strmblen-tests: Likewise.
29931         * modules/unistr/u16-strmbtouc-tests: Likewise.
29932         * modules/unistr/u16-strncat-tests: Likewise.
29933         * modules/unistr/u16-strncmp-tests: Likewise.
29934         * modules/unistr/u16-strncpy-tests: Likewise.
29935         * modules/unistr/u16-strnlen-tests: Likewise.
29936         * modules/unistr/u16-to-u32-tests: Likewise.
29937         * modules/unistr/u16-to-u8-tests: Likewise.
29938         * modules/unistr/u16-uctomb-tests: Likewise.
29939         * modules/unistr/u32-check-tests: Likewise.
29940         * modules/unistr/u32-chr-tests: Likewise.
29941         * modules/unistr/u32-cmp-tests: Likewise.
29942         * modules/unistr/u32-cmp2-tests: Likewise.
29943         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29944         * modules/unistr/u32-cpy-tests: Likewise.
29945         * modules/unistr/u32-mblen-tests: Likewise.
29946         * modules/unistr/u32-mbsnlen-tests: Likewise.
29947         * modules/unistr/u32-mbtouc-tests: Likewise.
29948         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29949         * modules/unistr/u32-mbtoucr-tests: Likewise.
29950         * modules/unistr/u32-move-tests: Likewise.
29951         * modules/unistr/u32-next-tests: Likewise.
29952         * modules/unistr/u32-prev-tests: Likewise.
29953         * modules/unistr/u32-set-tests: Likewise.
29954         * modules/unistr/u32-stpcpy-tests: Likewise.
29955         * modules/unistr/u32-stpncpy-tests: Likewise.
29956         * modules/unistr/u32-strcat-tests: Likewise.
29957         * modules/unistr/u32-strcmp-tests: Likewise.
29958         * modules/unistr/u32-strcoll-tests: Likewise.
29959         * modules/unistr/u32-strcpy-tests: Likewise.
29960         * modules/unistr/u32-strdup-tests: Likewise.
29961         * modules/unistr/u32-strlen-tests: Likewise.
29962         * modules/unistr/u32-strmblen-tests: Likewise.
29963         * modules/unistr/u32-strmbtouc-tests: Likewise.
29964         * modules/unistr/u32-strncat-tests: Likewise.
29965         * modules/unistr/u32-strncmp-tests: Likewise.
29966         * modules/unistr/u32-strncpy-tests: Likewise.
29967         * modules/unistr/u32-strnlen-tests: Likewise.
29968         * modules/unistr/u32-to-u16-tests: Likewise.
29969         * modules/unistr/u32-to-u8-tests: Likewise.
29970         * modules/unistr/u32-uctomb-tests: Likewise.
29971         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29972         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29973         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29974         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29975         * modules/uniwidth/u8-strwidth-tests: Likewise.
29976         * modules/uniwidth/u8-width-tests: Likewise.
29977         * modules/uniwidth/u16-strwidth-tests: Likewise.
29978         * modules/uniwidth/u16-width-tests: Likewise.
29979         * modules/uniwidth/u32-strwidth-tests: Likewise.
29980         * modules/uniwidth/u32-width-tests: Likewise.
29981         * modules/uniwidth/width-tests: Likewise.
29982
29983 2010-05-18  Richard Jones  <rjones@redhat.com>
29984
29985         doc: users.txt: list hivex
29986         * users.txt: Add hivex.
29987
29988 2010-05-18  Richard Jones  <rjones@redhat.com>
29989
29990         doc: users.txt: list febootstrap
29991         * users.txt: Add febootstrap.
29992
29993 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29994
29995         bootstrap: fix an error when gnulib is not used as a git submodule
29996         * build-aux/bootstrap (gnulib_path): If its length is zero then
29997         assign "gnulib" to it.
29998         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29999
30000 2010-05-16  Bruno Haible  <bruno@clisp.org>
30001
30002         Avoid autoconf warnings about AM_ICONV.
30003         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30004         2.64.
30005
30006 2010-05-16  Bruno Haible  <bruno@clisp.org>
30007
30008         absolute-header: Make the macro usable in more situations.
30009         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30010         from gl_ABSOLUTE_HEADER.
30011         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30012
30013 2010-05-16  James Youngman  <jay@gnu.org>
30014
30015         doc: update users.txt
30016         * users.txt: Add CSSC.
30017
30018 2010-05-16  Jim Meyering  <meyering@redhat.com>
30019
30020         init.sh: fix an error in the previous change; add more comments
30021         * tests/init.sh: Compare exit code in loop against 9, not 2.
30022         Patch by Bruno Haible.
30023         Make the two tests more similar by adding an empty "then" clause.
30024         Add comments.
30025
30026         init.sh: avoid unnecessary shell re-exec
30027         * tests/init.sh: Improve the re-exec-required check to first test the
30028         current shell.  If it passes the test, do not search for a shell that
30029         does pass, and do not re-exec.  This test is particularly contorted to
30030         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30031         of $(...) evokes a syntax error and causes immediate shell exit with
30032         status 2.  Bruno Haible reported that the re-exec made it impossible
30033         to single-step through any init.sh-using script.
30034
30035 2010-05-16  Bruno Haible  <bruno@clisp.org>
30036
30037         Fix collision between gnulib's and libintl's printf replacements.
30038         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30039         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30040         (printf): When using GNU C, map the __printf__ function to rpl_printf
30041         via __asm__. When not using GNU C, define rpl_printf instead of
30042         __printf__.
30043         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30044         commit.
30045         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30046         commit.
30047         * m4/asm-underscore.m4: New file.
30048         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30049         * modules/stdio (Files): Add m4/asm-underscore.m4.
30050         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30051         Reported by Ben Pfaff.
30052
30053 2010-05-16  Bruno Haible  <bruno@clisp.org>
30054
30055         verify: Avoid skipping the test on openSUSE 11.0.
30056         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30057
30058 2010-05-13  Bruno Haible  <bruno@clisp.org>
30059
30060         Avoid useless warnings from G++.
30061         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30062         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30064
30065 2010-05-11  Jim Meyering  <meyering@redhat.com>
30066
30067         maint.mk: tweak preceding change
30068         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30069         regexps tighter by anchoring at EOL, and make the new group "shy"
30070         for slightly decreased overhead.
30071
30072 2010-05-11  Eric Blake  <eblake@redhat.com>
30073
30074         maint.mk: gnulib doesn't guarantee NSIG
30075         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30076
30077 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30078
30079         test-pwrite.c: Remove unused variable declaration.
30080         * tests/test-pwrite.c (main): Remove read_buf declaration.
30081
30082         Remove useless test-pwrite.sh file.
30083         * tests/test-pwrite.sh: Delete file.
30084         * modules/pwrite-tests: Remove references.
30085         Reported by Bruno Haible.
30086
30087 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30088
30089         init.sh: fix a typo
30090         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30091
30092 2010-05-10  Jim Meyering  <meyering@redhat.com>
30093
30094         maint.mk: avoid using a temporary file in the always-defined-macros check
30095         * top/maint.mk (.re-defmac): Remove rule.
30096         (gl_trap_): Remove definition.
30097         (sc_prohibit_always-defined_macros): Rewrite not to create and
30098         depend on a temporary file.  Instead, depend on GNU grep's ability
30099         to read a list of regular expressions from stdin when given "-f -".
30100
30101 2010-05-09  Bruno Haible  <bruno@clisp.org>
30102
30103         Update to GNU gettext 0.18, part 1.
30104         * m4/gettext.m4: Update to GNU gettext 0.18.
30105         * m4/intl.m4: Likewise.
30106         * m4/po.m4: Likewise.
30107         * modules/gettext (Files): Add m4/fcntl-o.m4.
30108         (configure.ac): Require gettext infrastructure from version 0.18.
30109
30110 2010-05-09  Jim Meyering  <meyering@redhat.com>
30111
30112         init.sh: enable MALLOC_PERTURB_
30113         * tests/init.sh: Enable glibc's malloc-perturbing option.
30114
30115         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30116         With my recent change in init.sh from the two-line form:
30117             -#   : ${srcdir=.}
30118             -#   . "$srcdir/init.sh"; path_prepend_ .
30119             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30120         I noticed that using the one-line form would cause this test
30121         to fail with a false-positive, or to stop working altogether,
30122         depending on whether help-version changed or all the tests did.
30123         * top/maint.mk (_hv_regex): Remove this definition.
30124         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30125         (_hv_regex_strong): Use a stronger regex to check for conformance.
30126         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30127         Give a separate diagnostic for lack of conforming use.
30128
30129         maint.mk: prohibit definition of symbols defined by gnulib
30130         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30131         definition of symbols defined by gnulib.
30132
30133 2010-05-09  Bruno Haible  <bruno@clisp.org>
30134
30135         acl: Avoid test failure on Cygwin-hosted mingw.
30136         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30137
30138 2010-05-09  Bruno Haible  <bruno@clisp.org>
30139
30140         error: Use system's fcntl function.
30141         * lib/error.c (fcntl): Undefine.
30142
30143 2010-05-09  Jim Meyering  <meyering@redhat.com>
30144
30145         verify: adjust formatting to be more consistent
30146         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30147         argument-list '('s, and after one comma.
30148
30149 2010-05-09  Bruno Haible  <bruno@clisp.org>
30150
30151         error: More reliable output on mingw.
30152         * lib/error.c: Include <windows.h>.
30153         (is_open): New function.
30154         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30155         defined.
30156
30157 2010-05-09  Bruno Haible  <bruno@clisp.org>
30158
30159         vasnprintf: Fix syntax errors in libintl build on mingw.
30160         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30161         pad_ourselves and prec_ourselves after use.
30162
30163 2010-05-08  Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/config.charset: Update comments for Cygwin 1.7.
30166         * lib/localcharset.c: Likewise.
30167
30168 2010-05-07  Jim Meyering  <meyering@redhat.com>
30169
30170         init.sh: improve comments
30171         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30172         . "${srcdir=.}/init.sh"; path_prepend_ .
30173         Add a note about path_prepend_ and the alternative of using
30174         TESTS_ENVIRONMENT.
30175
30176 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30177
30178         exclude: Unescape hashed patterns in wildcard mode.
30179         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30180         to the hash list.
30181         * tests/test-exclude8.sh: New test case.
30182         * modules/exclude-tests: Add new test.
30183
30184 2010-05-05  Eric Blake  <eblake@redhat.com>
30185
30186         verify: automate tests
30187         * modules/verify-tests: New module.
30188         * tests/test-verify.sh: New file.
30189         * tests/test-verify.c: Guard each negative test with a unique id.
30190         Also avoid warning about unused left hand of comma expressions.
30191
30192 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30193
30194         Further improvements to verify.h, suggested by Eric Blake.
30195         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30196         the GL_* versions, to avoid collision with OpenGL.
30197         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30198         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30199         than testing merely whether it's defined.
30200
30201         Modify verify.h to pacify gcc -Wredundant_decls.
30202         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30203         These use the prefix "GL_" since they're likely to be useful elsewhere.
30204         We may need to break them out into a different .h file.
30205         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30206         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30207         of verify_function__.
30208
30209 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30210
30211         Tests for module pwrite.
30212         * modules/pwrite-tests: New file.
30213         * tests/test-pwrite.sh: New file.
30214         * tests/test-pwrite.c: New file.
30215
30216         New module pwrite.
30217         * lib/unistd.in.h (pwrite): New declaration.
30218         * lib/pwrite.c: New file, from glibc with modifications.
30219         * m4/pwrite.m4: New file.
30220         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30221         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30222         REPLACE_PWRITE.
30223         * modules/pwrite: New file.
30224         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30225         REPLACE_PWRITE.
30226         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30227         * doc/posix-functions/pwrite.texi: Mention the new module.
30228
30229 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30230
30231         pread: Update documentation.
30232         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30233
30234 2010-05-04  Eric Blake  <eblake@redhat.com>
30235
30236         docs: update cygwin progress
30237         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30238         this bug.
30239         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30240         Added in cygwin 1.7.2.
30241         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30242         Likewise.
30243         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30244         Likewise.
30245         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30246         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30247         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30248         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30249         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30250         Mention nproc module.
30251         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30252         bug in cygwin 1.7.5 addition.
30253         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30254         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30255         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30256         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30257         1.7.5.
30258         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30259         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30260         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30261         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30262         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30263         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30264         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30265         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30266         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30267         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30268         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30269         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30270         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30271         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30272         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30273         Likewise.
30274         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30275         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30276         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30277         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30278         Likewise.
30279         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30280         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30281         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30282         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30283         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30284         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30285         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30286         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30287         Likewise.
30288         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30289         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30290         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30291         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30292         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30293         Likewise.
30294         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30295         Likewise.
30296         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30297         Likewise.
30298         * doc/glibc-functions/xdrrec_endofrecord.texi
30299         (xdrrec_endofrecord): Likewise.
30300         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30301         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30302         Likewise.
30303         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30304         Likewise.
30305
30306 2010-05-04  Jim Meyering  <meyering@redhat.com>
30307
30308         gendocs.sh: make its "-s FILE" option more useful
30309         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30310         $PACKAGE to reflect the probably-different basename of "FILE".
30311
30312 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30313
30314         bootstrap: don't ignore download_po_files failure
30315         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30316         failure.
30317
30318 2010-05-03  Jim Meyering  <meyering@redhat.com>
30319
30320         maint.mk: allow to pass options to gendocs.sh
30321         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30322         (gendocs_options_): New overridable variable.
30323
30324         gnu-web-doc-update: don't ignore configure or build failure
30325         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30326
30327         announce-gen: backslash-escape '@'s in --help output
30328         * build-aux/announce-gen: Fix syntax errors.
30329
30330         maint.mk, announce-gen: allow project-specific announcement mail headers
30331         * top/maint.mk (translation_project_): Define default.
30332         (announcement_Cc_, announcement_mail_headers_): Likewise.
30333         (announcement): Invoke announce-gen with new --mail-headers option.
30334         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30335
30336         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30337         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30338         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30339         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30340         line in the "err2" output file when running "make check" in verbose
30341         mode (i.e., with set -x enabled).
30342
30343 2010-05-03  Bruno Haible  <bruno@clisp.org>
30344
30345         wctob: Fix for weird platforms.
30346         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30347         argument value.
30348
30349 2010-05-03  Jim Meyering  <meyering@redhat.com>
30350
30351         maint.mk: prohibit unwarranted use of <strings.h>
30352         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30353         strings.h in a file that does not also use strcasecmp, strncasecmp,
30354         ffs or ffsll.
30355
30356         maint.mk: remove obsolete comments
30357         * top/maint.mk: Remove stale, commented-out rules.
30358
30359 2010-05-02  Bruno Haible  <bruno@clisp.org>
30360
30361         wcwidth: Declare also when it's aliased.
30362         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30363         macro.
30364
30365 2010-05-02  Bruno Haible  <bruno@clisp.org>
30366
30367         Fix regression from 2010-04-25.
30368         * gnulib-tool (func_modules_transitive_closure): Check the status of
30369         all modules, not only of the tests that are of the form foo-tests where
30370         foo is a module.
30371
30372 2010-05-02  Bruno Haible  <bruno@clisp.org>
30373
30374         wctob: Work around nasty Cygwin 1.7.2 bug.
30375         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30376         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30377
30378 2010-05-01  Bruno Haible  <bruno@clisp.org>
30379
30380         fpurge: Sharper test.
30381         * tests/test-fpurge.c (main): Add one more ftell check.
30382         * modules/fpurge-tests (Depends-on): Add ftell.
30383         Suggested by Eric Blake.
30384
30385 2010-05-01  Bruno Haible  <bruno@clisp.org>
30386
30387         ftello: Another test.
30388         * tests/test-ftello3.c: New file.
30389         * modules/ftello-tests (Files): Add it.
30390         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30391         MOSTLYCLEANFILES.
30392
30393         ftell: Another test.
30394         * tests/test-ftell3.c: New file.
30395         * modules/ftell-tests (Files): Add it.
30396         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30397         MOSTLYCLEANFILES.
30398
30399 2010-05-01  Bruno Haible  <bruno@clisp.org>
30400
30401         ftell, ftello: Work around Solaris bug.
30402         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30403         * lib/ftello.c: Include stdio-impl.h.
30404         (ftello): On Solaris, when _IOWRT is set, compute the result without
30405         looking at _IOREAD.
30406         * modules/ftello (Files): Add lib/stdio-impl.h.
30407         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30408         * doc/posix-functions/ftello.texi: Likewise.
30409         Reported by Eric Blake.
30410
30411 2010-05-01  Bruno Haible  <bruno@clisp.org>
30412
30413         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30414         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30415         the _IOWRT flag is also set.
30416
30417 2010-05-01  Bruno Haible  <bruno@clisp.org>
30418
30419         Fix doc about a HP-UX stdio bug.
30420         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30421         * doc/posix-functions/ftello.texi: Likewise.
30422
30423 2010-05-01  Bruno Haible  <bruno@clisp.org>
30424
30425         lseek test: Fix failure on Solaris.
30426         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30427         output.
30428
30429 2010-04-30  Jim Meyering  <meyering@redhat.com>
30430
30431         bootstrap: don't ignore failure to generate po*/Makevars
30432         * build-aux/bootstrap (with_gettext): Don't ignore failure
30433         to create po/Makevars or runtime-po/Makevars.
30434
30435 2010-04-29  Eric Blake  <eblake@redhat.com>
30436
30437         headers: relax license to LGPLv2+
30438         * modules/fcntl-h (License): Relax license.
30439         * modules/getopt-posix (License): Likewise.
30440         * modules/locale (License): Likewise.
30441         * modules/math (License): Likewise.
30442         * modules/pty (License): Likewise.
30443         * modules/sched (License): Likewise.
30444         * modules/search (License): Likewise.
30445         * modules/spawn (License): Likewise.
30446         * modules/stdarg (License): Likewise.
30447         * modules/sysexits (License): Likewise.
30448
30449 2010-04-29  Jim Meyering  <meyering@redhat.com>
30450
30451         inttypes: relax license to LGPLv2+
30452         * modules/inttypes (License): Relax license.
30453
30454 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30455
30456         * top/maint.mk (indent): Run twice to produce idempotent results.
30457
30458 2010-04-28  Bruno Haible  <bruno@clisp.org>
30459
30460         getdate: Generate getdate.c in the source directory.
30461         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30462         MOSTLYCLEANFILES.
30463         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30464
30465 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30466
30467         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30468         is not declared as a const *; avoid warnings in that case.
30469
30470 2010-04-28  Eric Blake  <eblake@redhat.com>
30471
30472         canonicalize-lgpl: avoid compiler warning
30473         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30474         declaration' / 'extraneous semicolon' warning with some compilers.
30475         Reported by Andreas Gruenbacher.
30476
30477 2010-04-28  Jim Meyering  <meyering@redhat.com>
30478
30479         init.sh: ensure a more reliable exit status when exiting via trap
30480         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30481         Inspired by patches from Dmitry V. Levin.
30482         Also trap on signal 3 (SIGQUIT).
30483
30484 2010-04-27  Bruno Haible  <bruno@clisp.org>
30485
30486         Update doc about utimes().
30487         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30488         'utimens' module.
30489         Reported by Andreas Gruenbacher <agruen@suse.de>.
30490
30491 2010-04-27  Eric Blake  <eblake@redhat.com>
30492
30493         full-read, full-write: relax license
30494         * modules/full-read (License): Drop to LGPLv2+.
30495         * modules/full-write (License): Likewise.
30496         * modules/safe-read (License): Likewise.
30497         * modules/safe-write (License): Likewise.
30498
30499         pthread: mention library for linking
30500         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30501
30502 2010-04-27  Jim Meyering  <meyering@redhat.com>
30503
30504         maint.mk: fix a bug introduced in last change
30505         * top/maint.mk (gl_assured_headers_): Now that all names are on
30506         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30507         is not anchored to end of word, it should be adequate.
30508
30509         maint.mk: avoid side-effect in latest syntax-check
30510         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30511         to run commands via $(shell...), and hence to incur cost only when
30512         the new rule is actually run.
30513
30514         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30515         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30516         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30517         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30518         (gl_assured_headers_, az_, AZ_): Define.
30519         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30520
30521 2010-04-26  Jim Meyering  <jim@meyering.net>
30522             Bruno Haible  <bruno@clisp.org>
30523
30524         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30526         Prompted by an exchange with Gilles Espinasse.
30527
30528 2010-04-26  Jim Meyering  <meyering@redhat.com>
30529
30530         git-version-gen: aesthetic tweak
30531         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30532         so that the command remains on a single line.
30533
30534 2010-04-26  Eric Blake  <eblake@redhat.com>
30535
30536         git-version-gen: allow use on EBCDIC hosts
30537         * build-aux/git-version-gen (dirty): Use literal rather than tying
30538         ourselves to ascii.
30539         Reported by Steve Goetze.
30540
30541 2010-04-25  Bruno Haible  <bruno@clisp.org>
30542
30543         netdb: Add support for GNULIB_POSIXCHECK.
30544         * lib/netdb.in.h: Include warn-on-use.h.
30545         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30546         functions are used when GNULIB_POSIXCHECK is defined and the
30547         getaddrinfo module is not in use.
30548         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30549         freeaddrinfo, gai_strerror, getnameinfo are declared.
30550         * modules/netdb (Depends-on): Add warn-on-use.
30551         (Makefile.am): Include warn-on-use.h in netdb.h.
30552
30553 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30554
30555         build: avoid "make check" failure without .git/ directory
30556         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30557         there is no .git/ directory.
30558
30559 2010-04-25  Bruno Haible  <bruno@clisp.org>
30560
30561         ptsname: Fix misuse of ttyname_r.
30562         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30563         of errno.
30564
30565 2010-04-25  Bruno Haible  <bruno@clisp.org>
30566
30567         ttyname_r: Make it work on Solaris 10.
30568         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30569         if the system function has the POSIX declaration. Test whether the
30570         function fails if the buffer is less than 128 bytes large.
30571         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30572         system's ttyname_r function. Provide a reasonably large buffer.
30573         * modules/ttyname_r (Depends-on): Add extensions.
30574         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30575
30576 2010-04-25  Bruno Haible  <bruno@clisp.org>
30577
30578         Use the 'extensions' module for some more functions on Solaris.
30579         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30580         module.
30581         * doc/posix-functions/ctime_r.texi: Likewise.
30582         * doc/posix-functions/getgrgid_r.texi: Likewise.
30583         * doc/posix-functions/getgrnam_r.texi: Likewise.
30584         * doc/posix-functions/getpwnam_r.texi: Likewise.
30585         * doc/posix-functions/getpwuid_r.texi: Likewise.
30586         * doc/posix-functions/readdir_r.texi: Likewise.
30587         * doc/posix-functions/sigwait.texi: Likewise.
30588         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30589         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30590
30591 2010-04-25  Bruno Haible  <bruno@clisp.org>
30592
30593         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30594         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30595         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30596         * lib/ttyname_r.c: Include <limits.h>.
30597         (ttyname_r): Define using the system's ttyname_r function, if it exists
30598         and not on Solaris.
30599         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30600         set.
30601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30602         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30603         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30604         Reported by Simon Josefsson.
30605
30606 2010-04-25  Bruno Haible  <bruno@clisp.org>
30607
30608         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30609         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30610         * doc/posix-functions/ctime_r.texi: Likewise.
30611         * doc/posix-functions/getgrgid_r.texi: Likewise.
30612         * doc/posix-functions/getgrnam_r.texi: Likewise.
30613         * doc/posix-functions/getlogin_r.texi: Likewise.
30614         * doc/posix-functions/getpwnam_r.texi: Likewise.
30615         * doc/posix-functions/getpwuid_r.texi: Likewise.
30616         * doc/posix-functions/readdir_r.texi: Likewise.
30617         * doc/posix-functions/sigwait.texi: Likewise.
30618         * doc/posix-functions/ttyname_r.texi: Likewise.
30619         Reported by Simon Josefsson.
30620
30621 2010-04-25  Bruno Haible  <bruno@clisp.org>
30622
30623         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30624         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30625         also to --create-testdir.
30626         (func_acceptable): Don't consider the status of *-tests modules here.
30627         (func_modules_transitive_closure): Consider it here, before including a
30628         test module.
30629         (func_import, func_create_testdir): Set inc_all_direct_tests,
30630         inc_all_indirect_tests.
30631         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30632         --create-testdir and --create-megatestdir.
30633
30634 2010-04-25  Bruno Haible  <bruno@clisp.org>
30635
30636         gnulib-tool: Add --without-*-tests options.
30637         * gnulib-tool (func_usage): Document the --without-*-tests options.
30638         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30639         excl_unportable_tests): New variables.
30640         Fail if they are specified with --import or --update.
30641         (func_acceptable): Respect the excl_*_tests variables.
30642         (func_import): Set the excl_*_tests variables to empty.
30643
30644 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30645             Bruno Haible  <bruno@clisp.org>
30646
30647         Work around a MacOS X 10.4 bug with openpty.
30648         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30649         * tests/test-openpty.c (main): Close the master side explicitly.
30650
30651 2010-04-25  Bruno Haible  <bruno@clisp.org>
30652
30653         strnlen: Fix a C++ test error on MacOS X and Solaris.
30654         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30655         the function is not declared.
30656         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30657         Simon Josefsson.
30658
30659 2010-04-24  Bruno Haible  <bruno@clisp.org>
30660
30661         Avoid a gcc warning.
30662         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30663         of correct type for %08lx directive.
30664         Reported by Eric Blake.
30665
30666 2010-04-24  Bruno Haible  <bruno@clisp.org>
30667
30668         vasnprintf: Correct errno value in case of out-of-memory.
30669         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30670         or sprintf. Use the errno value from SNPRINTF or sprintf.
30671         Reported by Ian Beckwith <ianb@erislabs.net>.
30672
30673 2010-04-24  Bruno Haible  <bruno@clisp.org>
30674
30675         ansi-c++-opt: Find correct compiler when cross-compiling.
30676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30677         AC_CHECK_PROGS.
30678         Reported by Simon Josefsson.
30679
30680 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30681
30682         vc-list-files: Add support for subversion
30683         * build-aux/vc-list-files: Use "svn list" to generate the list of
30684         files controlled by subversion.
30685
30686 2010-04-23  Jim Meyering  <meyering@redhat.com>
30687
30688         vc-list-files tests: convert to use init.sh
30689         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30690         path_prepend_.
30691         Use Exit, not exit.
30692         Use skip_ rather than open coding it.
30693         Remove trap set-up and compare definitions.
30694         * tests/test-vc-list-files-git.sh: Likewise.
30695         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30696
30697 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30698
30699         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30700         backup files.
30701
30702 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30703
30704         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30705
30706 2010-04-20  Eric Blake  <eblake@redhat.com>
30707
30708         tests: be robust to ignored SIGPIPE
30709         * tests/test-select-in.sh: Consume all output.
30710         * tests/test-lseek.sh: Check correct exit status, while avoiding
30711         EPIPE.
30712
30713 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30714             Bruno Haible  <bruno@clisp.org>
30715
30716         visibility: Don't use -fvisibility if it leads to a warning.
30717         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30718         yes, don't pretend that visibility works if it leads to a warning.
30719         Reported by Mike Gran <spk121@yahoo.com>.
30720
30721 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30722
30723         * build-aux/bootstrap: Use "git -h" for testing for supported options
30724         instead of "git --help".  The short-form option only shows a summary,
30725         and doesn't layout the full man page.  Grep for the full option name
30726         in the summary, too.
30727
30728 2010-04-19  Bruno Haible  <bruno@clisp.org>
30729
30730         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30731         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30732         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30733         mention of RELOCATABLE_STRIP.
30734         Reported by Sylvain Beucler <beuc@beuc.net>.
30735
30736 2010-04-19  Bruno Haible  <bruno@clisp.org>
30737
30738         * lib/diffseq.h: Fix typo in comment.
30739         Reported by Eric Blake.
30740
30741 2010-04-19  Bruno Haible  <bruno@clisp.org>
30742
30743         ioctl: Move autoconf macro to a .m4 file.
30744         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30745         * modules/ioctl (Files): Add it.
30746         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30747         Reported by Ian Beckwith <ianb@erislabs.net>.
30748
30749 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30750             Bruno Haible  <bruno@clisp.org>
30751
30752         diffseq: Accommodate use-case with abstract arrays.
30753         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30754         is not defined.
30755         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30756         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30757
30758 2010-04-18  Bruno Haible  <bruno@clisp.org>
30759
30760         * doc/posix-headers/stdbool.texi: More precise wording.
30761
30762 2010-04-17  Jim Meyering  <meyering@redhat.com>
30763
30764         maint.mk: use gnu-style indentation in an embedded perl script
30765         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30766         Rename variable: s/two/last_two_bytes/
30767
30768 2010-04-16  Eric Blake  <eblake@redhat.com>
30769
30770         test-stdbool: skip test that fails with Solaris CC
30771         * tests/test-stdbool.c (f): Skip test that causes compilation
30772         error under buggy C++ compiler.
30773         * lib/stdbool.in.h: Document the limitation.
30774         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30775
30776         setenv: allow compilation with C++
30777         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30778         register keyword.
30779
30780         stdint: allow test to pass with C++
30781         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30782
30783         getopt: allow compilation with C++
30784         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30785         struct.
30786         * lib/getopt.c (_getopt_internal_r): Use correct type.
30787         Reported by Dagobert Michelson, via Joel E. Denny.
30788
30789 2010-04-16  Bruno Haible  <bruno@clisp.org>
30790
30791         Override netdb.h always.
30792         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30793         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30794         Reported by Ludovic Courtès <ludo@gnu.org>.
30795
30796 2010-04-15  Bruno Haible  <bruno@clisp.org>
30797
30798         openpty: Fix mistake from 2010-03-21.
30799         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30800         Reported by Simon Josefsson.
30801
30802 2010-04-15  Eric Blake  <eblake@redhat.com>
30803
30804         test-forkpty: fix expected signature
30805         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30806         Reported by Simon Josefsson.
30807
30808 2010-04-15  Jim Meyering  <meyering@redhat.com>
30809
30810         maint.mk: texinfo_suffix_re_: correct the default regexp
30811         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30812
30813         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30814         make it configurable via texinfo_suffix_re_.
30815
30816 2010-04-14  Eric Blake  <eblake@redhat.com>
30817
30818         strtok_r: relax license to LGPLv2+
30819         * modules/strtok_r (License): Relax license.
30820         Reported by Matthias Bolte.
30821
30822 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30823
30824         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30825         version 1.4.4 by default instead of requiring the libgcrypt
30826         version used during build.  This makes it possible to use the
30827         application with older but still binary compatible libgcrypt
30828         versions.
30829
30830 2010-04-13  Eric Blake  <eblake@redhat.com>
30831
30832         getopt-gnu: match recent glibc fixes and posix ruling
30833         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30834         '+' handling, when requesting extensions.
30835         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30836         'W;' handling.
30837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30838         * doc/posix-functions/getopt.texi (getopt): Document this.
30839         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30840         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30841         Likewise.
30842
30843         getopt: merge bug fixes from glibc
30844         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30845         diagnostics.  Honor '+:' correctly.  Reject ';'.
30846
30847         getopt-posix: detect MacOS bug
30848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30849         optind when missing a required argument.
30850         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30851         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30852         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30853         Likewise.
30854
30855         getopt-posix: avoid spurious failure on Solaris
30856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30857         an indicator that setting optind=1 is sufficient for reset.
30858
30859         getopt-posix: avoid spurious failure on FreeBSD
30860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30861         in POSIX mode, since the m4 test uses it.
30862
30863         gnulib-tool: silence warning on BSD sh
30864         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30865
30866 2010-04-13  Jim Meyering  <meyering@redhat.com>
30867
30868         doc: users.txt: GNU patch now uses gnulib
30869         * users.txt: Add patch.
30870
30871 2010-04-12  Jim Meyering  <meyering@redhat.com>
30872
30873         maint.mk: generate more concise timing data for syntax-check rules
30874         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30875         " done" from each line that reports a syntax-check test duration.
30876
30877 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30878
30879         git-version-gen: use "git update-index..." rather than "git status"
30880         * build-aux/git-version-gen: Use git update-index --refresh, not
30881         "git status".  With some versions of git, "git status" would fail
30882         to update the index and result in an unwarranted "-dirty" suffix.
30883
30884 2010-04-11  Jim Meyering  <meyering@redhat.com>
30885
30886         openat: correct formatting (no semantic change)
30887         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30888         Suggested by Bruno Haible.
30889
30890 2010-04-11  Bruno Haible  <bruno@clisp.org>
30891
30892         Stricter declaration checking in testdirs.
30893         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30894         If for_tests is true, augment AM_CPPFLAGS to define
30895         GNULIB_STRICT_CHECKING.
30896         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30897         GNULIB_STRICT_CHECKING is defined, verify that the function is
30898         declared.
30899
30900 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30901             Bruno Haible  <bruno@clisp.org>
30902
30903         libunistring: Improve configure output.
30904         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30905         Don't say "consider installing GNU libunistring" when checking again
30906         with libiconv.
30907
30908 2010-04-11  Bruno Haible  <bruno@clisp.org>
30909
30910         libunistring: Correct value of $LTLIBUNISTRING.
30911         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30912         correct the value of $LTLIBUNISTRING.
30913
30914 2010-04-11  Bruno Haible  <bruno@clisp.org>
30915
30916         havelib: Add static libraries to LIBS in the right order.
30917         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30918         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30919
30920 2010-04-11  Bruno Haible  <bruno@clisp.org>
30921
30922         libunistring: Detect libunistring also when it depends on libiconv.
30923         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30924         the second AC_LIB_HAVE_LINKFLAGS invocation.
30925
30926 2010-04-11  James Youngman  <jay@gnu.org>
30927
30928         close-stream: declare local scalars to be "const"
30929         * lib/close-stream.c (close_stream): Make boolean variables const
30930         to document the fact that we set but do not change them.
30931
30932 2010-04-11  Bruno Haible  <bruno@clisp.org>
30933
30934         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30935
30936 2010-04-11  Jim Meyering  <meyering@redhat.com>
30937
30938         maint.mk: don't include dist-check.mk
30939         * top/maint.mk: Remove bogus include directive.
30940
30941         maint.mk: improve empty-line-at-EOF check
30942         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30943         solution, rather than tail+Perl-based one.  The latter would read
30944         a few kilobytes from the end of each file, and did not handle empty
30945         files properly.
30946
30947         maint.mk: print the elapsed time for each syntax-check rule
30948         * top/maint.mk (sc_m_rules_): Save start time in a file.
30949         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30950         (local-check): Interpose the .z rules
30951
30952 2010-04-11  Jim Meyering  <meyering@redhat.com>
30953
30954         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30955         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30956         empty file with one that ends in an empty line.
30957
30958 2010-04-10  Bruno Haible  <bruno@clisp.org>
30959
30960         mkdir: Make it work on mingw64.
30961         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30962         * lib/mkdir.c: Update comment.
30963         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30964
30965 2010-04-10  Bruno Haible  <bruno@clisp.org>
30966
30967         Don't override improved macro from newer autoconf.
30968         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30969         autoconf >= 2.62.
30970         Reported by Joel E. Denny <jdenny@clemson.edu>.
30971
30972 2010-04-10  Jim Meyering  <meyering@redhat.com>
30973
30974         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30975         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30976
30977         maint.mk: correct a diagnostic
30978         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30979         in diagnostic; now use $prohibit.
30980
30981 2010-04-10  Bruno Haible  <address@hidden>
30982
30983         fchownat: Fix a C++ test error on Solaris 8.
30984         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30985         the function does not exist.
30986
30987 2010-04-10  Bruno Haible  <bruno@clisp.org>
30988
30989         vasnprintf: Add more tests.
30990         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30991         (test_function): Test converting an invalid wide string.
30992
30993         vasnprintf: Correct handling of unconvertible wide string arguments.
30994         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30995         VASNPRINTF.
30996         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30997         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30998         smaller than the expected maximum need for the directive. Set errno to
30999         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31000         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31002         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31003         * modules/vasnprintf (Files): Add m4/printf.m4.
31004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31005
31006 2010-04-10  Bruno Haible  <bruno@clisp.org>
31007
31008         vasnprintf: Fix crash in %ls directive.
31009         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31010         string is passed as argument to %ls, with no precision and no width.
31011         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31012
31013 2010-04-10  Bruno Haible  <bruno@clisp.org>
31014
31015         vasnprintf: Fix multiple test failures on mingw.
31016         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31017         _snprintf, or snwprintf, not _snwprintf.
31018
31019 2010-04-10  Bruno Haible  <bruno@clisp.org>
31020
31021         write: Fix a C++ test error on mingw.
31022         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31023
31024 2010-04-10  Bruno Haible  <bruno@clisp.org>
31025
31026         vasnprintf test: Reduce code duplication.
31027         * tests/test-vasnprintf.c (test_function): New function, extracted from
31028         test_vasnprintf.
31029         (test_vasnprintf, test_asnprintf): Invoke it.
31030
31031 2010-04-10  Bruno Haible  <bruno@clisp.org>
31032
31033         strnlen: Fix warning in C++ mode on MacOS X.
31034         * lib/string.in.h (strnlen): Use the modern idiom.
31035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31036         defining strnlen as a macro already in <config.h>.
31037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31038         REPLACE_STRNLEN.
31039         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31040         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31041
31042 2010-04-08  James Youngman  <jay@gnu.org>
31043
31044         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31045         the example.
31046
31047 2010-04-09  Jim Meyering  <meyering@redhat.com>
31048
31049         maint.mk: print better diagnostic when there is no $(_hv_file)
31050         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31051         announce that when $(_hv_file) (aka help-version) does not exist.
31052
31053         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31054         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31055         not try to interpret its random input bytes.  Jarno Rajahalme reported
31056         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31057         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31058         (mktempd_): Likewise, just in case.
31059
31060         ftruncate: add two years to projected module removal date: 2012
31061         * m4/ftruncate.m4: Adjust comments.
31062
31063         ftruncate: mark module as obsolete; even MinGW provides it, now
31064         * modules/ftruncate (Status): Obsolete.
31065         (Notice): Say that.
31066         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31068
31069 2010-04-08  Bruno Haible  <bruno@clisp.org>
31070
31071         Fix side effects from tests-related modules.
31072         * modules/dprintf-posix (Comment): New section.
31073         * modules/fprintf-posix (Comment): Likewise.
31074         * modules/obstack-printf-posix (Comment): Likewise.
31075         * modules/printf-posix (Comment): Likewise.
31076         * modules/snprintf-posix (Comment): Likewise.
31077         * modules/sprintf-posix (Comment): Likewise.
31078         * modules/vasnprintf-posix (Comment): Likewise.
31079         * modules/vasprintf-posix (Comment): Likewise.
31080         * modules/vdprintf-posix (Comment): Likewise.
31081         * modules/vfprintf-posix (Comment): Likewise.
31082         * modules/vprintf-posix (Comment): Likewise.
31083         * modules/vsnprintf-posix (Comment): Likewise.
31084         * modules/vsprintf-posix (Comment): Likewise.
31085         * modules/xprintf-posix (Comment): Likewise.
31086         * modules/xvasprintf-posix (Comment): Likewise.
31087         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31088         * modules/floorf-tests (Depends-on): Likewise.
31089         * modules/round-tests (Depends-on): Likewise.
31090         * modules/roundf-tests (Depends-on): Likewise.
31091         * modules/trunc-tests (Depends-on): Likewise.
31092         * modules/truncf-tests (Depends-on): Likewise.
31093         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31094         'fprintf-posix' module is not present.
31095         * tests/test-floorf2.c (check): Likewise.
31096         * tests/test-trunc2.c (check): Likewise.
31097         * tests/test-truncf2.c (check): Likewise.
31098         * tests/test-round2.c (equal): Likewise.
31099         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31100
31101 2010-04-07  Karl Berry  <karl@gnu.org>
31102
31103         * config/srclist.txt,
31104         * config/srclistvars.sh,
31105         * config/srclist-update: doc fixes.
31106
31107 2010-04-07  Jim Meyering  <meyering@redhat.com>
31108
31109         maint.mk: add a PATH crosschecking syntax-check rule
31110         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31111         Useful if you use a test like the one in help-version (coreutils,
31112         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31113         printed by prog --version.
31114
31115 2010-04-06  Bruno Haible  <bruno@clisp.org>
31116
31117         Fix link error on mingw.
31118         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31119         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31120
31121 2010-04-06  Bruno Haible  <bruno@clisp.org>
31122
31123         Assume rmdir exists.
31124         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31125
31126 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31127
31128         doc: update users.txt
31129         * users.txt: Add gcal.
31130
31131 2010-04-06  Jim Meyering  <meyering@redhat.com>
31132
31133         init.sh: simply unset TMPDIR rather than risking env -i
31134         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31135         although it probably works fine on all Unix-based systems, some
31136         systems (Cygwin?) cannot tolerate a totally cleared environment.
31137         Suggestion from Eric Blake.
31138
31139 2010-04-06  Jim Meyering  <meyering@redhat.com>
31140
31141         init.sh: portability fix: use env's POSIX-specified -i option not -u
31142         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31143         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31144
31145 2010-04-05  Bruno Haible  <bruno@clisp.org>
31146
31147         btowc: Work around Cygwin 1.7.2 bug.
31148         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31149         does not map NUL to 0.
31150         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31151
31152 2010-04-05  Bruno Haible  <bruno@clisp.org>
31153
31154         Make the multithread modules work on Cygwin 1.7.2.
31155         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31156         imported symbols can be declared weak, so that it returns "no" on
31157         Cygwin 1.7.2.
31158
31159 2010-04-05  Bruno Haible  <bruno@clisp.org>
31160
31161         Use the module 'strncat'.
31162         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31163
31164         Tests for module 'strncat'.
31165         * modules/strncat-tests: New file.
31166         * tests/test-strncat.c: New file.
31167
31168         New module 'strncat'.
31169         * lib/string.in.h (strncat): New declaration.
31170         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31171         * m4/strncat.m4: New file, based on m4/memchr.m4.
31172         * modules/strncat: New file.
31173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31174         is declared.
31175         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31176         REPLACE_STRNCAT.
31177         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31178         REPLACE_STRNCAT.
31179         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31180         module.
31181         * tests/test-string-c++.cc: Check signature of strncat.
31182
31183 2010-04-05  Jim Meyering  <meyering@redhat.com>
31184
31185         xstrtoumax-tests: convert to use init.sh
31186         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31187         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31188         Use Exit, not exit.
31189         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31190
31191         xstrtoimax-tests: convert to use init.sh
31192         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31193         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31194         Use Exit, not exit.
31195         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31196
31197 2010-04-05  Bruno Haible  <bruno@clisp.org>
31198
31199         sys_socket: Avoid #define replacements in C++ mode.
31200         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31201         warning to the function if possible, rather than #defining the symbol
31202         to a dysfunctional alias.
31203
31204 2010-04-05  Bruno Haible  <bruno@clisp.org>
31205
31206         fseeko: Fix C++ test error on mingw.
31207         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31208         gl_FUNC_FSEEKO.
31209         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31210         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31211         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31212         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31213
31214 2010-04-05  Bruno Haible  <bruno@clisp.org>
31215
31216         duplocale: Improve test output.
31217         * tests/test-duplocale.c (main): Print reason for skipped test.
31218
31219 2010-04-05  Bruno Haible  <bruno@clisp.org>
31220
31221         Assume rmdir exists.
31222         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31223         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31224
31225 2010-04-05  Bruno Haible  <bruno@clisp.org>
31226
31227         Fix link error on Solaris 8 with cc.
31228         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31229
31230 2010-04-05  Bruno Haible  <bruno@clisp.org>
31231
31232         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31233         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31234
31235 2010-04-05  Bruno Haible  <bruno@clisp.org>
31236
31237         vasprintf: Update documentation.
31238         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31239
31240 2010-04-05  Bruno Haible  <bruno@clisp.org>
31241
31242         ptsname: Improve test.
31243         * tests/test-ptsname.c (main): Also try the various master names of BSD
31244         systems.
31245
31246 2010-04-05  Bruno Haible  <bruno@clisp.org>
31247
31248         memchr: Avoid a possible C++ test error.
31249         * lib/string.in.h (memchr): Provide declaration if function is missing.
31250         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31251         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31253         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31254
31255 2010-04-05  Bruno Haible  <bruno@clisp.org>
31256
31257         strtok_r: Improve idiom.
31258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31259         AC_LIBOBJ is used.
31260
31261 2010-04-05  Bruno Haible  <bruno@clisp.org>
31262
31263         strdup: Improve idiom.
31264         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31265         AC_LIBOBJ is used.
31266         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31267         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31268         when AC_LIBOBJ is used.
31269
31270 2010-04-05  Bruno Haible  <bruno@clisp.org>
31271
31272         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31273         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31274         don't set REPLACE_MBSINIT to 1.
31275         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31276         don't set REPLACE_MBRTOWC to 1.
31277         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31278         exist, don't set REPLACE_MBSRTOWCS to 1.
31279         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31280         exist, don't set REPLACE_MBSNRTOWCS to 1.
31281         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31282         don't set REPLACE_WCRTOMB to 1.
31283         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31284         exist, don't set REPLACE_WCSRTOMBS to 1.
31285         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31286         exist, don't set REPLACE_WCSNRTOMBS to 1.
31287
31288 2010-04-05  Bruno Haible  <bruno@clisp.org>
31289
31290         ldexpl: Improve idiom.
31291         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31292         make sure to set HAVE_DECL_LDEXPL to 0.
31293
31294 2010-04-05  Jim Meyering  <meyering@redhat.com>
31295
31296         xstrtol-tests: convert to use init.sh
31297         * modules/xstrtol-tests (Files): Add tests/init.sh.
31298         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31299         Use Exit, not exit.
31300         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31301
31302         atexit-tests: convert to use init.sh
31303         * modules/atexit-tests (Files): Add tests/init.sh.
31304         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31305         Use Exit, not exit.
31306         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31307
31308         init.sh: fix typo
31309         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31310
31311         init.sh: make it easier for a test script to write to the tty, ...
31312         when using automake's parallel-tests mode.
31313         * tests/init.sh (stderr_fileno_): Define overridable variable.
31314         (warn_): New function, to use it.
31315         (fail_, skip_, framework_failure_): Use warn_.
31316
31317 2010-04-04  Bruno Haible  <bruno@clisp.org>
31318
31319         btowc: Avoid warning.
31320         * lib/btowc.c: Include <stdlib.h>.
31321         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31322
31323 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31324             Bruno Haible  <bruno@clisp.org>
31325
31326         wchar: Port to NetBSD 1.5.
31327         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31328         * lib/wctype.in.h (WEOF): Likewise.
31329
31330 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31331             Bruno Haible  <bruno@clisp.org>
31332
31333         Port extended stdio to NetBSD 1.5.
31334         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31335         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31336         older.
31337
31338 2010-04-04  Bruno Haible  <bruno@clisp.org>
31339
31340         string: Remove unused substitution.
31341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31342         HAVE_DECL_STRERROR.
31343         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31344
31345 2010-04-04  Bruno Haible  <bruno@clisp.org>
31346
31347         strtod: Avoid a possible C++ test error.
31348         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31349         set REPLACE_STRTOD.
31350
31351 2010-04-04  Bruno Haible  <bruno@clisp.org>
31352
31353         strerror: Update documentation.
31354         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31355
31356 2010-04-04  Bruno Haible  <bruno@clisp.org>
31357
31358         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31359         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31360         _GL_CXXALIAS_SYS_CAST.
31361
31362 2010-04-04  Bruno Haible  <bruno@clisp.org>
31363
31364         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31365         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31366         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31367         REPLACE_FREXPL to 1.
31368         * doc/posix-functions/frexpl.texi: Update documentation.
31369
31370 2010-04-04  Bruno Haible  <bruno@clisp.org>
31371
31372         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31373         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31374
31375 2010-04-04  Bruno Haible  <bruno@clisp.org>
31376
31377         Implement nanosleep for native Windows.
31378         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31379
31380 2010-04-04  Bruno Haible  <bruno@clisp.org>
31381
31382         math: Fix some C++ test errors on Solaris 8.
31383         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31384
31385 2010-04-04  Bruno Haible  <bruno@clisp.org>
31386
31387         math: Fix some C++ test errors on Cygwin.
31388         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31389         truncl): Provide declaration if the system does not have it.
31390         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31391         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31392         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31393         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31394         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31395         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31396         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31397         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31398         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31399         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31400         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31401         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31402         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31403         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31404         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31405         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31407         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31408         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31409         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31410         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31411         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31412
31413 2010-04-04  Bruno Haible  <bruno@clisp.org>
31414
31415         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31416         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31417         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31418         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31419         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31420         * m4/isinf.m4 (gl_ISINF): Likewise.
31421         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31422
31423 2010-04-04  Bruno Haible  <bruno@clisp.org>
31424
31425         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31426         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31427
31428 2010-04-04  Bruno Haible  <bruno@clisp.org>
31429
31430         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31431         * modules/tmpfile (configure.ac): Update.
31432
31433         tmpfile: Fix C++ test error on mingw.
31434         * lib/stdio.in.h (tmpfile): New declaration.
31435         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31436         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31437         * modules/tmpfile (Depends-on): Add stdio.
31438         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31439         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31440         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31441         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31442         REPLACE_TMPFILE.
31443         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31444
31445 2010-04-04  Bruno Haible  <bruno@clisp.org>
31446
31447         ioctl: Fix C++ test error on mingw.
31448         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31449         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31450         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31451
31452 2010-04-03  Bruno Haible  <bruno@clisp.org>
31453
31454         wcwidth: Fix C++ test error on mingw.
31455         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31457         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31458
31459 2010-04-03  Bruno Haible  <bruno@clisp.org>
31460
31461         nanosleep: Fix C++ test error on mingw.
31462         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31463         * lib/time.in.h (nanosleep): Use modern idiom.
31464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31465         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31466         REPLACE_NANOSLEEP to 1.
31467         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31468         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31469
31470 2010-04-03  Bruno Haible  <bruno@clisp.org>
31471
31472         strptime: Fix C++ test error on mingw.
31473         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31474         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31475         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31476         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31477         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31478         not REPLACE_STRPTIME.
31479         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31480         REPLACE_STRPTIME.
31481
31482 2010-04-03  Bruno Haible  <bruno@clisp.org>
31483
31484         timegm: Fix C++ test error on mingw.
31485         * lib/time.in.h (timegm): Use modern idiom.
31486         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31487         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31489         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31490
31491 2010-04-03  Bruno Haible  <bruno@clisp.org>
31492
31493         timegm: Assume declaration if function exists.
31494         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31495         if it exists. Don't clobber ac_cv_func_timegm.
31496
31497 2010-04-03  Bruno Haible  <bruno@clisp.org>
31498
31499         time_r: Fix C++ test error on mingw.
31500         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31501         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31502         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31504         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31505
31506 2010-04-03  Bruno Haible  <bruno@clisp.org>
31507
31508         time_r: Minor updates.
31509         * modules/time_r (Description): Mention the provided functions.
31510         * lib/time_r.c: Don't include <string.h>.
31511         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31512         * doc/posix-functions/localtime_r.texi: Likewise.
31513
31514 2010-04-03  Bruno Haible  <bruno@clisp.org>
31515
31516         time: Fix regression introduced on 2010-03-08.
31517         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31518         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31519
31520 2010-04-03  Jim Meyering  <meyering@redhat.com>
31521
31522         maint.mk: don't silently disable project-specific syntax-check rules
31523         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31524         that they need to convert their project-specific syntax-check rules
31525         to use the new _sc_search_regexp.
31526
31527 2010-04-03  Bruno Haible  <bruno@clisp.org>
31528
31529         fchdir: Fix regression introduced on 2010-03-08.
31530         * lib/unistd.in.h (fchdir): Fix declaration.
31531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31533         REPLACE_FCHDIR.
31534         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31535         REPLACE_FCHDIR.
31536
31537 2010-04-03  Bruno Haible  <bruno@clisp.org>
31538
31539         getpagesize: Fix C++ test error on mingw.
31540         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31541         system does not declare the function.
31542         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31543         declared.
31544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31545         HAVE_DECL_GETPAGESIZE.
31546         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31547
31548 2010-04-03  Bruno Haible  <bruno@clisp.org>
31549
31550         stdio: Make C++ tests work on mingw.
31551         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31552         does not declare the function.
31553
31554 2010-04-03  Bruno Haible  <bruno@clisp.org>
31555
31556         ftello: Fix C++ test error on mingw.
31557         * lib/stdio.in.h (ftello): Use modern idiom.
31558         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31559         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31560         is missing and that it needs to be replaced.
31561         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31563         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31564
31565 2010-04-03  Bruno Haible  <bruno@clisp.org>
31566
31567         fseeko: Fix C++ test error on mingw.
31568         * lib/stdio.in.h (fseeko): Use modern idiom.
31569         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31571         is missing and that it needs to be replaced.
31572         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31574         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31575
31576 2010-04-03  Bruno Haible  <bruno@clisp.org>
31577
31578         mkstemp: Fix C++ test error on mingw.
31579         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31581         function is missing and that it needs to be replaced.
31582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31583         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31584
31585 2010-04-03  Bruno Haible  <bruno@clisp.org>
31586
31587         stpncpy: Fix C++ test error on mingw.
31588         * lib/string.in.h (stpncpy): Use modern idiom.
31589         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31590         function is missing and that it needs to be replaced.
31591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31592         REPLACE_STPNCPY.
31593         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31594
31595 2010-04-03  Bruno Haible  <bruno@clisp.org>
31596
31597         sys_stat: Fix C++ test error on mingw.
31598         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31599         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31600
31601 2010-04-03  Bruno Haible  <bruno@clisp.org>
31602
31603         pty: Update doc.
31604         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31605
31606 2010-04-03  Bruno Haible  <bruno@clisp.org>
31607
31608         unistd: Fix C++ test error on mingw.
31609         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31610
31611 2010-04-03  Bruno Haible  <bruno@clisp.org>
31612
31613         Update doc regarding mingw.
31614         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31615         * doc/glibc-functions/login_tty.texi: Likewise.
31616         * doc/glibc-functions/forkpty.texi: Likewise.
31617
31618 2010-04-03  Bruno Haible  <bruno@clisp.org>
31619
31620         stdlib: Avoid compilation failure of c-strtold on mingw.
31621         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31622
31623 2010-04-03  Bruno Haible  <bruno@clisp.org>
31624
31625         locale: Make C++ tests work on Cygwin and mingw.
31626         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31627         cannot provide the function.
31628         Reported by Simon Josefsson.
31629
31630 2010-04-03  Bruno Haible  <bruno@clisp.org>
31631
31632         localename: Port to MacOS X 10.6.
31633         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31634         memory layout of the locales in MacOS X 10.6 as well.
31635         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31636
31637 2010-04-02  Bruno Haible  <bruno@clisp.org>
31638
31639         gnulib-tool: Ensure that long-running tests are executed last.
31640         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31641         running tests after the one for the other tests.
31642
31643 2010-04-02  Bruno Haible  <bruno@clisp.org>
31644
31645         gnulib-tool: Ensure the tests in the main directory are executed first.
31646         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31647         start with the current directory.
31648
31649 2010-04-02  Bruno Haible  <bruno@clisp.org>
31650
31651         Tests for module 'havelib', moved here from GNU gettext.
31652         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31653         modifications.
31654         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31655         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31656         with modifications.
31657         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31658         modifications.
31659         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31660         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31661         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31662         with modifications.
31663         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31664         with modifications.
31665         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31666         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31667         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31668         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31669         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31670         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31671         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31672         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31673         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31674         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31675         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31676         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31677         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31678         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31679         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31680         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31681         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31682         with modifications.
31683         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31684         with modifications.
31685         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31686         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31687         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31688         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31689         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31690         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31691         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31692         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31693         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31694         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31695         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31696         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31697         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31698         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31699         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31700         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31701         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31702         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31703         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31704         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31705         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31706         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31707         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31708         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31709         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31710         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31711         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31712         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31713         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31714         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31715         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31716         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31717         * tests/havelib/rpathx/rpathx.c: New file, from
31718         gettext/autoconf-lib-link.
31719         * tests/havelib/rpathx/Makefile.am: New file, from
31720         gettext/autoconf-lib-link.
31721         * tests/havelib/rpathx/configure.ac: New file, from
31722         gettext/autoconf-lib-link with modifications.
31723         * tests/havelib/rpathy/rpathy.c: New file, from
31724         gettext/autoconf-lib-link.
31725         * tests/havelib/rpathy/Makefile.am: New file, from
31726         gettext/autoconf-lib-link.
31727         * tests/havelib/rpathy/configure.ac: New file, from
31728         gettext/autoconf-lib-link with modifications.
31729         * tests/havelib/rpathz/rpathz.c: New file, from
31730         gettext/autoconf-lib-link.
31731         * tests/havelib/rpathz/Makefile.am: New file, from
31732         gettext/autoconf-lib-link.
31733         * tests/havelib/rpathz/configure.ac: New file, from
31734         gettext/autoconf-lib-link with modifications.
31735         * tests/havelib/rpathlx/usex.c: New file, from
31736         gettext/autoconf-lib-link.
31737         * tests/havelib/rpathlx/Makefile.am: New file, from
31738         gettext/autoconf-lib-link.
31739         * tests/havelib/rpathlx/configure.ac: New file, from
31740         gettext/autoconf-lib-link with modifications.
31741         * tests/havelib/rpathly/usey.c: New file, from
31742         gettext/autoconf-lib-link.
31743         * tests/havelib/rpathly/Makefile.am: New file, from
31744         gettext/autoconf-lib-link.
31745         * tests/havelib/rpathly/configure.ac: New file, from
31746         gettext/autoconf-lib-link with modifications.
31747         * tests/havelib/rpathlz/usez.c: New file, from
31748         gettext/autoconf-lib-link.
31749         * tests/havelib/rpathlz/Makefile.am: New file, from
31750         gettext/autoconf-lib-link.
31751         * tests/havelib/rpathlz/configure.ac: New file, from
31752         gettext/autoconf-lib-link with modifications.
31753         * tests/havelib/rpathlyx/usey.c: New file, from
31754         gettext/autoconf-lib-link.
31755         * tests/havelib/rpathlyx/Makefile.am: New file, from
31756         gettext/autoconf-lib-link.
31757         * tests/havelib/rpathlyx/configure.ac: New file, from
31758         gettext/autoconf-lib-link with modifications.
31759         * tests/havelib/rpathlzyx/usez.c: New file, from
31760         gettext/autoconf-lib-link.
31761         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31762         gettext/autoconf-lib-link.
31763         * tests/havelib/rpathlzyx/configure.ac: New file, from
31764         gettext/autoconf-lib-link with modifications.
31765         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31766         with modifications.
31767
31768 2010-04-02  Bruno Haible  <bruno@clisp.org>
31769
31770         gnulib-tool: Create distributed built sources also for the tests.
31771         * gnulib-tool (func_create_testdir): Also generate distributed built
31772         sources in the tests directory.
31773
31774 2010-04-02  Bruno Haible  <bruno@clisp.org>
31775
31776         gnulib-tool: Obey user's environment variables.
31777         * gnulib-tool (func_create_testdir): When creating built sources,
31778         respect the environment variables for autoconf, automake, etc. given by
31779         the user.
31780
31781 2010-04-02  Bruno Haible  <bruno@clisp.org>
31782
31783         gnulib-tool: Provide the value of --m4-base to modules.
31784         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31785         of gl_m4_base.
31786
31787 2010-04-02  Eric Blake  <eblake@redhat.com>
31788
31789         maint.mk: fix some fallout
31790         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31791         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31792
31793 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31794
31795         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31796         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31797         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31798         (sc_cast_of_x_alloc_return_value): Likewise.
31799         (sc_cast_of_alloca_return_value): Likewise.
31800         (sc_space_tab): Likewise.
31801         (sc_prohibit_atoi_atof): Likewise.
31802         (sc_prohibit_magic_number_exit): Likewise.
31803         (sc_error_exit_success): Likewise.
31804         (sc_file_system): Likewise.
31805         (sc_prohibit_have_config_h): Likewise.
31806         (sc_require_config_h): Likewise.
31807         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31808         (sc_obsolete_symbols): Likewise.
31809         (sc_changelog): Likewise.
31810         (sc_program_name): Likewise.
31811         (sc_the_the): Likewise.
31812         (sc_trailing_blank): Likewise.
31813         (sc_two_space_separator_in_usage): Likewise.
31814         (sc_useless_cpp_parens): Likewise.
31815         (sc_GPL_version): Likewise.
31816         (sc_GFDL_version): Likewise.
31817         (sc_texinfo_acronym): Likewise.
31818         (sc_prohibit_cvs_keyword): Likewise.
31819         (sc_prohibit_stat_st_blocks): Likewise.
31820         (sc_prohibit_S_IS_definition): Likewise.
31821         (sc_redundant_const): Likewise.
31822         (sc_makefile_TAB_only_indentation): Likewise.
31823         (sc_m4_quote_check): Likewise.
31824         (sc_makefile_path_separator_check): Likewise.
31825         (sc_copyright_check): Likewise.
31826         (sc_Wundef_boolean): Likewise.
31827         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31828
31829         maint.mk: match 0 or more whitespace-before-function-call '('
31830         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31831         that have zero or two-and-more spaces between the function name
31832         and the open parenthesis.
31833         (sc_error_message_warn_fatal): Likewise.
31834         (sc_error_message_uppercase): Likewise.
31835         (sc_error_message_period): Likewise.
31836
31837 2010-03-31  Eric Blake  <eblake@redhat.com>
31838
31839         maint.mk: check for [ as well as test
31840         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31841         Based on a libvirt report by Matthias Bolte.
31842
31843         gnumakefile: don't squelch _version output
31844         * top/GNUmakefile (_version): Create one-shot dependency rather
31845         than using $(shell) when version must be regenerated.
31846         (_autoreconf): Run verbosely, by default.
31847
31848         sys_time: avoid compiler warnings
31849         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31850         unconditional, fixing regression from 2010-03-29.
31851         Reported by Simon Josefsson.
31852
31853 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31854
31855         maint.mk: s/_header_without_use/_sc_header_without_use/
31856         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31857         (sc_prohibit_assert_without_use): Use the new name.
31858         (sc_prohibit_close_stream_without_use): Likewise.
31859         (sc_prohibit_getopt_without_use): Likewise.
31860         (sc_prohibit_quotearg_without_use): Likewise.
31861         (sc_prohibit_quote_without_use): Likewise.
31862         (sc_prohibit_long_options_without_use): Likewise.
31863         (sc_prohibit_inttostr_without_use): Likewise.
31864         (sc_prohibit_ignore_value_without_use): Likewise.
31865         (sc_prohibit_error_without_use): Likewise.
31866         (sc_prohibit_xalloc_without_use): Likewise.
31867         (sc_prohibit_hash_without_use): Likewise.
31868         (sc_prohibit_hash_pjw_without_use): Likewise.
31869         (sc_prohibit_safe_read_without_use): Likewise.
31870         (sc_prohibit_argmatch_without_use): Likewise.
31871         (sc_prohibit_canonicalize_without_use): Likewise.
31872         (sc_prohibit_root_dev_ino_without_use): Likewise.
31873         (sc_prohibit_openat_without_use): Likewise.
31874         (sc_prohibit_c_ctype_without_use): Likewise.
31875         (sc_prohibit_signal_without_use): Likewise.
31876         (sc_prohibit_intprops_without_use): Likewise.
31877
31878 2010-03-30  Eric Blake  <eblake@redhat.com>
31879
31880         maint: improve module indicators
31881         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31882         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31883         columns, and avoid extra macro expansion.
31884
31885         fdopendir: work around FreeBSD bug
31886         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31888         * modules/dirent (Makefile.am): Substitute it.
31889         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31890         declaration.
31891         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31892         fix.
31893         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31894
31895 2010-03-29  Bruno Haible  <bruno@clisp.org>
31896
31897         Emit #pragma system_header after the inclusion guard, not before.
31898         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31899         guard that spans the entire file, not before. This enables an
31900         optimization in GCC's preprocessor.
31901         * lib/ctype.in.h: Likewise.
31902         * lib/dirent.in.h: Likewise.
31903         * lib/errno.in.h: Likewise.
31904         * lib/float.in.h: Likewise.
31905         * lib/getopt.in.h: Likewise.
31906         * lib/iconv.in.h: Likewise.
31907         * lib/langinfo.in.h: Likewise.
31908         * lib/locale.in.h: Likewise.
31909         * lib/math.in.h: Likewise.
31910         * lib/netdb.in.h: Likewise.
31911         * lib/netinet_in.in.h: Likewise.
31912         * lib/pty.in.h: Likewise.
31913         * lib/sched.in.h: Likewise.
31914         * lib/se-selinux.in.h: Likewise.
31915         * lib/search.in.h: Likewise.
31916         * lib/spawn.in.h: Likewise.
31917         * lib/stdarg.in.h: Likewise.
31918         * lib/stdint.in.h: Likewise.
31919         * lib/string.in.h: Likewise.
31920         * lib/strings.in.h: Likewise.
31921         * lib/sys_file.in.h: Likewise.
31922         * lib/sys_ioctl.in.h: Likewise.
31923         * lib/sys_time.in.h: Likewise.
31924         * lib/sys_times.in.h: Likewise.
31925         * lib/sys_utsname.in.h: Likewise.
31926         * lib/sys_wait.in.h: Likewise.
31927         * lib/sysexits.in.h: Likewise.
31928         * lib/wctype.in.h: Likewise.
31929
31930 2010-03-28  James Youngman  <jay@gnu.org>
31931
31932         save-cwd: don't leak a file descriptor when the caller execs.
31933         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31934         saved file descriptor.
31935         * modules/save-cwd (Depends-on): Depend on cloexec.
31936
31937 2010-03-29  Bruno Haible  <bruno@clisp.org>
31938
31939         Remove vestiges of fts-lgpl module.
31940         * lib/fts_.h: Assume GNULIB_FTS is 1.
31941         * lib/fts.c: Likewise.
31942         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31943
31944 2010-03-28  Bruno Haible  <bruno@clisp.org>
31945
31946         Fix definition of tests witness macro.
31947         * gnulib-tool (func_import): Fix definition of witness macro.
31948
31949 2010-03-28  Bruno Haible  <bruno@clisp.org>
31950
31951         Fix ioctl's protoype on glibc systems.
31952         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31953         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31954         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31955         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31956         signature. If not, arrange to replace the ioctl function.
31957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31958         REPLACE_IOCTL.
31959         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31960         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31961         Reported by Ludovic Courtès <ludo@gnu.org>.
31962
31963 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31964
31965         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31966         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31967         made it so grep -r --include=GLOB* ... did not work.
31968
31969 2010-03-26  Jim Meyering  <meyering@redhat.com>
31970             Eric Blake  <eblake@redhat.com>
31971
31972         maint.mk: prohibit use of test's -o and -a operators
31973         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31974
31975 2010-03-28  Bruno Haible  <bruno@clisp.org>
31976
31977         Remove unused GNULIB_XYZ macro definitions.
31978         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31979         invocation.
31980
31981 2010-03-28  Bruno Haible  <bruno@clisp.org>
31982
31983         Mark privileged tests modules.
31984         * modules/idpriv-drop-tests (Status): New section.
31985         * modules/idpriv-droptemp-tests (Status): New section.
31986
31987 2010-03-28  Bruno Haible  <bruno@clisp.org>
31988
31989         Split C++ tests into separate tests modules.
31990         * modules/dirent-c++-tests: New file, extracted from
31991         modules/dirent-tests.
31992         * modules/dirent-tests: Depend on it.
31993         * modules/fcntl-h-c++-tests: New file, extracted from
31994         modules/fcntl-h-tests.
31995         * modules/fcntl-h-tests: Depend on it.
31996         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31997         * modules/glob-tests: Depend on it.
31998         * modules/iconv-h-c++-tests: New file, extracted from
31999         modules/iconv-h-tests.
32000         * modules/iconv-h-tests: Depend on it.
32001         * modules/langinfo-c++-tests: New file, extracted from
32002         modules/langinfo-tests.
32003         * modules/langinfo-tests: Depend on it.
32004         * modules/locale-c++-tests: New file, extracted from
32005         modules/locale-tests.
32006         * modules/locale-tests: Depend on it.
32007         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32008         * modules/math-tests: Depend on it.
32009         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32010         * modules/pty-tests: Depend on it.
32011         * modules/search-c++-tests: New file, extracted from
32012         modules/search-tests.
32013         * modules/search-tests: Depend on it.
32014         * modules/signal-c++-tests: New file, extracted from
32015         modules/signal-tests.
32016         * modules/signal-tests: Depend on it.
32017         * modules/spawn-c++-tests: New file, extracted from
32018         modules/spawn-tests.
32019         * modules/spawn-tests: Depend on it.
32020         * modules/stdio-c++-tests: New file, extracted from
32021         modules/stdio-tests.
32022         * modules/stdio-tests: Depend on it.
32023         * modules/stdlib-c++-tests: New file, extracted from
32024         modules/stdlib-tests.
32025         * modules/stdlib-tests: Depend on it.
32026         * modules/string-c++-tests: New file, extracted from
32027         modules/string-tests.
32028         * modules/string-tests: Depend on it.
32029         * modules/sys_ioctl-c++-tests: New file, extracted from
32030         modules/sys_ioctl-tests.
32031         * modules/sys_ioctl-tests: Depend on it.
32032         * modules/sys_select-c++-tests: New file, extracted from
32033         modules/sys_select-tests.
32034         * modules/sys_select-tests: Depend on it.
32035         * modules/sys_socket-c++-tests: New file, extracted from
32036         modules/sys_socket-tests.
32037         * modules/sys_socket-tests: Depend on it.
32038         * modules/sys_stat-c++-tests: New file, extracted from
32039         modules/sys_stat-tests.
32040         * modules/sys_stat-tests: Depend on it.
32041         * modules/sys_time-c++-tests: New file, extracted from
32042         modules/sys_time-tests.
32043         * modules/sys_time-tests: Depend on it.
32044         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32045         * modules/time-tests: Depend on it.
32046         * modules/unistd-c++-tests: New file, extracted from
32047         modules/unistd-tests.
32048         * modules/unistd-tests: Depend on it.
32049         * modules/wchar-c++-tests: New file, extracted from
32050         modules/wchar-tests.
32051         * modules/wchar-tests: Depend on it.
32052         * modules/wctype-c++-tests: New file, extracted from
32053         modules/wctype-tests.
32054         * modules/wctype-tests: Depend on it.
32055         Reported by Simon Josefsson.
32056
32057 2010-03-28  Bruno Haible  <bruno@clisp.org>
32058
32059         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32060         * gnulib-tool (func_exists_module): New function, extracted from
32061         func_verify_module.
32062         (func_verify_module): Use it.
32063         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32064         'foo' only if 'foo' exists.
32065         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32066         module.
32067
32068 2010-03-28  Bruno Haible  <bruno@clisp.org>
32069
32070         gnulib-tool: Add support for special categories of tests.
32071         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32072         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32073         (func_usage): Document them.
32074         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32075         inc_unportable_tests, inc_all_tests): New variables.
32076         (func_acceptable): Consider these variables.
32077         (func_modules_transitive_closure): Make it work when the 'Status' field
32078         consists of multiple words.
32079         (func_import): Store and restore the values of inc_cxx_tests,
32080         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32081         inc_all_tests in gnulib-comp.m4.
32082         (func_create_testdir): Set inc_all_tests to true.
32083         * doc/gnulib.texi (Extra tests modules): New section.
32084         Suggested by Jim Meyering.
32085
32086 2010-03-28  Bruno Haible  <bruno@clisp.org>
32087
32088         ansi-c++-opt: Allow turning off the C++ build by default.
32089         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32090         gl_CXX_CHOICE_DEFAULT_NO is defined.
32091         Requested by Eric Blake.
32092
32093 2010-03-28  Bruno Haible  <bruno@clisp.org>
32094
32095         unistd: Avoid #define replacements in C++ mode.
32096         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32097         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32098         setsockopt, shutdown, select): In C++, attach a warning to the function
32099         if possible, rather than #defining the symbol to a dysfunctional alias.
32100         Reported by John W. Eaton <jwe@gnu.org>.
32101
32102 2010-03-28  Bruno Haible  <bruno@clisp.org>
32103
32104         Fix link errors on mingw.
32105         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32106         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32107         $(LIBSOCKET).
32108         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32109         $(LIBSOCKET).
32110
32111 2010-03-28  Bruno Haible  <bruno@clisp.org>
32112             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32113
32114         lib-ignore: Determine different options for different compilers.
32115         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32116         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32117         Add comments.
32118         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32119         * NEWS: Mention the change.
32120
32121 2010-03-27  Bruno Haible  <bruno@clisp.org>
32122
32123         Remove unused GNULIB_XYZ macro definitions.
32124         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32125         * modules/fseek (configure.ac): Likewise.
32126         * modules/ioctl (configure.ac): Likewise.
32127         * modules/open (configure.ac): Likewise.
32128         * modules/stdlib-safer (configure.ac): Likewise.
32129
32130 2010-03-27  Bruno Haible  <bruno@clisp.org>
32131
32132         Add a remark about certain modules.
32133         * modules/malloc (Comment): New section.
32134         * modules/realloc (Comment): Likewise.
32135         * modules/sigpipe (Comment): Likewise.
32136
32137 2010-03-27  Bruno Haible  <bruno@clisp.org>
32138
32139         Resolve conflict between the two kinds of module indicators.
32140         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32141         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32142         * modules/canonicalize (configure.ac): Invoke
32143         gl_MODULE_INDICATOR_FOR_TESTS.
32144         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32145         GNULIB_XYZ.
32146         * tests/test-dirent-c++.cc: Likewise.
32147         * tests/test-dirent-safer.c: Likewise.
32148         * tests/test-dup2.c: Likewise.
32149         * tests/test-fchdir.c: Likewise.
32150         * tests/test-fcntl-h-c++.cc: Likewise.
32151         * tests/test-getopt.c: Likewise.
32152         * tests/test-getopt.h: Likewise.
32153         * tests/test-langinfo-c++.cc: Likewise.
32154         * tests/test-locale-c++.cc: Likewise.
32155         * tests/test-math-c++.cc: Likewise.
32156         * tests/test-pty-c++.cc: Likewise.
32157         * tests/test-search-c++.cc: Likewise.
32158         * tests/test-signal-c++.cc: Likewise.
32159         * tests/test-spawn-c++.cc: Likewise.
32160         * tests/test-stdio-c++.cc: Likewise.
32161         * tests/test-stdlib-c++.cc: Likewise.
32162         * tests/test-string-c++.cc: Likewise.
32163         * tests/test-sys_ioctl-c++.cc: Likewise.
32164         * tests/test-sys_select-c++.cc: Likewise.
32165         * tests/test-sys_socket-c++.cc: Likewise.
32166         * tests/test-sys_stat-c++.cc: Likewise.
32167         * tests/test-sys_time-c++.cc: Likewise.
32168         * tests/test-time-c++.cc: Likewise.
32169         * tests/test-unistd-c++.cc: Likewise.
32170         * tests/test-wchar-c++.cc: Likewise.
32171         * tests/uninorm/test-u8-nfc.c: Likewise.
32172         * tests/uninorm/test-u8-nfd.c: Likewise.
32173         * tests/uninorm/test-u8-nfkc.c: Likewise.
32174         * tests/uninorm/test-u8-nfkd.c: Likewise.
32175         * tests/uninorm/test-u16-nfc.c: Likewise.
32176         * tests/uninorm/test-u16-nfd.c: Likewise.
32177         * tests/uninorm/test-u16-nfkc.c: Likewise.
32178         * tests/uninorm/test-u16-nfkd.c: Likewise.
32179         * tests/uninorm/test-u32-nfc.c: Likewise.
32180         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32181         * tests/uninorm/test-u32-nfd.c: Likewise.
32182         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32183         * tests/uninorm/test-u32-nfkc.c: Likewise.
32184         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32185         * tests/uninorm/test-u32-nfkd.c: Likewise.
32186         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32187         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32188
32189 2010-03-27  Bruno Haible  <bruno@clisp.org>
32190
32191         Distinguish two kinds of module indicators.
32192         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32193         gl_MODULE_INDICATOR.
32194         (gl_MODULE_INDICATOR): New macro.
32195         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32196         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32197         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32198         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32199         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32200         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32201         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32202         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32203         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32204         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32205         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32206         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32207         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32208         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32209         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32211         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32212         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32213         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32214         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32215         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32216         * modules/cloexec (configure.ac): Likewise.
32217         * modules/getopt-gnu (configure.ac): Likewise.
32218         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32219         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32220         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32221         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32222
32223 2010-03-27  Bruno Haible  <bruno@clisp.org>
32224
32225         New module description field 'Comment'.
32226         * gnulib-tool: New option --extract-comment.
32227         (func_usage): Document it.
32228         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32229         (func_get_comment): New function.
32230         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32231
32232 2010-03-27  Bruno Haible  <bruno@clisp.org>
32233
32234         Addendum to 2010-02-07 commit.
32235         * gnulib-tool (func_usage): Document --extract-applicability option.
32236
32237 2010-03-27  Bruno Haible  <bruno@clisp.org>
32238
32239         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32240         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32241         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32242         rather than link errors.
32243
32244 2010-03-27  Bruno Haible  <bruno@clisp.org>
32245
32246         Avoid side effects from tests-related modules on the compilation of lib.
32247         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32248         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32249         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32250         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32251         macro.
32252         (func_import): Define a witness macro. Assign it a value that depends
32253         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32254         tests-related modules.
32255         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32256         Reported by Jim Meyering.
32257
32258 2010-03-27  Bruno Haible  <bruno@clisp.org>
32259
32260         Factorize common .m4 code.
32261         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32262         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32263         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32264         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32265         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32266         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32267         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32268         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32269         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32270         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32271         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32272         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32273         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32274         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32275         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32276         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32277         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32278         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32280         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32281         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32282         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32283         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32285         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32286         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32287         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32289         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32290         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32291         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32292         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32293
32294 2010-03-27  Bruno Haible  <bruno@clisp.org>
32295
32296         Fix a compilation error on Cygwin with g++ >= 4.3.
32297         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32298         if it is undefined or if we alias it to chmod.
32299         (lstat): Don't warn about the use of this function if it is undefined
32300         or if we alias it to stat.
32301         Reported by Simon Josefsson.
32302
32303 2010-03-27  Bruno Haible  <bruno@clisp.org>
32304
32305         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32306         * modules/getlogin (configure.ac): Update.
32307
32308         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32309         * modules/getlogin_r (configure.ac): Update.
32310
32311         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32313         * modules/inet_ntop (configure.ac): Update.
32314
32315         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32316         * modules/inet_pton (configure.ac): Update.
32317
32318         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32319         * modules/mbslen (configure.ac): Update.
32320
32321         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32322         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32323         * modules/forkpty (configure.ac): Update.
32324         * modules/openpty (configure.ac): Update.
32325
32326 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32327
32328         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32329         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32330
32331 2010-03-25  Eric Blake  <eblake@redhat.com>
32332
32333         maint: use pragma consistently across replacement headers
32334         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32335         * lib/dirent.in.h (system_header): Likewise.
32336         * lib/errno.in.h (system_header): Likewise.
32337         * lib/float.in.h (system_header): Likewise.
32338         * lib/getopt.in.h (system_header): Likewise.
32339         * lib/iconv.in.h (system_header): Likewise.
32340         * lib/inttypes.in.h (system_header): Likewise.
32341         * lib/langinfo.in.h (system_header): Likewise.
32342         * lib/locale.in.h (system_header): Likewise.
32343         * lib/math.in.h (system_header): Likewise.
32344         * lib/netdb.in.h (system_header): Likewise.
32345         * lib/netinet_in.in.h (system_header): Likewise.
32346         * lib/pty.in.h (system_header): Likewise.
32347         * lib/sched.in.h (system_header): Likewise.
32348         * lib/se-selinux.in.h (system_header): Likewise.
32349         * lib/search.in.h (system_header): Likewise.
32350         * lib/spawn.in.h (system_header): Likewise.
32351         * lib/stdarg.in.h (system_header): Likewise.
32352         * lib/stdint.in.h (system_header): Likewise.
32353         * lib/string.in.h (system_header): Likewise.
32354         * lib/strings.in.h (system_header): Likewise.
32355         * lib/sys_file.in.h (system_header): Likewise.
32356         * lib/sys_ioctl.in.h (system_header): Likewise.
32357         * lib/sys_socket.in.h (system_header): Likewise.
32358         * lib/sys_times.in.h (system_header): Likewise.
32359         * lib/sys_utsname.in.h (system_header): Likewise.
32360         * lib/sys_wait.in.h (system_header): Likewise.
32361         * lib/sysexits.in.h (system_header): Likewise.
32362         * lib/unistd.in.h (system_header): Likewise.
32363         * lib/wctype.in.h (system_header): Likewise.
32364
32365         arpa/inet: fix mingw compilation warning
32366         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32367         Reported by Matthew Bolte.
32368
32369 2010-03-25  Bruno Haible  <bruno@clisp.org>
32370
32371         Avoid collision between gnulib wrapper and libintl wrapper.
32372         * lib/printf.c (printf): Don't define if a printf wrapper is already
32373         defined in intl/printf.c.
32374         Reported by Michel Boaventura <michel@michelboaventura.com>.
32375
32376 2010-03-25  Bruno Haible  <bruno@clisp.org>
32377
32378         Use ANSI C.
32379         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32380
32381 2010-03-25  Bruno Haible  <bruno@clisp.org>
32382
32383         Minor formatting changes.
32384         * lib/acosl.c: Insert space before function argument list.
32385         * lib/argz.c: Likewise.
32386         * lib/asinl.c: Likewise.
32387         * lib/expl.c: Likewise.
32388         * lib/gen-uni-tables.c: Likewise.
32389         * lib/gettext.h: Likewise.
32390         * lib/glthread/lock.h: Likewise.
32391         * lib/tanl.c: Likewise.
32392         * lib/uniname/uniname.c: Likewise.
32393         * tests/test-idpriv-drop.c: Likewise.
32394         * tests/test-idpriv-droptemp.c: Likewise.
32395         * tests/test-lock.c: Likewise.
32396         * tests/test-tls.c: Likewise.
32397         * lib/argp-help.c: Insert space before function-like macro argument
32398         list.
32399         * lib/memcmp.c: Likewise.
32400         * tests/test-base64.c: Likewise.
32401         * lib/localename.c: Insert space before sizeof's argument list.
32402         * lib/safe-alloc.h: Likewise.
32403         * lib/file-set.h: Insert space before macro argument list.
32404         * tests/test-argp.c: Likewise.
32405         * lib/argp-namefrob.h: Insert space before function parameter list.
32406         * lib/getaddrinfo.c: Likewise.
32407         * lib/netdb.in.h: Likewise.
32408         * lib/parse-duration.h: Likewise.
32409         * lib/parse-duration.c: Likewise.
32410         * lib/poll.c: Likewise.
32411         * lib/select.c: Likewise.
32412         * lib/trim.h: Likewise.
32413         * tests/test-usleep.c: Likewise.
32414         * lib/ldexpl.c: Insert space before function parameter list and before
32415         function argument list.
32416         * lib/logl.c: Likewise.
32417         * lib/sqrtl.c: Likewise.
32418         * lib/trim.c: Likewise.
32419         * lib/cosl.c: Use GNU style indentation. Insert space before function
32420         argument list.
32421         * lib/sinl.c: Likewise.
32422         * lib/tsearch.c: Insert space after 'for'.
32423         Reported by Jim Meyering.
32424
32425 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32426
32427         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32428         config header before grepping, as it's not present before
32429         autoreconf/configure are run.  Reported by Simon Josefsson.
32430
32431 2010-03-23  Bruno Haible  <bruno@clisp.org>
32432
32433         pt_chown: Make it work with automake < 1.11.
32434         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32435         Reported by Simon Josefsson.
32436
32437 2010-03-23  Bruno Haible  <bruno@clisp.org>
32438
32439         pt_chown: Don't depend on GPLed modules.
32440         * lib/pt_chown.c: Don't include idpriv.h.
32441         (main): Don't drop privileges.
32442         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32443         Reported by Simon Josefsson.
32444
32445 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32446
32447         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32448         suggestions from karl@freefriends.org (Karl Berry).
32449
32450 2010-03-22  Eric Blake  <eblake@redhat.com>
32451
32452         gethostname: further tweaks
32453         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32454         are overriding gethostname.
32455         Suggested by Bruno Haible.
32456
32457 2010-03-21  Bruno Haible  <bruno@clisp.org>
32458
32459         Fix comments.
32460         * lib/forkpty.c (rpl_forkpty): Fix comment.
32461         * lib/openpty.c (rpl_openpty): Likewise.
32462         Reported by Eric Blake.
32463
32464 2010-03-22  Eric Blake  <eblake@redhat.com>
32465
32466         gethostname: fix build on mingw
32467         * lib/unistd.in.h (includes): Work around fact that mingw
32468         <winsock2.h> re-includes <unistd.h>, by avoiding any
32469         redeclarations if we are being included by <winsock2.h>.
32470         Reported by Matthias Bolte.
32471
32472 2010-03-21  Bruno Haible  <bruno@clisp.org>
32473
32474         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32475         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32476         modifications.
32477         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32478         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32479         provide the replacement.
32480         * modules/forkpty (Depends-on): Add openpty, login_tty.
32481         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32482         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32483         * doc/glibc-functions/forkpty.texi: More supported platforms.
32484         * config/srclist.txt: Add forkpty.c (commented).
32485
32486 2010-03-21  Bruno Haible  <bruno@clisp.org>
32487
32488         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32489         (Makefile.am): Verify that PTY_LIB is defined.
32490
32491         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32492
32493 2010-03-21  Bruno Haible  <bruno@clisp.org>
32494
32495         Tests for module 'login_tty'.
32496         * modules/login_tty-tests: New file.
32497         * tests/test-login_tty.c: New file.
32498
32499         New module 'login_tty'.
32500         * lib/login_tty.c: New file.
32501         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32502         * modules/login_tty: New file.
32503         * doc/glibc-functions/login_tty.texi: Mention the new module.
32504
32505 2010-03-21  Bruno Haible  <bruno@clisp.org>
32506
32507         login_tty: Documentation.
32508         * doc/glibc-functions/login_tty.texi: New file.
32509         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32510
32511 2010-03-21  Bruno Haible  <bruno@clisp.org>
32512
32513         pty: Consistent macro naming.
32514         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32515         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32516         * modules/pty (configure.ac): Update.
32517
32518 2010-03-21  Bruno Haible  <bruno@clisp.org>
32519
32520         Tests for openpty: Make stricter.
32521         * tests/test-openpty.c (main): Add test of canonical processing and
32522         erase.
32523         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32524
32525         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32526         * lib/openpty.c (openpty): New replacement function.
32527         * lib/pty.in.h: Include <termios.h>.
32528         (openpty): Update declaration. Add comments.
32529         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32530         is not declared, arrange to provide the replacement. Check for _getpty
32531         and posix_openpt.
32532         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32534         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32535         * modules/pty-tests (test_pty_c___LDADD): New variable.
32536         * doc/glibc-functions/openpty.texi: More supported platforms.
32537
32538 2010-03-21  Bruno Haible  <bruno@clisp.org>
32539
32540         setenv: Tweaks.
32541         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32542         the test program.
32543         * doc/posix-functions/setenv.texi: Update platforms list.
32544
32545 2010-03-21  Bruno Haible  <bruno@clisp.org>
32546
32547         New module 'unlockpt'.
32548         * lib/unlockpt.c: New file, from glibc with modifications.
32549         * m4/unlockpt.m4: New file.
32550         * modules/unlockpt: New file.
32551         * lib/stdlib.in.h (unlockpt): New declaration.
32552         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32553         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32554         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32555         HAVE_UNLOCKPT.
32556         * doc/posix-functions/unlockpt.texi: Mention the new module.
32557         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32558         * config/srclist.txt: Add unlockpt.c (commented).
32559
32560 2010-03-21  Jim Meyering  <meyering@redhat.com>
32561
32562         maint.mk: prohibit inclusion of "intprops.h" without use
32563         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32564
32565 2010-03-21  Bruno Haible  <bruno@clisp.org>
32566
32567         New module 'grantpt'.
32568         * lib/grantpt.c: New file, from glibc with modifications.
32569         * m4/grantpt.m4: New file.
32570         * modules/grantpt: New file.
32571         * lib/stdlib.in.h (grantpt): New declaration.
32572         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32573         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32574         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32575         HAVE_GRANTPT.
32576         * doc/posix-functions/grantpt.texi: Mention the new module.
32577         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32578         * config/srclist.txt: Add grantpt.c (commented).
32579
32580 2010-03-21  Bruno Haible  <bruno@clisp.org>
32581
32582         New module 'pt_chown'.
32583         * lib/pt_chown.c: New file, from glibc with modifications.
32584         * lib/pty-private.h: New file, from glibc with modifications.
32585         * modules/pt_chown: New file.
32586         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32587
32588 2010-03-21  Bruno Haible  <bruno@clisp.org>
32589
32590         Tests for module 'ptsname'.
32591         * modules/ptsname-tests: New file.
32592         * tests/test-ptsname.c: New file.
32593
32594         New module 'ptsname'.
32595         * lib/ptsname.c: New file, from glibc with modifications.
32596         * m4/ptsname.m4: New file.
32597         * modules/ptsname: New file.
32598         * lib/stdlib.in.h (ptsname): New declaration.
32599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32600         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32601         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32602         HAVE_PTSNAME.
32603         * doc/posix-functions/ptsname.texi: Mention the new module.
32604         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32605         * config/srclist.txt: Add ptsname.c (commented).
32606
32607 2010-03-21  Bruno Haible  <bruno@clisp.org>
32608
32609         Tests for module 'ttyname_r'.
32610         * modules/ttyname_r-tests: New file.
32611         * tests/test-ttyname_r.c: New file.
32612
32613         New module 'ttyname_r'.
32614         * lib/ttyname_r.c: New file.
32615         * m4/ttyname_r.m4: New file.
32616         * modules/ttyname_r: New file.
32617         * lib/unistd.in.h (ttyname_r): New declaration.
32618         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32619         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32620         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32621         HAVE_TTYNAME_R.
32622         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32623         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32624
32625 2010-03-20  Bruno Haible  <bruno@clisp.org>
32626
32627         signal: Undefine macro definitions in C++ mode.
32628         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32629         sigfillset): Undefine macro definitions from the system header in C++
32630         mode.
32631         Reported by John W. Eaton <jwe@gnu.org>.
32632
32633 2010-03-20  Bruno Haible  <bruno@clisp.org>
32634
32635         Ensure no #include statements inside extern "C" { ... }.
32636         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32637         contain #include statements.
32638         * lib/time.in.h: Likewise.
32639
32640 2010-03-20  Bruno Haible  <bruno@clisp.org>
32641
32642         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32643         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32644         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32645         Reported by John W. Eaton <jwe@gnu.org>.
32646
32647 2010-03-20  Bruno Haible  <bruno@clisp.org>
32648
32649         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32650         Reported by Jim Meyering.
32651
32652 2010-03-20  Bruno Haible  <bruno@clisp.org>
32653
32654         pipe: Set errno upon failure.
32655         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32656         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32657         errno value in error message.
32658
32659 2010-03-20  Bruno Haible  <bruno@clisp.org>
32660             Jim Meyering  <meyering@redhat.com>
32661
32662         lchown: Avoid "unused variable" warning.
32663         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32664
32665 2010-03-20  Bruno Haible  <bruno@clisp.org>
32666
32667         Work around unlink() bug on MacOS X 10.5.6.
32668         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32669         attempting to unlink a parent directory.
32670         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32671         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32672         activate for the replacement function.
32673         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32674
32675 2010-03-20  Bruno Haible  <bruno@clisp.org>
32676
32677         Fix link errors on Solaris 8.
32678         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32679         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32680
32681 2010-03-19  Jim Meyering  <meyering@redhat.com>
32682
32683         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32684         The _LIBC implementation of build_range_exp correctly honors the
32685         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32686         However, the non-_LIBC implementation would ignore that syntax-bit
32687         flag and return REG_ERANGE unconditionally.
32688         This change makes it honor that flag.
32689         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32690         Make two pointer parameters "const".
32691         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32692         (parse_bracket_exp): Update caller.
32693
32694         regex.m4: correct the reversed range endpoint ([b-a]) test
32695         * m4/regex.m4: When requiring that [b-a] evoke failure,
32696         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32697         test pass once again for x86-based systems.
32698
32699 2010-03-19  Bruno Haible  <bruno@clisp.org>
32700
32701         scandir: Fix link error on Solaris 8.
32702         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32703         macros.
32704
32705 2010-03-19  Bruno Haible  <bruno@clisp.org>
32706
32707         getusershell: Fix documentation.
32708         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32709         module.
32710         * doc/glibc-functions/setusershell.texi: Likewise.
32711
32712         getusershell: Provide declaration, missing on Solaris 9.
32713         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32714         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32715         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32716         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32718         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32719         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32720         HAVE_GETUSERSHELL.
32721         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32722
32723 2010-03-19  Bruno Haible  <bruno@clisp.org>
32724
32725         wctype: Provide iswblank function.
32726         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32727         exists and is fine.
32728         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32729         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32730         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32731         * doc/posix-functions/iswblank.texi: Update.
32732
32733 2010-03-19  Bruno Haible  <bruno@clisp.org>
32734
32735         Tests of module 'pty' in C++ mode.
32736         * modules/pty-tests: New file.
32737         * tests/test-pty-c++.cc: New file.
32738         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32739
32740 2010-03-19  Eric Blake  <eblake@redhat.com>
32741
32742         logb: fix documentation
32743         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32744         1.5 declaration bug.
32745
32746         forkpty, openpty: prefer glibc's const-safe prototype
32747         * lib/forkpty.c (rpl_forkpty): New file.
32748         * lib/openpty.c (rpl_openpty): Likewise.
32749         * modules/forkpty (Files): Distribute it.
32750         * modules/openpty (Files): Likewise.
32751         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32752         check...
32753         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32754         replacement for for non-const BSD signature.
32755         * modules/pty (Makefile.am): Substitute witnesses.
32756         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32757         * tests/test-forkpty.c: Update signature check.
32758         * tests/test-openpty.c: Likewise.
32759         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32760         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32761
32762         forkpty, openpty: split functions into new modules
32763         * modules/pty (Makefile.am): Substitute new witnesses.
32764         (Libraries): Move library detection...
32765         * modules/forkpty: ...into new module.
32766         * modules/openpty: Another new module.
32767         * modules/pty-tests: Rename and split...
32768         * modules/forkpty-tests: ...to this...
32769         * modules/openpty-tests: ...and this.
32770         * tests/test-pty.c: Rename and split...
32771         * tests/test-forkpty.c: ...to this...
32772         * tests/test-openpty.c: ...and this.
32773         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32774         (gl_PTY): Split library searching...
32775         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32776         (gl_FORKPTY, gl_OPENPTY): New macros.
32777         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32778         * NEWS: Mention the split.
32779         * MODULES.html.sh (Misc): Document the modules.
32780         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32781         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32782
32783         pty: improve replacement header
32784         * lib/pty.in.h: New file.
32785         * modules/pty (Files): Ship it.
32786         (Makefile.am): Always build replacement.
32787         * m4/pty.m4: Rename...
32788         * m4/pty_h.m4: ...to this.
32789         (gl_PTY): Modernize setting of witness macros; update check of
32790         forkpty to take proper advantage of cache.
32791         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32792
32793         getopt: avoid compiler warning
32794         * lib/getopt.c (attribute_hidden): Remove unused macro.
32795
32796 2010-03-18  Bruno Haible  <bruno@clisp.org>
32797
32798         Fix link errors on Solaris 8.
32799         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32800         * modules/search-tests (test_search_c___LDADD): Likewise.
32801         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32802         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32803         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32804         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32805         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32806         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32807         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32808
32809 2010-03-18  Bruno Haible  <bruno@clisp.org>
32810
32811         Fix bug introduced on 2010-03-14.
32812         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32813         (gl_SPAWN_H): Require it.
32814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32815         Reported by Simon Josefsson.
32816
32817 2010-03-18  Bruno Haible  <bruno@clisp.org>
32818
32819         Fix typo introduced on 2009-12-31.
32820         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32821         posix_spawn_file_actions_adddup2.
32822
32823 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32824         and Eric Blake  <eblake@redhat.com>
32825
32826         test-vc-list-files-git: make more robust
32827         * tests/test-vc-list-files-git.sh: Unset problematic environment
32828         variables.  Chain commands together.
32829
32830 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32831
32832         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32833         `AC_CHECK_DECL' invocation.
32834
32835 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32836
32837         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32838         appears before executable statements. Suggested by Petr Sumbera
32839         <Petr.Sumbera@Sun.COM>.
32840
32841 2010-03-14  Bruno Haible  <bruno@clisp.org>
32842
32843         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32844         portability problems. Instead use a simpler test.
32845         (main): Check that invalid arguments are rejected only on Linux.
32846
32847 2010-03-14  Bruno Haible  <bruno@clisp.org>
32848
32849         Fix bug introduced on 2009-12-31.
32850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32851         gl_PREREQ_SYS_H_WINSOCK2 always.
32852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32853         SYS_SOCKET_H variable.
32854         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32855         Update comments.
32856         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32857         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32858         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32859         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32861
32862 2010-03-14  Bruno Haible  <bruno@clisp.org>
32863
32864         Fix values returned by sinl, cosl.
32865         * lib/trigl.h: Add specification comments.
32866         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32867         that combines the values from the precomputed table with the values of
32868         the Chebyshev polynomials.
32869
32870 2010-03-14  Bruno Haible  <bruno@clisp.org>
32871
32872         Fix compilation error when modules 'posix_spawn[p]' are not used.
32873         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32875
32876 2010-03-14  Bruno Haible  <bruno@clisp.org>
32877
32878         Fix compilation error on mingw when module 'time_r' is not used.
32879         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32880         is 1.
32881         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32882         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32883         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32885
32886 2010-03-14  Bruno Haible  <bruno@clisp.org>
32887
32888         Fix compilation error with Sun C.
32889         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32890         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32891         instead of GCC specific ULONG_LONG_MAX.
32892         * lib/xstrtoll.c: Likewise.
32893         * lib/xstrtoull.c: Likewise.
32894
32895 2010-03-13  Bruno Haible  <bruno@clisp.org>
32896
32897         Allow the user to disable C++ code and tests.
32898         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32899         (gl_PROG_ANSI_CXX): Require it.
32900
32901 2010-03-13  Bruno Haible  <bruno@clisp.org>
32902
32903         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32904         cases.
32905
32906 2010-03-13  Bruno Haible  <bruno@clisp.org>
32907
32908         Test that gnulib does not break the standard C++ headers.
32909         * tests/test-locale-c++2.cc: New file.
32910         * modules/locale-tests (Files): Add it.
32911         (Makefile.am): Compile it for test-locale-c++.
32912         * tests/test-math-c++2.cc: New file.
32913         * modules/math-tests (Files): Add it.
32914         (Makefile.am): Compile it for test-math-c++.
32915         * tests/test-signal-c++2.cc: New file.
32916         * modules/signal-tests (Files): Add it.
32917         (Makefile.am): Compile it for test-signal-c++.
32918         * tests/test-stdio-c++2.cc: New file.
32919         * modules/stdio-tests (Files): Add it.
32920         (Makefile.am): Compile it for test-stdio-c++.
32921         * tests/test-stdlib-c++2.cc: New file.
32922         * modules/stdlib-tests (Files): Add it.
32923         (Makefile.am): Compile it for test-stdlib-c++.
32924         * tests/test-string-c++2.cc: New file.
32925         * modules/string-tests (Files): Add it.
32926         (Makefile.am): Compile it for test-string-c++.
32927         * tests/test-time-c++2.cc: New file.
32928         * modules/time-tests (Files): Add it.
32929         (Makefile.am): Compile it for test-time-c++.
32930         Reported by John W. Eaton <jwe@gnu.org>.
32931
32932 2010-03-13  Bruno Haible  <bruno@clisp.org>
32933
32934         * gnulib-tool (func_usage): Clarify which options are available for
32935         --create-testdir and --create-megatestdir.
32936
32937 2010-03-13  Bruno Haible  <bruno@clisp.org>
32938
32939         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32940         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32941         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32942         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32943         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32944         when appropriate.
32945         Reported by Jim Meyering.
32946
32947 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32948
32949         * gnulib-tool (func_import): Explain origin of code.
32950
32951 2010-03-12  Bruno Haible  <bruno@clisp.org>
32952
32953         Fix problem with automake's definition of CXXLINK.
32954         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32955         Reported by Simon Josefsson and Ludovic Courtès.
32956
32957 2010-03-12  Bruno Haible  <bruno@clisp.org>
32958
32959         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32960         stable releases.
32961
32962 2010-03-11  Bruno Haible  <bruno@clisp.org>
32963
32964         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32965         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32966         whether the system provides one variant or multiple variants of the
32967         function.
32968         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32969         C++ compilers.
32970         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32971         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32972         Reported by Jim Meyering.
32973
32974 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32975
32976         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32977
32978 2010-03-08  Bruno Haible  <bruno@clisp.org>
32979
32980         gnulib-tool: Add support for --libtool in --create-testdir.
32981         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32982         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32983
32984 2010-03-08  Eric Blake  <eblake@redhat.com>
32985
32986         gnulib-tool.texi: mention possibility of git submodule
32987         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32988         submodules.
32989         * doc/.gitignore: Ignore another generated file.
32990
32991 2010-03-08  Karl Berry  <karl@gnu.org>
32992
32993         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32994         of committing gnulib files while skipping others.
32995
32996 2010-03-07  Bruno Haible  <bruno@clisp.org>
32997
32998         Tests of module 'wctype' in C++ mode.
32999         * tests/test-wctype-c++.cc: New file.
33000         * modules/wctype-tests (Files): Add it and tests/signature.h.
33001         (Depends-on): Add ansi-c++-opt.
33002         (Makefile.am): Arrange to compile and run test-wctype-c++.
33003
33004         Tests of module 'wchar' in C++ mode.
33005         * tests/test-wchar-c++.cc: New file.
33006         * modules/wchar-tests (Files): Add it and tests/signature.h.
33007         (Depends-on): Add ansi-c++-opt.
33008         (Makefile.am): Arrange to compile and run test-wchar-c++.
33009         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33010         gl_MODULE_INDICATOR.
33011
33012         Tests of module 'unistd' in C++ mode.
33013         * tests/test-unistd-c++.cc: New file.
33014         * modules/unistd-tests (Files): Add it and tests/signature.h.
33015         (Depends-on): Add ansi-c++-opt.
33016         (Makefile.am): Arrange to compile and run test-unistd-c++.
33017         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33018         gl_MODULE_INDICATOR.
33019
33020         Tests of module 'time' in C++ mode.
33021         * tests/test-time-c++.cc: New file.
33022         * modules/time-tests (Files): Add it and tests/signature.h.
33023         (Depends-on): Add ansi-c++-opt.
33024         (Makefile.am): Arrange to compile and run test-time-c++.
33025         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33026
33027         Tests of module 'sys_time' in C++ mode.
33028         * tests/test-sys_time-c++.cc: New file.
33029         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33030         (Depends-on): Add ansi-c++-opt.
33031         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33032         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33033         gl_MODULE_INDICATOR.
33034
33035         Tests of module 'sys_stat' in C++ mode.
33036         * tests/test-sys_stat-c++.cc: New file.
33037         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33038         (Depends-on): Add ansi-c++-opt.
33039         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33040         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33041         gl_MODULE_INDICATOR.
33042
33043         Tests of module 'sys_socket' in C++ mode.
33044         * tests/test-sys_socket-c++.cc: New file.
33045         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33046         (Depends-on): Add ansi-c++-opt.
33047         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33048         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33049         gl_MODULE_INDICATOR.
33050
33051         Tests of module 'sys_select' in C++ mode.
33052         * tests/test-sys_select-c++.cc: New file.
33053         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33054         (Depends-on): Add ansi-c++-opt.
33055         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33056         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33057         gl_MODULE_INDICATOR.
33058
33059         Tests of module 'sys_ioctl' in C++ mode.
33060         * tests/test-sys_ioctl-c++.cc: New file.
33061         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33062         (Depends-on): Add ansi-c++-opt.
33063         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33064         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33065         gl_MODULE_INDICATOR.
33066
33067         Tests of module 'string' in C++ mode.
33068         * tests/test-string-c++.cc: New file.
33069         * modules/string-tests (Files): Add it and tests/signature.h.
33070         (Depends-on): Add ansi-c++-opt.
33071         (Makefile.am): Arrange to compile and run test-string-c++.
33072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33073         gl_MODULE_INDICATOR.
33074
33075         Tests of module 'stdlib' in C++ mode.
33076         * tests/test-stdlib-c++.cc: New file.
33077         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33078         (Depends-on): Add ansi-c++-opt.
33079         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33080         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33081         gl_MODULE_INDICATOR.
33082
33083         Tests of module 'stdio' in C++ mode.
33084         * tests/test-stdio-c++.cc: New file.
33085         * modules/stdio-tests (Files): Add it and tests/signature.h.
33086         (Depends-on): Add ansi-c++-opt.
33087         (Makefile.am): Arrange to compile and run test-stdio-c++.
33088         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33089         gl_MODULE_INDICATOR.
33090
33091         Tests of module 'spawn' in C++ mode.
33092         * tests/test-spawn-c++.cc: New file.
33093         * modules/spawn-tests (Files): Add it and tests/signature.h.
33094         (Depends-on): Add ansi-c++-opt.
33095         (Makefile.am): Arrange to compile and run test-spawn-c++.
33096         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33097         gl_MODULE_INDICATOR.
33098
33099         Tests of module 'signal' in C++ mode.
33100         * tests/test-signal-c++.cc: New file.
33101         * modules/signal-tests (Files): Add it and tests/signature.h.
33102         (Depends-on): Add ansi-c++-opt.
33103         (Makefile.am): Arrange to compile and run test-signal-c++.
33104         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33105         gl_MODULE_INDICATOR.
33106
33107         Tests of module 'search' in C++ mode.
33108         * tests/test-search-c++.cc: New file.
33109         * modules/search-tests (Files): Add it and tests/signature.h.
33110         (Depends-on): Add ansi-c++-opt.
33111         (Makefile.am): Arrange to compile and run test-search-c++.
33112         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33113         gl_MODULE_INDICATOR.
33114
33115         Tests of module 'math' in C++ mode.
33116         * tests/test-math-c++.cc: New file.
33117         * modules/math-tests (Files): Add it and tests/signature.h.
33118         (Depends-on): Add ansi-c++-opt.
33119         (Makefile.am): Arrange to compile and run test-math-c++.
33120         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33121
33122         Tests of module 'locale' in C++ mode.
33123         * tests/test-locale-c++.cc: New file.
33124         * modules/locale-tests (Files): Add it and tests/signature.h.
33125         (Depends-on): Add ansi-c++-opt.
33126         (Makefile.am): Arrange to compile and run test-locale-c++.
33127         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33128         gl_MODULE_INDICATOR.
33129
33130         Tests of module 'langinfo' in C++ mode.
33131         * tests/test-langinfo-c++.cc: New file.
33132         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33133         (Depends-on): Add ansi-c++-opt.
33134         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33135         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33136         gl_MODULE_INDICATOR.
33137
33138         Tests of module 'iconv-h' in C++ mode.
33139         * tests/test-iconv-h-c++.cc: New file.
33140         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33141         (Depends-on): Add ansi-c++-opt.
33142         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33143
33144         Tests of module 'glob' in C++ mode.
33145         * tests/test-glob-c++.cc: New file.
33146         * modules/glob-tests (Files): Add it.
33147         (Depends-on): Add ansi-c++-opt.
33148         (Makefile.am): Arrange to compile and run test-glob-c++.
33149
33150         Tests of module 'fcntl-h' in C++ mode.
33151         * tests/test-fcntl-h-c++.cc: New file.
33152         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33153         (Depends-on): Add ansi-c++-opt.
33154         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33156         gl_MODULE_INDICATOR.
33157
33158         Tests of module 'dirent' in C++ mode.
33159         * tests/test-dirent-c++.cc: New file.
33160         * modules/dirent-tests (Files): Add it and tests/signature.h.
33161         (Depends-on): Add ansi-c++-opt.
33162         (Makefile.am): Arrange to compile and run test-dirent-c++.
33163         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33164         gl_MODULE_INDICATOR.
33165
33166         New module 'ansi-c++-opt'.
33167         * modules/ansi-c++-opt: New file.
33168         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33169
33170         Document C++ namespace mode.
33171         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33172
33173         wctype: Avoid #define replacements in C++ mode.
33174         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33175         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33176         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33177         In C++, define a namespaced alias symbol.
33178         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33179         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33180         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33181         rule.
33182
33183         wchar: Avoid #define replacements in C++ mode.
33184         * lib/wchar.in.h: Include c++defs.h.
33185         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33186         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33187         symbol.
33188         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33189         * modules/wchar (Depends-on): Add c++defs.
33190         (Makefile.am): Update wchar.h rule.
33191
33192         unistd: Avoid #define replacements in C++ mode.
33193         * lib/unistd.in.h: Include c++defs.h.
33194         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33195         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33196         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33197         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33198         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33199         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33200         symbol.
33201         (environ): Update.
33202         * modules/unistd (Depends-on): Add c++defs.
33203         (Makefile.am): Update unistd.h rule.
33204
33205         time: Avoid #define replacements in C++ mode.
33206         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33207         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33208         define a namespaced alias symbol.
33209         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33210         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33211         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33212         * modules/time (Depends-on): Add c++defs, warn-on-use.
33213         (Makefile.am): Update time.h rule.
33214         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33215         * modules/nanosleep (configure.ac): Likewise.
33216         * modules/strptime (configure.ac): Likewise.
33217         * modules/timegm (configure.ac): Likewise.
33218
33219         sys_time: Avoid #define replacements in C++ mode.
33220         * lib/sys_time.in.h: Include c++defs.h.
33221         (gettimeofday): In C++, define a namespaced alias symbol.
33222         * modules/sys_time (Depends-on): Add c++defs.
33223         (Makefile.am): Update sys/time.h rule.
33224
33225         sys_stat: Avoid #define replacements in C++ mode.
33226         * lib/sys_stat.in.h: Include c++defs.h.
33227         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33228         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33229         namespaced alias symbol.
33230         In C++, define a namespaced alias symbol.
33231         * modules/sys_stat (Depends-on): Add c++defs.
33232         (Makefile.am): Update sys/stat.h rule.
33233
33234         sys_socket: Avoid #define replacements in C++ mode.
33235         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33236         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33237         definitions also when the system has a <sys/socket.h>.
33238         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33239         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33240         In C++, define a namespaced alias symbol.
33241         * modules/sys_socket (Depends-on): Add c++defs.
33242         (Makefile.am): Update sys/socket.h rule.
33243
33244         sys_select: Avoid #define replacements in C++ mode.
33245         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33246         definitions also when the system has a <sys/select.h>.
33247         (select): In C++, define a namespaced alias symbol.
33248         * modules/sys_select (Depends-on): Add c++defs.
33249         (Makefile.am): Update sys/select.h rule.
33250
33251         sys_ioctl: Avoid #define replacements in C++ mode.
33252         * lib/sys_ioctl.in.h: Include c++defs.h.
33253         (ioctl): In C++, define a namespaced alias symbol.
33254         * modules/sys_ioctl (Depends-on): Add c++defs.
33255         (Makefile.am): Update sys/ioctl.h rule.
33256
33257         string: Avoid #define replacements in C++ mode.
33258         * lib/string.in.h: Include c++defs.h.
33259         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33260         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33261         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33262         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33263         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33264         * modules/string (Depends-on): Add c++defs.
33265         (Makefile.am): Update string.h rule.
33266
33267         stdlib: Avoid #define replacements in C++ mode.
33268         * lib/stdlib.in.h: Include c++defs.h.
33269         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33270         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33271         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33272         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33273         symbol.
33274         * modules/stdlib (Depends-on): Add c++defs.
33275         (Makefile.am): Update stdlib.h rule.
33276
33277         stdio: Avoid #define replacements in C++ mode.
33278         * lib/stdio.in.h: Include c++defs.h.
33279         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33280         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33281         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33282         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33283         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33284         namespaced alias symbol.
33285         * modules/stdio (Depends-on): Add c++defs.
33286         (Makefile.am): Update stdio.h rule.
33287
33288         spawn: Avoid #define replacements in C++ mode.
33289         * lib/spawn.in.h: Include c++defs.h.
33290         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33291         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33292         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33293         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33294         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33295         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33296         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33297         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33298         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33299         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33300         In C++, define a namespaced alias symbol.
33301         * modules/spawn (Depends-on): Add c++defs.
33302         (Makefile.am): Update spawn.h rule.
33303
33304         signal: Avoid #define replacements in C++ mode.
33305         * lib/signal.in.h: Include c++defs.h.
33306         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33307         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33308         namespaced alias symbol.
33309         * modules/signal (Depends-on): Add c++defs.
33310         (Makefile.am): Update signal.h rule.
33311
33312         search: Avoid #define replacements in C++ mode.
33313         * lib/search.in.h: Include c++defs.h.
33314         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33315         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33316         symbol.
33317         * modules/search (Depends-on): Add c++defs.
33318         (Makefile.am): Update search.h rule.
33319
33320         math: Avoid #define replacements in C++ mode.
33321         * lib/math.in.h: Include c++defs.h.
33322         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33323         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33324         trunc, truncl): In C++, define a namespaced alias symbol.
33325         * modules/math (Depends-on): Add c++defs.
33326         (Makefile.am): Update math.h rule.
33327
33328         locale: Avoid #define replacements in C++ mode.
33329         * lib/locale.in.h: Include c++defs.h.
33330         (duplocale): In C++, define a namespaced alias symbol.
33331         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33332         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33333         * modules/locale (Depends-on): Add c++defs.
33334         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33335
33336         langinfo: Avoid #define replacements in C++ mode.
33337         * lib/langinfo.in.h: Include c++defs.h.
33338         (nl_langinfo): In C++, define a namespaced alias symbol.
33339         * modules/langinfo (Depends-on): Add c++defs.
33340         (Makefile.am): Update langinfo.h rule.
33341
33342         iconv-h: Avoid #define replacements in C++ mode.
33343         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33344         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33345         symbol.
33346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33347         whenever iconv is present.
33348         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33349         (Makefile.am): Update iconv.h rule.
33350
33351         glob: Avoid #define replacements in C++ mode.
33352         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33353         (_gl_glob_errfunc_fn): New type.
33354         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33355         symbol.
33356         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33357         (Makefile.am): Update glob.h rule.
33358
33359         fcntl-h: Avoid #define replacements in C++ mode.
33360         * lib/fcntl.in.h: Include c++defs.h.
33361         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33362         * modules/fcntl-h (Depends-on): Add c++defs.
33363         (Makefile.am): Update fcntl.h rule.
33364
33365         dirent: Avoid #define replacements in C++ mode.
33366         * lib/dirent.in.h: Include c++defs.h.
33367         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33368         namespaced alias symbol.
33369         (dirfd): Update declaration.
33370         * modules/dirent (Depends-on): Add c++defs.
33371         (Makefile.am): Update dirent.h rule.
33372
33373         ctype: Make it usable in C++ code.
33374         * lib/ctype.in.h: Include c++defs.h.
33375         (isblank): Declare as extern "C".
33376         * modules/ctype (Depends-on): Add c++defs.
33377         (Makefile.am): Update ctype.h rule.
33378
33379         New module 'c++defs'.
33380         * modules/c++defs: New file.
33381         * build-aux/c++defs.h: New file.
33382         Reported by John W. Eaton <jwe@gnu.org>.
33383
33384 2010-03-07  Bruno Haible  <bruno@clisp.org>
33385
33386         logb: Provide missing declaration for Cygwin.
33387         * lib/math.in.h (logb): New declaration.
33388         * m4/logb.m4: New file.
33389         * modules/logb (Files): Add m4/logb.m4.
33390         (Depends-on): Add math.
33391         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33392         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33394         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33395         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33396
33397 2010-03-07  Bruno Haible  <bruno@clisp.org>
33398
33399         Fix test-cond link error.
33400         * tests/test-cond.c: Include <stdio.h>.
33401
33402 2010-03-07  Bruno Haible  <bruno@clisp.org>
33403
33404         Fix test-dirent-safer link error.
33405         * modules/dirent-safer-tests (Makefile.am): Define
33406         test_dirent_safer_LDADD.
33407
33408 2010-03-07  Bruno Haible  <bruno@clisp.org>
33409
33410         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33411         among default module list.
33412
33413 2010-03-07  Bruno Haible  <bruno@clisp.org>
33414
33415         Fix link error on platforms with GNU libiconv.
33416         * modules/unistr/u8-strcoll-tests (Makefile): Define
33417         test_u8_strcoll_LDADD.
33418         * modules/unistr/u16-strcoll-tests (Makefile): Define
33419         test_u16_strcoll_LDADD.
33420         * modules/unistr/u32-strcoll-tests (Makefile): Define
33421         test_u32_strcoll_LDADD.
33422
33423 2010-03-07  Bruno Haible  <bruno@clisp.org>
33424
33425         Use POSIX declarations for socket functions.
33426         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33427         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33428         rpl_sendto): Change declaration to match POSIX.
33429         * lib/connect.c (rpl_connect): Likewise.
33430         * lib/accept.c (rpl_accept): Likewise.
33431         * lib/bind.c (rpl_bind): Likewise.
33432         * lib/getpeername.c (rpl_getpeername): Likewise.
33433         * lib/getsockname.c (rpl_getsockname): Likewise.
33434         * lib/recv.c (rpl_recv): Likewise.
33435         * lib/send.c (rpl_send): Likewise.
33436         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33437         * lib/sendto.c (rpl_sendto): Likewise.
33438
33439 2010-03-06  Bruno Haible  <bruno@clisp.org>
33440
33441         Clarify access, euidaccess, faccessat.
33442         * doc/posix-functions/faccessat.texi: Mention security problem under
33443         "Other problems", not "Portability problems".
33444         * doc/posix-functions/access.texi: Likewise. Mention a related security
33445         problem.
33446         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33447         * lib/euidaccess.c: Add comments about platforms.
33448         * lib/unistd.in.h (access, euidaccess): Add warnings.
33449
33450 2010-03-07  Bruno Haible  <bruno@clisp.org>
33451
33452         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33453         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33454         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33455         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33456         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33457         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33458         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33459         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33460         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33461         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33462         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33463         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33464         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33465         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33466         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33467         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33468         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33469         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33470         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33471         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33472         Likewise.
33473         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33474         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33475         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33476         Likewise.
33477         * tests/test-spawn.c (main): Make it work when
33478         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33479
33480 2010-03-07  Bruno Haible  <bruno@clisp.org>
33481
33482         Fix incorrect Makefile.am generation in German locale.
33483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33484         Execute sed command with character range in C locale.
33485
33486 2010-03-06  Bruno Haible  <bruno@clisp.org>
33487
33488         Tests for module 'iconv-h'.
33489         * modules/iconv-h-tests: New file.
33490         * tests/test-iconv-h.c: New file.
33491
33492         New module 'iconv-h'.
33493         * modules/iconv-h: New file.
33494         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33495         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33496         (configure.ac): Remove gl_ICONV_H.
33497         (Makefile.am): Remove rule for iconv.h.
33498
33499 2010-03-06  Bruno Haible  <bruno@clisp.org>
33500
33501         More consistent naming of *.m4 files.
33502         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33503         * modules/wctype (Files): Update.
33504
33505         More consistent naming of *.m4 files.
33506         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33507         * modules/wchar (Files): Update.
33508
33509 2010-03-06  Jim Meyering  <meyering@redhat.com>
33510
33511         euidaccess: relax license to LGPLv2+
33512         * modules/euidaccess (License): Relax to LGPLv2+.
33513
33514 2010-03-06  Bruno Haible  <bruno@clisp.org>
33515
33516         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33517         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33518         (Makefile.am): Augment lib_SOURCES instead.
33519
33520 2010-03-04  Jim Meyering  <meyering@redhat.com>
33521
33522         utime: remove obsolete module
33523         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33524         unnecessary for years, and has been marked as obsolete for 10 months.
33525         * modules/utime: Remove file.
33526         * lib/utime.c: Remove file.
33527         * m4/utime.m4: Remove file.
33528         * m4/utimes-null.m4: Remove file.
33529         * doc/posix-functions/utime.texi (utime): Remove reference to
33530         the module.  Move the sole "fixed by gnulib" item into the
33531         "problems not fixed by Gnulib" list.
33532         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33533
33534 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33535
33536         * modules/exit (License): Relax license to LGPLv2+.
33537         (Status): Mark as obsolete.
33538         * NEWS: Mention deprecated 'exit' module.
33539         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33540         of now obsolete 'exit'.
33541
33542 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33543
33544         fts-lgpl: remove unused module
33545         * modules/fts-lgpl: Remove.
33546         * MODULES.html.sh (func_all_modules): Adjust.
33547         * check-module (find_included_lib_files): Adjust.
33548         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33549
33550 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33551
33552         copy-acl: enhance Solaris ACL error handling
33553         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33554         * lib/set-mode-acl.c (qset_acl): Likewise.
33555
33556 2010-03-02  Bruno Haible  <bruno@clisp.org>
33557
33558         spawn: Don't override the system defined values on FreeBSD 8.
33559         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33560         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33561         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33562         if HAVE_POSIX_SPAWN is 1.
33563         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33564
33565 2010-03-01  Bruno Haible  <bruno@clisp.org>
33566
33567         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33568         regarding Automake.
33569
33570 2010-02-25  Bruno Haible  <bruno@clisp.org>
33571
33572         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33573         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33574         setting, not afterwards.
33575         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33576
33577 2010-02-24  Eric Blake  <eblake@redhat.com>
33578
33579         bootstrap, git-version-gen: use timestamp
33580         * build-aux/git-version-gen (scriptversion): Force UTC.
33581         * build-aux/bootstrap (scriptversion): New variable.
33582
33583         bootstrap: allow older git
33584         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33585         older than 1.6.4.  Requested by the libvirt project.
33586
33587 2010-02-23  Eric Blake  <eblake@redhat.com>
33588
33589         warn-on-use: work with old autoconf
33590         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33591         AS_VAR semantics of autoconf 2.60.
33592         Reported by Bruno Haible.
33593
33594         bootstrap: improve some comments
33595         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33596         clarification comments.
33597
33598         gettimeofday: provide correct function
33599         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33600         when replacement is declared, otherwise provide gettimeofday.
33601         Reported by Michael Goffioul.
33602
33603 2010-02-23  Jim Meyering  <meyering@redhat.com>
33604
33605         lib-ignore: relax license to "unlimited", not LGPLv2+
33606         * modules/lib-ignore (License): Relax to "unlimited".
33607
33608 2010-02-23  Jim Meyering  <meyering@redhat.com>
33609
33610         lib-ignore: relax license to LGPLv2+
33611         * modules/lib-ignore (License): Relax to LGPLv2+.
33612
33613 2010-02-22  Eric Blake  <eblake@redhat.com>
33614
33615         lseek: avoid bash 3.2 broken pipe bug
33616         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33617         warning from bash 3.2.
33618         Reported by Ben Pfaff, with analysis from Bruno Haible.
33619
33620         bootstrap: support non-FSF copyright holder
33621         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33622         bootstrap.conf override of COPYRIGHT_HOLDER.
33623         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33624
33625         bootstrap: interoperate with gettext 0.14.1
33626         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33627
33628         bootstrap: allow for alternate submodule location
33629         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33630         hardcoding submodule location.
33631         (gnulib_mk): Allow direct use of Makefile.am.
33632
33633         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33634         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33635         rather than reconfiguring where the submodule points.
33636
33637         gettimeofday: restore support for platforms that lack function
33638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33639         replacement if function is missing.
33640         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33641         * modules/sys_time (Makefile.am): Substitute it.
33642         * lib/sys_time.in.h (gettimeofday): Check it.
33643         Reported by Michael Goffioul.
33644
33645 2010-02-21  Bruno Haible  <bruno@clisp.org>
33646
33647         * lib/stdio.in.h (obstack_printf): Fix typo.
33648
33649 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33650
33651         vc-list-files: use bzr ls's -R option
33652         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33653         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33654
33655 2010-02-21  Jim Meyering  <meyering@redhat.com>
33656
33657         init.sh: fix EXEEXT shims to work also for names like test-prog
33658         * tests/init.sh: Re-exec a better shell, when needed.
33659         If the current shell lacks support for posix $(...), an init.sh-using
33660         test will now try to find a shell that supports that.  If EXEEXT is
33661         nonempty, we also require support for hyphen-in-alias-name and shell
33662         substitutions like ${var#glob}.  Failure to find such a shell results
33663         in a skipped test.
33664
33665 2010-02-21  Bruno Haible  <bruno@clisp.org>
33666
33667         Really work around around "broken pipe" error message from bash 3.2.
33668         * gnulib-tool (func_reset_sigpipe): Remove function.
33669         (echo): In bash 3.2, define to a function that uses printf.
33670         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33671
33672 2010-02-20  Bruno Haible  <bruno@clisp.org>
33673
33674         Restore support for automake 1.9.6 with autoconf 2.61.
33675         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33676         Reported by James Youngman <jay@gnu.org>.
33677
33678 2010-02-20  Bruno Haible  <bruno@clisp.org>
33679
33680         Improve *printf warning condition.
33681         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33682         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33683         and the function is overridden due to SIGPIPE emulation.
33684
33685 2010-02-20  Bruno Haible  <bruno@clisp.org>
33686
33687         * lib/stdio.in.h: Tweak comments.
33688
33689 2010-02-19  Bruno Haible  <bruno@clisp.org>
33690
33691         Make it easier to find modules. New gnulib-tool option '--find'.
33692         * gnulib-tool: New option --find.
33693         (func_usage): Document it.
33694         (func_sanitize_modulelist): New function, extracted from
33695         func_all_modules.
33696         (func_all_modules): Invoke it.
33697         * doc/gnulib-tool.texi (Which modules?): New node.
33698
33699 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33700
33701         * lib/sys_select.in.h: Provide select replacement even if
33702         sys/select.h exists on a system, for Interix.
33703
33704 2010-02-18  Jim Meyering  <meyering@redhat.com>
33705
33706         init.sh: don't use $(...) just yet
33707         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33708         to accommodate e.g., Solaris' /bin/sh.
33709
33710 2010-02-17  Bruno Haible  <bruno@clisp.org>
33711
33712         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33713         Reported by Ludovic Courtès <ludo@gnu.org>.
33714
33715 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33716
33717         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33718         linking with -lintl.
33719
33720 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33721
33722         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33723         if not provided by the system's netdb.h.  Reported by
33724         ludo@gnu.org (Ludovic Courtès).
33725
33726 2010-02-15  Jim Meyering  <meyering@redhat.com>
33727
33728         init.sh: improve portability and efficiency
33729         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33730         "dummy" in a for loop.
33731         Use '!', not '^' to select the complement of a character set used
33732         in a "case" statement.
33733         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33734         Suggestions from Eric Blake.
33735
33736         init.sh: automatically accommodate programs with the .exe suffix
33737         Automatically arrange for an invocation of "prog" to execute the
33738         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33739         may use the simpler "prog", yet still work when built on a system
33740         that requires specifying the added suffix.
33741         Do this by constructing a function named "prog" that invokes
33742         "prog.exe" for each .exe file in selected directories.
33743         * tests/init.sh (find_exe_basenames_): New function.
33744         (create_exe_shim_functions_): New function.
33745         (path_prepend_): Use it.
33746
33747         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33748         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33749         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33750
33751 2010-02-14  Jim Meyering  <meyering@redhat.com>
33752
33753         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33754         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33755         (sc_prohibit_hash_pjw_without_use): New rule.
33756
33757         maint.mk: allow the default upload destination dir to be overridden
33758         * top/maint.mk (upload_dest_dir_): Define with a default that
33759         preserves the status quo.
33760         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33761         Reported by Peter Simons.
33762
33763         maint.mk: prohibit inclusion of "hash.h" without_use
33764         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33765
33766 2010-02-10  Jim Meyering  <meyering@redhat.com>
33767
33768         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33769         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33770
33771 2010-02-09  Eric Blake  <ebb9@byu.net>
33772         and Bruno Haible  <bruno@clisp.org>
33773
33774         obstack-printf-posix: ensure declaration
33775         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33776         extracted from gl_FUNC_OBSTACK_PRINTF.
33777         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33778         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33779         Likewise.
33780         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33781         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33782         0.
33783
33784 2010-02-08  Bruno Haible  <bruno@clisp.org>
33785
33786         gnulib-tool: Fix typo in 2010-02-07 commit.
33787         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33788         Reported by Eric Blake.
33789
33790 2010-02-07  Bruno Haible  <bruno@clisp.org>
33791
33792         gnulib-tool: Fix up caching patches.
33793         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33794         option --no-cache. Use associative arrays when supported by the shell.
33795         (sed_comments): New variable.
33796         (modcache): Renamed from do_cache.
33797         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33798         abbreviate unnecessarily.
33799         (have_associative): New variable.
33800         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33801         way also for ksh and zsh.
33802         (func_init_sed_convert_to_cache_statements): New function, extracted
33803         from func_cache_lookup_module. Add support for associative arrays.
33804         Don't set the c_MODULE_cached variable here. Ignore all lines before
33805         the first field header. Remove only the final newline, not all trailing
33806         newlines. Support empty fields correctly. Limit the use of 'eval' to
33807         assignments.
33808         (func_get_description, func_get_status, func_get_notice,
33809         func_get_applicability, func_get_filelist, func_get_dependencies,
33810         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33811         func_get_automake_snippet, func_get_include_directive,
33812         func_get_link_directive, func_get_license, func_get_maintainer):
33813         Update documentation. List the unoptimized code first. Add support for
33814         associative arrays. Limit the use of 'eval' to assignments.
33815         (func_get_applicability): Undo stylistic pessimisations.
33816         (func_get_automake_snippet, func_get_include_directive): Reduce code
33817         duplication.
33818         (func_modules_transitive_closure, func_modules_add_dummy,
33819         func_modules_notice, func_modules_to_filelist, func_add_file,
33820         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33821         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33822         func_create_testdir, func_create_megatestdir): Update documentation.
33823
33824 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33825
33826         * gnulib-tool (func_cache_lookup_module): Store the module name
33827         belonging to the cache variable; error out if two different
33828         module names map to the same cache variable name.
33829
33830 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33831
33832         gnulib-tool: Make caching optional.
33833         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33834         Update matching short versions of --no-changelog.
33835         (func_usage): Update.
33836         (sed_extract_cache_prog): Renamed from ...
33837         (sed_extract_prog): ... this; revert to old extraction script.
33838         (func_get_description, func_get_status)
33839         (func_get_notice, func_get_applicability, func_get_filelist)
33840         (func_get_dependencies, func_get_autoconf_early_snippet)
33841         (func_get_autoconf_snippet, func_get_automake_snippet)
33842         (func_get_include_directive, func_get_link_directive)
33843         (func_get_license, func_get_maintainer): If $do_cache is false,
33844         use old, non-caching extraction scripts.
33845         Suggestion by Bruno Haible.
33846
33847 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33848
33849         gnulib-tool: cache module metainformation.
33850         * gnulib-tool (sed_extract_prog): Match newline before each
33851         header, and rewrite header to a shell variable suffix.
33852         (func_cache_var, func_cache_lookup_module): New functions,
33853         to turn a module name into a cache variable prefix, and to
33854         look up and cache module metainformation.
33855         (func_get_description, func_get_status)
33856         (func_get_notice, func_get_applicability, func_get_filelist)
33857         (func_get_dependencies, func_get_autoconf_early_snippet)
33858         (func_get_autoconf_snippet, func_get_automake_snippet)
33859         (func_get_include_directive, func_get_link_directive)
33860         (func_get_license, func_get_maintainer): Use
33861         func_cache_lookup_module.
33862
33863 2010-02-07  Bruno Haible  <bruno@clisp.org>
33864
33865         fnctl: Fix missing dependency.
33866         * modules/fcntl (Depends-on): Add getdtablesize.
33867         Reported by John W. Eaton <jwe@gnu.org>.
33868
33869 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33870
33871         Argp: fix recognition of short alias options.
33872
33873         * lib/argp-parse.c (convert_options): Fix improper use of
33874         `|' between character values.
33875         * tests/test-argp.c (group1_option): New alias option
33876         --read (-r).
33877         (group1_parser): Special handling for 'r'.
33878         (test15): New test case.
33879         (test_fun): Add test15.
33880         * tests/test-argp-2.sh: Update expected --help and --usage
33881         outputs.
33882
33883 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33884
33885         * tests/test-argp.c: Fix indentation.
33886
33887 2010-02-04  Eric Blake  <ebb9@byu.net>
33888
33889         gettimeofday: expose type of second argument
33890         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33891         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33892         * tests/test-gettimeofday.c: Use it to silence warning.
33893         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33894         the issue.
33895
33896 2010-02-03  Jim Meyering  <meyering@redhat.com>
33897
33898         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33899         * lib/regcomp.c (TYPE_SIGNED): Define.
33900         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33901
33902         regcomp.c: avoid a new -Wshadow warning
33903         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33904
33905 2010-02-01  Jim Meyering  <meyering@redhat.com>
33906
33907         removing useless parentheses in cpp #define directives
33908         For motivation, see commit c0221df4, "define STREQ(a,b)
33909         consistently, removing useless parentheses"
33910         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33911         * lib/mountlist.c (MNT_IGNORE): Likewise.
33912         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33913
33914 2010-02-01  Eric Blake  <ebb9@byu.net>
33915
33916         sys_time: use link-warning
33917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33918         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33919         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33920         * modules/sys_time (Depends-on): Add warn-on-use.
33921         (Makefile.am): Always build replacement.
33922         (configure.ac): Update substitutions.
33923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33924         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33925         bother with SYS_TIME_H.
33926         * modules/gettimeofday (configure.ac): Declare indicator.
33927         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33928         in use.
33929
33930         closein-tests: silence compiler warning
33931         * tests/test-closein.c (main): Ignore fread result.
33932         * modules/closein-tests (Depends-on): Add ignore-value.
33933
33934         tests: silence warning about system return
33935         * tests/test-areadlink-with-size.c (main): Ignore system result.
33936         * tests/test-areadlink.c (main): Likewise.
33937         * tests/test-areadlinkat-with-size.c (main): Likewise.
33938         * tests/test-areadlinkat.c (main): Likewise.
33939         * tests/test-canonicalize-lgpl.c (main): Likewise.
33940         * tests/test-canonicalize.c (main): Likewise.
33941         * tests/test-chown.c (main): Likewise.
33942         * tests/test-fchownat.c (main): Likewise.
33943         * tests/test-fdutimensat.c (main): Likewise.
33944         * tests/test-fstatat.c (main): Likewise.
33945         * tests/test-futimens.c (main): Likewise.
33946         * tests/test-lchown.c (main): Likewise.
33947         * tests/test-link.c (main): Likewise.
33948         * tests/test-linkat.c (main): Likewise.
33949         * tests/test-lstat.c (main): Likewise.
33950         * tests/test-mkdir.c (main): Likewise.
33951         * tests/test-mkdirat.c (main): Likewise.
33952         * tests/test-mkfifo.c (main): Likewise.
33953         * tests/test-mkfifoat.c (main): Likewise.
33954         * tests/test-mknod.c (main): Likewise.
33955         * tests/test-readlink.c (main): Likewise.
33956         * tests/test-remove.c (main): Likewise.
33957         * tests/test-rename.c (main): Likewise.
33958         * tests/test-renameat.c (main): Likewise.
33959         * tests/test-rmdir.c (main): Likewise.
33960         * tests/test-symlink.c (main): Likewise.
33961         * tests/test-symlinkat.c (main): Likewise.
33962         * tests/test-unlink.c (main): Likewise.
33963         * tests/test-unlinkat.c (main): Likewise.
33964         * tests/test-utimens.c (main): Likewise.
33965         * tests/test-utimensat.c (main): Likewise.
33966         * modules/areadlink-tests (Depends-on): Add ignore-value.
33967         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33968         * modules/areadlinkat-tests (Depends-on): Likewise.
33969         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33970         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33971         * modules/canonicalize-tests (Depends-on): Likewise.
33972         * modules/chown-tests (Depends-on): Likewise.
33973         * modules/fdutimensat-tests (Depends-on): Likewise.
33974         * modules/futimens-tests (Depends-on): Likewise.
33975         * modules/lchown-tests (Depends-on): Likewise.
33976         * modules/link-tests (Depends-on): Likewise.
33977         * modules/linkat-tests (Depends-on): Likewise.
33978         * modules/lstat-tests (Depends-on): Likewise.
33979         * modules/mkdir-tests (Depends-on): Likewise.
33980         * modules/mkfifo-tests (Depends-on): Likewise.
33981         * modules/mkfifoat-tests (Depends-on): Likewise.
33982         * modules/mknod-tests (Depends-on): Likewise.
33983         * modules/openat-tests (Depends-on): Likewise.
33984         * modules/readlink-tests (Depends-on): Likewise.
33985         * modules/remove-tests (Depends-on): Likewise.
33986         * modules/rename-tests (Depends-on): Likewise.
33987         * modules/renameat-tests (Depends-on): Likewise.
33988         * modules/rmdir-tests (Depends-on): Likewise.
33989         * modules/symlink-tests (Depends-on): Likewise.
33990         * modules/symlinkat-tests (Depends-on): Likewise.
33991         * modules/unlink-tests (Depends-on): Likewise.
33992         * modules/utimens-tests (Depends-on): Likewise.
33993         * modules/utimensat-tests (Depends-on): Likewise.
33994
33995 2010-01-31  Bruno Haible  <bruno@clisp.org>
33996
33997         Perform the same test for many <math.h> functions.
33998         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33999         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34000         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34001         of gl_MATHFUNC.
34002         * modules/acos (configure.ac): Likewise.
34003         * modules/asin (configure.ac): Likewise.
34004         * modules/atan (configure.ac): Likewise.
34005         * modules/atan2 (configure.ac): Likewise.
34006         * modules/cbrt (configure.ac): Likewise.
34007         * modules/copysign (configure.ac): Likewise.
34008         * modules/cos (configure.ac): Likewise.
34009         * modules/cosh (configure.ac): Likewise.
34010         * modules/erf (configure.ac): Likewise.
34011         * modules/erfc (configure.ac): Likewise.
34012         * modules/exp (configure.ac): Likewise.
34013         * modules/fmod (configure.ac): Likewise.
34014         * modules/hypot (configure.ac): Likewise.
34015         * modules/j0 (configure.ac): Likewise.
34016         * modules/j1 (configure.ac): Likewise.
34017         * modules/jn (configure.ac): Likewise.
34018         * modules/lgamma (configure.ac): Likewise.
34019         * modules/log (configure.ac): Likewise.
34020         * modules/log10 (configure.ac): Likewise.
34021         * modules/log1p (configure.ac): Likewise.
34022         * modules/pow (configure.ac): Likewise.
34023         * modules/remainder (configure.ac): Likewise.
34024         * modules/sin (configure.ac): Likewise.
34025         * modules/sinh (configure.ac): Likewise.
34026         * modules/tan (configure.ac): Likewise.
34027         * modules/tanh (configure.ac): Likewise.
34028         * modules/y0 (configure.ac): Likewise.
34029         * modules/y1 (configure.ac): Likewise.
34030         * modules/yn (configure.ac): Likewise.
34031         Suggested by Paolo Bonzini.
34032
34033 2010-01-31  Bruno Haible  <bruno@clisp.org>
34034
34035         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34036
34037 2010-01-31  Bruno Haible  <bruno@clisp.org>
34038
34039         Work around getdelim() bug on FreeBSD 8.0.
34040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34041         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34042         not work.
34043         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34044         is 1.
34045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34046         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34047         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34048         a non-zero size.
34049         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34050
34051 2010-01-31  Bruno Haible  <bruno@clisp.org>
34052
34053         Work around getline() bug on FreeBSD 8.0.
34054         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34055         and a non-zero size.
34056         * tests/test-getline.c (main): Likewise.
34057         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34058         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34059
34060 2010-01-28  Eric Blake  <ebb9@byu.net>
34061
34062         regex: fix build failure
34063         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34064         platforms.
34065
34066 2010-01-28  Jim Meyering  <meyering@redhat.com>
34067
34068         regex: do not ignore memory allocation failure
34069         * lib/regex_internal.c (create_cd_newstate): Detect
34070         re_node_set_init_copy failure.   Extracted from glibc commit
34071         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34072
34073         regex: sync more white-space changes from libc
34074         * lib/regex_internal.c: White-space only changes.
34075         * lib/regexec.c: Likewise.
34076
34077         regex: add many uses of __attribute_warn_unused_result__
34078         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34079         * lib/regexec.c: Likewise.
34080         Extracted from a messy glibc commit.
34081
34082         regcomp.c: spelling and merge-artifact from glibc
34083         * lib/regcomp.c: Merge remainder of glibc's
34084         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34085
34086         regcomp.c: sync white-space changes from glibc
34087         * lib/regcomp.c: Merge to accommodate white space
34088         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34089
34090         regcomp.c: do not ignore internal return values
34091         * lib/regcomp.c: Do not ignore internal return values.
34092         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34093         but without its white-space changes and spelling fixes.
34094
34095         regex_internal.h: define __attribute_warn_unused_result__
34096         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34097
34098         maint: add a syntax-check rule to check for vulnerable Makefile.in
34099         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34100
34101 2010-01-27  Jim Meyering  <meyering@redhat.com>
34102
34103         ncftpput-ftp: clean up spaces
34104         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34105         Remove trailing blanks.
34106
34107 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34108
34109         * build-aux/git-version-gen: Fix copyright statement.
34110         * build-aux/gnupload: Likewise.
34111         * tests/test-arcfour.c: Likewise.
34112         * tests/test-arctwo.c: Likewise.
34113         * tests/test-count-one-bits.c: Likewise.
34114         * tests/test-crc.c: Likewise.
34115         * tests/test-des.c: Likewise.
34116         * tests/test-gc-arcfour.c: Likewise.
34117         * tests/test-gc-arctwo.c: Likewise.
34118         * tests/test-gc-des.c: Likewise.
34119         * tests/test-gc-hmac-md5.c: Likewise.
34120         * tests/test-gc-hmac-sha1.c: Likewise.
34121         * tests/test-gc-md2.c: Likewise.
34122         * tests/test-gc-md4.c: Likewise.
34123         * tests/test-gc-md5.c: Likewise.
34124         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34125         * tests/test-gc-rijndael.c: Likewise.
34126         * tests/test-gc-sha1.c: Likewise.
34127         * tests/test-gc.c: Likewise.
34128         * tests/test-gethostname.c: Likewise.
34129         * tests/test-gettimeofday.c: Likewise.
34130         * tests/test-hash.c: Likewise.
34131         * tests/test-hmac-md5.c: Likewise.
34132         * tests/test-hmac-sha1.c: Likewise.
34133         * tests/test-md2.c: Likewise.
34134         * tests/test-md4.c: Likewise.
34135         * tests/test-md5.c: Likewise.
34136         * tests/test-memchr.c: Likewise.
34137         * tests/test-memchr2.c: Likewise.
34138         * tests/test-memcmp.c: Likewise.
34139         * tests/test-memmem.c: Likewise.
34140         * tests/test-memrchr.c: Likewise.
34141         * tests/test-rawmemchr.c: Likewise.
34142         * tests/test-read-file.c: Likewise.
34143         * tests/test-rijndael.c: Likewise.
34144         * tests/test-sockets.c: Likewise.
34145         * tests/test-strchrnul.c: Likewise.
34146         * tests/test-strstr.c: Likewise.
34147         * tests/test-strtod.c: Likewise.
34148         * build-aux/ncftpput-ftp: Likewise.
34149
34150 2010-01-26  Eric Blake  <ebb9@byu.net>
34151
34152         ignore-value: update recommended header name
34153         * modules/ignore-value (Include): Only use <> for headers that
34154         exist in glibc.
34155
34156 2010-01-26  Jim Meyering  <meyering@redhat.com>
34157
34158         test-userspec.c: avoid compiler warnings
34159         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34160         and "initialization discards qualifiers..." warnings.
34161         Put the first "uid" in its own scope, and make char* members "const".
34162
34163 2010-01-25  Bruno Haible  <bruno@clisp.org>
34164
34165         gnulib-tool: Make warning diagnostics consistent.
34166         * gnulib-tool (func_warning): New function.
34167         Use it everywhere where gnulib-tool produces output to stderr and it is
34168         not a fatal error.
34169
34170 2010-01-25  Bruno Haible  <bruno@clisp.org>
34171
34172         Fix test dependencies.
34173         * modules/xstrtol-tests (Depends-on): Add inttypes.
34174         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34175
34176 2010-01-25 Pádraig Brady <P@draigBrady.com>
34177
34178         syntax-check: detect incorrect boolean macro values in config.h
34179         * modules/maintainer-makefile (configure.ac): Parameterize the location
34180         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34181         The logic is from Eric Blake and the location indicated by Jim Meyering.
34182         Note the more natural CONFIG_HEADER name is prohibited by automake
34183         for backwards compatibility reasons.
34184         * top/maint.mk (sc_Wundef_boolean): New rule.
34185
34186 2010-01-25  Jim Meyering  <meyering@redhat.com>
34187
34188         bootstrap: detect MacOS 10.6's shasum, too
34189         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34190         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34191
34192 2010-01-23  Jim Meyering  <meyering@redhat.com>
34193
34194         xstrtoll: new module
34195         * modules/xstrtoll: New file.
34196         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34197         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34198         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34199         ./configure fails if you use this module and lack "long long".
34200         * modules/xstrtoll-tests: New module.
34201         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34202         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34203         new init.sh-based test framework.
34204
34205 2010-01-24  Bruno Haible  <bruno@clisp.org>
34206
34207         Tests for module 'yn'.
34208         * modules/yn-tests: New file.
34209         * tests/test-yn.c: New file.
34210
34211         Tests for module 'y1'.
34212         * modules/y1-tests: New file.
34213         * tests/test-y1.c: New file.
34214
34215         Tests for module 'y0'.
34216         * modules/y0-tests: New file.
34217         * tests/test-y0.c: New file.
34218
34219         Tests for module 'tanh'.
34220         * modules/tanh-tests: New file.
34221         * tests/test-tanh.c: New file.
34222
34223         Tests for module 'tan'.
34224         * modules/tan-tests: New file.
34225         * tests/test-tan.c: New file.
34226
34227         Tests for module 'sqrt'.
34228         * modules/sqrt-tests: New file.
34229         * tests/test-sqrt.c: New file.
34230
34231         Tests for module 'sinh'.
34232         * modules/sinh-tests: New file.
34233         * tests/test-sinh.c: New file.
34234
34235         Tests for module 'sin'.
34236         * modules/sin-tests: New file.
34237         * tests/test-sin.c: New file.
34238
34239         Tests for module 'rint'.
34240         * modules/rint-tests: New file.
34241         * tests/test-rint.c: New file.
34242
34243         Tests for module 'remainder'.
34244         * modules/remainder-tests: New file.
34245         * tests/test-remainder.c: New file.
34246
34247         Tests for module 'pow'.
34248         * modules/pow-tests: New file.
34249         * tests/test-pow.c: New file.
34250
34251         Tests for module 'nextafter'.
34252         * modules/nextafter-tests: New file.
34253         * tests/test-nextafter.c: New file.
34254
34255         Tests for module 'modf'.
34256         * modules/modf-tests: New file.
34257         * tests/test-modf.c: New file.
34258
34259         Tests for module 'logb'.
34260         * modules/logb-tests: New file.
34261         * tests/test-logb.c: New file.
34262
34263         Tests for module 'log1p'.
34264         * modules/log1p-tests: New file.
34265         * tests/test-log1p.c: New file.
34266
34267         Tests for module 'log10'.
34268         * modules/log10-tests: New file.
34269         * tests/test-log10.c: New file.
34270
34271         Tests for module 'log'.
34272         * modules/log-tests: New file.
34273         * tests/test-log.c: New file.
34274
34275         Tests for module 'lgamma'.
34276         * modules/lgamma-tests: New file.
34277         * tests/test-lgamma.c: New file.
34278
34279         Tests for module 'ldexp'.
34280         * modules/ldexp-tests: New file.
34281         * tests/test-ldexp.c: New file.
34282
34283         Tests for module 'jn'.
34284         * modules/jn-tests: New file.
34285         * tests/test-jn.c: New file.
34286
34287         Tests for module 'j1'.
34288         * modules/j1-tests: New file.
34289         * tests/test-j1.c: New file.
34290
34291         Tests for module 'j0'.
34292         * modules/j0-tests: New file.
34293         * tests/test-j0.c: New file.
34294
34295         Tests for module 'hypot'.
34296         * modules/hypot-tests: New file.
34297         * tests/test-hypot.c: New file.
34298
34299         Tests for module 'fmod'.
34300         * modules/fmod-tests: New file.
34301         * tests/test-fmod.c: New file.
34302
34303         Tests for module 'fabs'.
34304         * modules/fabs-tests: New file.
34305         * tests/test-fabs.c: New file.
34306
34307         Tests for module 'exp'.
34308         * modules/exp-tests: New file.
34309         * tests/test-exp.c: New file.
34310
34311         Tests for module 'erfc'.
34312         * modules/erfc-tests: New file.
34313         * tests/test-erfc.c: New file.
34314
34315         Tests for module 'erf'.
34316         * modules/erf-tests: New file.
34317         * tests/test-erf.c: New file.
34318
34319         Tests for module 'cosh'.
34320         * modules/cosh-tests: New file.
34321         * tests/test-cosh.c: New file.
34322
34323         Tests for module 'cos'.
34324         * modules/cos-tests: New file.
34325         * tests/test-cos.c: New file.
34326
34327         Tests for module 'copysign'.
34328         * modules/copysign-tests: New file.
34329         * tests/test-copysign.c: New file.
34330
34331         Tests for module 'cbrt'.
34332         * modules/cbrt-tests: New file.
34333         * tests/test-cbrt.c: New file.
34334
34335         Tests for module 'atan2'.
34336         * modules/atan2-tests: New file.
34337         * tests/test-atan2.c: New file.
34338
34339         Tests for module 'atan'.
34340         * modules/atan-tests: New file.
34341         * tests/test-atan.c: New file.
34342
34343         Tests for module 'asin'.
34344         * modules/asin-tests: New file.
34345         * tests/test-asin.c: New file.
34346
34347         Tests for module 'acos'.
34348         * modules/acos-tests: New file.
34349         * tests/test-acos.c: New file.
34350
34351 2010-01-24  Bruno Haible  <bruno@clisp.org>
34352
34353         Fix tests for common <math.h> functions.
34354         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34355         code snippet that references the function pointer, rather than merely
34356         calling the function. Substitute the FUNC_LIBM variable.
34357         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34358         * modules/acos (configure.ac): Likewise.
34359         * modules/asin (configure.ac): Likewise.
34360         * modules/atan (configure.ac): Likewise.
34361         * modules/atan2 (configure.ac): Likewise.
34362         * modules/cbrt (configure.ac): Likewise.
34363         * modules/copysign (configure.ac): Likewise.
34364         * modules/cos (configure.ac): Likewise.
34365         * modules/cosh (configure.ac): Likewise.
34366         * modules/erf (configure.ac): Likewise.
34367         * modules/erfc (configure.ac): Likewise.
34368         * modules/exp (configure.ac): Likewise.
34369         * modules/fabs (configure.ac): Likewise.
34370         * modules/fmod (configure.ac): Likewise.
34371         * modules/hypot (configure.ac): Likewise.
34372         * modules/j0 (configure.ac): Likewise.
34373         * modules/j1 (configure.ac): Likewise.
34374         * modules/jn (configure.ac): Likewise.
34375         * modules/ldexp (configure.ac): Likewise.
34376         * modules/lgamma (configure.ac): Likewise.
34377         * modules/log (configure.ac): Likewise.
34378         * modules/log10 (configure.ac): Likewise.
34379         * modules/log1p (configure.ac): Likewise.
34380         * modules/logb (configure.ac): Likewise.
34381         * modules/modf (configure.ac): Likewise.
34382         * modules/nextafter (configure.ac): Likewise.
34383         * modules/pow (configure.ac): Likewise.
34384         * modules/remainder (configure.ac): Likewise.
34385         * modules/rint (configure.ac): Likewise.
34386         * modules/sin (configure.ac): Likewise.
34387         * modules/sinh (configure.ac): Likewise.
34388         * modules/tan (configure.ac): Likewise.
34389         * modules/tanh (configure.ac): Likewise.
34390         * modules/y0 (configure.ac): Likewise.
34391         * modules/y1 (configure.ac): Likewise.
34392         * modules/yn (configure.ac): Likewise.
34393
34394 2010-01-24  Bruno Haible  <bruno@clisp.org>
34395
34396         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34397         * tests/test-acosl.c (x): New variable.
34398         (main): Store argument in x and fetch it from x.
34399         * tests/test-asinl.c (x): New variable.
34400         (main): Store argument in x and fetch it from x.
34401         * tests/test-atanl.c (x): New variable.
34402         (main): Store argument in x and fetch it from x.
34403         * tests/test-cosl.c (x): New variable.
34404         (main): Store argument in x and fetch it from x.
34405         * tests/test-expl.c (x): New variable.
34406         (main): Store argument in x and fetch it from x.
34407         * tests/test-logl.c (x): New variable.
34408         (main): Store argument in x and fetch it from x.
34409         * tests/test-sinl.c (x): New variable.
34410         (main): Store argument in x and fetch it from x.
34411         * tests/test-sqrtl.c (x): New variable.
34412         (main): Store argument in x and fetch it from x.
34413         * tests/test-tanl.c (x): New variable.
34414         (main): Store argument in x and fetch it from x.
34415
34416 2010-01-24  Bruno Haible  <bruno@clisp.org>
34417
34418         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34419         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34420         assignments to the initial TESTS_ENVIRONMENT.
34421         * doc/gnulib.texi (Unit test modules): Document it.
34422         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34423         TESTS_ENVIRONMENT.
34424         * modules/btowc-tests (Makefile.am): Likewise.
34425         * modules/c-stack-tests (Makefile.am): Likewise.
34426         * modules/c-strcase-tests (Makefile.am): Likewise.
34427         * modules/copy-file-tests (Makefile.am): Likewise.
34428         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34429         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34430         * modules/mbrtowc-tests (Makefile.am): Likewise.
34431         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34432         * modules/mbscasestr-tests (Makefile.am): Likewise.
34433         * modules/mbschr-tests (Makefile.am): Likewise.
34434         * modules/mbscspn-tests (Makefile.am): Likewise.
34435         * modules/mbsinit-tests (Makefile.am): Likewise.
34436         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34437         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34438         * modules/mbspbrk-tests (Makefile.am): Likewise.
34439         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34440         * modules/mbsrchr-tests (Makefile.am): Likewise.
34441         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34442         * modules/mbsspn-tests (Makefile.am): Likewise.
34443         * modules/mbsstr-tests (Makefile.am): Likewise.
34444         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34445         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34446         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34447         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34448         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34449         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34450         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34451         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34452         * modules/wcrtomb-tests (Makefile.am): Likewise.
34453         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34454         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34455         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34456         assignments from TESTS_ENVIRONMENT.
34457         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34458         augmentation.
34459         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34460         * modules/atexit-tests (Makefile.am): Likewise.
34461         * modules/binary-io-tests (Makefile.am): Likewise.
34462         * modules/closein-tests (Makefile.am): Likewise.
34463         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34464         * modules/exclude-tests (Makefile.am): Likewise.
34465         * modules/fflush-tests (Makefile.am): Likewise.
34466         * modules/fpending-tests (Makefile.am): Likewise.
34467         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34468         * modules/freadahead-tests (Makefile.am): Likewise.
34469         * modules/freadptr-tests (Makefile.am): Likewise.
34470         * modules/freadseek-tests (Makefile.am): Likewise.
34471         * modules/fseek-tests (Makefile.am): Likewise.
34472         * modules/fseeko-tests (Makefile.am): Likewise.
34473         * modules/ftell-tests (Makefile.am): Likewise.
34474         * modules/ftello-tests (Makefile.am): Likewise.
34475         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34476         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34477         * modules/lseek-tests (Makefile.am): Likewise.
34478         * modules/parse-duration-tests (Makefile.am): Likewise.
34479         * modules/perror-tests (Makefile.am): Likewise.
34480         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34481         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34482         * modules/pipe-tests (Makefile.am): Likewise.
34483         * modules/pread-tests (Makefile.am): Likewise.
34484         * modules/printf-posix-tests (Makefile.am): Likewise.
34485         * modules/select-tests (Makefile.am): Likewise.
34486         * modules/sigpipe-tests (Makefile.am): Likewise.
34487         * modules/tsearch-tests (Makefile.am): Likewise.
34488         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34489         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34490         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34491         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34492         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34493         * modules/version-etc-tests (Makefile.am): Likewise.
34494         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34495         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34496         * modules/xalloc-die-tests (Makefile.am): Likewise.
34497         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34498         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34499         * modules/xstrtol-tests (Makefile.am): Likewise.
34500         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34501         * modules/yesno-tests (Makefile.am): Likewise.
34502         Suggested by Jim Meyering.
34503
34504 2010-01-24  Bruno Haible  <bruno@clisp.org>
34505
34506         More documentation.
34507         * doc/gnulib.texi (Writing modules): New chapter.
34508         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34509         the new chapter.
34510
34511 2010-01-24  Jim Meyering  <meyering@redhat.com>
34512
34513         maint.mk: do not prepend "./" after filtering
34514         * top/maint.mk (_prepend_srcdir_prefix): New variable
34515         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34516         "./" when $(srcdir) is ".".
34517
34518         define STREQ(a,b) consistently, removing useless parentheses
34519         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34520         since the only risk is that "a" or "b" contains an unparenthesized
34521         comma, but if either did that, STREQ would have 3 or more arguments.
34522         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34523         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34524         * lib/hash-triple.c (STREQ): Likewise.
34525         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34526         * lib/getugroups.c (STREQ): Likewise.
34527
34528 2010-01-23  Jim Meyering  <meyering@redhat.com>
34529
34530         maint.mk: fix syntax-check in a non-srcdir build directory
34531         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34532         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34533
34534 2010-01-22  Jim Meyering  <meyering@redhat.com>
34535
34536         userspec: add unit tests
34537         * tests/test-userspec.c: New file.
34538         * modules/userspec-tests: Likewise.
34539
34540 2010-01-21  Jim Meyering  <meyering@redhat.com>
34541
34542         maint.mk: handle source file names containing "." robustly
34543         * top/maint.mk (_dot_escaped_srcdir): Define.
34544         (VC_LIST): Use it in LHS of sed substitution.
34545
34546 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34547
34548         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34549         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34550         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34551         from a non-srcdir build.
34552
34553 2010-01-20  Eric Blake  <ebb9@byu.net>
34554
34555         warn-on-use: use instead of link-warning
34556         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34557         * modules/unistd (Depends-on, Makefile.am): Likewise.
34558         * modules/arpa_inet (Depends-on): Replace link-warning with
34559         warn-on-use.
34560         (Makefile.am): Update rules accordingly.
34561         * modules/ctype (Depends-on, Makefile.am): Likewise.
34562         * modules/dirent (Depends-on, Makefile.am): Likewise.
34563         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34564         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34565         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34566         * modules/locale (Depends-on, Makefile.am): Likewise.
34567         * modules/math (Depends-on, Makefile.am): Likewise.
34568         * modules/search (Depends-on, Makefile.am): Likewise.
34569         * modules/signal (Depends-on, Makefile.am): Likewise.
34570         * modules/spawn (Depends-on, Makefile.am): Likewise.
34571         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34572         * modules/string (Depends-on, Makefile.am): Likewise.
34573         * modules/strings (Depends-on, Makefile.am): Likewise.
34574         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34575         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34576         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34577         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34578         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34579         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34580         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34581         * modules/wchar (Depends-on, Makefile.am): Likewise.
34582         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34583         should be poisoned.
34584         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34585         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34586         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34587         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34588         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34589         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34590         * m4/math_h.m4 (gl_MATH_H): Likewise.
34591         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34592         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34594         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34595         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34597         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34598         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34603         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34604         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34605         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34606         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34607         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34608         GL_LINK_WARNING.
34609         * lib/ctype.in.h: Likewise.
34610         * lib/dirent.in.h: Likewise.
34611         * lib/fcntl.in.h: Likewise.
34612         * lib/inttypes.in.h: Likewise.
34613         * lib/langinfo.in.h: Likewise.
34614         * lib/locale.in.h: Likewise.
34615         * lib/math.in.h: Likewise.
34616         * lib/search.in.h: Likewise.
34617         * lib/signal.in.h: Likewise.
34618         * lib/spawn.in.h: Likewise.
34619         * lib/stdio.in.h: Likewise.
34620         * lib/stdlib.in.h: Likewise.
34621         * lib/string.in.h: Likewise.
34622         * lib/strings.in.h: Likewise.
34623         * lib/sys_file.in.h: Likewise.
34624         * lib/sys_ioctl.in.h: Likewise.
34625         * lib/sys_select.in.h: Likewise.
34626         * lib/sys_socket.in.h: Likewise.
34627         * lib/sys_stat.in.h: Likewise.
34628         * lib/sys_times.in.h: Likewise.
34629         * lib/sys_utsname.in.h: Likewise.
34630         * lib/unistd.in.h: Likewise.
34631         * lib/wchar.in.h: Likewise.
34632
34633 2010-01-20  Bruno Haible  <bruno@clisp.org>
34634
34635         Avoid duplicate -lm.
34636         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34637         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34638         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34639         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34640         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34641         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34642         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34643         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34644         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34645         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34646         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34647         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34648         Reported by Paolo Bonzini.
34649
34650 2010-01-19  Bruno Haible  <bruno@clisp.org>
34651
34652         langinfo, nl_langinfo: Relicense under LGPLv2+.
34653         * modules/langinfo (License): Change to LGPLv2+.
34654         * modules/nl_langinfo (License): Likewise.
34655         Patch by David Lutterkort <lutter@redhat.com>.
34656
34657 2010-01-19  Bruno Haible  <bruno@clisp.org>
34658
34659         Avoid compilation error with cc on OSF/1 5.1.
34660         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34661         statement, not before.
34662         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34663
34664 2010-01-18  Bruno Haible  <bruno@clisp.org>
34665
34666         Avoid a link error due to the __printf__ symbol.
34667         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34668         and 2.6.x.
34669         (__format__, __printf__): Remove definitions.
34670         * lib/argp-fmtstream.h: Likewise.
34671         * lib/argp.h: Likewise.
34672         * lib/error.h: Likewise.
34673         * lib/vasnprintf.h: Likewise.
34674         * lib/xprintf.h: Likewise.
34675         * lib/xvasprintf.h: Likewise.
34676         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34677
34678 2010-01-18  Bruno Haible  <bruno@clisp.org>
34679
34680         Tests for module 'tanl'.
34681         * modules/tanl-tests: New file.
34682         * tests/test-tanl.c: New file.
34683
34684         Tests for module 'sqrtl'.
34685         * modules/sqrtl-tests: New file.
34686         * tests/test-sqrtl.c: New file.
34687
34688         Tests for module 'sinl'.
34689         * modules/sinl-tests: New file.
34690         * tests/test-sinl.c: New file.
34691
34692         Tests for module 'logl'.
34693         * modules/logl-tests: New file.
34694         * tests/test-logl.c: New file.
34695
34696         Tests for module 'expl'.
34697         * modules/expl-tests: New file.
34698         * tests/test-expl.c: New file.
34699
34700         Tests for module 'cosl'.
34701         * modules/cosl-tests: New file.
34702         * tests/test-cosl.c: New file.
34703
34704         Tests for module 'atanl'.
34705         * modules/atanl-tests: New file.
34706         * tests/test-atanl.c: New file.
34707
34708         Tests for module 'asinl'.
34709         * modules/asinl-tests: New file.
34710         * tests/test-asinl.c: New file.
34711
34712         Tests for module 'acosl'.
34713         * modules/acosl-tests: New file.
34714         * tests/test-acosl.c: New file.
34715
34716         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34717         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34718         tanl): Use the standard gnulib idiom.
34719         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34720         * lib/sinl.c: Likewise.
34721         * lib/tanl.c: Don't include trigl.c.
34722         (kernel_tanl): Make static.
34723         * lib/sincosl.c: Include trigl.h first.
34724         * lib/trigl.c: Likewise.
34725         * m4/acosl.m4: New file.
34726         * m4/asinl.m4: New file.
34727         * m4/atanl.m4: New file.
34728         * m4/cosl.m4: New file.
34729         * m4/expl.m4: New file.
34730         * m4/logl.m4: New file.
34731         * m4/sinl.m4: New file.
34732         * m4/sqrtl.m4: New file.
34733         * m4/tanl.m4: New file.
34734         * m4/mathl.m4: Remove file.
34735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34736         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34737         Don't initialize GNULIB_MATHL.
34738         * modules/acosl: New file.
34739         * modules/asinl: New file.
34740         * modules/atanl: New file.
34741         * modules/cosl: New file.
34742         * modules/expl: New file.
34743         * modules/logl: New file.
34744         * modules/sinl: New file.
34745         * modules/sqrtl: New file.
34746         * modules/tanl: New file.
34747         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34748         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34749         substitute GNULIB_MATHL.
34750         * modules/mathl: Rewritten.
34751         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34752         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34753         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34754         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34755         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34756         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34757         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34758         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34759         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34760
34761 2010-01-18  Bruno Haible  <bruno@clisp.org>
34762
34763         sqrt: Make gl_FUNC_SQRT requirable.
34764         * m4/sqrt.m4: New file.
34765         * modules/sqrt (Files): Add it.
34766         (configure.ac): Invoke gl_FUNC_SQRT.
34767
34768 2010-01-18  Bruno Haible  <bruno@clisp.org>
34769
34770         New modules for common <math.h> functions.
34771         * m4/mathfunc.m4: New file.
34772         * modules/acos: New file.
34773         * modules/asin: New file.
34774         * modules/atan: New file.
34775         * modules/atan2: New file.
34776         * modules/cbrt: New file.
34777         * modules/copysign: New file.
34778         * modules/cos: New file.
34779         * modules/cosh: New file.
34780         * modules/erf: New file.
34781         * modules/erfc: New file.
34782         * modules/exp: New file.
34783         * modules/fabs: New file.
34784         * modules/fmod: New file.
34785         * modules/hypot: New file.
34786         * modules/j0: New file.
34787         * modules/j1: New file.
34788         * modules/jn: New file.
34789         * modules/ldexp: New file.
34790         * modules/lgamma: New file.
34791         * modules/log: New file.
34792         * modules/log10: New file.
34793         * modules/log1p: New file.
34794         * modules/logb: New file.
34795         * modules/modf: New file.
34796         * modules/nextafter: New file.
34797         * modules/pow: New file.
34798         * modules/remainder: New file.
34799         * modules/rint: New file.
34800         * modules/sin: New file.
34801         * modules/sinh: New file.
34802         * modules/sqrt: New file.
34803         * modules/tan: New file.
34804         * modules/tanh: New file.
34805         * modules/y0: New file.
34806         * modules/y1: New file.
34807         * modules/yn: New file.
34808         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34809         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34810         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34811         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34812         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34813         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34814         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34815         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34816         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34817         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34818         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34819         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34820         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34821         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34822         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34823         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34824         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34825         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34826         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34827         * doc/posix-functions/log.texi: Mention the 'log' module.
34828         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34829         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34830         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34831         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34832         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34833         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34834         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34835         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34836         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34837         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34838         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34839         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34840         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34841         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34842         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34843         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34844
34845 2010-01-18  Jim Meyering  <meyering@redhat.com>
34846
34847         ignore-value: relax license to LGPLv2+
34848         * modules/ignore-value (License): Relax to LGPLv2+.
34849
34850         getdate: don't leak when TZ contains two or more '"'s
34851         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34852         double quote in TZ after the first one.
34853
34854         readtokens: do not leak internal token_lengths buffer
34855         * lib/readtokens.c (readtokens): Free the local, lengths,
34856         when the supplied "token_lengths" parameter is NULL.
34857
34858 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34859
34860         Fix a couple of missing LIBTHREAD link failures on AIX.
34861         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34862         $(LIBTHREAD).
34863         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34864
34865         Link test-poll against INET_PTON_LIB.
34866         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34867         for inet_pton on Solaris 10.
34868
34869 2010-01-17  Bruno Haible  <bruno@clisp.org>
34870
34871         unistdio/*-sprintf: Fix typo in module description.
34872         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34873         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34874         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34875         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34876         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34877         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34878         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34880
34881 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34882
34883         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34884         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34885         variables in shell case patterns, for AIX and HP-UX ksh.
34886
34887         Split large sed scripts, for HP-UX sed.
34888         * modules/stdio: Split sed scripts around 50 sed commands,
34889         to avoid HP-UX limit of 99 commands, in the near future.
34890         * modules/string: Likewise.
34891         * modules/unistd: Likewise.
34892
34893         gnulib-tool: avoid writing in the current directory.
34894         * gnulib-tool (func_emit_lib_Makefile_am)
34895         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34896         not in the current directory, so concurrent gnulib-tool
34897         instances do not interfere.
34898
34899 2010-01-16  Jim Meyering  <meyering@redhat.com>
34900
34901         doc: update users.txt
34902         * users.txt: Add grep.
34903         (diffutils, gzip): Update URLs.
34904
34905 2010-01-12  Bruno Haible  <bruno@clisp.org>
34906
34907         posix_spawn: Avoid test failure on Cygwin.
34908         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34909         characters.
34910         Reported by Simon Josefsson.
34911
34912 2010-01-12  Bruno Haible  <bruno@clisp.org>
34913
34914         * tests/test-cond.c (main): When skipping the test, show the reason.
34915
34916 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34917
34918         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34919
34920 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34921
34922         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34923         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34924
34925 2010-01-12  Eric Blake  <ebb9@byu.net>
34926
34927         build: guarantee AS_VAR_IF
34928         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34929         (gl_AS_VAR_IF): Move...
34930         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34931         Reported by Simon Josefsson.
34932
34933 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34934
34935         * lib/stdio.in.h: Fix typo.
34936
34937 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34938
34939         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34940         libgpg-error.
34941
34942 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34943
34944         * tests/test-xalloc-die.sh: Use $EXEEXT.
34945
34946 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34947             Bruno Haible  <bruno@clisp.org>
34948
34949         getlogin, getlogin_r: Avoid test failure.
34950         * tests/test-getlogin.c: Include <stdio.h>.
34951         (main): Skip the test when the function fails because stdin is not a
34952         tty.
34953         * tests/test-getlogin_r.c: Include <stdio.h>.
34954         (main): Skip the test when the function fails because stdin is not a
34955         tty.
34956
34957 2010-01-11  Eric Blake  <ebb9@byu.net>
34958
34959         tests: avoid more large file warnings
34960         * tests/test-fflush.c: Avoid warning about ftell use.
34961         * tests/test-fseek.c: Avoid warning about fseek use.
34962
34963 2010-01-10  Bruno Haible  <bruno@clisp.org>
34964
34965         nproc: Work better on Linux when /proc and /sys are not mounted.
34966         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34967         as lower bound when, on glibc/Linux systems,
34968         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34969         Suggested by Pádraig Brady <P@draigbrady.com>.
34970         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34971
34972         nproc: Refactor.
34973         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34974         extracted from num_processors.
34975         (num_processors): Call it.
34976
34977 2010-01-11  Jim Meyering  <meyering@redhat.com>
34978
34979         utimecmp: avoid new warning from upcoming gcc-4.5.0
34980         * lib/utimecmp.c (BILLION): Define using #define rather than an
34981         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34982
34983 2010-01-11  Eric Blake  <ebb9@byu.net>
34984
34985         math: add portability warnings for classification macros
34986         * modules/math (Depends-on): Add warn-on-use.
34987         (Makefile.am): Provide new substitutions.
34988         * m4/math_h.m4 (gl_MATH_H): Require inline.
34989         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34990         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34991         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34992         implement warnings.
34993
34994         unistd: warn on use of environ without module
34995         * modules/unistd (Depends-on): Add warn-on-use.
34996         (Makefile.am): Provide new substitutions.
34997         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34998         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34999
35000         stdio: warn on suspicious uses
35001         * modules/stdio (Depends-on): Add warn-on-use.
35002         (Makefile.am): Provide new substitutions.
35003         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35004         fseeko.
35005         * lib/stdio.in.h (gets): Always warn on use.
35006         (fseek, ftell): Adjust when warnings are issued, and honor
35007         _GL_NO_LARGE_FILES as a way to silence the warning.
35008         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35009         any warning about large file offsets.
35010         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35011         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35012         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35013         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35014         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35015         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35016         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35017         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35018
35019         warn-on-use: new module
35020         * modules/warn-on-use: New file.
35021         * build-aux/warn-on-use.h: Likewise.
35022         * m4/warn-on-use.m4: Likewise.
35023         * MODULES.html.sh (Support for building): Mention it.
35024
35025 2010-01-10  Bruno Haible  <bruno@clisp.org>
35026
35027         Tests for module 'unistr/u32-strdup'.
35028         * modules/unistr/u32-strdup-tests: New file.
35029         * tests/unistr/test-u32-strdup.c: New file.
35030
35031         Tests for module 'unistr/u16-strdup'.
35032         * modules/unistr/u16-strdup-tests: New file.
35033         * tests/unistr/test-u16-strdup.c: New file.
35034
35035         Tests for module 'unistr/u8-strdup'.
35036         * modules/unistr/u8-strdup-tests: New file.
35037         * tests/unistr/test-u8-strdup.c: New file.
35038         * tests/unistr/test-strdup.h: New file.
35039
35040         Tests for module 'unistr/u32-strncmp'.
35041         * modules/unistr/u32-strncmp-tests: New file.
35042         * tests/unistr/test-u32-strncmp.c: New file.
35043
35044         Tests for module 'unistr/u16-strncmp'.
35045         * modules/unistr/u16-strncmp-tests: New file.
35046         * tests/unistr/test-u16-strncmp.c: New file.
35047
35048         Tests for module 'unistr/u8-strncmp'.
35049         * modules/unistr/u8-strncmp-tests: New file.
35050         * tests/unistr/test-u8-strncmp.c: New file.
35051         * tests/unistr/test-strncmp.h: New file.
35052
35053         Tests for module 'unistr/u32-strcoll'.
35054         * modules/unistr/u32-strcoll-tests: New file.
35055         * tests/unistr/test-u32-strcoll.c: New file.
35056
35057         Tests for module 'unistr/u16-strcoll'.
35058         * modules/unistr/u16-strcoll-tests: New file.
35059         * tests/unistr/test-u16-strcoll.c: New file.
35060
35061         Tests for module 'unistr/u8-strcoll'.
35062         * modules/unistr/u8-strcoll-tests: New file.
35063         * tests/unistr/test-u8-strcoll.c: New file.
35064
35065         Tests for module 'unistr/u32-strcmp'.
35066         * modules/unistr/u32-strcmp-tests: New file.
35067         * tests/unistr/test-u32-strcmp.c: New file.
35068         * tests/unistr/test-u32-strcmp.h: New file.
35069
35070         Tests for module 'unistr/u16-strcmp'.
35071         * modules/unistr/u16-strcmp-tests: New file.
35072         * tests/unistr/test-u16-strcmp.c: New file.
35073         * tests/unistr/test-u16-strcmp.h: New file.
35074
35075         Tests for module 'unistr/u8-strcmp'.
35076         * modules/unistr/u8-strcmp-tests: New file.
35077         * tests/unistr/test-u8-strcmp.c: New file.
35078         * tests/unistr/test-u8-strcmp.h: New file.
35079         * tests/unistr/test-strcmp.h: New file.
35080
35081         Tests for module 'unistr/u32-strncat'.
35082         * modules/unistr/u32-strncat-tests: New file.
35083         * tests/unistr/test-u32-strncat.c: New file.
35084
35085         Tests for module 'unistr/u16-strncat'.
35086         * modules/unistr/u16-strncat-tests: New file.
35087         * tests/unistr/test-u16-strncat.c: New file.
35088
35089         Tests for module 'unistr/u8-strncat'.
35090         * modules/unistr/u8-strncat-tests: New file.
35091         * tests/unistr/test-u8-strncat.c: New file.
35092         * tests/unistr/test-strncat.h: New file.
35093
35094         Tests for module 'unistr/u32-strcat'.
35095         * modules/unistr/u32-strcat-tests: New file.
35096         * tests/unistr/test-u32-strcat.c: New file.
35097
35098         Tests for module 'unistr/u16-strcat'.
35099         * modules/unistr/u16-strcat-tests: New file.
35100         * tests/unistr/test-u16-strcat.c: New file.
35101
35102         Tests for module 'unistr/u8-strcat'.
35103         * modules/unistr/u8-strcat-tests: New file.
35104         * tests/unistr/test-u8-strcat.c: New file.
35105         * tests/unistr/test-strcat.h: New file.
35106
35107         Tests for module 'unistr/u32-stpncpy'.
35108         * modules/unistr/u32-stpncpy-tests: New file.
35109         * tests/unistr/test-u32-stpncpy.c: New file.
35110
35111         Tests for module 'unistr/u16-stpncpy'.
35112         * modules/unistr/u16-stpncpy-tests: New file.
35113         * tests/unistr/test-u16-stpncpy.c: New file.
35114
35115         Tests for module 'unistr/u8-stpncpy'.
35116         * modules/unistr/u8-stpncpy-tests: New file.
35117         * tests/unistr/test-u8-stpncpy.c: New file.
35118         * tests/unistr/test-stpncpy.h: New file.
35119
35120         Tests for module 'unistr/u32-strncpy'.
35121         * modules/unistr/u32-strncpy-tests: New file.
35122         * tests/unistr/test-u32-strncpy.c: New file.
35123
35124         Tests for module 'unistr/u16-strncpy'.
35125         * modules/unistr/u16-strncpy-tests: New file.
35126         * tests/unistr/test-u16-strncpy.c: New file.
35127
35128         Tests for module 'unistr/u8-strncpy'.
35129         * modules/unistr/u8-strncpy-tests: New file.
35130         * tests/unistr/test-u8-strncpy.c: New file.
35131         * tests/unistr/test-strncpy.h: New file.
35132
35133         Tests for module 'unistr/u32-stpcpy'.
35134         * modules/unistr/u32-stpcpy-tests: New file.
35135         * tests/unistr/test-u32-stpcpy.c: New file.
35136
35137         Tests for module 'unistr/u16-stpcpy'.
35138         * modules/unistr/u16-stpcpy-tests: New file.
35139         * tests/unistr/test-u16-stpcpy.c: New file.
35140
35141         Tests for module 'unistr/u8-stpcpy'.
35142         * modules/unistr/u8-stpcpy-tests: New file.
35143         * tests/unistr/test-u8-stpcpy.c: New file.
35144         * tests/unistr/test-stpcpy.h: New file.
35145
35146         Tests for module 'unistr/u32-strcpy'.
35147         * modules/unistr/u32-strcpy-tests: New file.
35148         * tests/unistr/test-u32-strcpy.c: New file.
35149
35150         Tests for module 'unistr/u16-strcpy'.
35151         * modules/unistr/u16-strcpy-tests: New file.
35152         * tests/unistr/test-u16-strcpy.c: New file.
35153
35154         Tests for module 'unistr/u8-strcpy'.
35155         * modules/unistr/u8-strcpy-tests: New file.
35156         * tests/unistr/test-u8-strcpy.c: New file.
35157         * tests/unistr/test-strcpy.h: New file.
35158
35159         Tests for module 'unistr/u32-strnlen'.
35160         * modules/unistr/u32-strnlen-tests: New file.
35161         * tests/unistr/test-u32-strnlen.c: New file.
35162
35163         Tests for module 'unistr/u16-strnlen'.
35164         * modules/unistr/u16-strnlen-tests: New file.
35165         * tests/unistr/test-u16-strnlen.c: New file.
35166
35167         Tests for module 'unistr/u8-strnlen'.
35168         * modules/unistr/u8-strnlen-tests: New file.
35169         * tests/unistr/test-u8-strnlen.c: New file.
35170         * tests/unistr/test-strnlen.h: New file.
35171
35172         Tests for module 'unistr/u32-strlen'.
35173         * modules/unistr/u32-strlen-tests: New file.
35174         * tests/unistr/test-u32-strlen.c: New file.
35175
35176         Tests for module 'unistr/u16-strlen'.
35177         * modules/unistr/u16-strlen-tests: New file.
35178         * tests/unistr/test-u16-strlen.c: New file.
35179
35180         Tests for module 'unistr/u8-strlen'.
35181         * modules/unistr/u8-strlen-tests: New file.
35182         * tests/unistr/test-u8-strlen.c: New file.
35183
35184         Tests for module 'unistr/u32-prev'.
35185         * modules/unistr/u32-prev-tests: New file.
35186         * tests/unistr/test-u32-prev.c: New file.
35187
35188         Tests for module 'unistr/u16-prev'.
35189         * modules/unistr/u16-prev-tests: New file.
35190         * tests/unistr/test-u16-prev.c: New file.
35191
35192         Tests for module 'unistr/u8-prev'.
35193         * modules/unistr/u8-prev-tests: New file.
35194         * tests/unistr/test-u8-prev.c: New file.
35195
35196         Tests for module 'unistr/u32-next'.
35197         * modules/unistr/u32-next-tests: New file.
35198         * tests/unistr/test-u32-next.c: New file.
35199
35200         Tests for module 'unistr/u16-next'.
35201         * modules/unistr/u16-next-tests: New file.
35202         * tests/unistr/test-u16-next.c: New file.
35203
35204         Tests for module 'unistr/u8-next'.
35205         * modules/unistr/u8-next-tests: New file.
35206         * tests/unistr/test-u8-next.c: New file.
35207
35208         Tests for module 'unistr/u32-strmbtouc'.
35209         * modules/unistr/u32-strmbtouc-tests: New file.
35210         * tests/unistr/test-u32-strmbtouc.c: New file.
35211
35212         Tests for module 'unistr/u16-strmbtouc'.
35213         * modules/unistr/u16-strmbtouc-tests: New file.
35214         * tests/unistr/test-u16-strmbtouc.c: New file.
35215
35216         Tests for module 'unistr/u8-strmbtouc'.
35217         * modules/unistr/u8-strmbtouc-tests: New file.
35218         * tests/unistr/test-u8-strmbtouc.c: New file.
35219
35220         Tests for module 'unistr/u32-strmblen'.
35221         * modules/unistr/u32-strmblen-tests: New file.
35222         * tests/unistr/test-u32-strmblen.c: New file.
35223
35224         Tests for module 'unistr/u16-strmblen'.
35225         * modules/unistr/u16-strmblen-tests: New file.
35226         * tests/unistr/test-u16-strmblen.c: New file.
35227
35228         Tests for module 'unistr/u8-strmblen'.
35229         * modules/unistr/u8-strmblen-tests: New file.
35230         * tests/unistr/test-u8-strmblen.c: New file.
35231
35232         Tests for module 'unistr/u32-cpy-alloc'.
35233         * modules/unistr/u32-cpy-alloc-tests: New file.
35234         * tests/unistr/test-u32-cpy-alloc.c: New file.
35235
35236         Tests for module 'unistr/u16-cpy-alloc'.
35237         * modules/unistr/u16-cpy-alloc-tests: New file.
35238         * tests/unistr/test-u16-cpy-alloc.c: New file.
35239
35240         Tests for module 'unistr/u8-cpy-alloc'.
35241         * modules/unistr/u8-cpy-alloc-tests: New file.
35242         * tests/unistr/test-u8-cpy-alloc.c: New file.
35243         * tests/unistr/test-cpy-alloc.h: New file.
35244
35245         Tests for module 'unistr/u32-mbsnlen'.
35246         * modules/unistr/u32-mbsnlen-tests: New file.
35247         * tests/unistr/test-u32-mbsnlen.c: New file.
35248
35249         Tests for module 'unistr/u16-mbsnlen'.
35250         * modules/unistr/u16-mbsnlen-tests: New file.
35251         * tests/unistr/test-u16-mbsnlen.c: New file.
35252
35253         Tests for module 'unistr/u8-mbsnlen'.
35254         * modules/unistr/u8-mbsnlen-tests: New file.
35255         * tests/unistr/test-u8-mbsnlen.c: New file.
35256
35257         Tests for module 'unistr/u32-chr'.
35258         * modules/unistr/u32-chr-tests: New file.
35259         * tests/unistr/test-u32-chr.c: New file.
35260
35261         Tests for module 'unistr/u16-chr'.
35262         * modules/unistr/u16-chr-tests: New file.
35263         * tests/unistr/test-u16-chr.c: New file.
35264
35265         Tests for module 'unistr/u8-chr'.
35266         * modules/unistr/u8-chr-tests: New file.
35267         * tests/unistr/test-u8-chr.c: New file.
35268         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35269
35270         Tests for module 'unistr/u32-cmp2'.
35271         * modules/unistr/u32-cmp2-tests: New file.
35272         * tests/unistr/test-u32-cmp2.c: New file.
35273
35274         Tests for module 'unistr/u16-cmp2'.
35275         * modules/unistr/u16-cmp2-tests: New file.
35276         * tests/unistr/test-u16-cmp2.c: New file.
35277
35278         Tests for module 'unistr/u8-cmp2'.
35279         * modules/unistr/u8-cmp2-tests: New file.
35280         * tests/unistr/test-u8-cmp2.c: New file.
35281         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35282
35283         Tests for module 'unistr/u32-cmp'.
35284         * modules/unistr/u32-cmp-tests: New file.
35285         * tests/unistr/test-u32-cmp.c: New file.
35286
35287         Tests for module 'unistr/u16-cmp'.
35288         * modules/unistr/u16-cmp-tests: New file.
35289         * tests/unistr/test-u16-cmp.c: New file.
35290
35291         Tests for module 'unistr/u8-cmp'.
35292         * modules/unistr/u8-cmp-tests: New file.
35293         * tests/unistr/test-u8-cmp.c: New file.
35294         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35295
35296         Tests for module 'unistr/u32-set'.
35297         * modules/unistr/u32-set-tests: New file.
35298         * tests/unistr/test-u32-set.c: New file.
35299
35300         Tests for module 'unistr/u16-set'.
35301         * modules/unistr/u16-set-tests: New file.
35302         * tests/unistr/test-u16-set.c: New file.
35303
35304         Tests for module 'unistr/u8-set'.
35305         * modules/unistr/u8-set-tests: New file.
35306         * tests/unistr/test-u8-set.c: New file.
35307         * tests/unistr/test-set.h: New file.
35308
35309         Tests for module 'unistr/u32-move'.
35310         * modules/unistr/u32-move-tests: New file.
35311         * tests/unistr/test-u32-move.c: New file.
35312
35313         Tests for module 'unistr/u16-move'.
35314         * modules/unistr/u16-move-tests: New file.
35315         * tests/unistr/test-u16-move.c: New file.
35316
35317         Tests for module 'unistr/u8-move'.
35318         * modules/unistr/u8-move-tests: New file.
35319         * tests/unistr/test-u8-move.c: New file.
35320         * tests/unistr/test-move.h: New file.
35321
35322         Tests for module 'unistr/u32-cpy'.
35323         * modules/unistr/u32-cpy-tests: New file.
35324         * tests/unistr/test-u32-cpy.c: New file.
35325
35326         Tests for module 'unistr/u16-cpy'.
35327         * modules/unistr/u16-cpy-tests: New file.
35328         * tests/unistr/test-u16-cpy.c: New file.
35329
35330         Tests for module 'unistr/u8-cpy'.
35331         * modules/unistr/u8-cpy-tests: New file.
35332         * tests/unistr/test-u8-cpy.c: New file.
35333         * tests/unistr/test-cpy.h: New file.
35334
35335 2010-01-09  Bruno Haible  <bruno@clisp.org>
35336
35337         Tests for module 'unistr/u32-uctomb'.
35338         * modules/unistr/u32-uctomb-tests: New file.
35339         * tests/unistr/test-u32-uctomb.c: New file.
35340
35341         Tests for module 'unistr/u16-uctomb'.
35342         * modules/unistr/u16-uctomb-tests: New file.
35343         * tests/unistr/test-u16-uctomb.c: New file.
35344
35345         Tests for module 'unistr/u8-uctomb'.
35346         * modules/unistr/u8-uctomb-tests: New file.
35347         * tests/unistr/test-u8-uctomb.c: New file.
35348
35349         Tests for module 'unistr/u32-mbtoucr'.
35350         * modules/unistr/u32-mbtoucr-tests: New file.
35351         * tests/unistr/test-u32-mbtoucr.c: New file.
35352
35353         Tests for module 'unistr/u16-mbtoucr'.
35354         * modules/unistr/u16-mbtoucr-tests: New file.
35355         * tests/unistr/test-u16-mbtoucr.c: New file.
35356
35357         Tests for module 'unistr/u8-mbtoucr'.
35358         * modules/unistr/u8-mbtoucr-tests: New file.
35359         * tests/unistr/test-u8-mbtoucr.c: New file.
35360
35361         Tests for module 'unistr/u32-mbtouc'.
35362         * modules/unistr/u32-mbtouc-tests: New file.
35363         * tests/unistr/test-u32-mbtouc.c: New file.
35364
35365         Tests for module 'unistr/u16-mbtouc'.
35366         * modules/unistr/u16-mbtouc-tests: New file.
35367         * tests/unistr/test-u16-mbtouc.c: New file.
35368
35369         Tests for module 'unistr/u8-mbtouc'.
35370         * modules/unistr/u8-mbtouc-tests: New file.
35371         * tests/unistr/test-u8-mbtouc.c: New file.
35372
35373         Tests for module 'unistr/u32-mbtouc-unsafe'.
35374         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35375         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35376         * tests/unistr/test-u32-mbtouc.h: New file.
35377
35378         Tests for module 'unistr/u16-mbtouc-unsafe'.
35379         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35380         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35381         * tests/unistr/test-u16-mbtouc.h: New file.
35382
35383         Tests for module 'unistr/u8-mbtouc-unsafe'.
35384         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35385         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35386         * tests/unistr/test-u8-mbtouc.h: New file.
35387
35388         Tests for module 'unistr/u32-mblen'.
35389         * modules/unistr/u32-mblen-tests: New file.
35390         * tests/unistr/test-u32-mblen.c: New file.
35391
35392         Tests for module 'unistr/u16-mblen'.
35393         * modules/unistr/u16-mblen-tests: New file.
35394         * tests/unistr/test-u16-mblen.c: New file.
35395
35396         Tests for module 'unistr/u8-mblen'.
35397         * modules/unistr/u8-mblen-tests: New file.
35398         * tests/unistr/test-u8-mblen.c: New file.
35399
35400         Tests for module 'unistr/u32-to-u16'.
35401         * modules/unistr/u32-to-u16-tests: New file.
35402         * tests/unistr/test-u32-to-u16.c: New file.
35403
35404         Tests for module 'unistr/u32-to-u8'.
35405         * modules/unistr/u32-to-u8-tests: New file.
35406         * tests/unistr/test-u32-to-u8.c: New file.
35407
35408         Tests for module 'unistr/u16-to-u32'.
35409         * modules/unistr/u16-to-u32-tests: New file.
35410         * tests/unistr/test-u16-to-u32.c: New file.
35411
35412         Tests for module 'unistr/u16-to-u8'.
35413         * modules/unistr/u16-to-u8-tests: New file.
35414         * tests/unistr/test-u16-to-u8.c: New file.
35415
35416         Tests for module 'unistr/u8-to-u32'.
35417         * modules/unistr/u8-to-u32-tests: New file.
35418         * tests/unistr/test-u8-to-u32.c: New file.
35419
35420         Tests for module 'unistr/u8-to-u16'.
35421         * modules/unistr/u8-to-u16-tests: New file.
35422         * tests/unistr/test-u8-to-u16.c: New file.
35423
35424         Tests for module 'unistr/u32-check'.
35425         * modules/unistr/u32-check-tests: New file.
35426         * tests/unistr/test-u32-check.c: New file.
35427
35428         Tests for module 'unistr/u16-check'.
35429         * modules/unistr/u16-check-tests: New file.
35430         * tests/unistr/test-u16-check.c: New file.
35431
35432         Tests for module 'unistr/u8-check'.
35433         * modules/unistr/u8-check-tests: New file.
35434         * tests/unistr/test-u8-check.c: New file.
35435
35436         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35437         (category_equals): New function.
35438         (main): Add more tests.
35439         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35440
35441         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35442
35443 2010-01-10  Bruno Haible  <bruno@clisp.org>
35444
35445         unistr/u*-strcoll: Try harder to distinguish different strings.
35446         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35447         compare s1 and s2 to see if they are different.
35448
35449 2010-01-10  Bruno Haible  <bruno@clisp.org>
35450
35451         unistr/u*-stpncpy: Fix the return value.
35452         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35453         description of the return value consistent with stpncpy in glibc.
35454         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35455         written non-NUL unit.
35456
35457 2010-01-10  Bruno Haible  <bruno@clisp.org>
35458
35459         unistr/u*-next: Add missing dependencies.
35460         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35461         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35462         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35463
35464 2010-01-10  Bruno Haible  <bruno@clisp.org>
35465
35466         unistr/u8-mbsnlen: Fix return value for incomplete character.
35467         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35468         u8_mblen.
35469         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35470         Remove unistr/u8-mblen.
35471         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35472         u16_mblen.
35473         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35474         Remove unistr/u16-mblen.
35475
35476 2010-01-10  Bruno Haible  <bruno@clisp.org>
35477
35478         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35479         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35480         Reported by Brian Gough <bjg@gnu.org> and
35481         Chris Clayton <chris2553@googlemail.com> via
35482         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35483
35484 2010-01-09  Bruno Haible  <bruno@clisp.org>
35485
35486         unistr/u16-to-u32: Reject invalid input.
35487         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35488         u16_mbtouc.
35489         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35490         Remove unistr/u16-mbtouc.
35491
35492         unistr/u16-to-u8: Reject invalid input.
35493         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35494         u16_mbtouc.
35495         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35496         Remove unistr/u16-mbtouc.
35497
35498         unistr/u8-to-u32: Reject invalid input.
35499         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35500         u8_mbtouc.
35501         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35502         Remove unistr/u8-mbtouc.
35503
35504         unistr/u8-to-u16: Reject invalid input.
35505         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35506         u8_mbtouc.
35507         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35508         Remove unistr/u8-mbtouc.
35509
35510 2010-01-09  Bruno Haible  <bruno@clisp.org>
35511
35512         Tests for module 'getlogin'.
35513         * modules/getlogin-tests: New file.
35514         * tests/test-getlogin.c: New file.
35515
35516         New module 'getlogin'.
35517         * lib/unistd.in.h (getlogin): New declaration.
35518         * lib/getlogin.c: New file.
35519         * m4/getlogin.m4: New file.
35520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35521         HAVE_GETLOGIN.
35522         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35523         HAVE_GETLOGIN.
35524         * modules/getlogin: New file.
35525         * doc/posix-functions/getlogin.texi: Mention the new module.
35526         Reported by John W. Eaton <jwe@gnu.org>.
35527
35528 2010-01-09  Bruno Haible  <bruno@clisp.org>
35529
35530         getlogin_r: Support for native Windows.
35531         * lib/getlogin_r.c: Include <windows.h>
35532         (getlogin_r): Implement for native Windows.
35533         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35534         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35535         via John W. Eaton <jwe@gnu.org>.
35536
35537 2010-01-09  Bruno Haible  <bruno@clisp.org>
35538
35539         getlogin_r: Small fixes.
35540         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35541         succeeds.
35542         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35543         before testing whether getlogin_r is declared. No need to set
35544         HAVE_DECL_GETLOGIN_R to 1.
35545         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35546
35547 2010-01-09  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/unistd.in.h (getlogin_r): Add comment.
35550
35551 2010-01-09  Bruno Haible  <bruno@clisp.org>
35552
35553         Tests for module 'getlogin_r'.
35554         * modules/getlogin_r-tests: New file.
35555         * tests/test-getlogin_r.c: New file.
35556
35557 2010-01-09  Jim Meyering  <meyering@redhat.com>
35558
35559         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35560         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35561         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35562
35563 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35564
35565         * lib/dup2.c (rpl_dup2): Improve comment.
35566
35567 2010-01-08  Eric Blake  <ebb9@byu.net>
35568
35569         maint.mk: allow packages to add makefile @@ exceptions
35570         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35571         (sc_makefile_check): Rename...
35572         (sc_makefile_at_at_check): ...to this, and use hook.
35573
35574         dup2: work around mingw bug
35575         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35576         Reported by Simon Josefsson.
35577
35578 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35579
35580         glob: Fix C++ compilation.
35581         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35582         C++.
35583
35584 2010-01-07  Bruno Haible  <bruno@clisp.org>
35585
35586         Fix indentation of wctype.in.h, broken since 2007-01-06.
35587         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35588
35589 2010-01-07  Bruno Haible  <bruno@clisp.org>
35590
35591         mbslen: Avoid collision with system function.
35592         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35593         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35594         * m4/mbslen.m4: New file.
35595         * modules/mbslen (Files): Add it.
35596         (configure.ac): Invoke gl_MBSLEN.
35597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35598         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35599         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35600         via Ian Beckwith <ianb@erislabs.net>.
35601
35602 2010-01-07  Bruno Haible  <bruno@clisp.org>
35603
35604         dirent: Document the last fix.
35605         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35606
35607 2010-01-07  Bruno Haible  <bruno@clisp.org>
35608
35609         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35610         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35611         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35612         va_list are defined.
35613         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35614         Reported by Eric Blake.
35615
35616 2010-01-07  Bruno Haible  <bruno@clisp.org>
35617
35618         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35619         * modules/xlist (Depends-on): Add 'list',
35620         * modules/xoset (Depends-on): Add 'oset'.
35621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35622
35623 2010-01-07  Bruno Haible  <bruno@clisp.org>
35624
35625         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35626         * doc/posix-functions/strncasecmp.texi: Likewise.
35627
35628 2010-01-07  Bruno Haible  <bruno@clisp.org>
35629
35630         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35631
35632 2010-01-07  John W. Eaton  <jwe@octave.org>
35633
35634         wctype: allow C++ use
35635         * lib/wctype.in.h: Add extern "C" block for C++.
35636
35637 2010-01-06  Eric Blake  <ebb9@byu.net>
35638
35639         maint.mk: detect incorrect GFDL usage
35640         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35641
35642 2010-01-06  Jim Meyering  <meyering@redhat.com>
35643         and Eric Blake  <ebb9@byu.net>
35644
35645         maint.mk: ignore multi-line copyright in NEWS
35646         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35647
35648 2010-01-06  Eric Blake  <ebb9@byu.net>
35649
35650         select: add missing dependency
35651         * modules/select-tests (Depends-on): Move sockets dependency...
35652         * modules/select (Depends-on): ...here.
35653         Reported by Ian Beckwith.
35654
35655         doc: regenerate INSTALL
35656         * doc/INSTALL: Reflect recent autoconf update.
35657         * doc/INSTALL.ISO: Likewise.
35658         * doc/INSTALL.UTF-8: Likewise.
35659
35660         pread: fix compilation on glibc
35661         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35662         Reported by Ralf Wildenhues.
35663
35664         dirent: fix test failure
35665         * lib/dirent.in.h (includes): Guarantee ino_t.
35666         Reported by Ralf Wildenhues.
35667
35668 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35669
35670         linkat, renameat: avoid bad free
35671         * lib/at-func2.c (at_func2): Fix typo.
35672         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35673
35674 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35675
35676         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35677         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35678         to avoid failure of symlink test later.
35679
35680 2010-01-06  Eric Blake  <ebb9@byu.net>
35681
35682         stdio, unistd: guarantee ssize_t
35683         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35684         2008 are exposed when needed.
35685         * lib/stdio.in.h (includes): Likewise.
35686         Reported by Ralf Wildenhues.
35687
35688 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35689
35690         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35691         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35692         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35693
35694 2010-01-06  Jim Meyering  <meyering@redhat.com>
35695
35696         readtokens: this module *does* require xalloc.h
35697         It uses only functions that were omitted by the old syntax-check rule.
35698         * lib/readtokens.c: Include "xalloc.h" once again.
35699         * modules/readtokens (Depends-on): Add xalloc.
35700         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35701
35702 2010-01-05  Eric Blake  <ebb9@byu.net>
35703
35704         maint: support 'make announcement' from a VPATH build
35705         * top/maint.mk (announcement): Look for correct NEWS file.
35706
35707 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35708
35709         utimens (fdutimens): ignore a negative FD, per contract
35710         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35711         when we have a valid file descriptor.  Otherwise, using a brand
35712         new glibc (with just-patched futimens that now fails with EBADF)
35713         would cause this function to fail with ENOSYS.
35714         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35715         See also http://bugzilla.redhat.com/552320.
35716
35717 2010-01-05  Eric Blake  <ebb9@byu.net>
35718
35719         strcase: document what it provides
35720         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35721         gnulib module.
35722         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35723         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35724
35725 2010-01-05  Jim Meyering  <meyering@redhat.com>
35726
35727         maint: remove useless inclusions of "xalloc.h"
35728         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35729         * lib/readtokens.c: Likewise.
35730         * lib/same.c: Likewise.
35731         * modules/getloadavg (Depends-on): Remove xalloc.
35732         * modules/readtokens: Likewise.
35733         * modules/same: Likewise.
35734
35735         maint.mk: include 4 more function names in alloca.h-checking regexp
35736         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35737         regexp.  Before, we would give a false-positive (saying alloca.h
35738         is included unnecessarily) when the only uses involved omitted symbols.
35739
35740         xalloc.h: use consistent formatting
35741         * lib/xalloc.h: Move declarations to start in the first column.
35742
35743 2010-01-05  Eric Blake  <ebb9@byu.net>
35744
35745         mkdir: avoid xalloc
35746         * lib/mkdir.c (includes): Drop unused header.
35747         Reported by John W. Eaton.
35748
35749 2010-01-04  Jim Meyering  <meyering@redhat.com>
35750
35751         nl_langinfo: avoid configure-time syntax error
35752         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35753         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35754         the empty string.  Don't let that provoke a shell syntax error.
35755
35756         regcomp, regexec, fnmatch: avoid array bounds read error
35757         * lib/regcomp.c (build_equiv_class): From glibc:
35758         Use only the low 24 bits of a findidx return value as an index
35759         into the weights array.  Patch by Ulrich Drepper:
35760         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35761         * lib/regexec.c (check_node_accept_bytes): Likewise.
35762         * lib/fnmatch_loop.c (FCT): Likewise.
35763
35764         regcomp: skip collseq lookup when there are no rules
35765         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35766         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35767
35768         regcomp: recognize ill-formed { } expressions
35769         * lib/regcomp.c (parse_dup_op): From glibc:
35770         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35771
35772         regcomp: fix typo in comment
35773         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35774         s/satisfy/satisfies/.
35775
35776         regcomp: sync from glibc: remove dead store
35777         * lib/regcomp.c (duplicate_node_closure): Remove useless
35778         search_duplicated_node call and dead store.
35779
35780         regcomp: sync from glibc; always use nl_langinfo
35781         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35782         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35783         * modules/regex (Depends-on): Add nl_langinfo.
35784
35785 2010-01-04  Eric Blake  <ebb9@byu.net>
35786
35787         fdopendir: fix configure test
35788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35789
35790 2010-01-01  Bruno Haible  <bruno@clisp.org>
35791
35792         wchar: Remove unused configure check.
35793         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35794
35795 2010-01-01  Eric Blake  <ebb9@byu.net>
35796
35797         headers: make check of system header explicit
35798         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35799         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35800         ourselves.
35801         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35803         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35804         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35805         internals.
35806         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35807         missing.
35808         Suggested by Bruno Haible.
35809
35810 2010-01-01  Jim Meyering  <meyering@redhat.com>
35811
35812         ChangeLog: tweak to eliminate unnecessary copyright line
35813         * ChangeLog: Remove a copyright line that was mistakenly updated
35814         by today's update-copyright run.  Reported by Eric Blake.
35815
35816         test-update-copyright: don't let envvar setting cause test failure
35817         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35818
35819 2010-01-01  Bruno Haible  <bruno@clisp.org>
35820
35821         localename: Avoid gcc warning.
35822         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35823         function if it is not used.
35824
35825 2010-01-01  Jim Meyering  <meyering@redhat.com>
35826
35827         update nearly all FSF copyright year lists to include 2010
35828         Use the same procedure as for 2009, outlined in
35829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35830
35831         version-etc: set COPYRIGHT_YEAR to 2010
35832         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35833
35834 2009-12-31  Eric Blake  <ebb9@byu.net>
35835
35836         doc: correct availability of cygwin 1.5.x getopt
35837         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35838         variables.
35839         * doc/posix-functions/opterr.texi (opterr): Likewise.
35840         * doc/posix-functions/optind.texi (optind): Likewise.
35841         * doc/posix-functions/optopt.texi (optopt): Likewise.
35842         * doc/posix-functions/tzname.texi (tzname): Likewise.
35843
35844         openat: update maintainer
35845         * modules/openat (Maintainer): Add myself.
35846
35847         utimens: avoid shadowing warning
35848         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35849         buffers into one, to avoid shadowing, as well as avoiding a
35850         redundant stat.
35851         Reported by Jim Meyering.
35852
35853         test-dup2: avoid compiler warning
35854         * tests/test-dup2.c (is_inheritable): Only define if used.
35855
35856 2010-01-01  Bruno Haible  <bruno@clisp.org>
35857
35858         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35859         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35860         defined, use wctomb instead of wcrtomb.
35861
35862 2010-01-01  Bruno Haible  <bruno@clisp.org>
35863
35864         iconv: Reject native Solaris iconv.
35865         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35866         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35867
35868 2009-12-31  Bruno Haible  <bruno@clisp.org>
35869
35870         * tests/test-signal.c (main): Remove test of 'SIG'.
35871
35872 2009-12-31  Bruno Haible  <bruno@clisp.org>
35873
35874         spawn: Fix incomplete fix.
35875         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35876         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35877         warnings for GNULIB_POSIXCHECK again.
35878         Reported by Eric Blake.
35879
35880 2009-12-31  Bruno Haible  <bruno@clisp.org>
35881
35882         Avoid namespace pollution on glibc systems.
35883         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35884         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35885         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35886         glibc systems.
35887
35888 2009-12-31  Bruno Haible  <bruno@clisp.org>
35889
35890         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35891         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35892         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35893         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35894         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35895         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35896         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35897
35898 2009-12-31  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35901         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35902         afterwards.
35903
35904 2009-12-31  Bruno Haible  <bruno@clisp.org>
35905
35906         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35907         SYS_UTSNAME_H.
35908
35909 2009-12-31  Bruno Haible  <bruno@clisp.org>
35910
35911         spawn: Fix misapplied patch.
35912         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35913         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35914         warnings for GNULIB_POSIXCHECK.
35915
35916 2009-12-31  Bruno Haible  <bruno@clisp.org>
35917
35918         times: Update after sys_times changed.
35919         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35920         * modules/times (Files): Add it.
35921         (configure.ac): Invoke gl_FUNC_TIMES.
35922
35923 2009-12-31  Bruno Haible  <bruno@clisp.org>
35924
35925         Use AC_C_INLINE where necessary.
35926         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35927         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35928         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35929         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35930         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35931         * m4/mbiter.m4 (gl_MBITER): Likewise.
35932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35933         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35934         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35935         * modules/u64 (configure.ac): Likewise.
35936
35937 2009-12-31  Bruno Haible  <bruno@clisp.org>
35938
35939         Use AC_C_INLINE instead of module 'inline' where possible.
35940         * modules/inline (Description): Clarify purpose.
35941         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35942         * modules/count-one-bits (Depends-on): Remove inline.
35943         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35944         * modules/openat (Depends-on): Remove inline.
35945         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35946         instead of depending on module 'inline'.
35947         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35948         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35949         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35950         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35951         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35952         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35953         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35954         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35955         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35956         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35957         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35958         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35959         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35960         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35961         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35962         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35963         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35964         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35965         Likewise.
35966         * modules/unictype/property-ascii-hex-digit (Depends-on,
35967         configure.ac): Likewise.
35968         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35969         configure.ac): Likewise.
35970         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35971         configure.ac): Likewise.
35972         * modules/unictype/property-bidi-block-separator (Depends-on,
35973         configure.ac): Likewise.
35974         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35975         configure.ac): Likewise.
35976         * modules/unictype/property-bidi-common-separator (Depends-on,
35977         configure.ac): Likewise.
35978         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35979         Likewise.
35980         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35981         configure.ac): Likewise.
35982         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35983         configure.ac): Likewise.
35984         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35985         configure.ac): Likewise.
35986         * modules/unictype/property-bidi-european-digit (Depends-on,
35987         configure.ac): Likewise.
35988         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35989         configure.ac): Likewise.
35990         * modules/unictype/property-bidi-left-to-right (Depends-on,
35991         configure.ac): Likewise.
35992         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35993         configure.ac): Likewise.
35994         * modules/unictype/property-bidi-other-neutral (Depends-on,
35995         configure.ac): Likewise.
35996         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35997         Likewise.
35998         * modules/unictype/property-bidi-segment-separator (Depends-on,
35999         configure.ac): Likewise.
36000         * modules/unictype/property-bidi-whitespace (Depends-on,
36001         configure.ac): Likewise.
36002         * modules/unictype/property-combining (Depends-on, configure.ac):
36003         Likewise.
36004         * modules/unictype/property-composite (Depends-on, configure.ac):
36005         Likewise.
36006         * modules/unictype/property-currency-symbol (Depends-on,
36007         configure.ac): Likewise.
36008         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36009         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36010         Likewise.
36011         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36012         configure.ac): Likewise.
36013         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36014         Likewise.
36015         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36016         Likewise.
36017         * modules/unictype/property-extender (Depends-on, configure.ac):
36018         Likewise.
36019         * modules/unictype/property-format-control (Depends-on, configure.ac):
36020         Likewise.
36021         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36022         Likewise.
36023         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36024         Likewise.
36025         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36026         Likewise.
36027         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36028         Likewise.
36029         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36030         Likewise.
36031         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36032         Likewise.
36033         * modules/unictype/property-id-start (Depends-on, configure.ac):
36034         Likewise.
36035         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36036         Likewise.
36037         * modules/unictype/property-ids-binary-operator (Depends-on,
36038         configure.ac): Likewise.
36039         * modules/unictype/property-ids-trinary-operator (Depends-on,
36040         configure.ac): Likewise.
36041         * modules/unictype/property-ignorable-control (Depends-on,
36042         configure.ac): Likewise.
36043         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36044         Likewise.
36045         * modules/unictype/property-join-control (Depends-on, configure.ac):
36046         Likewise.
36047         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36048         Likewise.
36049         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36050         Likewise.
36051         * modules/unictype/property-logical-order-exception (Depends-on,
36052         configure.ac): Likewise.
36053         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36054         Likewise.
36055         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36056         * modules/unictype/property-non-break (Depends-on, configure.ac):
36057         Likewise.
36058         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36059         Likewise.
36060         * modules/unictype/property-numeric (Depends-on, configure.ac):
36061         Likewise.
36062         * modules/unictype/property-other-alphabetic (Depends-on,
36063         configure.ac): Likewise.
36064         * modules/unictype/property-other-default-ignorable-code-point
36065         (Depends-on, configure.ac): Likewise.
36066         * modules/unictype/property-other-grapheme-extend (Depends-on,
36067         configure.ac): Likewise.
36068         * modules/unictype/property-other-id-continue (Depends-on,
36069         configure.ac): Likewise.
36070         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36071         Likewise.
36072         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36073         Likewise.
36074         * modules/unictype/property-other-math (Depends-on, configure.ac):
36075         Likewise.
36076         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36077         Likewise.
36078         * modules/unictype/property-paired-punctuation (Depends-on,
36079         configure.ac): Likewise.
36080         * modules/unictype/property-paragraph-separator (Depends-on,
36081         configure.ac): Likewise.
36082         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36083         Likewise.
36084         * modules/unictype/property-pattern-white-space (Depends-on,
36085         configure.ac): Likewise.
36086         * modules/unictype/property-private-use (Depends-on, configure.ac):
36087         Likewise.
36088         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36089         Likewise.
36090         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36091         Likewise.
36092         * modules/unictype/property-radical (Depends-on, configure.ac):
36093         Likewise.
36094         * modules/unictype/property-sentence-terminal (Depends-on,
36095         configure.ac): Likewise.
36096         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36097         Likewise.
36098         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36099         * modules/unictype/property-terminal-punctuation (Depends-on,
36100         configure.ac): Likewise.
36101         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36102         Likewise.
36103         * modules/unictype/property-unassigned-code-value (Depends-on,
36104         configure.ac): Likewise.
36105         * modules/unictype/property-unified-ideograph (Depends-on,
36106         configure.ac): Likewise.
36107         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36108         Likewise.
36109         * modules/unictype/property-variation-selector (Depends-on,
36110         configure.ac): Likewise.
36111         * modules/unictype/property-white-space (Depends-on, configure.ac):
36112         Likewise.
36113         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36114         Likewise.
36115         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36116         Likewise.
36117         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36118         Likewise.
36119         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36120         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36121         Likewise.
36122
36123 2009-12-31  Bruno Haible  <bruno@clisp.org>
36124
36125         Remove unnecessary AC_C_INLINE invocation.
36126         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36127         since 2009-08-21.
36128
36129 2009-12-31  Jim Meyering  <meyering@redhat.com>
36130
36131         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36132         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36133         With this change, we can all remove the gpg_key_ID = ... definition
36134         from our respective cfg.mk files.
36135
36136         maint.mk: create announcement template in ~/, not in /tmp
36137         * top/maint.mk (emit_upload_commands): Adjust.
36138         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36139         Remove temporary file, .ci-msg.
36140
36141 2009-12-31  Eric Blake  <ebb9@byu.net>
36142
36143         link-warning: always build headers with link warnings
36144         * modules/arpa_inet (Makefile.am): Always build replacement
36145         header.
36146         * modules/ctype (Makefile.am): Likewise.
36147         * modules/dirent (Makefile.am): Likewise.
36148         * modules/inttypes (Makefile.am): Likewise.
36149         * modules/langinfo (Makefile.am): Likewise.
36150         * modules/locale (Makefile.am): Likewise.
36151         * modules/spawn (Makefile.am): Likewise.
36152         * modules/sys_file (Makefile.am): Likewise.
36153         * modules/sys_ioctl (Makefile.am): Likewise.
36154         * modules/sys_select (Makefile.am): Likewise.
36155         * modules/sys_socket (Makefile.am): Likewise.
36156         * modules/sys_times (Makefile.am): Likewise.
36157         * modules/sys_utsname (Makefile.am): Likewise.
36158         * modules/sys_wait (Makefile.am): Likewise.
36159         * modules/wchar (Makefile.am): Likewise.
36160         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36161         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36162         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36163         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36164         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36165         Likewise.
36166         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36167         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36168         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36169         Likewise.
36170         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36171         Likewise.
36172         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36173         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36174         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36176         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36177         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36178         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36179         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36180         (gl_WCHAR_H_DEFAULTS): Likewise.
36181
36182 2009-12-31  Eric Blake  <ebb9@byu.net>
36183
36184         signal, spawn: use link warnings
36185         * lib/signal.in.h (sigset_t): Make unconditional.
36186         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36187         (sigpending, sigprocmask, sigaction): Add link warnings.
36188         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36189         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36190         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36191         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36192         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36193         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36194         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36195         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36196         (posix_spawn_file_actions_destroy)
36197         (posix_spawn_file_actions_addopen)
36198         (posix_spawn_file_actions_addclose)
36199         (posix_spawn_file_actions_adddup2): Likewise.
36200         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36201         * tests/test-signal.c (main): Enhance test.
36202
36203         spawn: improve wrapper support
36204         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36205         (gl_SPAWN_H_DEFAULTS): New defaults.
36206         * modules/spawn (Makefile.am): Substitute them.
36207         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36208         Only declare if missing or broken.
36209
36210         sys_times, sys_utsname: use include_next
36211         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36212         header.
36213         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36214         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36215         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36216         * modules/sys_times (Depends-on): Add include_next.
36217         (Makefile.am): Substitute additional values.
36218         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36219         * lib/sys_times.in.h (includes): Include native header, if
36220         available.
36221         * lib/sys_utsname.in.h (includes): Likewise.
36222         * tests/test-sys_times.c (main): Enhance test.
36223
36224         fdutimensat: revert prior patch
36225         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36226         utimens.h.
36227         Reported by Bruno Haible.
36228
36229 2009-12-30  Eric Blake  <ebb9@byu.net>
36230
36231         sys_wait: drop link-warning dependency
36232         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36233         link-warning efforts.
36234         * lib/sys_wait.in.h: Likewise.
36235
36236         fdutimensat: remove bogus dependency
36237         * modules/fdutimensat (Depends-on): Drop inline.
36238
36239         unistd: fix typo
36240         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36241
36242 2009-12-30  Bruno Haible  <bruno@clisp.org>
36243
36244         Fix compilation error with Solaris cc.
36245         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36246         * lib/unicase/u16-is-invariant.c: Likewise.
36247         * lib/unicase/u32-is-invariant.c: Likewise.
36248         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36249
36250 2009-12-30  Bruno Haible  <bruno@clisp.org>
36251
36252         Fix test crash.
36253         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36254         locales.
36255         Reported by Simon Josefsson <simon@josefsson.org>.
36256
36257 2009-12-30  Bruno Haible  <bruno@clisp.org>
36258
36259         Fix compilation error on most platforms.
36260         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36261         Reported by Simon Josefsson <simon@josefsson.org>
36262         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36263
36264 2009-12-30  Eric Blake  <ebb9@byu.net>
36265
36266         futimens, utimensat: work around ntfs-3g bug
36267         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36268         a ctime bug is present, and expand workaround to cover ntfs-3g.
36269         * lib/utimens.c (fdutimens, lutimens): Likewise.
36270         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36271         (validate_timespec): Adjust return value.
36272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36273         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36274         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36275
36276 2009-12-29  Eric Blake  <ebb9@byu.net>
36277
36278         link-warning: make usage consistent
36279         * modules/ctype (Depends-on): Add link-warning.
36280         (Makefile.am): Update rules accordingly.
36281         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36282         * modules/locale (Depends-on, Makefile.am): Likewise.
36283         * modules/sys_file (Makefile.am): Likewise.
36284         * modules/getopt-posix (Makefile.am): Delete unused link warning
36285         efforts.
36286         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36287         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36288         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36289         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36290
36291         stdio: remove unused variables
36292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36293         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36294         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36295
36296         tests: test more substitute headers
36297         * modules/ctype-tests: New file.
36298         * modules/dirent-tests: Likewise.
36299         * modules/spawn-tests: Likewise.
36300         * modules/sys_file-tests: Likewise.
36301         * modules/sys_ioctl-tests: Likewise.
36302         * modules/sys_wait-tests: Likewise.
36303         * tests/test-ctype.c: Likewise.
36304         * tests/test-dirent.c: Likewise.
36305         * tests/test-spawn.c: Likewise.
36306         * tests/test-sys_file.c: Likewise.
36307         * tests/test-sys_ioctl.c: Likewise.
36308         * tests/test-sys_wait.c: Likewise.
36309         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36310         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36311         whether or not flock is in use.
36312
36313         tests: remove License section from module
36314         * modules/arpa_inet-tests: Remove unneeded section.
36315         * modules/byteswap-tests: Likewise.
36316         * modules/ceilf-tests: Likewise.
36317         * modules/ceill-tests: Likewise.
36318         * modules/crypto/des-tests: Likewise.
36319         * modules/crypto/gc-arcfour-tests: Likewise.
36320         * modules/crypto/gc-arctwo-tests: Likewise.
36321         * modules/crypto/gc-des-tests: Likewise.
36322         * modules/crypto/gc-hmac-md5-tests: Likewise.
36323         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36324         * modules/crypto/gc-md2-tests: Likewise.
36325         * modules/crypto/gc-md4-tests: Likewise.
36326         * modules/crypto/gc-md5-tests: Likewise.
36327         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36328         * modules/crypto/gc-rijndael-tests: Likewise.
36329         * modules/crypto/gc-sha1-tests: Likewise.
36330         * modules/crypto/gc-tests: Likewise.
36331         * modules/crypto/md2-tests: Likewise.
36332         * modules/crypto/md4-tests: Likewise.
36333         * modules/fcntl-h-tests: Likewise.
36334         * modules/floorf-tests: Likewise.
36335         * modules/floorl-tests: Likewise.
36336         * modules/frexp-nolibm-tests: Likewise.
36337         * modules/frexp-tests: Likewise.
36338         * modules/frexpl-nolibm-tests: Likewise.
36339         * modules/frexpl-tests: Likewise.
36340         * modules/getaddrinfo-tests: Likewise.
36341         * modules/inttypes-tests: Likewise.
36342         * modules/isfinite-tests: Likewise.
36343         * modules/isinf-tests: Likewise.
36344         * modules/ldexpl-tests: Likewise.
36345         * modules/locale-tests: Likewise.
36346         * modules/math-tests: Likewise.
36347         * modules/netdb-tests: Likewise.
36348         * modules/netinet_in-tests: Likewise.
36349         * modules/printf-frexp-tests: Likewise.
36350         * modules/printf-frexpl-tests: Likewise.
36351         * modules/priv-set-tests: Likewise.
36352         * modules/random_r-tests: Likewise.
36353         * modules/round-tests: Likewise.
36354         * modules/roundf-tests: Likewise.
36355         * modules/roundl-tests: Likewise.
36356         * modules/search-tests: Likewise.
36357         * modules/select-tests: Likewise.
36358         * modules/signal-tests: Likewise.
36359         * modules/stdbool-tests: Likewise.
36360         * modules/stddef-tests: Likewise.
36361         * modules/stdint-tests: Likewise.
36362         * modules/stdio-tests: Likewise.
36363         * modules/stdlib-tests: Likewise.
36364         * modules/string-tests: Likewise.
36365         * modules/strings-tests: Likewise.
36366         * modules/sys_select-tests: Likewise.
36367         * modules/sys_socket-tests: Likewise.
36368         * modules/sys_stat-tests: Likewise.
36369         * modules/sys_time-tests: Likewise.
36370         * modules/sys_utsname-tests: Likewise.
36371         * modules/sysexits-tests: Likewise.
36372         * modules/time-tests: Likewise.
36373         * modules/trunc-tests: Likewise.
36374         * modules/truncf-tests: Likewise.
36375         * modules/truncl-tests: Likewise.
36376         * modules/tsearch-tests: Likewise.
36377         * modules/unistd-tests: Likewise.
36378         * modules/wchar-tests: Likewise.
36379         * modules/wctype-tests: Likewise.
36380
36381         tests: fix license on several tests
36382         * tests/test-des.c: Update to GPLv3+.
36383         * tests/test-flock.c: Likewise.
36384         * tests/test-fsync.c: Likewise.
36385         * tests/test-futimens.h: Likewise.
36386         * tests/test-gc-arcfour.c: Likewise.
36387         * tests/test-gc-arctwo.c: Likewise.
36388         * tests/test-gc-des.c: Likewise.
36389         * tests/test-gc-hmac-md5.c: Likewise.
36390         * tests/test-gc-hmac-sha1.c: Likewise.
36391         * tests/test-gc-md2.c: Likewise.
36392         * tests/test-gc-md4.c: Likewise.
36393         * tests/test-gc-md5.c: Likewise.
36394         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36395         * tests/test-gc-rijndael.c: Likewise.
36396         * tests/test-gc-sha1.c: Likewise.
36397         * tests/test-gc.c: Likewise.
36398         * tests/test-getcwd.c: Likewise.
36399         * tests/test-link.c: Likewise.
36400         * tests/test-link.h: Likewise.
36401         * tests/test-lutimens.h: Likewise.
36402         * tests/test-md2.c: Likewise.
36403         * tests/test-md4.c: Likewise.
36404         * tests/test-mkdir.h: Likewise.
36405         * tests/test-rename.c: Likewise.
36406         * tests/test-rename.h: Likewise.
36407         * tests/test-safe-alloc.c: Likewise.
36408         * tests/test-utimens-common.h: Likewise.
36409         * tests/test-utimens.h: Likewise.
36410
36411         maint: sync license texts
36412         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36413         * doc/gpl-3.0.texi: Revert copyright year update.
36414         * doc/lgpl-3.0.texi: Likewise.
36415
36416 2009-12-29  Jim Meyering  <meyering@redhat.com>
36417
36418         update nearly all FSF copyright year lists to include 2009
36419         The files named by the following are exempted:
36420             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36421               test -f "$dst" && { echo "$dst"; continue; }
36422               test -d "$dst" || continue
36423               echo "$dst"/$(basename "$src")
36424             done > exempt
36425             git ls-files tests/unictype >> exempt
36426         In the remaining files, convert to all-interval notation if
36427         - there is already at least one year interval like 2000-2003
36428         - the file is maintained by me
36429         - the file is in lib/uni*/, where that style already prevails
36430         Otherwise, use update-copyright's default.
36431
36432 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36433         and Eric Blake  <ebb9@byu.net>
36434
36435         tests: don't require debug system() to pass
36436         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36437         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36438         * tests/test-unlink.h (test_unlink_func): Likewise.
36439         * tests/test-fstatat.c (main): ...into callers.
36440         * tests/test-lstat.c (main): Likewise.
36441         * tests/test-rmdir.c (main): Likewise.
36442         * tests/test-unlink.c (main): Likewise.
36443         * tests/test-unlinkat.c (main): Likewise.
36444         * tests/test-areadlink-with-size.c (main): Don't require a
36445         debug-only system call to pass, aiding cross-testing to mingw.
36446         * tests/test-areadlink.c (main): Likewise.
36447         * tests/test-areadlinkat-with-size.c (main): Likewise.
36448         * tests/test-areadlinkat.c (main): Likewise.
36449         * tests/test-canonicalize-lgpl.c (main): Likewise.
36450         * tests/test-canonicalize.c (main): Likewise.
36451         * tests/test-chown.c (main): Likewise.
36452         * tests/test-fchownat.c (main): Likewise.
36453         * tests/test-lchown.c (main): Likewise.
36454         * tests/test-fdutimensat.c (main): Likewise.
36455         * tests/test-futimens.c (main): Likewise.
36456         * tests/test-link.c (main): Likewise.
36457         * tests/test-linkat.c (main): Likewise.
36458         * tests/test-mkdir.c (main): Likewise.
36459         * tests/test-mkdirat.c (main): Likewise.
36460         * tests/test-mkfifo.c (main): Likewise.
36461         * tests/test-mkfifoat.c (main): Likewise.
36462         * tests/test-mknod.c (main): Likewise.
36463         * tests/test-readlink.c (main): Likewise.
36464         * tests/test-remove.c (main): Likewise.
36465         * tests/test-rename.c (main): Likewise.
36466         * tests/test-renameat.c (main): Likewise.
36467         * tests/test-symlink.c (main): Likewise.
36468         * tests/test-symlinkat.c (main): Likewise.
36469         * tests/test-utimens.c (main): Likewise.
36470         * tests/test-utimensat.c (main): Likewise.
36471
36472 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36473
36474         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36475         on $(UNUSED_PARAMETER_H) to avoid build failure.
36476
36477 2009-12-28  Jim Meyering  <meyering@redhat.com>
36478
36479         update-copyright: you may specify a max. line length other than 72
36480         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36481
36482         maint: use consistent FSF copyright line syntax
36483         * lib/posixtm.c: Add missing comma in FSF copyright line.
36484         * lib/posixtm.h: Likewise.
36485         * lib/getugroups.c: Add missing ", Inc.".
36486
36487         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36488         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36489         FSF copyright line.  Remove trailing blanks.
36490
36491 2009-12-28  Eric Blake  <ebb9@byu.net>
36492
36493         test-dup2: reduce dependencies
36494         * modules/cloexec (Configure.ac): Set witness.
36495         * modules/dup2-tests (Depends-on): Drop cloexec.
36496         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36497         not present.
36498         Suggested by Bruno Haible.
36499
36500 2009-12-26  Bruno Haible  <bruno@clisp.org>
36501
36502         Remove an unneeded dependency.
36503         * modules/fseterr (Depends-on): Remove dup2.
36504
36505 2009-12-26  Eric Blake  <ebb9@byu.net>
36506
36507         tests: use macros.h in more places
36508         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36509         (ASSERT_STREAM): Provide default of stderr.
36510         * tests/test-dirent-safer.c: Include macros.h, using alternate
36511         stream for assertions.
36512         * tests/test-dup-safer.c: Likewise.
36513         * tests/test-freopen-safer.c: Likewise.
36514         * tests/test-getopt.c: Likewise.
36515         * tests/test-openat-safer.c: Likewise.
36516         * tests/test-pipe.c: Likewise.
36517         * tests/test-popen-safer.c: Likewise.
36518         * modules/dirent-safer-tests (Files): Include macros.h.
36519         * modules/unistd-safer-tests (Files): Likewise.
36520         * modules/freopen-safer-tests (Files): Likewise.
36521         * modules/getopt-posix-tests (Files): Likewise.
36522         * modules/openat-safer-tests (Files): Likewise.
36523         * modules/pipe-tests (Files): Likewise.
36524
36525 2009-12-26  Bruno Haible  <bruno@clisp.org>
36526
36527         javacomp: Portability fix.
36528         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36529         that it also works on Solaris.
36530
36531 2009-12-26  Bruno Haible  <bruno@clisp.org>
36532
36533         localename: Fix storage allocation of gl_locale_name_thread's result.
36534         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36535         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36536         all platforms that have 'uselocale'.
36537         (gl_locale_name_thread_unsafe): New function, extracted from
36538         gl_locale_name_thread.
36539         (gl_locale_name_thread): Call struniq on all platforms that have
36540         'uselocale'.
36541         * tests/test-localename.c (test_locale_name_thread): Check that the
36542         resulting strings are permanently allocated.
36543         * modules/localename-tests (Depends-on): Add strdup.
36544
36545 2009-12-26  Bruno Haible  <bruno@clisp.org>
36546
36547         * tests/test-localename.c (categories): Fill in the strings.
36548
36549 2009-12-26  Jim Meyering  <meyering@redhat.com>
36550
36551         isdir: complete the removal of m4/isdir.m4
36552         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36553
36554         isdir: clean up, since at least grep still uses it
36555         * lib/isdir.c: Include "isdir.h".
36556         (S_ISDIR): Remove now-unneeded definition.
36557         * modules/isdir (Files): Add lib/isdir.h.
36558         * lib/isdir.h: New file, with declaration.
36559         * m4/isdir.m4: Remove file -- unneeded.
36560
36561 2009-12-25  Bruno Haible  <bruno@clisp.org>
36562
36563         selinux-h: Make generated .h files standalone.
36564         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36565         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36566         * lib/se-selinux.in.h: Likewise.
36567         * modules/selinux-h (Depends-on): Add unused-parameter.
36568         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36569         selinux/selinux.h and selinux/context.h.
36570         Suggested by Eric Blake.
36571
36572 2009-12-25  Bruno Haible  <bruno@clisp.org>
36573
36574         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36575         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36576         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36577         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36578         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36579
36580 2009-12-24  Bruno Haible  <bruno@clisp.org>
36581
36582         openat: Fix warning.
36583         * lib/openat-proc.c: Include <unistd.h>.
36584
36585 2009-12-24  Bruno Haible  <bruno@clisp.org>
36586
36587         New module 'unused-parameter'.
36588         * build-aux/unused-parameter.h: New file, extracted from earlier
36589         gnulib-common.m4.
36590         * modules/unused-parameter: New file.
36591         * lib/unistr.h: Include unused-parameter.h.
36592         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36593         _GL_UNUSED.
36594         * modules/unistr/base (Depends-on): Add unused-parameter.
36595
36596 2009-12-24  Bruno Haible  <bruno@clisp.org>
36597
36598         Add missing dependencies to 'extensions' module.
36599         * m4/extensions.m4: Add comment.
36600         * modules/accept4 (Depends-on): Add extensions.
36601         * modules/dup3 (Depends-on): Likewise.
36602         * modules/fcntl (Depends-on): Likewise.
36603         * modules/futimens (Depends-on): Likewise.
36604         * modules/mknod (Depends-on): Likewise.
36605         * modules/pipe2 (Depends-on): Likewise.
36606         * modules/stat-time (Depends-on): Likewise.
36607         * modules/strcasestr-simple (Depends-on): Likewise.
36608         * modules/strsignal (Depends-on): Likewise.
36609         * modules/utimensat (Depends-on): Likewise.
36610         * modules/localcharset (Depends-on): Likewise. Needed because of
36611         gl_FCNTL_O_FLAGS.
36612         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36613         AC_TYPE_MBSTATE_T.
36614         * modules/wcsnrtombs (Depends-on): Likewise.
36615         * modules/wcsrtombs (Depends-on): Likewise.
36616
36617 2009-12-24  Bruno Haible  <bruno@clisp.org>
36618
36619         binary-io: Avoid gcc warning due to SET_BINARY.
36620         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36621         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36622
36623 2009-12-24  Bruno Haible  <bruno@clisp.org>
36624
36625         Avoid future namespace pollution on glibc systems.
36626         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36627         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36628         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36629         glibc systems.
36630
36631 2009-12-24  Bruno Haible  <bruno@clisp.org>
36632
36633         Refactor common macros used in tests.
36634         * tests/macros.h: New file.
36635         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36636         and/or <stdlib.h>, if appropriate.
36637         (ASSERT, SIZEOF): Remove macros.
36638         * tests/test-areadlink-with-size.c: Likewise.
36639         * tests/test-areadlinkat.c: Likewise.
36640         * tests/test-areadlinkat-with-size.c: Likewise.
36641         * tests/test-argmatch.c: Likewise.
36642         * tests/test-argv-iter.c: Likewise.
36643         * tests/test-array-mergesort.c: Likewise.
36644         * tests/test-array_list.c: Likewise.
36645         * tests/test-array_oset.c: Likewise.
36646         * tests/test-avltree_list.c: Likewise.
36647         * tests/test-avltree_oset.c: Likewise.
36648         * tests/test-avltreehash_list.c: Likewise.
36649         * tests/test-base64.c: Likewise.
36650         * tests/test-binary-io.c: Likewise.
36651         * tests/test-bitrotate.c: Likewise.
36652         * tests/test-btowc.c: Likewise.
36653         * tests/test-byteswap.c: Likewise.
36654         * tests/test-c-ctype.c: Likewise.
36655         * tests/test-c-stack.c: Likewise.
36656         * tests/test-c-strcasecmp.c: Likewise.
36657         * tests/test-c-strcasestr.c: Likewise.
36658         * tests/test-c-strncasecmp.c: Likewise.
36659         * tests/test-c-strstr.c: Likewise.
36660         * tests/test-canonicalize-lgpl.c: Likewise.
36661         * tests/test-canonicalize.c: Likewise.
36662         * tests/test-carray_list.c: Likewise.
36663         * tests/test-ceilf1.c: Likewise.
36664         * tests/test-ceilf2.c: Likewise.
36665         * tests/test-ceill.c: Likewise.
36666         * tests/test-chown.c: Likewise.
36667         * tests/test-cloexec.c: Likewise.
36668         * tests/test-copy-acl.c: Likewise.
36669         * tests/test-copy-file.c: Likewise.
36670         * tests/test-count-one-bits.c: Likewise.
36671         * tests/test-dprintf-posix.c: Likewise.
36672         * tests/test-dup2.c: Likewise.
36673         * tests/test-dup3.c: Likewise.
36674         * tests/test-duplocale.c: Likewise.
36675         * tests/test-fbufmode.c: Likewise.
36676         * tests/test-fchdir.c: Likewise.
36677         * tests/test-fchownat.c: Likewise.
36678         * tests/test-fcntl-safer.c: Likewise.
36679         * tests/test-fcntl.c: Likewise.
36680         * tests/test-fdopendir.c: Likewise.
36681         * tests/test-fdutimensat.c: Likewise.
36682         * tests/test-fflush2.c: Likewise.
36683         * tests/test-file-has-acl.c: Likewise.
36684         * tests/test-filevercmp.c: Likewise.
36685         * tests/test-flock.c: Likewise.
36686         * tests/test-floorf1.c: Likewise.
36687         * tests/test-floorf2.c: Likewise.
36688         * tests/test-floorl.c: Likewise.
36689         * tests/test-fnmatch.c: Likewise.
36690         * tests/test-fopen.h: Likewise.
36691         * tests/test-fpending.c: Likewise.
36692         * tests/test-fprintf-posix.c: Likewise.
36693         * tests/test-fpurge.c: Likewise.
36694         * tests/test-freadable.c: Likewise.
36695         * tests/test-freadahead.c: Likewise.
36696         * tests/test-freading.c: Likewise.
36697         * tests/test-freadptr.c: Likewise.
36698         * tests/test-freadptr2.c: Likewise.
36699         * tests/test-freadseek.c: Likewise.
36700         * tests/test-freopen.c: Likewise.
36701         * tests/test-frexp.c: Likewise.
36702         * tests/test-frexpl.c: Likewise.
36703         * tests/test-fseek.c: Likewise.
36704         * tests/test-fseeko.c: Likewise.
36705         * tests/test-fstatat.c: Likewise.
36706         * tests/test-fstrcmp.c: Likewise.
36707         * tests/test-fsync.c: Likewise.
36708         * tests/test-ftell.c: Likewise.
36709         * tests/test-ftello.c: Likewise.
36710         * tests/test-func.c: Likewise.
36711         * tests/test-futimens.c: Likewise.
36712         * tests/test-fwritable.c: Likewise.
36713         * tests/test-fwriting.c: Likewise.
36714         * tests/test-getcwd.c: Likewise.
36715         * tests/test-getdate.c: Likewise.
36716         * tests/test-getdelim.c: Likewise.
36717         * tests/test-getdtablesize.c: Likewise.
36718         * tests/test-getgroups.c: Likewise.
36719         * tests/test-getline.c: Likewise.
36720         * tests/test-getndelim2.c: Likewise.
36721         * tests/test-glob.c: Likewise.
36722         * tests/test-hash.c: Likewise.
36723         * tests/test-i-ring.c: Likewise.
36724         * tests/test-iconv-utf.c: Likewise.
36725         * tests/test-iconv.c: Likewise.
36726         * tests/test-idpriv-drop.c: Likewise.
36727         * tests/test-idpriv-droptemp.c: Likewise.
36728         * tests/test-inet_ntop.c: Likewise.
36729         * tests/test-inet_pton.c: Likewise.
36730         * tests/test-isblank.c: Likewise.
36731         * tests/test-isfinite.c: Likewise.
36732         * tests/test-isinf.c: Likewise.
36733         * tests/test-isnan.c: Likewise.
36734         * tests/test-isnand.h: Likewise.
36735         * tests/test-isnanf.h: Likewise.
36736         * tests/test-isnanl.h: Likewise.
36737         * tests/test-lchown.c: Likewise.
36738         * tests/test-ldexpl.c: Likewise.
36739         * tests/test-link.c: Likewise.
36740         * tests/test-linkat.c: Likewise.
36741         * tests/test-linked_list.c: Likewise.
36742         * tests/test-linkedhash_list.c: Likewise.
36743         * tests/test-localename.c: Likewise.
36744         * tests/test-lseek.c: Likewise.
36745         * tests/test-lstat.c: Likewise.
36746         * tests/test-mbmemcasecmp.c: Likewise.
36747         * tests/test-mbmemcasecoll.c: Likewise.
36748         * tests/test-mbrtowc.c: Likewise.
36749         * tests/test-mbscasecmp.c: Likewise.
36750         * tests/test-mbscasestr1.c: Likewise.
36751         * tests/test-mbscasestr2.c: Likewise.
36752         * tests/test-mbscasestr3.c: Likewise.
36753         * tests/test-mbscasestr4.c: Likewise.
36754         * tests/test-mbschr.c: Likewise.
36755         * tests/test-mbscspn.c: Likewise.
36756         * tests/test-mbsinit.c: Likewise.
36757         * tests/test-mbsncasecmp.c: Likewise.
36758         * tests/test-mbsnrtowcs.c: Likewise.
36759         * tests/test-mbspbrk.c: Likewise.
36760         * tests/test-mbspcasecmp.c: Likewise.
36761         * tests/test-mbsrchr.c: Likewise.
36762         * tests/test-mbsrtowcs.c: Likewise.
36763         * tests/test-mbsspn.c: Likewise.
36764         * tests/test-mbsstr1.c: Likewise.
36765         * tests/test-mbsstr2.c: Likewise.
36766         * tests/test-mbsstr3.c: Likewise.
36767         * tests/test-memchr.c: Likewise.
36768         * tests/test-memchr2.c: Likewise.
36769         * tests/test-memcmp.c: Likewise.
36770         * tests/test-memmem.c: Likewise.
36771         * tests/test-memrchr.c: Likewise.
36772         * tests/test-mkdir.c: Likewise.
36773         * tests/test-mkdirat.c: Likewise.
36774         * tests/test-mkfifo.c: Likewise.
36775         * tests/test-mkfifoat.c: Likewise.
36776         * tests/test-mknod.c: Likewise.
36777         * tests/test-nanosleep.c: Likewise.
36778         * tests/test-nl_langinfo.c: Likewise.
36779         * tests/test-obstack-printf.c: Likewise.
36780         * tests/test-open.c: Likewise.
36781         * tests/test-openat.c: Likewise.
36782         * tests/test-pipe-filter-gi1.c: Likewise.
36783         * tests/test-pipe-filter-gi2-main.c: Likewise.
36784         * tests/test-pipe-filter-ii1.c: Likewise.
36785         * tests/test-pipe-filter-ii2-main.c: Likewise.
36786         * tests/test-pipe2.c: Likewise.
36787         * tests/test-popen.h: Likewise.
36788         * tests/test-posixtm.c: Likewise.
36789         * tests/test-pread.c: Likewise.
36790         * tests/test-printf-frexp.c: Likewise.
36791         * tests/test-printf-frexpl.c: Likewise.
36792         * tests/test-printf-posix.c: Likewise.
36793         * tests/test-priv-set.c: Likewise.
36794         * tests/test-quotearg.c: Likewise.
36795         * tests/test-random_r.c: Likewise.
36796         * tests/test-rawmemchr.c: Likewise.
36797         * tests/test-rbtree_list.c: Likewise.
36798         * tests/test-rbtree_oset.c: Likewise.
36799         * tests/test-rbtreehash_list.c: Likewise.
36800         * tests/test-readlink.c: Likewise.
36801         * tests/test-remove.c: Likewise.
36802         * tests/test-rename.c: Likewise.
36803         * tests/test-renameat.c: Likewise.
36804         * tests/test-rmdir.c: Likewise.
36805         * tests/test-round1.c: Likewise.
36806         * tests/test-roundf1.c: Likewise.
36807         * tests/test-roundl.c: Likewise.
36808         * tests/test-safe-alloc.c: Likewise.
36809         * tests/test-sameacls.c: Likewise.
36810         * tests/test-set-mode-acl.c: Likewise.
36811         * tests/test-setenv.c: Likewise.
36812         * tests/test-sigaction.c: Likewise.
36813         * tests/test-signbit.c: Likewise.
36814         * tests/test-sleep.c: Likewise.
36815         * tests/test-snprintf-posix.c: Likewise.
36816         * tests/test-snprintf.c: Likewise.
36817         * tests/test-sprintf-posix.c: Likewise.
36818         * tests/test-stat-time.c: Likewise.
36819         * tests/test-stat.c: Likewise.
36820         * tests/test-strcasestr.c: Likewise.
36821         * tests/test-strchrnul.c: Likewise.
36822         * tests/test-strerror.c: Likewise.
36823         * tests/test-striconv.c: Likewise.
36824         * tests/test-striconveh.c: Likewise.
36825         * tests/test-striconveha.c: Likewise.
36826         * tests/test-strsignal.c: Likewise.
36827         * tests/test-strstr.c: Likewise.
36828         * tests/test-strtod.c: Likewise.
36829         * tests/test-strverscmp.c: Likewise.
36830         * tests/test-symlink.c: Likewise.
36831         * tests/test-symlinkat.c: Likewise.
36832         * tests/test-trunc1.c: Likewise.
36833         * tests/test-trunc2.c: Likewise.
36834         * tests/test-truncf1.c: Likewise.
36835         * tests/test-truncf2.c: Likewise.
36836         * tests/test-truncl.c: Likewise.
36837         * tests/test-uname.c: Likewise.
36838         * tests/test-unlink.c: Likewise.
36839         * tests/test-unlinkat.c: Likewise.
36840         * tests/test-unsetenv.c: Likewise.
36841         * tests/test-usleep.c: Likewise.
36842         * tests/test-utimens.c: Likewise.
36843         * tests/test-utimensat.c: Likewise.
36844         * tests/test-vasnprintf-posix.c: Likewise.
36845         * tests/test-vasnprintf-posix2.c: Likewise.
36846         * tests/test-vasnprintf.c: Likewise.
36847         * tests/test-vasprintf-posix.c: Likewise.
36848         * tests/test-vasprintf.c: Likewise.
36849         * tests/test-vdprintf-posix.c: Likewise.
36850         * tests/test-vfprintf-posix.c: Likewise.
36851         * tests/test-vprintf-posix.c: Likewise.
36852         * tests/test-vsnprintf-posix.c: Likewise.
36853         * tests/test-vsnprintf.c: Likewise.
36854         * tests/test-vsprintf-posix.c: Likewise.
36855         * tests/test-wcrtomb.c: Likewise.
36856         * tests/test-wcsnrtombs.c: Likewise.
36857         * tests/test-wcsrtombs.c: Likewise.
36858         * tests/test-wctype.c: Likewise.
36859         * tests/test-wcwidth.c: Likewise.
36860         * tests/test-xfprintf-posix.c: Likewise.
36861         * tests/test-xmemdup0.c: Likewise.
36862         * tests/test-xprintf-posix.c: Likewise.
36863         * tests/test-xvasprintf.c: Likewise.
36864         * tests/unicase/test-locale-language.c: Likewise.
36865         * tests/unicase/test-mapping-part1.h: Likewise.
36866         * tests/unicase/test-predicate-part1.h: Likewise.
36867         * tests/unicase/test-u8-casecmp.c: Likewise.
36868         * tests/unicase/test-u8-casecoll.c: Likewise.
36869         * tests/unicase/test-u8-casefold.c: Likewise.
36870         * tests/unicase/test-u8-is-cased.c: Likewise.
36871         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36872         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36873         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36874         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36875         * tests/unicase/test-u8-tolower.c: Likewise.
36876         * tests/unicase/test-u8-totitle.c: Likewise.
36877         * tests/unicase/test-u8-toupper.c: Likewise.
36878         * tests/unicase/test-u16-casecmp.c: Likewise.
36879         * tests/unicase/test-u16-casecoll.c: Likewise.
36880         * tests/unicase/test-u16-casefold.c: Likewise.
36881         * tests/unicase/test-u16-is-cased.c: Likewise.
36882         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36883         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36884         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36885         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36886         * tests/unicase/test-u16-tolower.c: Likewise.
36887         * tests/unicase/test-u16-totitle.c: Likewise.
36888         * tests/unicase/test-u16-toupper.c: Likewise.
36889         * tests/unicase/test-u32-casecmp.c: Likewise.
36890         * tests/unicase/test-u32-casecoll.c: Likewise.
36891         * tests/unicase/test-u32-casefold.c: Likewise.
36892         * tests/unicase/test-u32-is-cased.c: Likewise.
36893         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36894         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36895         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36896         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36897         * tests/unicase/test-u32-tolower.c: Likewise.
36898         * tests/unicase/test-u32-totitle.c: Likewise.
36899         * tests/unicase/test-u32-toupper.c: Likewise.
36900         * tests/unicase/test-ulc-casecmp.c: Likewise.
36901         * tests/unicase/test-ulc-casecoll.c: Likewise.
36902         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36903         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36904         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36905         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36906         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36907         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36908         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36909         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36910         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36911         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36912         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36913         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36914         * tests/unictype/test-bidi_byname.c: Likewise.
36915         * tests/unictype/test-bidi_name.c: Likewise.
36916         * tests/unictype/test-bidi_of.c: Likewise.
36917         * tests/unictype/test-bidi_test.c: Likewise.
36918         * tests/unictype/test-block_list.c: Likewise.
36919         * tests/unictype/test-block_of.c: Likewise.
36920         * tests/unictype/test-block_test.c: Likewise.
36921         * tests/unictype/test-categ_and.c: Likewise.
36922         * tests/unictype/test-categ_and_not.c: Likewise.
36923         * tests/unictype/test-categ_byname.c: Likewise.
36924         * tests/unictype/test-categ_name.c: Likewise.
36925         * tests/unictype/test-categ_none.c: Likewise.
36926         * tests/unictype/test-categ_of.c: Likewise.
36927         * tests/unictype/test-categ_or.c: Likewise.
36928         * tests/unictype/test-categ_test_withtable.c: Likewise.
36929         * tests/unictype/test-combining.c: Likewise.
36930         * tests/unictype/test-decdigit.c: Likewise.
36931         * tests/unictype/test-digit.c: Likewise.
36932         * tests/unictype/test-mirror.c: Likewise.
36933         * tests/unictype/test-numeric.c: Likewise.
36934         * tests/unictype/test-pr_byname.c: Likewise.
36935         * tests/unictype/test-pr_test.c: Likewise.
36936         * tests/unictype/test-predicate-part1.h: Likewise.
36937         * tests/unictype/test-scripts.c: Likewise.
36938         * tests/unictype/test-sy_c_ident.c: Likewise.
36939         * tests/unictype/test-sy_java_ident.c: Likewise.
36940         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36941         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36942         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36943         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36944         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36945         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36946         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36947         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36948         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36949         * tests/uninorm/test-compat-decomposition.c: Likewise.
36950         * tests/uninorm/test-composition.c: Likewise.
36951         * tests/uninorm/test-decomposing-form.c: Likewise.
36952         * tests/uninorm/test-decomposition.c: Likewise.
36953         * tests/uninorm/test-u8-nfc.c: Likewise.
36954         * tests/uninorm/test-u8-nfd.c: Likewise.
36955         * tests/uninorm/test-u8-nfkc.c: Likewise.
36956         * tests/uninorm/test-u8-nfkd.c: Likewise.
36957         * tests/uninorm/test-u8-normcmp.c: Likewise.
36958         * tests/uninorm/test-u8-normcoll.c: Likewise.
36959         * tests/uninorm/test-u16-nfc.c: Likewise.
36960         * tests/uninorm/test-u16-nfd.c: Likewise.
36961         * tests/uninorm/test-u16-nfkc.c: Likewise.
36962         * tests/uninorm/test-u16-nfkd.c: Likewise.
36963         * tests/uninorm/test-u16-normcmp.c: Likewise.
36964         * tests/uninorm/test-u16-normcoll.c: Likewise.
36965         * tests/uninorm/test-u32-nfc.c: Likewise.
36966         * tests/uninorm/test-u32-nfd.c: Likewise.
36967         * tests/uninorm/test-u32-nfkc.c: Likewise.
36968         * tests/uninorm/test-u32-nfkd.c: Likewise.
36969         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36970         * tests/uninorm/test-u32-normcmp.c: Likewise.
36971         * tests/uninorm/test-u32-normcoll.c: Likewise.
36972         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36973         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36974         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36975         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36976         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36977         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36978         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36979         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36980         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36981         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36982         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36983         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36984         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36985         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36986         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36987         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36988         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36989         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36990         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36991         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36992         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36993         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36994         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36995         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36996         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36997         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36998         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36999         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37000         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37001         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37002         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37003         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37004         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37005         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37006         * tests/uniwidth/test-u8-width.c: Likewise.
37007         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37008         * tests/uniwidth/test-u16-width.c: Likewise.
37009         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37010         * tests/uniwidth/test-u32-width.c: Likewise.
37011         * tests/uniwidth/test-uc_width.c: Likewise.
37012         * tests/uniwidth/test-uc_width2.c: Likewise.
37013         * modules/acl-tests (Files): Add tests/macros.h.
37014         * modules/areadlink-tests (Files): Likewise.
37015         * modules/areadlink-with-size-tests (Files): Likewise.
37016         * modules/areadlinkat-tests (Files): Likewise.
37017         * modules/areadlinkat-with-size-tests (Files): Likewise.
37018         * modules/argmatch-tests (Files): Likewise.
37019         * modules/argv-iter-tests (Files): Likewise.
37020         * modules/array-list-tests (Files): Likewise.
37021         * modules/array-mergesort-tests (Files): Likewise.
37022         * modules/array-oset-tests (Files): Likewise.
37023         * modules/avltree-list-tests (Files): Likewise.
37024         * modules/avltree-oset-tests (Files): Likewise.
37025         * modules/avltreehash-list-tests (Files): Likewise.
37026         * modules/base64-tests (Files): Likewise.
37027         * modules/binary-io-tests (Files): Likewise.
37028         * modules/bitrotate-tests (Files): Likewise.
37029         * modules/btowc-tests (Files): Likewise.
37030         * modules/byteswap-tests (Files): Likewise.
37031         * modules/c-ctype-tests (Files): Likewise.
37032         * modules/c-stack-tests (Files): Likewise.
37033         * modules/c-strcase-tests (Files): Likewise.
37034         * modules/c-strcasestr-tests (Files): Likewise.
37035         * modules/c-strstr-tests (Files): Likewise.
37036         * modules/canonicalize-lgpl-tests (Files): Likewise.
37037         * modules/canonicalize-tests (Files): Likewise.
37038         * modules/carray-list-tests (Files): Likewise.
37039         * modules/ceilf-tests (Files): Likewise.
37040         * modules/ceill-tests (Files): Likewise.
37041         * modules/chown-tests (Files): Likewise.
37042         * modules/cloexec-tests (Files): Likewise.
37043         * modules/copy-file-tests (Files): Likewise.
37044         * modules/count-one-bits-tests (Files): Likewise.
37045         * modules/dprintf-posix-tests (Files): Likewise.
37046         * modules/dup2-tests (Files): Likewise.
37047         * modules/dup3-tests (Files): Likewise.
37048         * modules/duplocale-tests (Files): Likewise.
37049         * modules/fbufmode-tests (Files): Likewise.
37050         * modules/fchdir-tests (Files): Likewise.
37051         * modules/fcntl-safer-tests (Files): Likewise.
37052         * modules/fcntl-tests (Files): Likewise.
37053         * modules/fdopendir-tests (Files): Likewise.
37054         * modules/fdutimensat-tests (Files): Likewise.
37055         * modules/fflush-tests (Files): Likewise.
37056         * modules/filevercmp-tests (Files): Likewise.
37057         * modules/flock-tests (Files): Likewise.
37058         * modules/floorf-tests (Files): Likewise.
37059         * modules/floorl-tests (Files): Likewise.
37060         * modules/fnmatch-tests (Files): Likewise.
37061         * modules/fopen-safer-tests (Files): Likewise.
37062         * modules/fopen-tests (Files): Likewise.
37063         * modules/fpending-tests (Files): Likewise.
37064         * modules/fprintf-posix-tests (Files): Likewise.
37065         * modules/fpurge-tests (Files): Likewise.
37066         * modules/freadable-tests (Files): Likewise.
37067         * modules/freadahead-tests (Files): Likewise.
37068         * modules/freading-tests (Files): Likewise.
37069         * modules/freadptr-tests (Files): Likewise.
37070         * modules/freadseek-tests (Files): Likewise.
37071         * modules/freopen-tests (Files): Likewise.
37072         * modules/frexp-nolibm-tests (Files): Likewise.
37073         * modules/frexp-tests (Files): Likewise.
37074         * modules/frexpl-nolibm-tests (Files): Likewise.
37075         * modules/frexpl-tests (Files): Likewise.
37076         * modules/fseek-tests (Files): Likewise.
37077         * modules/fseeko-tests (Files): Likewise.
37078         * modules/fstrcmp-tests (Files): Likewise.
37079         * modules/fsync-tests (Files): Likewise.
37080         * modules/ftell-tests (Files): Likewise.
37081         * modules/ftello-tests (Files): Likewise.
37082         * modules/func-tests (Files): Likewise.
37083         * modules/futimens-tests (Files): Likewise.
37084         * modules/fwritable-tests (Files): Likewise.
37085         * modules/fwriting-tests (Files): Likewise.
37086         * modules/getcwd-tests (Files): Likewise.
37087         * modules/getdate-tests (Files): Likewise.
37088         * modules/getdelim-tests (Files): Likewise.
37089         * modules/getdtablesize-tests (Files): Likewise.
37090         * modules/getgroups-tests (Files): Likewise.
37091         * modules/getline-tests (Files): Likewise.
37092         * modules/getndelim2-tests (Files): Likewise.
37093         * modules/glob-tests (Files): Likewise.
37094         * modules/hash-tests (Files): Likewise.
37095         * modules/i-ring-tests (Files): Likewise.
37096         * modules/iconv-tests (Files): Likewise.
37097         * modules/iconv_open-utf-tests (Files): Likewise.
37098         * modules/idpriv-drop-tests (Files): Likewise.
37099         * modules/idpriv-droptemp-tests (Files): Likewise.
37100         * modules/inet_ntop-tests (Files): Likewise.
37101         * modules/inet_pton-tests (Files): Likewise.
37102         * modules/isblank-tests (Files): Likewise.
37103         * modules/isfinite-tests (Files): Likewise.
37104         * modules/isinf-tests (Files): Likewise.
37105         * modules/isnan-tests (Files): Likewise.
37106         * modules/isnand-nolibm-tests (Files): Likewise.
37107         * modules/isnand-tests (Files): Likewise.
37108         * modules/isnanf-nolibm-tests (Files): Likewise.
37109         * modules/isnanf-tests (Files): Likewise.
37110         * modules/isnanl-nolibm-tests (Files): Likewise.
37111         * modules/isnanl-tests (Files): Likewise.
37112         * modules/lchown-tests (Files): Likewise.
37113         * modules/ldexpl-tests (Files): Likewise.
37114         * modules/link-tests (Files): Likewise.
37115         * modules/linkat-tests (Files): Likewise.
37116         * modules/linked-list-tests (Files): Likewise.
37117         * modules/linkedhash-list-tests (Files): Likewise.
37118         * modules/localename-tests (Files): Likewise.
37119         * modules/lseek-tests (Files): Likewise.
37120         * modules/lstat-tests (Files): Likewise.
37121         * modules/mbmemcasecmp-tests (Files): Likewise.
37122         * modules/mbmemcasecoll-tests (Files): Likewise.
37123         * modules/mbrtowc-tests (Files): Likewise.
37124         * modules/mbscasecmp-tests (Files): Likewise.
37125         * modules/mbscasestr-tests (Files): Likewise.
37126         * modules/mbschr-tests (Files): Likewise.
37127         * modules/mbscspn-tests (Files): Likewise.
37128         * modules/mbsinit-tests (Files): Likewise.
37129         * modules/mbsncasecmp-tests (Files): Likewise.
37130         * modules/mbsnrtowcs-tests (Files): Likewise.
37131         * modules/mbspbrk-tests (Files): Likewise.
37132         * modules/mbspcasecmp-tests (Files): Likewise.
37133         * modules/mbsrchr-tests (Files): Likewise.
37134         * modules/mbsrtowcs-tests (Files): Likewise.
37135         * modules/mbsspn-tests (Files): Likewise.
37136         * modules/mbsstr-tests (Files): Likewise.
37137         * modules/memchr-tests (Files): Likewise.
37138         * modules/memchr2-tests (Files): Likewise.
37139         * modules/memcmp-tests (Files): Likewise.
37140         * modules/memmem-tests (Files): Likewise.
37141         * modules/memrchr-tests (Files): Likewise.
37142         * modules/mkdir-tests (Files): Likewise.
37143         * modules/mkfifo-tests (Files): Likewise.
37144         * modules/mkfifoat-tests (Files): Likewise.
37145         * modules/mknod-tests (Files): Likewise.
37146         * modules/nanosleep-tests (Files): Likewise.
37147         * modules/nl_langinfo-tests (Files): Likewise.
37148         * modules/obstack-printf-tests (Files): Likewise.
37149         * modules/open-tests (Files): Likewise.
37150         * modules/openat-tests (Files): Likewise.
37151         * modules/pipe-filter-gi-tests (Files): Likewise.
37152         * modules/pipe-filter-ii-tests (Files): Likewise.
37153         * modules/pipe2-tests (Files): Likewise.
37154         * modules/popen-safer-tests (Files): Likewise.
37155         * modules/popen-tests (Files): Likewise.
37156         * modules/posixtm-tests (Files): Likewise.
37157         * modules/pread-tests (Files): Likewise.
37158         * modules/printf-frexp-tests (Files): Likewise.
37159         * modules/printf-frexpl-tests (Files): Likewise.
37160         * modules/printf-posix-tests (Files): Likewise.
37161         * modules/priv-set-tests (Files): Likewise.
37162         * modules/quotearg-tests (Files): Likewise.
37163         * modules/random_r-tests (Files): Likewise.
37164         * modules/rawmemchr-tests (Files): Likewise.
37165         * modules/rbtree-list-tests (Files): Likewise.
37166         * modules/rbtree-oset-tests (Files): Likewise.
37167         * modules/rbtreehash-list-tests (Files): Likewise.
37168         * modules/readlink-tests (Files): Likewise.
37169         * modules/remove-tests (Files): Likewise.
37170         * modules/rename-tests (Files): Likewise.
37171         * modules/renameat-tests (Files): Likewise.
37172         * modules/rmdir-tests (Files): Likewise.
37173         * modules/round-tests (Files): Likewise.
37174         * modules/roundf-tests (Files): Likewise.
37175         * modules/roundl-tests (Files): Likewise.
37176         * modules/safe-alloc-tests (Files): Likewise.
37177         * modules/setenv-tests (Files): Likewise.
37178         * modules/sigaction-tests (Files): Likewise.
37179         * modules/signbit-tests (Files): Likewise.
37180         * modules/sleep-tests (Files): Likewise.
37181         * modules/snprintf-posix-tests (Files): Likewise.
37182         * modules/snprintf-tests (Files): Likewise.
37183         * modules/sprintf-posix-tests (Files): Likewise.
37184         * modules/stat-tests (Files): Likewise.
37185         * modules/stat-time-tests (Files): Likewise.
37186         * modules/strcasestr-tests (Files): Likewise.
37187         * modules/strchrnul-tests (Files): Likewise.
37188         * modules/strerror-tests (Files): Likewise.
37189         * modules/striconv-tests (Files): Likewise.
37190         * modules/striconveh-tests (Files): Likewise.
37191         * modules/striconveha-tests (Files): Likewise.
37192         * modules/strsignal-tests (Files): Likewise.
37193         * modules/strstr-tests (Files): Likewise.
37194         * modules/strtod-tests (Files): Likewise.
37195         * modules/strverscmp-tests (Files): Likewise.
37196         * modules/symlink-tests (Files): Likewise.
37197         * modules/symlinkat-tests (Files): Likewise.
37198         * modules/trunc-tests (Files): Likewise.
37199         * modules/truncf-tests (Files): Likewise.
37200         * modules/truncl-tests (Files): Likewise.
37201         * modules/uname-tests (Files): Likewise.
37202         * modules/unicase/cased-tests (Files): Likewise.
37203         * modules/unicase/ignorable-tests (Files): Likewise.
37204         * modules/unicase/locale-language-tests (Files): Likewise.
37205         * modules/unicase/tolower-tests (Files): Likewise.
37206         * modules/unicase/totitle-tests (Files): Likewise.
37207         * modules/unicase/toupper-tests (Files): Likewise.
37208         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37209         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37210         * modules/unicase/u8-casefold-tests (Files): Likewise.
37211         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37212         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37213         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37214         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37215         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37216         * modules/unicase/u8-tolower-tests (Files): Likewise.
37217         * modules/unicase/u8-totitle-tests (Files): Likewise.
37218         * modules/unicase/u8-toupper-tests (Files): Likewise.
37219         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37220         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37221         * modules/unicase/u16-casefold-tests (Files): Likewise.
37222         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37223         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37224         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37225         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37226         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37227         * modules/unicase/u16-tolower-tests (Files): Likewise.
37228         * modules/unicase/u16-totitle-tests (Files): Likewise.
37229         * modules/unicase/u16-toupper-tests (Files): Likewise.
37230         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37231         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37232         * modules/unicase/u32-casefold-tests (Files): Likewise.
37233         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37234         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37235         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37236         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37237         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37238         * modules/unicase/u32-tolower-tests (Files): Likewise.
37239         * modules/unicase/u32-totitle-tests (Files): Likewise.
37240         * modules/unicase/u32-toupper-tests (Files): Likewise.
37241         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37242         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37243         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37244         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37245         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37246         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37247         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37248         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37249         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37250         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37251         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37252         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37253         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37254         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37255         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37256         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37257         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37258         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37259         * modules/unictype/block-list-tests (Files): Likewise.
37260         * modules/unictype/block-of-tests (Files): Likewise.
37261         * modules/unictype/block-test-tests (Files): Likewise.
37262         * modules/unictype/category-C-tests (Files): Likewise.
37263         * modules/unictype/category-Cc-tests (Files): Likewise.
37264         * modules/unictype/category-Cf-tests (Files): Likewise.
37265         * modules/unictype/category-Cn-tests (Files): Likewise.
37266         * modules/unictype/category-Co-tests (Files): Likewise.
37267         * modules/unictype/category-Cs-tests (Files): Likewise.
37268         * modules/unictype/category-L-tests (Files): Likewise.
37269         * modules/unictype/category-Ll-tests (Files): Likewise.
37270         * modules/unictype/category-Lm-tests (Files): Likewise.
37271         * modules/unictype/category-Lo-tests (Files): Likewise.
37272         * modules/unictype/category-Lt-tests (Files): Likewise.
37273         * modules/unictype/category-Lu-tests (Files): Likewise.
37274         * modules/unictype/category-M-tests (Files): Likewise.
37275         * modules/unictype/category-Mc-tests (Files): Likewise.
37276         * modules/unictype/category-Me-tests (Files): Likewise.
37277         * modules/unictype/category-Mn-tests (Files): Likewise.
37278         * modules/unictype/category-N-tests (Files): Likewise.
37279         * modules/unictype/category-Nd-tests (Files): Likewise.
37280         * modules/unictype/category-Nl-tests (Files): Likewise.
37281         * modules/unictype/category-No-tests (Files): Likewise.
37282         * modules/unictype/category-P-tests (Files): Likewise.
37283         * modules/unictype/category-Pc-tests (Files): Likewise.
37284         * modules/unictype/category-Pd-tests (Files): Likewise.
37285         * modules/unictype/category-Pe-tests (Files): Likewise.
37286         * modules/unictype/category-Pf-tests (Files): Likewise.
37287         * modules/unictype/category-Pi-tests (Files): Likewise.
37288         * modules/unictype/category-Po-tests (Files): Likewise.
37289         * modules/unictype/category-Ps-tests (Files): Likewise.
37290         * modules/unictype/category-S-tests (Files): Likewise.
37291         * modules/unictype/category-Sc-tests (Files): Likewise.
37292         * modules/unictype/category-Sk-tests (Files): Likewise.
37293         * modules/unictype/category-Sm-tests (Files): Likewise.
37294         * modules/unictype/category-So-tests (Files): Likewise.
37295         * modules/unictype/category-Z-tests (Files): Likewise.
37296         * modules/unictype/category-Zl-tests (Files): Likewise.
37297         * modules/unictype/category-Zp-tests (Files): Likewise.
37298         * modules/unictype/category-Zs-tests (Files): Likewise.
37299         * modules/unictype/category-and-not-tests (Files): Likewise.
37300         * modules/unictype/category-and-tests (Files): Likewise.
37301         * modules/unictype/category-byname-tests (Files): Likewise.
37302         * modules/unictype/category-name-tests (Files): Likewise.
37303         * modules/unictype/category-none-tests (Files): Likewise.
37304         * modules/unictype/category-of-tests (Files): Likewise.
37305         * modules/unictype/category-or-tests (Files): Likewise.
37306         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37307         * modules/unictype/combining-class-tests (Files): Likewise.
37308         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37309         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37310         * modules/unictype/ctype-blank-tests (Files): Likewise.
37311         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37312         * modules/unictype/ctype-digit-tests (Files): Likewise.
37313         * modules/unictype/ctype-graph-tests (Files): Likewise.
37314         * modules/unictype/ctype-lower-tests (Files): Likewise.
37315         * modules/unictype/ctype-print-tests (Files): Likewise.
37316         * modules/unictype/ctype-punct-tests (Files): Likewise.
37317         * modules/unictype/ctype-space-tests (Files): Likewise.
37318         * modules/unictype/ctype-upper-tests (Files): Likewise.
37319         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37320         * modules/unictype/decimal-digit-tests (Files): Likewise.
37321         * modules/unictype/digit-tests (Files): Likewise.
37322         * modules/unictype/mirror-tests (Files): Likewise.
37323         * modules/unictype/numeric-tests (Files): Likewise.
37324         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37325         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37326         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37327         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37328         Likewise.
37329         * modules/unictype/property-bidi-block-separator-tests (Files):
37330         Likewise.
37331         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37332         Likewise.
37333         * modules/unictype/property-bidi-common-separator-tests (Files):
37334         Likewise.
37335         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37336         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37337         Likewise.
37338         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37339         Likewise.
37340         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37341         Likewise.
37342         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37343         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37344         Likewise.
37345         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37346         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37347         Likewise.
37348         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37349         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37350         * modules/unictype/property-bidi-segment-separator-tests (Files):
37351         Likewise.
37352         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37353         * modules/unictype/property-byname-tests (Files): Likewise.
37354         * modules/unictype/property-combining-tests (Files): Likewise.
37355         * modules/unictype/property-composite-tests (Files): Likewise.
37356         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37357         * modules/unictype/property-dash-tests (Files): Likewise.
37358         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37359         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37360         Likewise.
37361         * modules/unictype/property-deprecated-tests (Files): Likewise.
37362         * modules/unictype/property-diacritic-tests (Files): Likewise.
37363         * modules/unictype/property-extender-tests (Files): Likewise.
37364         * modules/unictype/property-format-control-tests (Files): Likewise.
37365         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37366         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37367         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37368         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37369         * modules/unictype/property-hyphen-tests (Files): Likewise.
37370         * modules/unictype/property-id-continue-tests (Files): Likewise.
37371         * modules/unictype/property-id-start-tests (Files): Likewise.
37372         * modules/unictype/property-ideographic-tests (Files): Likewise.
37373         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37374         * modules/unictype/property-ids-trinary-operator-tests (Files):
37375         Likewise.
37376         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37377         * modules/unictype/property-iso-control-tests (Files): Likewise.
37378         * modules/unictype/property-join-control-tests (Files): Likewise.
37379         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37380         * modules/unictype/property-line-separator-tests (Files): Likewise.
37381         * modules/unictype/property-logical-order-exception-tests (Files):
37382         Likewise.
37383         * modules/unictype/property-lowercase-tests (Files): Likewise.
37384         * modules/unictype/property-math-tests (Files): Likewise.
37385         * modules/unictype/property-non-break-tests (Files): Likewise.
37386         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37387         * modules/unictype/property-numeric-tests (Files): Likewise.
37388         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37389         * modules/unictype/property-other-default-ignorable-code-point-tests
37390         (Files): Likewise.
37391         * modules/unictype/property-other-grapheme-extend-tests (Files):
37392         Likewise.
37393         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37394         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37395         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37396         * modules/unictype/property-other-math-tests (Files): Likewise.
37397         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37398         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37399         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37400         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37401         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37402         * modules/unictype/property-private-use-tests (Files): Likewise.
37403         * modules/unictype/property-punctuation-tests (Files): Likewise.
37404         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37405         * modules/unictype/property-radical-tests (Files): Likewise.
37406         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37407         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37408         * modules/unictype/property-space-tests (Files): Likewise.
37409         * modules/unictype/property-terminal-punctuation-tests (Files):
37410         Likewise.
37411         * modules/unictype/property-test-tests (Files): Likewise.
37412         * modules/unictype/property-titlecase-tests (Files): Likewise.
37413         * modules/unictype/property-unassigned-code-value-tests (Files):
37414         Likewise.
37415         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37416         * modules/unictype/property-uppercase-tests (Files): Likewise.
37417         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37418         * modules/unictype/property-white-space-tests (Files): Likewise.
37419         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37420         * modules/unictype/property-xid-start-tests (Files): Likewise.
37421         * modules/unictype/property-zero-width-tests (Files): Likewise.
37422         * modules/unictype/scripts-tests (Files): Likewise.
37423         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37424         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37425         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37426         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37427         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37428         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37429         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37430         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37431         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37432         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37433         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37434         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37435         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37436         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37437         * modules/uninorm/composition-tests (Files): Likewise.
37438         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37439         * modules/uninorm/decomposition-tests (Files): Likewise.
37440         * modules/uninorm/filter-tests (Files): Likewise.
37441         * modules/uninorm/nfc-tests (Files): Likewise.
37442         * modules/uninorm/nfd-tests (Files): Likewise.
37443         * modules/uninorm/nfkc-tests (Files): Likewise.
37444         * modules/uninorm/nfkd-tests (Files): Likewise.
37445         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37446         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37447         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37448         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37449         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37450         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37451         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37452         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37453         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37454         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37455         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37456         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37457         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37458         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37459         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37460         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37461         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37462         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37463         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37464         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37465         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37466         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37467         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37468         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37469         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37470         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37471         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37472         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37473         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37474         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37475         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37476         * modules/uniwidth/u8-width-tests (Files): Likewise.
37477         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37478         * modules/uniwidth/u16-width-tests (Files): Likewise.
37479         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37480         * modules/uniwidth/u32-width-tests (Files): Likewise.
37481         * modules/uniwidth/width-tests (Files): Likewise.
37482         * modules/unlink-tests (Files): Likewise.
37483         * modules/unsetenv-tests (Files): Likewise.
37484         * modules/usleep-tests (Files): Likewise.
37485         * modules/utimens-tests (Files): Likewise.
37486         * modules/utimensat-tests (Files): Likewise.
37487         * modules/vasnprintf-posix-tests (Files): Likewise.
37488         * modules/vasnprintf-tests (Files): Likewise.
37489         * modules/vasprintf-posix-tests (Files): Likewise.
37490         * modules/vasprintf-tests (Files): Likewise.
37491         * modules/vdprintf-posix-tests (Files): Likewise.
37492         * modules/vfprintf-posix-tests (Files): Likewise.
37493         * modules/vprintf-posix-tests (Files): Likewise.
37494         * modules/vsnprintf-posix-tests (Files): Likewise.
37495         * modules/vsnprintf-tests (Files): Likewise.
37496         * modules/vsprintf-posix-tests (Files): Likewise.
37497         * modules/wcrtomb-tests (Files): Likewise.
37498         * modules/wcsnrtombs-tests (Files): Likewise.
37499         * modules/wcsrtombs-tests (Files): Likewise.
37500         * modules/wctype-tests (Files): Likewise.
37501         * modules/wcwidth-tests (Files): Likewise.
37502         * modules/xmemdup0-tests (Files): Likewise.
37503         * modules/xprintf-posix-tests (Files): Likewise.
37504         * modules/xvasprintf-tests (Files): Likewise.
37505
37506 2009-12-24  Eric Blake  <ebb9@byu.net>
37507
37508         test-nanosleep: fix typo
37509         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37510         patch.
37511         Reported by Bruno Haible.
37512
37513 2009-12-24  Bruno Haible  <bruno@clisp.org>
37514
37515         Reduce namespace pollution on glibc systems.
37516         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37517         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37518         systems.
37519         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37520         <getopt.h> on glibc systems.
37521         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37522         systems.
37523         * lib/fcntl.c: Include <unistd.h> here instead.
37524
37525 2009-12-24  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37528
37529 2009-12-24  Eric Blake  <ebb9@byu.net>
37530
37531         tests: add signature checks
37532         * tests/signature.h (SIGNATURE_CHECK): New file.
37533         * modules/atexit-tests (Files): Use it.
37534         * modules/btowc-tests (Files): Likewise.
37535         * modules/canonicalize-lgpl-tests (Files): Likewise.
37536         * modules/ceilf-tests (Files): Likewise.
37537         * modules/ceill-tests (Files): Likewise.
37538         * modules/chown-tests (Files): Likewise.
37539         * modules/dprintf-posix-tests (Files): Likewise.
37540         * modules/dup2-tests (Files): Likewise.
37541         * modules/dup3-tests (Files): Likewise.
37542         * modules/duplocale-tests (Files): Likewise.
37543         * modules/fchdir-tests (Files): Likewise.
37544         * modules/fcntl-tests (Files): Likewise.
37545         * modules/fdopendir-tests (Files): Likewise.
37546         * modules/fflush-tests (Files): Likewise.
37547         * modules/flock-tests (Files): Likewise.
37548         * modules/floorf-tests (Files): Likewise.
37549         * modules/floorl-tests (Files): Likewise.
37550         * modules/fnmatch-tests (Files): Likewise.
37551         * modules/fopen-tests (Files): Likewise.
37552         * modules/fprintf-posix-tests (Files): Likewise.
37553         * modules/freopen-tests (Files): Likewise.
37554         * modules/frexp-nolibm-tests (Files): Likewise.
37555         * modules/frexp-tests (Files): Likewise.
37556         * modules/frexpl-nolibm-tests (Files): Likewise.
37557         * modules/frexpl-tests (Files): Likewise.
37558         * modules/fseek-tests (Files): Likewise.
37559         * modules/fseeko-tests (Files): Likewise.
37560         * modules/fsync-tests (Files): Likewise.
37561         * modules/ftell-tests (Files): Likewise.
37562         * modules/ftello-tests (Files): Likewise.
37563         * modules/futimens-tests (Files): Likewise.
37564         * modules/getaddrinfo-tests (Files): Likewise.
37565         * modules/getcwd-tests (Files): Likewise.
37566         * modules/getdelim-tests (Files): Likewise.
37567         * modules/getdtablesize-tests (Files): Likewise.
37568         * modules/getgroups-tests (Files): Likewise.
37569         * modules/gethostname-tests (Files): Likewise.
37570         * modules/getline-tests (Files): Likewise.
37571         * modules/getopt-posix-tests (Files): Likewise.
37572         * modules/gettimeofday-tests (Files): Likewise.
37573         * modules/glob-tests (Files): Likewise.
37574         * modules/iconv-tests (Files): Likewise.
37575         * modules/inet_ntop-tests (Files): Likewise.
37576         * modules/inet_pton-tests (Files): Likewise.
37577         * modules/isblank-tests (Files): Likewise.
37578         * modules/lchown-tests (Files): Likewise.
37579         * modules/ldexpl-tests (Files): Likewise.
37580         * modules/link-tests (Files): Likewise.
37581         * modules/linkat-tests (Files): Likewise.
37582         * modules/lseek-tests (Files): Likewise.
37583         * modules/lstat-tests (Files): Likewise.
37584         * modules/mbrtowc-tests (Files): Likewise.
37585         * modules/mbsinit-tests (Files): Likewise.
37586         * modules/mbsnrtowcs-tests (Files): Likewise.
37587         * modules/mbsrtowcs-tests (Files): Likewise.
37588         * modules/memchr-tests (Files): Likewise.
37589         * modules/memcmp-tests (Files): Likewise.
37590         * modules/memmem-tests (Files): Likewise.
37591         * modules/memrchr-tests (Files): Likewise.
37592         * modules/mkdir-tests (Files): Likewise.
37593         * modules/mkfifo-tests (Files): Likewise.
37594         * modules/mkfifoat-tests (Files): Likewise.
37595         * modules/mknod-tests (Files): Likewise.
37596         * modules/nanosleep-tests (Files): Likewise.
37597         * modules/nl_langinfo-tests (Files): Likewise.
37598         * modules/obstack-printf-tests (Files): Likewise.
37599         * modules/open-tests (Files): Likewise.
37600         * modules/openat-tests (Files): Likewise.
37601         * modules/perror-tests (Files): Likewise.
37602         * modules/pipe2-tests (Files): Likewise.
37603         * modules/poll-tests (Files): Likewise.
37604         * modules/popen-tests (Files): Likewise.
37605         * modules/posix_spawn-tests (Files): Likewise.
37606         * modules/posix_spawnp-tests (Files): Likewise.
37607         * modules/pread-tests (Files): Likewise.
37608         * modules/printf-posix-tests (Files): Likewise.
37609         * modules/pty-tests (Files): Likewise.
37610         * modules/random_r-tests (Files): Likewise.
37611         * modules/rawmemchr-tests (Files): Likewise.
37612         * modules/readlink-tests (Files): Likewise.
37613         * modules/remove-tests (Files): Likewise.
37614         * modules/rename-tests (Files): Likewise.
37615         * modules/renameat-tests (Files): Likewise.
37616         * modules/rmdir-tests (Files): Likewise.
37617         * modules/round-tests (Files): Likewise.
37618         * modules/roundf-tests (Files): Likewise.
37619         * modules/roundl-tests (Files): Likewise.
37620         * modules/select-tests (Files): Likewise.
37621         * modules/setenv-tests (Files): Likewise.
37622         * modules/sigaction-tests (Files): Likewise.
37623         * modules/sleep-tests (Files): Likewise.
37624         * modules/snprintf-posix-tests (Files): Likewise.
37625         * modules/snprintf-tests (Files): Likewise.
37626         * modules/sprintf-posix-tests (Files): Likewise.
37627         * modules/stat-tests (Files): Likewise.
37628         * modules/strcasestr-tests (Files): Likewise.
37629         * modules/strchrnul-tests (Files): Likewise.
37630         * modules/strerror-tests (Files): Likewise.
37631         * modules/strsignal-tests (Files): Likewise.
37632         * modules/strstr-tests (Files): Likewise.
37633         * modules/strtod-tests (Files): Likewise.
37634         * modules/strverscmp-tests (Files): Likewise.
37635         * modules/symlink-tests (Files): Likewise.
37636         * modules/symlinkat-tests (Files): Likewise.
37637         * modules/times-tests (Files): Likewise.
37638         * modules/trunc-tests (Files): Likewise.
37639         * modules/truncf-tests (Files): Likewise.
37640         * modules/truncl-tests (Files): Likewise.
37641         * modules/tsearch-tests (Files): Likewise.
37642         * modules/uname-tests (Files): Likewise.
37643         * modules/unlink-tests (Files): Likewise.
37644         * modules/unsetenv-tests (Files): Likewise.
37645         * modules/usleep-tests (Files): Likewise.
37646         * modules/utimensat-tests (Files): Likewise.
37647         * modules/vasprintf-tests (Files): Likewise.
37648         * modules/vdprintf-posix-tests (Files): Likewise.
37649         * modules/vfprintf-posix-tests (Files): Likewise.
37650         * modules/vprintf-posix-tests (Files): Likewise.
37651         * modules/vsnprintf-posix-tests (Files): Likewise.
37652         * modules/vsnprintf-tests (Files): Likewise.
37653         * modules/vsprintf-posix-tests (Files): Likewise.
37654         * modules/wcrtomb-tests (Files): Likewise.
37655         * modules/wcsnrtombs-tests (Files): Likewise.
37656         * modules/wcsrtombs-tests (Files): Likewise.
37657         * modules/wcwidth-tests (Files): Likewise.
37658         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37659         * tests/test-isinf.c (isinf): Likewise.
37660         * tests/test-isnan.c (isnan): Likewise.
37661         * tests/test-signbit.c (signbit): Likewise.
37662         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37663         declaration, either as macro or with correct signature.
37664         (select): Ensure function under test is declared with correct
37665         signature in correct header.
37666         * tests/test-atexit.c (atexit): Likewise.
37667         * tests/test-btowc.c (btowc): Likewise.
37668         * tests/test-canonicalize-lgpl.c (realpath)
37669         (canonicalize_file_name): Likewise.
37670         * tests/test-ceilf1.c (ceilf): Likewise.
37671         * tests/test-ceill.c (ceill): Likewise.
37672         * tests/test-chown.c (chown): Likewise.
37673         * tests/test-dprintf-posix.c (dprintf): Likewise.
37674         * tests/test-dup2.c (dup2): Likewise.
37675         * tests/test-dup3.c (dup3): Likewise.
37676         * tests/test-duplocale.c (duplocale): Likewise.
37677         * tests/test-fchdir.c (fchdir): Likewise.
37678         * tests/test-fchownat.c (fchownat): Likewise.
37679         * tests/test-fcntl.c (fcntl): Likewise.
37680         * tests/test-fdopendir.c (fdopendir): Likewise.
37681         * tests/test-fflush.c (fflush): Likewise.
37682         * tests/test-flock.c (flock): Likewise.
37683         * tests/test-floorf1.c (floorf): Likewise.
37684         * tests/test-floorl.c (floorl): Likewise.
37685         * tests/test-fnmatch.c (fnmatch): Likewise.
37686         * tests/test-fopen.c (fopen): Likewise.
37687         * tests/test-fprintf-posix.c (fprintf): Likewise.
37688         * tests/test-freopen.c (freopen): Likewise.
37689         * tests/test-frexp.c (frexp): Likewise.
37690         * tests/test-frexpl.c (frexpl): Likewise.
37691         * tests/test-fseek.c (fseek): Likewise.
37692         * tests/test-fseeko.c (fseeko): Likewise.
37693         * tests/test-fstatat.c (fstatat): Likewise.
37694         * tests/test-fsync.c (fsync): Likewise.
37695         * tests/test-ftell.c (ftell): Likewise.
37696         * tests/test-ftello.c (ftello): Likewise.
37697         * tests/test-futimens.c (futimens): Likewise.
37698         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37699         (gai_strerror): Likewise.
37700         * tests/test-getcwd.c (getcwd): Likewise.
37701         * tests/test-getdelim.c (getdelim): Likewise.
37702         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37703         * tests/test-getgroups.c (getgroups): Likewise.
37704         * tests/test-gethostname.c (gethostname): Likewise.
37705         * tests/test-getline.c (getline): Likewise.
37706         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37707         Likewise.
37708         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37709         * tests/test-glob.c (glob, globfree): Likewise.
37710         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37711         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37712         * tests/test-inet_pton.c (inet_pton): Likewise.
37713         * tests/test-isblank.c (isblank): Likewise.
37714         * tests/test-lchown.c (lchown): Likewise.
37715         * tests/test-ldexpl.c (ldexpl): Likewise.
37716         * tests/test-link.c (link): Likewise.
37717         * tests/test-linkat.c (linkat): Likewise.
37718         * tests/test-lseek.c (lseek): Likewise.
37719         * tests/test-lstat.c (lstat): Likewise.
37720         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37721         * tests/test-mbsinit.c (mbsinit): Likewise.
37722         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37723         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37724         * tests/test-memchr.c (memchr): Likewise.
37725         * tests/test-memcmp.c (memcmp): Likewise.
37726         * tests/test-memmem.c (memmem): Likewise.
37727         * tests/test-memrchr.c (memrchr): Likewise.
37728         * tests/test-mkdir.c (mkdir): Likewise.
37729         * tests/test-mkdirat.c (mkdirat): Likewise.
37730         * tests/test-mkfifo.c (mkfifo): Likewise.
37731         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37732         * tests/test-mknod.c (mknod): Likewise.
37733         * tests/test-nanosleep.c (nanosleep): Likewise.
37734         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37735         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37736         Likewise.
37737         * tests/test-open.c (open): Likewise.
37738         * tests/test-openat.c (openat): Likewise.
37739         * tests/test-perror.c (perror): Likewise.
37740         * tests/test-pipe2.c (pipe2): Likewise.
37741         * tests/test-poll.c (poll): Likewise.
37742         * tests/test-popen.c (popen, pclose): Likewise.
37743         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37744         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37745         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37746         (posix_spawn_file_actions_destroy)
37747         (posix_spawn_file_actions_addclose)
37748         (posix_spawn_file_actions_addopen)
37749         (posix_spawn_file_actions_adddup2): Likewise.
37750         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37751         * tests/test-pread.c (pread): Likewise.
37752         * tests/test-printf-posix.c (printf): Likewise.
37753         * tests/test-pty.c (openpty, forkpty): Likewise.
37754         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37755         (random_r): Likewise.
37756         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37757         * tests/test-readlink.c (readlink): Likewise.
37758         * tests/test-remove.c (remove): Likewise.
37759         * tests/test-rename.c (rename): Likewise.
37760         * tests/test-renameat.c (renameat): Likewise.
37761         * tests/test-rmdir.c (rmdir): Likewise.
37762         * tests/test-round1.c (round): Likewise.
37763         * tests/test-roundf1.c (roundf): Likewise.
37764         * tests/test-roundl.c (roundl): Likewise.
37765         * tests/test-setenv.c (setenv): Likewise.
37766         * tests/test-sigaction.c (sigaction): Likewise.
37767         * tests/test-sleep.c (sleep): Likewise.
37768         * tests/test-snprintf.c (snprintf): Likewise.
37769         * tests/test-sprintf-posix.c (sprintf): Likewise.
37770         * tests/test-stat.c (stat): Likewise.
37771         * tests/test-stpncpy.c (stpncpy): Likewise.
37772         * tests/test-strcasestr.c (strcasestr): Likewise.
37773         * tests/test-strchrnul.c (strchrnul): Likewise.
37774         * tests/test-strerror.c (strerror): Likewise.
37775         * tests/test-strsignal.c (strsignal): Likewise.
37776         * tests/test-strstr.c (strstr): Likewise.
37777         * tests/test-strtod.c (strtod): Likewise.
37778         * tests/test-strverscmp.c (strverscmp): Likewise.
37779         * tests/test-symlink.c (symlink): Likewise.
37780         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37781         * tests/test-times.c (times): Likewise.
37782         * tests/test-trunc1.c (trunc): Likewise.
37783         * tests/test-truncf1.c (truncf): Likewise.
37784         * tests/test-truncl.c (truncl): Likewise.
37785         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37786         Likewise.
37787         * tests/test-uname.c (uname): Likewise.
37788         * tests/test-unlink.c (unlink): Likewise.
37789         * tests/test-unlinkat.c (unlinkat): Likewise.
37790         * tests/test-unsetenv.c (unsetenv): Likewise.
37791         * tests/test-usleep.c (usleep): Likewise.
37792         * tests/test-utimensat.c (utimensat): Likewise.
37793         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37794         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37795         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37796         * tests/test-vprintf-posix.c (vprintf): Likewise.
37797         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37798         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37799         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37800         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37801         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37802         * tests/test-wcwidth.c (wcwidth): Likewise.
37803
37804         build: pull in conditional headers during GNULIB_POSIXCHECK
37805         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37806         definitions from any conditionally-included headers.
37807         * lib/stdlib.in.h (includes): Likewise.
37808         * lib/unistd.in.h (includes): Likewise.
37809
37810 2009-12-24  Bruno Haible  <bruno@clisp.org>
37811
37812         * tests/test-argv-iter.c: Include header file being tested immediately
37813         after config.h.
37814         * tests/test-base64.c: Likewise.
37815         * tests/test-flock.c: Likewise.
37816         * tests/test-fsync.c: Likewise.
37817         * tests/test-getdate.c: Likewise.
37818         * tests/test-getndelim2.c: Likewise.
37819         * tests/test-isfinite.c: Likewise.
37820         * tests/test-isinf.c: Likewise.
37821         * tests/test-strerror.c: Likewise.
37822         * tests/test-strsignal.c: Likewise.
37823
37824 2009-12-23  Eric Blake  <ebb9@byu.net>
37825
37826         unistd: work around cygwin bug
37827         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37828         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37829         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37830
37831 2009-12-23  Bruno Haible  <bruno@clisp.org>
37832
37833         localename: More tests.
37834         * tests/test-localename.c (SIZEOF): New macro.
37835         (categories): New variable.
37836         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37837         test_locale_name_default): Add test w.r.t. thread locale.
37838         (test_locale_name_thread): New function.
37839         (main): Invoke it.
37840
37841         localename: Make aware of thread locale.
37842         * lib/localename.h (gl_locale_name_thread): New declaration.
37843         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37844         behaviour with respect to thread locale.
37845         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37846         <langinfo.h>, glthread/lock.h.
37847         (SIZE_BITS): New macro.
37848         (string_hash): New function.
37849         (struct hash_node): New type.
37850         (HASH_TABLE_SIZE): New macro.
37851         (struniq_hash_table, struniq_lock): New variables.
37852         (struniq): New function.
37853         (gl_locale_name_thread): New function.
37854         (gl_locale_name): Invoke it.
37855         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37856         * modules/localename (Depends-on): Add lock.
37857         Reported by Mike Gran <spk121@yahoo.com>.
37858
37859 2009-12-23  Eric Blake  <ebb9@byu.net>
37860
37861         va-args: new module
37862         * modules/va-args: New file.
37863         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37864         * MODULES.html.sh (Core language properties): Mention it.
37865
37866         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37867         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37868         named alias for __attribute__((__unused__)).
37869         * lib/chown.c: Update client.
37870         * lib/fchmodat.c: Likewise.
37871         * lib/fts.c: Likewise.
37872         * lib/getdate.y: Likewise.
37873         * lib/getgroups.c: Likewise.
37874         * lib/getopt.c: Likewise.
37875         * lib/getugroups.c: Likewise.
37876         * lib/mkdir.c: Likewise.
37877         * lib/mkfifo.c: Likewise.
37878         * lib/mkfifoat.c: Likewise.
37879         * lib/mknod.c: Likewise.
37880         * lib/mknodat.c: Likewise.
37881         * lib/readlink.c: Likewise.
37882         * lib/se-context.in.h: Likewise.
37883         * lib/se-selinux.in.h: Likewise.
37884         * lib/sockets.c: Likewise.
37885         * lib/symlink.c: Likewise.
37886         * lib/symlinkat.c: Likewise.
37887         * lib/unicodeio.c: Likewise.
37888         * lib/unistr.h: Likewise.
37889         * tests/test-areadlink.c: Likewise.
37890         * tests/test-areadlinkat.c: Likewise.
37891         * tests/test-filenamecat.c: Likewise.
37892         * tests/test-fseeko.c: Likewise.
37893         * tests/test-ftello.c: Likewise.
37894         * tests/test-getdate.c: Likewise.
37895         * tests/test-getgroups.c: Likewise.
37896         * tests/test-gethostname.c: Likewise.
37897         * tests/test-quotearg.c: Likewise.
37898         * tests/test-version-etc.c: Likewise.
37899         * tests/test-xalloc-die.c: Likewise.
37900         * tests/test-xfprintf-posix.c: Likewise.
37901         * tests/test-xprintf-posix.c: Likewise.
37902         * tests/test-xvasprintf.c: Likewise.
37903
37904         tests: avoid compiler warnings
37905         * tests/test-fcntl.c (main): Delete unused parameters.
37906         * tests/test-freopen-safer.c (main): Likewise.
37907         * tests/test-xalloc-die.c (main): Mark unused parameters.
37908         * tests/test-fseeko.c (main): Likewise.
37909         * tests/test-ftello.c (main): Likewise.
37910         * tests/test-nanosleep.c (main): Avoid declaration warning.
37911         * tests/test-sleep.c (main): Likewise.
37912         * tests/test-unsetenv.c (main): Silence warning about string
37913         literal.
37914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37915
37916 2009-12-23  Bruno Haible  <bruno@clisp.org>
37917
37918         * tests/test-localename.c (test_locale_name): New function, extracted
37919         from main. Also test mixed situations.
37920         (test_locale_name_posix, test_locale_name_environ,
37921         test_locale_name_default): New functions.
37922         (main): Invoke them all.
37923         * modules/localename-tests (configure.ac): Test for newlocale.
37924
37925 2009-12-23  Bruno Haible  <bruno@clisp.org>
37926
37927         unistd: Ensure getcwd gets declared before being overridden.
37928         * lib/unistd.in.h: Conditionally include <io.h>.
37929
37930 2009-12-22  Bruno Haible  <bruno@clisp.org>
37931
37932         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37933         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37934         (gl_WCHAR_H): Invoke it.
37935         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37936         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37937         Reported by Karl Berry <karl@freefriends.org>.
37938
37939 2009-12-22  Eric Blake  <ebb9@byu.net>
37940
37941         math, unistd: avoid redundant includes
37942         * lib/math.in.h (isnan): No need to re-include <math.h>.
37943         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37944
37945         getsubopt: work around cygwin bug
37946         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37947         avoid conflicting with system getsubopt.
37948         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37949         bug.
37950
37951         getopt: synchronize from glibc
37952         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37953         parameter order.  Adjust all callers.
37954         (_getopt_internal_r, main): Adjust quoting in error messages.
37955         Drop considerations for outdated POSIX 1003.2 error message.
37956         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37957         callers.
37958         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37959
37960         test-getopt: test stderr behavior
37961         * modules/getopt-posix-tests (Depends-on): Add dup2.
37962         * tests/test-getopt.c (ASSERT): Avoid stderr.
37963         (main): Move stderr to a temporary file.
37964         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37965         Instead, add parameter to inform caller if output occurred.
37966         (test_getopt): Adjust all existing tests to expect silence, and
37967         add new tests of leading ":".
37968         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37969         glibc shortcomings with leading "-:" or "+:" in optstring.
37970         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37971         Likewise.
37972         * doc/posix-functions/getopt.texi (getopt): Likewise.
37973
37974         test-getopt: enhance test
37975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37976         supports optind=0.
37977         * tests/test-getopt.c (OPTIND_MIN): Move...
37978         * tests/test-getopt.h (OPTIND_MIN): ...here.
37979         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37980         Require that optind=0 works, since modern BSD supports it in
37981         addition to optreset, and since coreutils expects it.
37982         (test_getopt_long_only): New test.
37983         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37984         glibc shortcomings with 'W;', and enforcement of optind=0.
37985         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37986         Likewise.
37987
37988 2009-12-21  Bruno Haible  <bruno@clisp.org>
37989
37990         localename: Improvements for MacOS X and Cygwin.
37991         * lib/localename.h (gl_locale_name_environ): New declaration.
37992         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37993         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37994         (gl_locale_name_posix): Invoke it.
37995         (gl_locale_name_default): Add comments. Use Windows native API also on
37996         Cygwin.
37997
37998 2009-12-21  Bruno Haible  <bruno@clisp.org>
37999
38000         Update list of Win32 locale ids.
38001         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38002         (LANG_SAMI): Renamed from LANG_SAAMI.
38003         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38004         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38005         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38006         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38007         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38008         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38009         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38010         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38011         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38012         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38013         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38014         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38015         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38016         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38017         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38018         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38019         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38020         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38021         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38022         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38023         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38024         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38025         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38026         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38027         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38028         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38029         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38030         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38031         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38032         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38033         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38034         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38035         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38036         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38037         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38038         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38039         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38040         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38041         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38042         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38043         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38044         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38045         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38046         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38047         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38048         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38049         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38050         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38051         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38052         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38053         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38054         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38055         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38056         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38057         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38058         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38059         Add more languages and countries for Sami, Sorbian. Add more countries
38060         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38061         for Pashto. Change country for Syriac, Tswana.
38062
38063 2009-12-21  Eric Blake  <ebb9@byu.net>
38064
38065         test-utimens: avoid spurious failure
38066         * tests/test-chown.h (nap): Factor...
38067         * tests/nap.h: ...into new file.
38068         * tests/test-lchown.h (nap): Avoid duplication.
38069         * tests/test-utimens-common.h (nap): Use shared implementation,
38070         necessary on file systems with 1-second resolution.
38071         * modules/chown-tests (Files): Include new file.
38072         * modules/fdutimensat-tests (Files): Likewise.
38073         * modules/futimens-tests (Files): Likewise.
38074         * modules/lchown-tests (Files): Likewise.
38075         * modules/openat-tests (Files): Likewise.
38076         * modules/utimens-tests (Files): Likewise.
38077         * modules/utimensat-tests (Files): Likewise.
38078
38079 2009-12-19  Eric Blake  <ebb9@byu.net>
38080
38081         futimens, utimensat: work around Linux bug
38082         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38083         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38084         * lib/utimensat.c (rpl_utimensat): Work around it.
38085         * lib/futimens.c (rpl_futimens): Adjust comment.
38086
38087         utimens: work around Linux ctime bug
38088         * lib/utimens.c (detect_ctime_bug): New helper function.
38089         (update_timespec): Differentiate between workaround needed for
38090         this bug vs. what is needed for systems that lack utimensat.
38091         (fdutimens, lutimens): Work around bug.
38092
38093         utimens: check for ctime update
38094         * tests/test-utimens-common.h (check_ctime): Define.
38095         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38096         * tests/test-futimens.h (test_futimens): Likewise.
38097         * tests/test-lutimens.h (test_lutimens): Likewise.
38098         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38099         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38100
38101 2009-12-19  Bruno Haible  <bruno@clisp.org>
38102
38103         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38104         * tests/test-dprintf-posix2.sh: New file.
38105         * tests/test-dprintf-posix2.c: New file.
38106         * modules/dprintf-posix-tests (Files): Add them.
38107         (configure.ac): Check for getrlimit and setrlimit.
38108         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38109
38110 2009-12-19  Bruno Haible  <bruno@clisp.org>
38111
38112         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38113         * tests/test-fprintf-posix3.sh: New file.
38114         * tests/test-fprintf-posix3.c: New file.
38115         * modules/fprintf-posix-tests (Files): Add them.
38116         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38117
38118 2009-12-19  Eric Blake  <ebb9@byu.net>
38119
38120         dirfd: fix prototype
38121         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38122         * lib/dirfd.c (dirfd): Likewise.
38123
38124         canonicalize: reduce memory usage
38125         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38126         allocation to size.
38127         Reported by Solar Designer <solar@openwall.com>.
38128
38129 2009-12-19  Bruno Haible  <bruno@clisp.org>
38130
38131         New module attribute 'Applicability'.
38132         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38133         * gnulib-tool: New option --extract-applicability.
38134         (func_usage): Document it.
38135         (sed_extract_prog): Recognize it.
38136         (func_get_applicability): New function.
38137         (func_import): Generalize handling of 'link-warning' module.
38138         * modules/link-warning (Applicability): New section.
38139         * modules/arg-nonnull (Applicability): New section.
38140         Repoted by Simon Josefsson <simon@josefsson.org>.
38141
38142 2009-12-19  Bruno Haible  <bruno@clisp.org>
38143
38144         fflush: tweak
38145         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38146         * lib/fseeko.c (rpl_fseeko): Likewise.
38147
38148 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38149
38150         * lib/gl_list.h: Fix typo in comment.
38151
38152 2009-12-16  Eric Blake  <ebb9@byu.net>
38153
38154         fcntl: use to simplify other modules
38155         * modules/cloexec (Depends-on): Add fcntl.
38156         * modules/fchdir (Depends-on): Likewise.
38157         * modules/fd-safer-flag (Depends-on): Likewise.
38158         * modules/unistd-safer (Depends-on): Likewise.
38159         * modules/dup3 (configure.ac): Set module indicator.
38160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38161         missing.
38162         * lib/fchdir.c (_gl_register_dup): Fix comment.
38163         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38164         * lib/dup-safer.c (dup_safer): Likewise.
38165         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38166         * lib/dup3.c (dup3): Likewise.
38167         * tests/test-fchdir.c (main): Enhance test.
38168         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38169
38170         fcntl: port portions of fcntl to mingw
38171         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38172         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38173         replacement for mingw.
38174         * modules/fcntl (Description): Update.
38175         (Depends-on): Add dup2.
38176         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38177         * modules/fcntl-h (Makefile.am): Substitute it.
38178         * lib/fcntl.in.h (fcntl): Update declaration.
38179         (F_DUPFD, F_GETFD): New macros, when needed.
38180         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38181         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38182         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38183         we now guarantee.
38184
38185         fcntl: work around cygwin bug in F_DUPFD
38186         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38187         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38188         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38189         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38190         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38191
38192         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38193         * modules/fcntl (Files): List new files.
38194         (configure.ac): Run a test.
38195         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38196         * lib/fcntl.c (rpl_fcntl): Likewise.
38197         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38198         (gl_FCNTL_H): Always replace fcntl.h.
38199         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38200         * lib/fcntl.in.h (fcntl): Declare replacement.
38201         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38202         needed, plus a witness.
38203         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38204         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38205         * tests/test-fcntl.c: New file.
38206         * modules/fcntl-tests: Likewise.
38207
38208         binary-io: avoid potential compilation warning
38209         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38210         directives.
38211
38212         fflush: avoid compilation error on NetBSD
38213         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38214         between off_t and fpos_t, since the latter is sometimes a struct.
38215         * lib/fseeko.c (rpl_fseeko): Likewise.
38216         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38217
38218 2009-12-15  Eric Blake  <ebb9@byu.net>
38219
38220         fcntl-h, stdio, sys_ioctl: fix declarations
38221         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38222         function must not take arguments.
38223         * lib/sys_ioctl.in.h (ioctl): Likewise.
38224         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38225         (open): Add a link warning.
38226
38227 2009-12-15  Jim Meyering  <meyering@redhat.com>
38228
38229         areadlink, areadlink-with-size: relax license to LGPLv2+
38230         * modules/areadlink (License): Relax to LGPLv2+.
38231         * modules/areadlink-with-size (License): Likewise.
38232
38233 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38234             Bruno Haible  <bruno@clisp.org>
38235
38236         *printf: Fix memory leak.
38237         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38238         * lib/vfprintf.c (vfprintf): Likewise.
38239         * lib/dprintf.c (dprintf): Likewise.
38240         * lib/vdprintf.c (vdprintf): Likewise.
38241
38242 2009-12-14  Eric Blake  <ebb9@byu.net>
38243
38244         accept4: adjust module dependencies
38245         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38246
38247         utimens: one more try at avoiding compiler warning
38248         * lib/utimens.c (lutimens): Lower scope of result.
38249
38250 2009-12-13  Bruno Haible  <bruno@clisp.org>
38251
38252         Move the malloc checking from module 'list' to new module 'xlist'.
38253         * modules/xlist: New file.
38254         * lib/gl_xlist.h: New file.
38255         * lib/gl_xlist.c: New file.
38256         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38257         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38258         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38259         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38260         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38261         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38262         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38263         gl_sortedlist_nx_add): New declarations.
38264         (struct gl_list_implementation): Rename and change methods accordingly.
38265         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38266         (gl_list_nx_create): Renamed from gl_list_create.
38267         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38268         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38269         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38270         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38271         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38272         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38273         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38274         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38275         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38276         gl_list_create_empty.
38277         (gl_list_nx_create): Renamed from gl_list_create.
38278         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38279         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38280         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38281         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38282         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38283         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38284         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38285         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38286         * lib/gl_array_list.c: Don't include xalloc.h.
38287         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38288         NULL upon out-of-memory.
38289         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38290         out-of-memory.
38291         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38292         Change return type to 'int'.
38293         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38294         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38295         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38296         upon out-of-memory.
38297         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38298         upon out-of-memory.
38299         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38300         upon out-of-memory.
38301         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38302         upon out-of-memory.
38303         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38304         out-of-memory.
38305         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38306         Update.
38307         (gl_array_list_implementation): Update.
38308         * lib/gl_carray_list.c: Don't include xalloc.h.
38309         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38310         Return NULL upon out-of-memory.
38311         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38312         out-of-memory.
38313         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38314         Change return type to 'int'.
38315         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38316         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38317         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38318         upon out-of-memory.
38319         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38320         upon out-of-memory.
38321         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38322         out-of-memory.
38323         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38324         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38325         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38326         Update.
38327         (gl_carray_list_implementation): Update.
38328         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38329         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38330         gl_linked_create_empty. Return NULL upon out-of-memory.
38331         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38332         out-of-memory.
38333         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38334         Change return type to 'int'. Return -1 upon out-of-memory.
38335         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38336         out-of-memory.
38337         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38338         upon out-of-memory.
38339         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38340         upon out-of-memory.
38341         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38342         NULL upon out-of-memory.
38343         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38344         upon out-of-memory.
38345         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38346         out-of-memory.
38347         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38348         Update.
38349         * lib/gl_linked_list.c: Don't include xalloc.h.
38350         (gl_linked_list_implementation): Update.
38351         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38352         (add_to_bucket): Change return type to 'int'.
38353         (gl_linkedhash_list_implementation): Update.
38354         * lib/gl_anytree_list1.h (free_subtree): New function.
38355         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38356         gl_tree_create_empty. Return NULL upon out-of-memory.
38357         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38358         Change return type to 'int'. Return -1 upon out-of-memory.
38359         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38360         out-of-memory.
38361         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38362         (gl_tree_remove_node): New function, moved here from
38363         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38364         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38365         Update.
38366         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38367         malloc, not xmalloc. Return NULL upon out-of-memory.
38368         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38369         out-of-memory.
38370         (gl_tree_remove_node_from_tree): New function, extracted from
38371         gl_tree_remove_node.
38372         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38373         upon out-of-memory.
38374         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38375         out-of-memory.
38376         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38377         upon out-of-memory.
38378         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38379         upon out-of-memory.
38380         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38381         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38382         not xmalloc. Return NULL upon out-of-memory.
38383         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38384         out-of-memory.
38385         (gl_tree_remove_node_from_tree): New function, extracted from
38386         gl_tree_remove_node.
38387         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38388         upon out-of-memory.
38389         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38390         out-of-memory.
38391         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38392         upon out-of-memory.
38393         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38394         upon out-of-memory.
38395         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38396         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38397         gl_anytree_list1.h before gl_anyavltree_list2.h.
38398         (gl_avltree_list_implementation): Update.
38399         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38400         gl_anytree_list1.h before gl_anyavltree_list2.h.
38401         (gl_rbtree_list_implementation): Update.
38402         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38403         Change return type to 'int'. Return -1 upon out-of-memory. Use
38404         __builtin_expect.
38405         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38406         (gl_avltreehash_list_implementation): Update.
38407         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38408         (gl_rbtreehash_list_implementation): Update.
38409         * modules/array-list (Depends-on): Remove xalloc.
38410         * modules/carray-list (Depends-on): Likewise.
38411         * modules/linked-list (Depends-on): Likewise.
38412         * modules/linkedhash-list (Depends-on): Likewise.
38413         * modules/avltree-list (Depends-on): Likewise.
38414         * modules/rbtree-list (Depends-on): Likewise.
38415         * modules/avltreehash-list (Depends-on): Likewise.
38416         * modules/rbtreehash-list (Depends-on): Likewise.
38417
38418         * modules/xsublist: New file.
38419         * lib/gl_xsublist.h: New file.
38420         * lib/gl_xsublist.c: New file.
38421         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38422         (gl_sublist_nx_create): New declaration.
38423         * lib/gl_sublist.c: Don't include xalloc.h.
38424         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38425         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38426         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38427         Change return type to 'int'. Return -1 upon out-of-memory.
38428         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38429         upon out-of-memory.
38430         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38431         NULL upon out-of-memory.
38432         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38433         upon out-of-memory.
38434         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38435         NULL upon out-of-memory.
38436         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38437         NULL upon out-of-memory.
38438         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38439         upon out-of-memory.
38440         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38441         (gl_sublist_list_implementation): Update.
38442         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38443         upon out-of-memory.
38444         * modules/sublist (Depends-on): Remove xalloc.
38445
38446         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38447         * tests/test-carray_list.c: Likewise.
38448         * tests/test-linked_list.c: Likewise.
38449         * tests/test-linkedhash_list.c: Likewise.
38450         * tests/test-avltree_list.c: Likewise.
38451         * tests/test-rbtree_list.c: Likewise.
38452         * tests/test-avltreehash_list.c: Likewise.
38453         * tests/test-rbtreehash_list.c: Likewise.
38454         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38455         * modules/carray-list-tests (Makefile.am): Likewise.
38456         * modules/linked-list-tests (Makefile.am): Likewise.
38457         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38458         * modules/avltree-list-tests (Makefile.am): Likewise.
38459         * modules/rbtree-list-tests (Makefile.am): Likewise.
38460         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38461         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38462
38463         * NEWS: Mention the changes.
38464
38465         * lib/clean-temp.c: Include gl_xlist.h.
38466         * modules/clean-temp (Depends-on): Add xlist.
38467
38468         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38469         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38470
38471         * tests/test-array_oset.c: Include gl_xlist.h.
38472         * modules/array-oset-tests (Depends-on): Add xlist.
38473
38474         Reported by José E. Marchesi <jemarch@gnu.org>.
38475
38476 2009-12-13  Bruno Haible  <bruno@clisp.org>
38477
38478         Move the malloc checking from module 'oset' to new module 'xoset'.
38479         * modules/xoset: New file.
38480         * lib/gl_xoset.h: New file.
38481         * lib/gl_xoset.c: New file.
38482         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38483         declarations.
38484         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38485         (struct gl_oset_implementation): Rename and change methods accordingly.
38486         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38487         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38488         'int'. Mark as __warn_unused_result__.
38489         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38490         gl_oset_create_empty.
38491         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38492         'int'.
38493         * lib/gl_array_oset.c: Don't include xalloc.h.
38494         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38495         malloc, not xmalloc.
38496         (grow): Change return type to 'int'. Don't call xalloc_die.
38497         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38498         to 'int'.
38499         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38500         'int'.
38501         (gl_array_oset_implementation): Update.
38502         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38503         gl_tree_create_empty.
38504         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38505         'int'.
38506         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38507         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38508         xmalloc.
38509         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38510         not xmalloc.
38511         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38512         xmalloc.
38513         (gl_avltree_oset_implementation): Update.
38514         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38515         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38516         xmalloc.
38517         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38518         not xmalloc.
38519         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38520         xmalloc.
38521         (gl_rbtree_oset_implementation): Update.
38522         * modules/array-oset (Depends-on): Remove xalloc.
38523         * modules/avltree-oset (Depends-on): Likewise.
38524         * modules/rbtree-oset (Depends-on): Likewise.
38525         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38526         * tests/test-avltree_oset.c: Likewise.
38527         * tests/test-rbtree_oset.c: Likewise.
38528         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38529         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38530         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38531         * NEWS: Mention the change.
38532
38533 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38534
38535         maint.mk: allow a project to override release-prep commands
38536         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38537         commands into a new rule.
38538         (release-prep): New rule.
38539         (release-prep-hook): New overridable variable.
38540
38541 2009-12-13  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38544
38545 2009-12-13  Jim Meyering  <meyering@redhat.com>
38546
38547         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38548         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38549
38550 2009-12-12  Bruno Haible  <bruno@clisp.org>
38551
38552         duplocale: Tweak.
38553         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38554
38555 2009-12-12  Karl Berry  <karl@gnu.org>
38556
38557         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38558
38559 2009-12-12  Bruno Haible  <bruno@clisp.org>
38560
38561         * m4/po.m4: Undo incorrect untabification.
38562
38563 2009-12-12  Bruno Haible  <bruno@clisp.org>
38564
38565         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38566         * modules/c-strtod (Depends-on): Add locale.
38567         * modules/c-strtold (Depends-on): Likewise.
38568
38569 2009-12-12  Bruno Haible  <bruno@clisp.org>
38570
38571         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38572
38573 2009-12-11  Eric Blake  <ebb9@byu.net>
38574
38575         setenv: relax requirement in light of POSIX ruling
38576         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38577         not NULL.
38578         * tests/test-setenv.c (main): Relax test.
38579         * tests/test-unsetenv.c (main): Likewise.
38580         * doc/posix-functions/setenv.texi (setenv): Document this.
38581         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38582
38583 2009-12-11  Bruno Haible  <bruno@clisp.org>
38584
38585         New module 'fd-safer-flag'.
38586         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38587         * lib/dup-safer.c (dup_safer_flag): Remove function.
38588         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38589         * lib/fd-safer.c (fd_safer_flag): Remove function.
38590         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38591         * modules/cloexec (configure.ac): Drop indicator macro.
38592         * modules/fd-safer-flag: New file.
38593         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38594         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38595         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38596
38597 2009-12-11  Bruno Haible  <bruno@clisp.org>
38598
38599         Tests for module 'nl_langinfo'.
38600         * modules/nl_langinfo-tests: New file.
38601         * tests/test-nl_langinfo.sh: New file.
38602         * tests/test-nl_langinfo.c: New file.
38603
38604         New module 'nl_langinfo'.
38605         * lib/nl_langinfo.c: New file.
38606         * m4/nl_langinfo.m4: New file.
38607         * modules/nl_langinfo: New file.
38608         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38609
38610 2009-12-11  Bruno Haible  <bruno@clisp.org>
38611
38612         Tests for module 'langinfo'.
38613         * modules/langinfo-tests: New file.
38614         * tests/test-langinfo.c: New file.
38615
38616         New module 'langinfo'.
38617         * lib/langinfo.in.h: New file.
38618         * m4/langinfo_h.m4: New file.
38619         * modules/langinfo: New file.
38620         * doc/posix-headers/langinfo.texi: Mention the new module.
38621
38622 2009-12-11  Bruno Haible  <bruno@clisp.org>
38623
38624         * lib/config.charset: Untabify.
38625
38626 2009-12-11  Bruno Haible  <bruno@clisp.org>
38627
38628         * modules/unistd-safer (configure.ac): Drop indicator macro.
38629
38630 2009-12-11  Bruno Haible  <bruno@clisp.org>
38631
38632         Move pipe2-safer code to its own file.
38633         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38634         * lib/pipe-safer.c (pipe2_safer): Remove function.
38635         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38636         (Makefile.am): Add it to lib_SOURCES.
38637
38638 2009-12-10  Bruno Haible  <bruno@clisp.org>
38639
38640         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38641
38642 2009-12-10  Bruno Haible  <bruno@clisp.org>
38643
38644         Declare which arguments expect non-NULL values, for GCC and clang.
38645         * build-aux/arg-nonnull.h: New file.
38646         * modules/arg-nonnull: New file.
38647         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38648         (inet_ntop, inet_pton): Use it.
38649         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38650         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38651         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38652         (open, openat): Use it.
38653         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38654         (fnmatch): Use it.
38655         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38656         (getopt, getopt_long, getopt_long_only): Use it.
38657         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38658         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38659         Use it.
38660         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38661         (iconv_open): Use it.
38662         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38663         (strtoimax, strtoumax): Use it.
38664         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38665         (duplocale): Use it.
38666         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38667         (frexp, frexpl): Use it.
38668         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38669         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38670         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38671         (tsearch, tfind, tdelete, twalk): Use it.
38672         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38673         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38674         sigpending): Use it.
38675         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38676         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38677         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38678         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38679         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38680         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38681         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38682         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38683         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38684         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38685         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38686         Use it.
38687         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38688         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38689         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38690         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38691         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38692         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38693         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38694         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38695         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38696         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38697         strtoull, unsetenv): Use it.
38698         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38699         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38700         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38701         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38702         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38703         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38704         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38705         (strcasecmp, strncasecmp): Use it.
38706         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38707         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38708         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38709         rpl_setsockopt): Use it.
38710         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38711         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38712         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38713         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38714         (gettimeofday): Use it.
38715         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38716         (times): Use it.
38717         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38718         (uname): Use it.
38719         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38720         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38721         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38722         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38723         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38724         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38725         unlinkat, write): Use it.
38726         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38727         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38728         * lib/argv-iter.h: Include arg-nonnull.h.
38729         (_ATTRIBUTE_NONNULL_): Remove macro.
38730         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38731         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38732         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38733         optimization.
38734         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38735         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38736         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38737         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38738         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38739         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38740         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38741         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38742         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38743         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38744         * modules/dirent (Depends-on): Add arg-nonnull.
38745         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38746         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38747         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38748         * modules/fnmatch (Depends-on): Add arg-nonnull.
38749         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38750         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38751         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38752         * modules/glob (Depends-on): Add arg-nonnull.
38753         (Makefile.am): Insert arg-nonnull.h into glob.h.
38754         * modules/iconv_open (Depends-on): Add arg-nonnull.
38755         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38756         * modules/inttypes (Depends-on): Add arg-nonnull.
38757         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38758         * modules/locale (Depends-on): Add arg-nonnull.
38759         (Makefile.am): Insert arg-nonnull.h into locale.h.
38760         * modules/math (Depends-on): Add arg-nonnull.
38761         (Makefile.am): Insert arg-nonnull.h into math.h.
38762         * modules/netdb (Depends-on): Add arg-nonnull.
38763         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38764         * modules/search (Depends-on): Add arg-nonnull.
38765         (Makefile.am): Insert arg-nonnull.h into search.h.
38766         * modules/signal (Depends-on): Add arg-nonnull.
38767         (Makefile.am): Insert arg-nonnull.h into signal.h.
38768         * modules/spawn (Depends-on): Add arg-nonnull.
38769         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38770         * modules/stdio (Depends-on): Add arg-nonnull.
38771         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38772         * modules/stdlib (Depends-on): Add arg-nonnull.
38773         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38774         * modules/string (Depends-on): Add arg-nonnull.
38775         (Makefile.am): Insert arg-nonnull.h into string.h.
38776         * modules/strings (Depends-on): Add arg-nonnull.
38777         (Makefile.am): Insert arg-nonnull.h into strings.h.
38778         * modules/sys_socket (Depends-on): Add arg-nonnull.
38779         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38780         * modules/sys_stat (Depends-on): Add arg-nonnull.
38781         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38782         * modules/sys_time (Depends-on): Add arg-nonnull.
38783         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38784         * modules/sys_times (Depends-on): Add arg-nonnull.
38785         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38786         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38787         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38788         * modules/time (Depends-on): Add arg-nonnull.
38789         (Makefile.am): Insert arg-nonnull.h into time.h.
38790         * modules/unistd (Depends-on): Add arg-nonnull.
38791         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38792         * modules/wchar (Depends-on): Add arg-nonnull.
38793         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38794         * modules/argv-iter (Depends-on): Add arg-nonnull.
38795         * tests/test-canonicalize.c (null_ptr): New function.
38796         (main): Use it.
38797         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38798         (main): Use it.
38799         * tests/test-memmem.c (null_ptr): New function.
38800         (main): Use it.
38801         Reported by Jim Meyering.
38802
38803 2009-12-10  Bruno Haible  <bruno@clisp.org>
38804
38805         Use spaces for indentation, not tabs.
38806         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38807         * m4/*.m4: Untabify.
38808         * build-aux/*.h: Untabify.
38809         * tests/**/*.[hc]: Untabify.
38810         * README: New section "Indent with spaces, not TABs", based on
38811         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38812         * NEWS: Mention the change.
38813
38814 2009-12-10  Bruno Haible  <bruno@clisp.org>
38815
38816         pty test: Fix link error.
38817         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38818         test_pty_LDADD.
38819
38820 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38821
38822         * modules/pty: New file.
38823         * modules/pty-tests: New file.
38824         * m4/pty.m4: New file.
38825         * tests/test-pty.c: New file.
38826         * doc/glibc-headers/pty.texi: Modified.
38827         * doc/glibc-functions/forkpty.texi: Modified.
38828         * doc/glibc-functions/openpty.texi: Modified.
38829
38830 2009-12-10  Bruno Haible  <bruno@clisp.org>
38831
38832         Avoid syntax error in C++ mode.
38833         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38834
38835 2009-12-10  Bruno Haible  <bruno@clisp.org>
38836
38837         Use sed with option -e.
38838         * gnulib-tool (func_version, func_emit_copyright_notice,
38839         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38840         option -e to sed.
38841         * modules/link-warning (Makefile.am): Likewise.
38842
38843 2009-12-10  Jim Meyering  <meyering@redhat.com>
38844
38845         mgetgroups: do not write bytes beyond end of malloc'd buffer
38846         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38847         username, we call getgroups with a one-element-shorter buffer,
38848         but still told it the length was original, max_n_groups.
38849
38850 2009-12-09  Eric Blake  <ebb9@byu.net>
38851
38852         cloexec: relax license
38853         * modules/cloexec (Maintainer): Add myself.
38854         (License): Use LGPL, not GPL.
38855
38856         link-warning: optimize generation
38857         * modules/link-warning (Makefile.am): Reduce process usage.
38858
38859 2009-12-09  Bruno Haible  <bruno@clisp.org>
38860
38861         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38862         workaround was added on 2009-11-17.
38863
38864 2009-12-09  Jim Meyering  <meyering@redhat.com>
38865             Bruno Haible  <bruno@clisp.org>
38866
38867         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38868         * modules/link-warning (Makefile.am): Make the comment-removing sed
38869         command more robust in the face of bootstrap-prepended comment lines.
38870
38871 2009-12-09  Bruno Haible  <bruno@clisp.org>
38872
38873         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38874         most one group.
38875
38876 2009-12-09  Simon Josefsson <simon@josefsson.org>
38877             Bruno Haible  <bruno@clisp.org>
38878
38879         * build-aux/link-warning.h: Add copyright notice.
38880         * modules/link-warning (Makefile.am): Generate link-warning.h from
38881         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38882         * NEWS: Mention change in link-warning module.
38883         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38884         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38885         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38886         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38887         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38888         * modules/math (Makefile.am): Add dependency to math.h.
38889         * modules/search (Makefile.am): Add dependency to search.h.
38890         * modules/signal (Makefile.am): Add dependency to signal.h.
38891         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38892         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38893         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38894         * modules/string (Makefile.am): Add dependency to string.h.
38895         * modules/strings (Makefile.am): Add dependency to strings.h.
38896         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38897         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38898         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38899         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38900         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38901         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38902         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38903         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38904         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38905
38906 2009-12-09  Bruno Haible  <bruno@clisp.org>
38907
38908         fchdir: Optimize away rpl_fstat when possible.
38909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38910         REPLACE_OPEN_DIRECTORY.
38911         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38912
38913 2009-12-09  Bruno Haible  <bruno@clisp.org>
38914
38915         * lib/fchdir.c: Update comment.
38916
38917 2009-12-09  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38920
38921 2009-12-08  Eric Blake  <ebb9@byu.net>
38922
38923         fchdir: avoid memory leak on re-registration.
38924         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38925
38926 2009-12-08  Jim Meyering  <meyering@redhat.com>
38927
38928         init.sh: avoid Solaris 10 /bin/sh portability problem
38929         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38930         sourced script:
38931           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38932           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38933           bar
38934         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38935         and two tests used that idiom.
38936         * tests/init.sh: Update suggested usage comments.
38937         (path_prepend_): New function, to be used in place
38938         of the --src-path=DIR option.
38939         (setup_): Move PATH-prepending code into path_prepend_.
38940         * tests/test-pread.sh: Adapt to new usage.
38941         * tests/test-xalloc-die.sh: Likewise.
38942
38943 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38944
38945         * doc/gnulib.texi (Glibc pty.h): Add.
38946         * doc/glibc-functions/forkpty.texi: Add.
38947         * doc/glibc-functions/openpty.texi: Add.
38948         Suggested by Bruno Haible.
38949
38950 2009-12-08  Eric Blake  <ebb9@byu.net>
38951
38952         fchdir: fix logic bugs
38953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38954         * tests/test-fchdir.c (main): Enhance test.
38955         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38956         is in use.
38957
38958         dup2: fix logic bugs
38959         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38960         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38961         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38962         exists.
38963         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38964
38965 2009-12-07  Eric Blake  <ebb9@byu.net>
38966
38967         unlink: fix m4 detection
38968         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38969
38970         unistd-safer: add unit test
38971         * modules/unistd-safer-tests: New file.
38972         * tests/test-dup-safer.c: Likewise.
38973         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38974         * tests/test-dup2.c (setmode): Likewise.
38975         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38976
38977         cloexec: preserve text vs. binary across dup_cloexec
38978         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38979         mode.
38980         * modules/dup2-tests (Depends-on): Add binary-io.
38981         * modules/cloexec-tests (Depends-on): Likewise.
38982         * tests/test-dup2.c (setmode, is_mode): New helpers.
38983         (main): Add tests that translation mode is preserved.
38984         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38985         Reported by Bruno Haible.
38986
38987         mgetgroups: reduce duplicate listings
38988         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38989         resulting array.
38990         * tests/test-chown.h (test_chown): Simplify client.
38991         * tests/test-lchown.h (test_lchown): Likewise.
38992
38993 2009-12-06  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38996         value.
38997
38998 2009-12-06  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/progname.c: Include stdio.h, stdlib.h.
39001         (set_program_name): Reject a NULL argument.
39002
39003 2009-12-05  Eric Blake  <ebb9@byu.net>
39004
39005         pipe2-safer: new module
39006         * modules/pipe2-safer: New file.
39007         * lib/unistd-safer.h (pipe2_safer): New prototype.
39008         * lib/unistd--.h (pipe2): New wrapper.
39009         * lib/pipe-safer.c (pipe2_safer): New function.
39010         * modules/pipe (Depends-on): Add pipe2-safer.
39011         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39012
39013         stdlib-safer: preserve cloexec flag for mkostemp[s]
39014         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39015         fd_safer_flag.
39016
39017         unistd-safer: allow preservation of cloexec status via flag
39018         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39019         prototypes.
39020         * lib/dup-safer.c (dup_safer_flag): New function.
39021         * lib/fd-safer.c (fd_safer_flag): Likewise.
39022         * modules/cloexec (configure.ac): Set witness.
39023
39024         test-dup2: enhance test
39025         * modules/dup2-tests (Depends-on): Add cloexec.
39026         * tests/test-dup2.c (main): Enhance test.
39027
39028         cloexec: add dup_cloexec
39029         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39030         header and comments.
39031         * lib/cloexec.c (set_cloexec_flag): Add comments.
39032         (dup_cloexec): New function, with mingw implementation borrowed
39033         from...
39034         * lib/w32spawn.h (dup_noinherit): ...here.
39035         * modules/execute (Depends-on): Add cloexec.
39036         * modules/pipe (Depends-on): Likewise.
39037         * modules/cloexec (Depends-on): Add dup2.
39038         * modules/cloexec-tests (Files): New file.
39039         * tests/test-cloexec.c: Likewise.
39040
39041         test-xalloc-die: fix test for mingw
39042         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39043         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39044         directory and .exe suffix off argv[0] output.
39045
39046         test-fseeko: fix test for mingw
39047         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39048         than undefining fseek, so test will pass on mingw.
39049
39050 2009-12-05  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/progname.h (set_program_name): Clarify specification.
39053         * lib/progname.c (set_program_name): Likewise.
39054         Reported by Jim Meyering.
39055
39056 2009-12-05  Jim Meyering  <meyering@redhat.com>
39057
39058         maint.mk: backslash-escape parens in default regexp
39059         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39060         backslash-escape the literal parentheses.
39061
39062         maint.mk: news-date-check: use grep -E
39063         * top/maint.mk (today): Define a Make variable, not a...
39064         (news-date-check): ...shell variable.
39065         (news-date-regexp): Use the Make variable.
39066         Use grep's -E option.  Change the failing diagnostic to mention
39067         the variable, $(news-date-regexp).
39068
39069 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39070
39071         maintainer-makefile: allow customization of NEWS entry format
39072         * top/maint.mk (news-date-regexp): New overridable variable.
39073         (news-date-check): Use it.
39074
39075 2009-12-04  Eric Blake  <ebb9@byu.net>
39076
39077         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39078         * lib/mgetgroups.h (xgetgroups): New prototype.
39079         * lib/mgetgroups.c (xgetgroups): New wrapper.
39080         (mgetgroups): Handle ENOSYS.
39081         * modules/mgetgroups (Depends-on): Add realloc.
39082         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39083
39084         mgetgroups: avoid argument promotion issues with -1
39085         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39086         for invalid gid_t.
39087         * tests/test-chown.h (getegid, test_chown): Likewise.
39088         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39089
39090 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39091
39092         exclude: Fix header file problems.
39093         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39094
39095 2009-12-01  Jim Meyering  <meyering@redhat.com>
39096
39097         fts: fts_open: do not let an empty string cause immediate failure
39098         This is required in support of GNU rm, for which the command
39099         "rm A '' B" must process and remove both A and B, in spite of
39100         the empty string argument.
39101         * lib/fts.c (fts_open): Do not let the presence of an empty string
39102         cause fts_open to fail immediately.  Most fts-using tools must be
39103         able to process all arguments, in order, and can be expected to
39104         diagnose such arguments themselves.
39105
39106 2009-11-30  Eric Blake  <ebb9@byu.net>
39107
39108         utimens: fix compilation error
39109         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39110         Declare variable at right scope.
39111
39112 2009-11-29  Jim Meyering  <meyering@redhat.com>
39113
39114         bootstrap: handle perl-5.11's changed --version output
39115         * build-aux/bootstrap (get_version): Handle perl separately,
39116         since perl-5.11's --version output is different.
39117
39118 2009-11-28  Jim Meyering  <meyering@redhat.com>
39119
39120         userspec: depend on the inttostr module, too
39121         * modules/userspec (Depends-on): Add inttostr.
39122
39123         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39124         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39125         number of MAXUID when it evaluates to (uid_t) -1.
39126         Likewise for group ID.  Reported by Matt McCutchen in
39127         <http://savannah.gnu.org/bugs/?28113>
39128
39129         userspec: reformat to use spaces, not TABs
39130         * lib/userspec.c: Expand TABs to spaces.
39131         Add Emacs' "indent-tabs-mode: nil" hint.
39132
39133 2009-11-27  Eric Blake  <ebb9@byu.net>
39134
39135         getopt-gnu: flush out another BSD bug
39136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39137         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39138         flush out BSD bug.
39139         * tests/test-getopt.h (test_getopt): End lists with NULL.
39140         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39141         (test_getopt_long_posix): Enhance test.
39142         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39143         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39144         getopt-gnu.
39145         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39146         Likewise.
39147
39148 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39149
39150         * modules/idpriv-droptemp-tests (Notice): Fix text.
39151
39152 2009-11-27  Jim Meyering  <meyering@redhat.com>
39153
39154         test-xalloc-die: avoid spurious failure due to libtool argv difference
39155         In a libtool-enabled project, this test would fail due to a difference
39156         in the emitted program name, e.g.,
39157         -test-xalloc-die: memory exhausted
39158         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39159         Use program to avoid that.
39160         * modules/xalloc-die-tests (Depends-on): Add progname.
39161         * tests/test-xalloc-die.c: Include progname.h".
39162         (program_name): Remove decl.
39163         (main): Call set_program_name.
39164         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39165
39166 2009-11-26  Richard Jones  <rjones@redhat.com>
39167
39168         w32sock: leave win32 error in place.
39169         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39170
39171 2009-11-26  Eric Blake  <ebb9@byu.net>
39172
39173         init.sh: suggest to use skip_ and fail_ functions in comments
39174         * tests/init.sh: Add a sentence.
39175
39176 2009-11-25  Bruno Haible  <bruno@clisp.org>
39177
39178         init.sh: add documentation in comments
39179         * tests/init.sh: Add some developer and user documentation.
39180
39181 2009-11-26  Jim Meyering  <meyering@redhat.com>
39182
39183         init.sh: accommodate even those who specify bogus srcdir manually
39184         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39185         configure-time tests to be sanitized, so that there is no need to
39186         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39187         (with no double quotes) suffices.  However, since tests may be
39188         invoked manually, and since you may explicitly set srcdir to the
39189         name of a directory containing spaces, do quote its uses here.
39190         * tests/test-pread.sh: Likewise.
39191         Suggested by Bruno Haible.
39192
39193         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39194         * tests/test-pread.sh: Write no data into the pipe, because
39195         test-pread actually reads none.  This avoids a diagnostic,
39196         "bash: echo: write error: Broken pipe", that arises in the unusual
39197         event something is ignoring SIGPIPE, and might be interpreted
39198         as some sort of failure.  Reported by Bruno Haible.
39199
39200 2009-11-25  Jim Meyering  <meyering@redhat.com>
39201
39202         test-pread: cover failure with ESPIPE and EINVAL
39203         * tests/test-pread.c (main): Test for failure, too.
39204         * tests/test-pread.sh: Invoke with stdin on a pipe.
39205         Suggested by Eric Blake.
39206
39207         pread: improvement and fix
39208         * modules/pread (Depends-on): Depend on lseek, for portability to
39209         e.g., mingw.  Suggested by Eric Blake.
39210         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39211
39212         unistd.in.h: correct declaration of pread
39213         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39214         Reported by Richard W.M. Jones.
39215
39216         test-pread.sh: distribute the test script
39217         * modules/pread-tests (Files): Include test-pread.sh.
39218
39219         test-pread.sh: clean up
39220         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39221         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39222         That is unnecessary, since it's always ".".
39223         Suggestion from Eric Blake.
39224
39225         test-pread.sh: make executable
39226         * tests/test-pread.sh: Set executable bit.
39227         Reported by Eric Blake.
39228
39229         correct typo in test-pread.sh
39230         * tests/test-pread.sh: Add #! line.
39231
39232         test pread
39233         * tests/test-pread.c: New file.
39234         * tests/test-pread.sh: Likewise.
39235         * modules/pread-tests: Likewise.
39236
39237         pread: new module
39238         * modules/pread: New file.
39239         * lib/unistd.in.h (pread): Define/declare.
39240         * lib/pread.c (pread): New file.
39241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39242         * modules/unistd (Makefile.am): Substitute witnesses.
39243         * doc/posix-functions/pread.texi (pread): Update.
39244         * MODULES.html.sh: Add pread.
39245
39246 2009-11-25  Jim Meyering  <meyering@redhat.com>
39247
39248         tests/init.sh: new file to be used via most *.sh tests
39249         * tests/init.sh: New file.
39250
39251 2009-11-25  Eric Blake  <ebb9@byu.net>
39252
39253         utimens: work around older Linux failure with symlinks
39254         * lib/utimens.c (lutimensat_works_really): New variable.
39255         (fdutimens, lutimens): Use it to manage kernels that support
39256         nanosecond times on files, but not on symlinks.
39257         Reported by OndÅ™ej Vašík.
39258
39259         utimes: fix configure grammar
39260         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39261
39262 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39263
39264         regex: Fix fastmap for multibyte character ranges.
39265         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39266         characters when a multibyte character range is included.
39267
39268 2009-11-22  Andy Wingo  <wingo@pobox.com>
39269
39270         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39271         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39272
39273 2009-11-24  Bruno Haible  <bruno@clisp.org>
39274
39275         doc: Most *_l functions exist in MacOS X 10.5.
39276         * doc/posix-functions/duplocale.texi: Update platforms list.
39277         * doc/posix-functions/freelocale.texi: Likewise.
39278         * doc/posix-functions/newlocale.texi: Likewise.
39279         * doc/posix-functions/uselocale.texi: Likewise.
39280         * doc/posix-functions/isalnum_l.texi: Likewise.
39281         * doc/posix-functions/isalpha_l.texi: Likewise.
39282         * doc/posix-functions/isblank_l.texi: Likewise.
39283         * doc/posix-functions/iscntrl_l.texi: Likewise.
39284         * doc/posix-functions/isdigit_l.texi: Likewise.
39285         * doc/posix-functions/isgraph_l.texi: Likewise.
39286         * doc/posix-functions/islower_l.texi: Likewise.
39287         * doc/posix-functions/isprint_l.texi: Likewise.
39288         * doc/posix-functions/ispunct_l.texi: Likewise.
39289         * doc/posix-functions/isspace_l.texi: Likewise.
39290         * doc/posix-functions/isupper_l.texi: Likewise.
39291         * doc/posix-functions/iswalnum_l.texi: Likewise.
39292         * doc/posix-functions/iswalpha_l.texi: Likewise.
39293         * doc/posix-functions/iswblank_l.texi: Likewise.
39294         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39295         * doc/posix-functions/iswctype_l.texi: Likewise.
39296         * doc/posix-functions/iswdigit_l.texi: Likewise.
39297         * doc/posix-functions/iswgraph_l.texi: Likewise.
39298         * doc/posix-functions/iswlower_l.texi: Likewise.
39299         * doc/posix-functions/iswprint_l.texi: Likewise.
39300         * doc/posix-functions/iswpunct_l.texi: Likewise.
39301         * doc/posix-functions/iswspace_l.texi: Likewise.
39302         * doc/posix-functions/iswupper_l.texi: Likewise.
39303         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39304         * doc/posix-functions/isxdigit_l.texi: Likewise.
39305         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39306         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39307         * doc/posix-functions/strcoll_l.texi: Likewise.
39308         * doc/posix-functions/strfmon_l.texi: Likewise.
39309         * doc/posix-functions/strftime_l.texi: Likewise.
39310         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39311         * doc/posix-functions/strxfrm_l.texi: Likewise.
39312         * doc/posix-functions/tolower_l.texi: Likewise.
39313         * doc/posix-functions/toupper_l.texi: Likewise.
39314         * doc/posix-functions/towctrans_l.texi: Likewise.
39315         * doc/posix-functions/towlower_l.texi: Likewise.
39316         * doc/posix-functions/towupper_l.texi: Likewise.
39317         * doc/posix-functions/wcscoll_l.texi: Likewise.
39318         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39319         * doc/posix-functions/wctrans_l.texi: Likewise.
39320         * doc/posix-functions/wctype_l.texi: Likewise.
39321         * doc/glibc-functions/strptime_l.texi: Likewise.
39322         * doc/glibc-functions/strtod_l.texi: Likewise.
39323         * doc/glibc-functions/strtof_l.texi: Likewise.
39324         * doc/glibc-functions/strtol_l.texi: Likewise.
39325         * doc/glibc-functions/strtold_l.texi: Likewise.
39326         * doc/glibc-functions/strtoll_l.texi: Likewise.
39327         * doc/glibc-functions/strtoul_l.texi: Likewise.
39328         * doc/glibc-functions/strtoull_l.texi: Likewise.
39329         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39330         * doc/glibc-functions/wcstod_l.texi: Likewise.
39331         * doc/glibc-functions/wcstof_l.texi: Likewise.
39332         * doc/glibc-functions/wcstol_l.texi: Likewise.
39333         * doc/glibc-functions/wcstold_l.texi: Likewise.
39334         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39335         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39336         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39337
39338 2009-11-24  Bruno Haible  <bruno@clisp.org>
39339
39340         duplocale: Fix logic bug.
39341         * lib/duplocale.c: Don't include <langinfo.h>.
39342         (_NL_LOCALE_NAME): Remove macro.
39343         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39344         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39345
39346 2009-11-23  Jim Meyering  <meyering@redhat.com>
39347
39348         test-update-copyright: don't hard-code /usr/bin/perl
39349         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39350         perl to print the current year.  Gilles Espinasse reported that
39351         the replaced use of perl was hard-coded as /usr/bin/perl.
39352
39353 2009-11-23  Bruno Haible  <bruno@clisp.org>
39354
39355         duplocale: Add support for glibc 2.3.x.
39356         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39357
39358 2009-11-22  Bruno Haible  <bruno@clisp.org>
39359
39360         vasnprintf: Tiny optimization.
39361         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39362         MacOS X.
39363
39364 2009-11-22  Bruno Haible  <bruno@clisp.org>
39365
39366         Tests for module 'duplocale'.
39367         * modules/duplocale-tests: New file.
39368         * tests/test-duplocale.c: New file.
39369
39370         New module 'duplocale'.
39371         * m4/duplocale.m4: New file.
39372         * lib/locale.in.h (duplocale): New declaration.
39373         * lib/duplocale.c: New file.
39374         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39375         gl_LOCALE_H_DEFAULTS): New macros.
39376         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39377         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39378         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39379         REPLACE_DUPLOCALE.
39380         * modules/duplocale: New file.
39381         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39382
39383 2009-11-22  Bruno Haible  <bruno@clisp.org>
39384
39385         * modules/locale-tests (configure.ac): Test for newlocale function.
39386         * tests/test-locale.c: When the system has extended locale functions,
39387         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39388
39389         locale: Make locale_t available when possible.
39390         * lib/locale.in.h: Include <xlocale.h> when it exists.
39391         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39392         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39393         * modules/locale (Depends-on): Add extensions.
39394         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39395         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39396
39397 2009-11-22  Bruno Haible  <bruno@clisp.org>
39398
39399         Add comments.
39400         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39401         invocation.
39402         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39403         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39404         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39405
39406 2009-11-22  Bruno Haible  <bruno@clisp.org>
39407
39408         error: account for the possibility of freopen (stdout).
39409         * lib/error.c: Include <unistd.h>.
39410         (flush_stdout): New function, extracted from error and error_at_line.
39411         Determine stdout's fd dynamically.
39412         (error, error_at_line): Invoke flush_stdout.
39413         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39414         * modules/error (Depends-on): Add unistd.
39415
39416 2009-11-22  Bruno Haible  <bruno@clisp.org>
39417
39418         diffseq: Add comment.
39419         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39420
39421 2009-11-22  Jim Meyering  <meyering@redhat.com>
39422
39423         c-stack: avoid defining an unused static function
39424         * lib/c-stack.c (find_stack_direction): Do not define this function
39425         when it will not be used.
39426
39427         diffseq: avoid spurious gcc warnings
39428         * lib/diffseq.h (IF_LINT2): Define.
39429         (compareseq): Use it to initialize two members of "part".
39430         This avoids two used-uninitialized warnings.
39431
39432 2009-11-21  Jim Meyering  <meyering@redhat.com>
39433
39434         c-stack: avoid "ignoring return value of `write'" warning
39435         * lib/c-stack.c: Include "ignore-value.h".
39436         (die): Explicitly ignore each write return value.
39437         * modules/c-stack (Depends-on): Add ignore-value.
39438
39439 2009-11-21  Bruno Haible  <bruno@clisp.org>
39440
39441         diffseq: reduce scope of variable 'best'.
39442         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39443         variable, earlier used for two different purposes.
39444
39445 2009-11-21  Jim Meyering  <meyering@redhat.com>
39446
39447         diffseq: remove useless assignment to "best"
39448         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39449         assignment.  At that point "best" is already guaranteed to be zero.
39450
39451 2009-11-20  Eric Blake  <ebb9@byu.net>
39452
39453         build: mention ftp redirector in release announcements
39454         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39455         values that used to come from cfg.mk; mention FTP redirect URL.
39456         * build-aux/announce-gen: Mention the mirror list.
39457         Suggested by Karl Berry.
39458
39459         nanosleep: improve port to mingw
39460         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39462         LIB_NANOSLEEP, but only when needed.
39463         * modules/select (Link): Document LIBSOCKET.
39464         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39465         enough.
39466
39467         nanosleep: work around cygwin bug
39468         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39469         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39470         bug.
39471         (getnow): Delete, not needed.
39472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39473         LIB_CLOCK_GETTIME.
39474         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39475         clock-time, gettime.
39476         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39477         bug.
39478         * modules/nanosleep-tests: New test.
39479         * tests/test-nanosleep.c: New file.
39480
39481         sleep: work around cygwin bug
39482         * lib/sleep.c (rpl_sleep): Work around the bug.
39483         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39484         (gl_PREREQ_SLEEP): Delete unused macro.
39485         * modules/sleep (Depends-on): Add verify.
39486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39487         * modules/unistd (Makefile.am): Substitute witness.
39488         * lib/unistd.in.h (sleep): Update prototype.
39489         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39490         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39491         * modules/sleep-tests (Depends-on): Check for alarm.
39492
39493 2009-11-20  Jim Meyering  <meyering@redhat.com>
39494
39495         maint.mk: improve sc_prohibit_magic_number_exit
39496         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39497         so it does not match uses like System.exit(1).
39498         Add comments showing how to correct all offenders.
39499
39500 2009-11-19  Eric Blake  <ebb9@byu.net>
39501
39502         xalloc-die-tests: add missing library
39503         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39504
39505         test-xvasprintf: silence compiler warnings
39506         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39507         empty string from gcc.
39508
39509 2009-11-19  Jim Meyering  <meyering@redhat.com>
39510
39511         xfreopen: new module, from coreutils
39512         * modules/xfreopen: New module.
39513         * lib/xfreopen.c: New file.
39514         * lib/xfreopen.h: New file.
39515         * MODULES.html.sh (File stream based Input/Output"): Add it.
39516
39517 2009-11-19  Eric Blake  <ebb9@byu.net>
39518
39519         manywarnings: depend on warnings
39520         * modules/manywarnings (Depends-on): Add warnings.
39521
39522         build: avoid compiler warnings
39523         * lib/select.c (rpl_select): Delete unused variable.
39524         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39525
39526 2009-11-18  Eric Blake  <ebb9@byu.net>
39527
39528         tests: avoid false negative with --with-packager
39529         * tests/test-version-etc.sh: Discard packager information.
39530         * tests/test-argp-version-etc-1.sh: Likewise.
39531         Reported by Mike Frysinger.
39532
39533         utimens: fix regression on Solaris
39534         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39535         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39536         can only change fd timestamps via futimesat.  Instead, use an
39537         additional witness macro to avoid BSD bug.
39538         Reported by Jim Meyering.
39539
39540 2009-11-17  Eric Blake  <ebb9@byu.net>
39541
39542         usleep: use it to simplify tests
39543         * modules/stat-time-tests (Depends-on): Add usleep.
39544         (configure.ac): Drop usleep check.
39545         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39546         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39547         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39548         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39549         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39550         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39551         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39552         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39553         Likewise.
39554         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39555         * tests/test-lchown.h (nap): Likewise.
39556         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39557         * tests/test-stat-time.c (nap): Likewise.
39558         * tests/test-utimens-common.h (nap): Update comments.
39559
39560         usleep: new module
39561         * modules/usleep: New file.
39562         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39563         * lib/usleep.c (usleep): Likewise.
39564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39565         * modules/unistd (Makefile.am): Substitute witnesses.
39566         * lib/unistd.in.h (usleep): Add declaration.
39567         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39568         * MODULES.html.sh (Date and time): Likewise.
39569         * modules/usleep-tests (Depends-on): New test.
39570         * tests/test-usleep.c: New file.
39571
39572         chown: work around OpenBSD bug
39573         * lib/chown.c (rpl_chown): Work around the bug.
39574         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39575         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39577         * modules/chown (Depends-on): Add stdbool.
39578         * modules/lchown (Depends-on): Likewise.
39579         * doc/posix-functions/chown.texi (chown): Document the bug.
39580         * doc/posix-functions/lchown.texi (lchown): Likewise.
39581         * tests/test-lchown.h (test_chown): Relax test.
39582
39583         mkstemp: avoid conflict with C++ keyword template
39584         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39585         * lib/mkostemp.c (mkostemp): Likewise.
39586         * lib/mkostemps.c (mkostemps): Likewise.
39587         * lib/mkstemp.c (mkstemp): Likewise.
39588         * lib/mkstemps.c (mkstemps): Likewise.
39589
39590         xalloc-die-tests: optimize
39591         * tests/test-xalloc-die.sh: Reduce number of processes.
39592
39593 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39594
39595         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39596         patch from ludo@gnu.org (Ludovic Courtès).
39597
39598 2009-11-17  Jim Meyering  <meyering@redhat.com>
39599
39600         version-etc: use proper license string
39601         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39602         * modules/version-etc-fsf: Likewise.
39603
39604 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39605
39606         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39607         printed to stdout.  Deal with EOL differences.
39608
39609 2009-11-17  Eric Blake  <ebb9@byu.net>
39610
39611         unsetenv: work around Solaris bug
39612         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39613         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39614         Reported by Jim Meyering.
39615
39616         vasnprintf: avoid compiler warnings
39617         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39618         variables.
39619         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39620
39621 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39622
39623         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39624         settings since xalloc-die is no longer the self test,
39625         xalloc-die.sh is.
39626
39627 2009-11-17  Jim Meyering  <meyering@redhat.com>
39628
39629         test-xalloc-die.sh: make the code agree with the commit log
39630         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39631         at the end, just in case you happen to have a test-xalloc-die
39632         program in some other PATH directory.
39633
39634         test-xalloc-die.sh: fix a portability bug
39635         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39636         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39637         Otherwise, argv[0] (as often seen in diagnostics) would be too
39638         system-dependent, sometimes with, and sometimes without the leading "./".
39639
39640         version-etc-fsf: relax license to LGPLv3+
39641         * modules/version-etc-fsf (License): Relax license.
39642
39643 2009-11-16  Eric Blake  <ebb9@byu.net>
39644
39645         xalloc-die-tests: avoid printing null pointer
39646         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39647         shell script.
39648         * tests/test-xalloc-die.c (program_name): Declare.
39649         * tests/test-xalloc-die.sh (tmpfiles): New file.
39650
39651         setenv, unsetenv: work around various bugs
39652         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39653         (setenv) [HAVE_SETENV]: Work around bugs.
39654         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39655         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39656         for bugs.
39657         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39658         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39660         * modules/stdlib (Makefile.am): Update substitutions.
39661         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39662         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39663         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39664         * modules/setenv-tests: New test.
39665         * modules/unsetenv-tests: Likewise.
39666         * tests/test-setenv.c: New file.
39667         * tests/test-unsetenv.c: Likewise.
39668
39669 2009-11-16  Jim Meyering  <meyering@redhat.com>
39670
39671         version-etc: relax license to LGPLv3+
39672         * modules/version-etc (License): Relax license.
39673
39674         better AC_REQUIRE expanded-before-required-warning avoidance
39675         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39676         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39677         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39678         which is no longer needed.
39679
39680 2009-11-16  Eric Blake  <ebb9@byu.net>
39681
39682         test-freading: clean up temporary file
39683         * tests/test-freading.c (main): Remove file on success, and use
39684         ASSERT more liberally.
39685         Reported by Jim Meyering.
39686
39687 2009-11-16  Jim Meyering  <meyering@redhat.com>
39688
39689         avoid new AC_REQUIRE expanded-before-required warnings
39690         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39691         merely using it.
39692         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39693         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39694
39695 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39696
39697         * tests/test-xalloc-die.c: New file.
39698         * modules/xalloc-die-tests: New file.
39699         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39700         XFAIL_TESTS so it can be appended by modules.
39701
39702 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39703
39704         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39705         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39706
39707 2009-11-14  Eric Blake  <ebb9@byu.net>
39708
39709         fnmatch: avoid compiler warning
39710         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39711         to silence compiler warning about mismatch signedness in ?:.
39712         Reported by Robert Millan.
39713
39714         intprops: add double-inclusion guard
39715         * lib/intprops.h: Allow idempotent includes.
39716         Suggested by Bruce Korb.
39717
39718         openat: detect Solaris fchownat bug
39719         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39720         penalizing glibc chownat when only lchownat is broken.
39721         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39722         trailing slash bugs.
39723         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39724         * modules/openat-tests (Files): Include more files.
39725         (Depends-on): Add mgetgroups, sleep, stat-time.
39726         (configure.ac): Add additional checks.
39727         (Makefile.am): Build new test.
39728         * tests/test-fchownat.c: New file.
39729
39730         lchown: detect Solaris and FreeBSD bug
39731         * lib/lchown.c (rpl_lchown): Work around bug.
39732         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39734         * modules/unistd (Makefile.am): Populate it.
39735         * lib/unistd.in.h (lchown): Update declaration.
39736         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39737         * modules/lchown-tests: New file.
39738         * tests/test-lchown.h (test_lchown): Likewise.
39739         * tests/test-lchown.c (main): Likewise.
39740
39741         chown: detect Solaris and FreeBSD bug
39742         * lib/chown.c (rpl_chown): Work around bug.
39743         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39744         (gl_PREREQ_CHOWN): Delete.
39745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39746         * modules/unistd (Makefile.am): Populate it.
39747         * lib/unistd.in.h (chown): Update declaration.
39748         * lib/lchown.c (chown): Update client.
39749         * modules/lchown (Depends-on): Add lstat.
39750         * doc/posix-functions/chown.texi (chown): Document the bug.
39751         * doc/posix-functions/getgroups.texi (getgroups): Document
39752         getgroups pitfall.
39753         * modules/chown-tests: New file.
39754         * tests/test-chown.h (test_chown): Likewise.
39755         * tests/test-chown.c (main): Likewise.
39756
39757 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39758
39759         gnulib-tool: correctly detect absence of m4 directories
39760         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39761
39762 2009-11-14  Jim Meyering  <meyering@redhat.com>
39763
39764         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39765         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39766
39767 2009-11-14  John W. Eaton  <jwe@gnu.org>
39768
39769         strftime.h: wrap function declaration in extern "C" block
39770         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39771
39772 2009-11-13  Eric Blake  <ebb9@byu.net>
39773
39774         getgroups: avoid compiler warning
39775         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39776
39777         getgroups: work around FreeBSD bug
39778         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39779         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39780         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39781         * tests/test-getgroups.c (main): Fix buffer overrun.
39782
39783         getgroups: avoid compilation failure
39784         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39785         * modules/getgroups (Depends-on): Add stdint.
39786
39787 2009-11-13  Jim Meyering  <meyering@redhat.com>
39788
39789         test-getgroups: avoid compilation failure
39790         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39791
39792 2009-11-13  Eric Blake  <ebb9@byu.net>
39793
39794         mgetgroups: new module, taken from coreutils
39795         * modules/mgetgroups: New file.
39796         * lib/mgetgroups.h: Likewise.
39797         * lib/mgetgroups.c (mgetgroups): Likewise.
39798         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39799         * MODULES.html.sh (Users and groups): Mention it.
39800
39801         getgroups: don't expose GETGROUPS_T to user
39802         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39803         an element at a time if GETGROUPS_T is wrong size.
39804         * lib/getugroups.h (getugroups): Change signature.
39805         * lib/unistd.in.h (getgroups): Likewise.
39806         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39807         signature needs fixing.
39808         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39809         AC_TYPE_GETGROUPS.
39810         * modules/group-member (Depends-on): Add getgroups.
39811         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39812         (group_member): Rely on getgroups replacement.
39813         * lib/getugroups.c (getugroups): Use gid_t.
39814         * tests/test-getgroups.c (main): Likewise.
39815         * NEWS: Mention the signature change.
39816         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39817         problem with signature.
39818         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39819         GETGROUPS_T is still useful for setgroups.
39820
39821         getgroups, getugroups: provide stubs for mingw
39822         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39823         * lib/getugroups.c (getugroups): Likewise.
39824         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39825         function.  Modernize replacement scheme.
39826         (gl_PREREQ_GETGROUPS): Delete.
39827         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39828         * modules/getgroups (configure.ac): Declare witness.
39829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39830         * modules/unistd (Depends-on): Substitute witness.
39831         * lib/unistd.in.h (getgroups): Declare replacement.
39832
39833         getgroups: avoid calling exit
39834         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39835         drop xalloc.
39836         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39837         dependencies.
39838         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39839         exiting, in the rare case of malloc failure.
39840
39841         getgroups: fix logic error
39842         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39843         has more than 20 groups.
39844         * modules/getgroups-tests: New test.
39845         * tests/test-getgroups.c: New file.
39846
39847 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39848
39849         * tests/test-base64.c: Improve.
39850
39851 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39852
39853         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39854         Blake <ebb9@byu.net>.
39855
39856 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39857
39858         * tests/test-xvasprintf.c: Add %s%s related checks.
39859
39860 2009-11-12  Eric Blake  <ebb9@byu.net>
39861
39862         version-etc: match standards.texi style
39863         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39864         and use <> only for URLs.
39865
39866 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39867
39868         fts: do not fail on a submount during traversal
39869         * lib/fts.c (fts_build): Read the stat info again after opening
39870         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39871         Original report at http://bugzilla.redhat.com/501848.
39872
39873 2009-11-12  Jim Meyering  <meyering@redhat.com>
39874
39875         bootstrap: sync from coreutils
39876         * build-aux/bootstrap (bootstrap_epilogue): New function.
39877         Use git_modules_config in one more place.  This make bootstrap's
39878         --gnulib-srcdir option more useful for testing.
39879
39880         bootstrap: generalize autoheader check
39881         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39882         AC_CONFIG_HEADERS.
39883
39884 2009-11-11  Eric Blake  <ebb9@byu.net>
39885
39886         mkfifoat: use new modules for Solaris and BSD bugs
39887         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39888         * lib/mkfifoat.c (mknodat): Split...
39889         * lib/mknodat.c (mknodat): ...into new file.
39890         * modules/mkfifoat (Files): Ship new file.
39891         (Depends-on): Add mkfifo, mknod.
39892         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39893         (Depends-on): Add symlink.
39894         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39895         redundant with test_mkfifo.h.
39896         (do_mkfifoat, do_mknodat): New helpers.
39897
39898         mknod: new module
39899         * modules/mknod: New file.
39900         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39901         * lib/mknod.c (mknod): Likewise.
39902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39903         defaults.
39904         * modules/sys_stat (Makefile.am): Substitute them.
39905         * lib/sys_stat.in.h (mknod): Declare replacement.
39906         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39907         Document it.
39908         * doc/posix-functions/mknod.texi (mknod): Likewise.
39909         * modules/mknod-tests: New test.
39910         * tests/test-mknod.c: Likewise.
39911
39912         mkfifo: new module
39913         * modules/mkfifo: New file.
39914         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39915         * lib/mkfifo.c (mkfifo): Likewise.
39916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39917         defaults.
39918         * modules/sys_stat (Makefile.am): Substitute them.
39919         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39920         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39921         Document it.
39922         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39923         * modules/mkfifo-tests: New test.
39924         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39925         from test-mkfifoat.c.
39926         * tests/test-mkfifo.c: New file.
39927
39928         readlink: detect FreeBSD bug
39929         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39930         slash on symlink.
39931         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39932         * tests/test-readlink.h (test_readlink): Enhance test.
39933
39934         symlink: detect FreeBSD bug
39935         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39936         slash on symlink.
39937         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39938         * tests/test-symlink.h (test_symlink): Enhance test.
39939
39940 2009-11-10  Eric Blake  <ebb9@byu.net>
39941
39942         link: detect FreeBSD bug
39943         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39944         symlink.
39945         * doc/posix-functions/link.texi (link): Document the bug.
39946         * tests/test-link.h (test_link): Enhance test.
39947         * tests/test-linkat.c (main): Update caller.
39948
39949         unlink, remove: detect FreeBSD bug
39950         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39951         slash on symlink.
39952         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39953         * doc/posix-functions/remove.texi (remove): Likewise.
39954         * tests/test-unlink.h (test_unlink): Enhance test.
39955         * tests/test-remove.c (main): Likewise.
39956
39957 2009-11-09  Eric Blake  <ebb9@byu.net>
39958
39959         rename: detect FreeBSD bug
39960         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39961         slash on symlink.
39962         * modules/renameat-tests (Depends-on): Add filenamecat.
39963         * tests/test-rename.h (test_rename): Allow one more errno.
39964         * tests/test-renameat.c (main): Likewise.
39965         * doc/posix-functions/rename.texi (rename): Document the bug.
39966
39967         open: detect FreeBSD bug
39968         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39969         symlink.
39970         * doc/posix-functions/open.texi (open): Document the bug.
39971         * doc/posix-functions/utimes.texi (utimes): Likewise.
39972         * tests/test-open.h (test_open): Add parameters, and test symlink
39973         handling.
39974         * tests/test-open.c (main): Adjust caller.
39975         * tests/test-fcntl-safer.c (main): Likewise.
39976         * modules/open-tests (Depends-on): Add stdbool, symlink.
39977         * modules/fcntl-safer-tests (Depends-on): Likewise.
39978         * tests/test-openat.c (main): Add test-open tests.
39979
39980         stat: detect FreeBSD bug
39981         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39982         symlink.
39983         * doc/posix-functions/stat.texi (stat): Document the bug.
39984         * tests/test-stat.h (test_stat_func): Add argument.
39985         * tests/test-stat.c (main): Adjust caller.
39986         * tests/test-fstatat.c (main): Likewise.
39987         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39988         Reported by Jim Meyering.
39989
39990 2009-11-09  James Youngman  <jay@gnu.org>
39991
39992         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39993         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39994
39995 2009-11-08  Jim Meyering  <meyering@redhat.com>
39996
39997         utimens: remove invalid futimesat call
39998         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39999         It used the file descriptor of the target file as the DIR_FD
40000         parameter and NULL as the file name.  That caused failure with
40001         errno == EFAULT on FreeBSD-8.0-rc2
40002
40003 2009-11-07  Eric Blake  <ebb9@byu.net>
40004
40005         fflush, freadseek: use fseeko, not fseek
40006         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40007         (clear_ungetc_buffer): Avoid potential problems on large files.
40008         * lib/freadseek.c (freadseek): Likewise.
40009         * modules/freadseek (Depends-on): Add fseeko.
40010         * modules/fseek (configure.ac): Set a witness.
40011         * tests/test-fflush.c (main): Use fseeko.
40012         * tests/test-fpurge.c (fseek): Disable link warning.
40013         * tests/test-freadable.c (fseek): Likewise.
40014         * tests/test-freading.c (fseek): Likewise.
40015         * tests/test-fseeko.c (fseek): Likewise.
40016         * tests/test-ftell.c (fseek): Likewise.
40017         * tests/test-ftello.c (fseek): Likewise.
40018         * tests/test-fwritable.c (fseek): Likewise.
40019         * tests/test-fwriting.c (fseek): Likewise.
40020
40021 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40022
40023         * modules/memchr (Depends-on): Drop getpagesize dependency.
40024
40025 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40026
40027         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40028         Reported by Ludovic Courtès.
40029         * build-aux/pmccabe2html: Improve example usage.
40030         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40031
40032 2009-11-06  Jim Meyering  <meyering@redhat.com>
40033
40034         do-release-commit-and-tag: New module.
40035         Automate the release-commit and tag process.
40036         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40037         * modules/do-release-commit-and-tag: New file.
40038         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40039
40040 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40041
40042         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40043         because test-select.c uses inet_pton.
40044
40045 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40046
40047         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40048         GETADDRINFO_LIB.  Bump serial number.
40049         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40050         Suggested by Eric Blake <ebb9@byu.net>.
40051
40052 2009-11-05  Eric Blake  <ebb9@byu.net>
40053
40054         strtod: detect darwin bug
40055         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40056         Reported by Leo Davis.
40057
40058         freopen-safer: new module
40059         * modules/freopen-safer: New module.
40060         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40061         * lib/freopen-safer.c (freopen_safer): New file.
40062         * lib/stdio-safer.h (freopen_safer): New declaration.
40063         * lib/stdio--.h (freopen): New override.
40064         * MODULES.html.sh (File stream based Input/Output): Mention it.
40065         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40066         freopen-safer module.
40067         * doc/posix-functions/stderr.texi (stderr): Likewise.
40068         * doc/posix-functions/stdin.texi (stdin): Likewise.
40069         * doc/posix-functions/stdout.texi (stdout): Likewise.
40070         * modules/freopen-safer-tests: New test.
40071         * tests/test-reopen-safer.c: New file.
40072
40073 2009-11-05  Jim Meyering  <meyering@redhat.com>
40074
40075         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40076         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40077
40078 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40079
40080         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40081
40082 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40083
40084         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40085
40086 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40087
40088         Fix link error.
40089         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40090         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40091
40092 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40093
40094         * tests/test-func.c: Also test value of __func__.
40095
40096 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40097
40098         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40099         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40100
40101 2009-11-05  Bruno Haible  <bruno@clisp.org>
40102
40103         Fix link error.
40104         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40105         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40106         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40107
40108 2009-11-05  Bruno Haible  <bruno@clisp.org>
40109
40110         Tests for module 'inet_pton'.
40111         * modules/inet_pton-tests: New file.
40112         * tests/test-inet_pton.c: New file.
40113
40114 2009-11-05  Bruno Haible  <bruno@clisp.org>
40115
40116         Tests for module 'inet_ntop'.
40117         * modules/inet_ntop-tests: New file.
40118         * tests/test-inet_ntop.c: New file.
40119
40120 2009-11-04  Eric Blake  <ebb9@byu.net>
40121
40122         stdlib-safer: wrap all mkstemp variants
40123         * modules/mkostemp (configure.ac): Set witness.
40124         * modules/mkostemps (configure.ac): Likewise.
40125         * modules/mkstemps (configure.ac): Likewise.
40126         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40127         (mkstemps_safer): Wrap more functions.
40128         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40129         wrapping.
40130         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40131         (mkstemps_safer): Implement the wrappers.
40132
40133         mkstemps, mkostemps: new modules
40134         * modules/mkostemps: New module.
40135         * modules/mkstemps: Likewise.
40136         * lib/mkostemps.c (mkostemps): New file.
40137         * lib/mkstemps.c (mkstemps): Likewise.
40138         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40139         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40141         * modules/stdlib (Makefile.am): Substitute them.
40142         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40143         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40144         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40145         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40146         * MODULES.html.sh (File system functions): Mention them.
40147
40148         tempname: resync from glibc
40149         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40150         same values for __GT_FILE as glibc.  Abort even when assertions
40151         are disabled.
40152         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40153         match its value otherwise.  Allow idempotent inclusion.
40154         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40155         * lib/mkostemp.c (mkostemp): Likewise.
40156         * lib/mkstemp.c (mkstemp): Likewise.
40157         * lib/tmpfile.c (tmpfile): Likewise.
40158         * NEWS: Document this.
40159
40160         utimens: fix use of futimens on older Linux
40161         * lib/utimens.c (fdutimens): Use updated, rather than original,
40162         timespec to avoid bug in older Linux kernel.
40163         Reported by Simon Josefsson.
40164
40165 2009-11-04  Bruno Haible  <bruno@clisp.org>
40166
40167         Make num_processors more flexible and consistent.
40168         * lib/nproc.h (enum nproc_query): New type.
40169         (num_processors): Add a 'query' argument.
40170         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40171         (num_processors): Add a 'query' argument. Test the value of the
40172         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40173         mingw, count the number of CPUs available for the current process.
40174         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40175         Check for sched_getaffinity and sched_getaffinity_np.
40176         * modules/nproc (Depends-on): Add c-ctype, extensions.
40177         * NEWS: Mention the change.
40178
40179 2009-11-03  Bruno Haible  <bruno@clisp.org>
40180
40181         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40182
40183 2009-11-03  Jim Meyering  <meyering@redhat.com>
40184
40185         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40186         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40187         if it is defined.
40188
40189 2009-11-02  Eric Blake  <ebb9@byu.net>
40190
40191         mktime, timegm: share common declaration
40192         * lib/mktime-internal.h: New file.
40193         * lib/mktime.c: Use it rather than open-coding a declaration.
40194         * lib/timegm.c: Likewise.
40195         * modules/mktime (Files): Ship it.
40196         * modules/timegm (Files): Likewise.
40197         Suggested by Bruno Haible.
40198
40199         test-update-copyright: update test to match script changes
40200         * tests/test-update-copyright.sh: Avoid hard-coding perl
40201         location.  Don't update *.bak created by earlier runs.
40202
40203 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40204             Simon Josefsson  <simon@josefsson.org>
40205             Bruno Haible  <bruno@clisp.org>
40206
40207         Fix link error on Solaris 8.
40208         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40209         also in libnsl. Define also INET_PTON_LIB.
40210         * modules/inet_pton (Link): New section.
40211
40212 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40213             Bruno Haible  <bruno@clisp.org>
40214
40215         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40216         * modules/inet_ntop (Link): New section.
40217         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40218
40219 2009-11-02  Eric Blake  <ebb9@byu.net>
40220
40221         maint: avoid compiler warnings in m4 macros
40222         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40224
40225 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40226
40227         * m4/pmccabe2html.m4: Remove file.
40228         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40229         function.  Change maintainer.
40230         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40231         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40232         Courtès).
40233
40234 2009-10-31  Eric Blake  <ebb9@byu.net>
40235
40236         fseeko: fix m4 regression
40237         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40238         regression from 2009-10-27.
40239         Reported by Ralf Wildenhues.
40240
40241 2009-10-31  Jim Meyering  <meyering@redhat.com>
40242
40243         inttostr: aesthetics and improved (compile-time) safety
40244         Define inttype_is_signed rather than inttype_is_unsigned,
40245         since the sole use is via "#if inttype_is_signed".
40246         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40247         inttype_is_unsigned.
40248         * lib/offtostr.c (inttype_is_signed): Likewise.
40249         * lib/uinttostr.c (inttype_is_signed): Likewise.
40250         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40251         * lib/inttostr.c (inttostr): Use verify to cross-check the
40252         inttype_is_signed value and the signedness of the actual type.
40253         * modules/inttostr (Depends-on): Add verify.
40254
40255 2009-10-30  Eric Blake  <ebb9@byu.net>
40256
40257         build: avoid compiler warnings
40258         * lib/fchmodat.c (lchmod): Mark unused variables.
40259         * lib/getopt.c (_getopt_initialize): Likewise.
40260         * lib/mktime.c (__mktime_internal): Provide prototype.
40261         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40262         older gcc that do not understand #pragma GCC diagnostic.
40263         * lib/uinttostr.c (inttype_is_unsigned): Define.
40264         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40265
40266 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40267
40268         stat: fix compilation on AIX
40269         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40270         only see struct stat64.
40271
40272 2009-10-30  Eric Blake  <ebb9@byu.net>
40273
40274         exclude: make more robust
40275         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40276         rather than masking a coding bug.
40277         Suggested by Bruno Haible.
40278
40279 2009-10-30  Jim Meyering  <meyering@redhat.com>
40280
40281         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40282         Rather than putting #!/usr/bin/perl on the first line,
40283         start with a variant of what's recommended by "man perlrun" that
40284         invokes the first "perl" program from your shell's search path.
40285         * build-aux/gitlog-to-changelog: Replace #!... as above.
40286         Add a "Local Variables" perl mode setting.
40287         Prompted by a patch from Ludovic Courtès.
40288         Improved by Eric Blake.
40289         * build-aux/useless-if-before-free: Likewise.
40290         * build-aux/announce-gen: Likewise.
40291         * build-aux/update-copyright: Likewise.
40292
40293 2009-10-29  Eric Blake  <ebb9@byu.net>
40294
40295         filenamecat-lgpl: adjust clients
40296         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40297         filenamecat.
40298         * modules/renameat (Depends-on): Likewise.
40299
40300         filenamecat: split into filenamecat-lgpl
40301         * modules/filenamecat-lgpl: New module.
40302         * modules/filenamecat (Files): Move library-safe files into
40303         filenamecat-lgpl.
40304         (Depends-on): Add filenamecat-lgpl.
40305         (configure.ac): Declare witness.
40306         * lib/filenamecat.h (file_name_concat): Only declare when using
40307         GPL module.
40308         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40309         Move...
40310         * lib/filenamecat-lgpl.c: ...into new file.
40311         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40312         (gl_FILE_NAME_CONCAT): Use it.
40313         * MODULES.html.sh (File system functions): Mention new module.
40314
40315         argp: avoid memory leak
40316         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40317         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40318         base_name, since the latter malloc()s and can call exit().
40319         Leak introduced 2006-07-03.
40320
40321         dirname-lgpl: adjust clients that don't need full dirname
40322         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40323         * modules/filenamecat (Depends-on): Likewise.
40324         * modules/linkat (Depends-on): Likewise.
40325         * modules/mkancesdirs (Depends-on): Likewise.
40326         * modules/mkdir (Depends-on): Likewise.
40327         * modules/openat (Depends-on): Likewise.
40328         * modules/savewd (Depends-on): Likewise.
40329         * modules/rename (Depends-on): Likewise.
40330         (License): Relax license.
40331         * modules/mkdir-tests (Depends-on): Drop progname.
40332         (Makefile.am): Delete unneeded LDADD.
40333         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40334
40335         dirname: split into dirname-lgpl
40336         * modules/dirname-lgpl: New module.
40337         * modules/dirname (Files): Move library-safe files into
40338         dirname-lgpl.
40339         (Depends-on): Add dirname-lgpl.
40340         (configure.ac): Declare witness.
40341         * modules/double-slash-root (License): Relax license.
40342         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40343         module.
40344         * lib/dirname.c (dir_len, mdir_name): Move...
40345         * lib/dirname-lgpl.c: ...into new file.
40346         * lib/basename.c (last_component, base_len): Move...
40347         * lib/basename-lgpl.c: ...into new file.
40348         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40349         (gl_DIRNAME): Use it.
40350         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40351         Mention new module.
40352         * modules/dirname-tests (Depends-on): Add progname.
40353         * tests/test-dirname.c (program_name): Delete.
40354
40355         mkdir: make safe for libraries
40356         * modules/mkdir (Depends-on): Drop xalloc.
40357         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40358         exit.
40359
40360         tests: avoid some compiler warnings
40361         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40362         literals.
40363         * tests/test-memchr.c (main): Avoid type mismatch.
40364         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40365         * tests/test-base64.c (main): Likewise.
40366         * tests/test-getdelim.c (main): Likewise.
40367         * tests/test-gethostname.c (main): Likewise.
40368         * tests/test-getline.c (main): Likewise.
40369         * tests/test-netinet_in.c (main): Likewise.
40370         * tests/test-select.c (open_server_socket, main): Likewise.
40371         * tests/test-select-stdin.c (main): Likewise.
40372         * tests/test-sockets.c (main): Likewise.
40373         * tests/test-strsignal.c (main): Likewise.
40374         * tests/test-sys_select.c (main): Likewise.
40375         * tests/test-sys_socket.c (main): Likewise.
40376         * tests/test-u64.c (main): Likewise.
40377         * tests/test-xfprintf-posix.c (main): Likewise.
40378         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40379
40380         sockets: avoid compiler warning
40381         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40382
40383         maint: detect usage(1) and other suspicious exits
40384         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40385
40386 2009-10-29  Jim Meyering  <meyering@redhat.com>
40387
40388         timespec: long-to-int truncation could make timespec_cmp malfunction
40389         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40390         a multiple of 2^32 nanoseconds as no difference.
40391
40392 2009-10-28  Jim Meyering  <meyering@redhat.com>
40393
40394         fprintftime: wrap macro code argument in "do {...} while(0)"
40395         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40396         cpy macro must be a statement that can be followed by a semicolon.
40397         Now that the else clause contains a comment and is hence longer
40398         than one line, I require curly braces.  That in turn requires
40399         that we wrap this code block in the standard do...while(0).
40400
40401         fprintftime: remove stray semicolon from previous change
40402         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40403
40404         fprintftime: avoid a warning about ignored fwrite return value
40405         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40406         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40407         that is unsafe.
40408         * modules/fprintftime (Depends-on): Add ignore-value.
40409
40410         exclude: avoid an unwarranted warning
40411         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40412
40413 2009-10-27  Eric Blake  <ebb9@byu.net>
40414
40415         fseek: avoid compilation failure when fflush is replaced
40416         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40417         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40418         module is in use.
40419         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40420         module is not in use; since REPLACE_FSEEK worked otherwise.
40421         (GNULIB_FTELLO): Likewise for ftell.
40422         Reported by Ian Beckwith and others.
40423
40424 2009-10-27  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40427         Reported by Jim Meyering.
40428
40429 2009-10-27  Jim Meyering  <jim@meyering.net>
40430             Bruno Haible  <bruno@clisp.org>
40431
40432         Avoid warning despite dropping the return value of fwrite.
40433         * lib/unicodeio.c: Include ignore-value.h.
40434         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40435         * modules/unicodeio (Depends-on): Add ignore-value.
40436
40437 2009-10-26  Eric Blake  <ebb9@byu.net>
40438
40439         areadlinkat: fix fallback path
40440         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40441         pointer and zero.
40442
40443 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40444
40445         Use a better IO block size for modern systems
40446         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40447         * lib/md2.c: Likewise.
40448         * lib/md4.c: Likewise.
40449         * lib/md5.c: Likewise.
40450         * lib/sha1.c: Likewise.
40451         * lib/sha256.c: Likewise.
40452         * lib/sha512.c: Likewise.
40453
40454 2009-10-22  Eric Blake  <ebb9@byu.net>
40455
40456         tests: avoid several compiler warnings
40457         * tests/test-getcwd.c (main): Avoid buffer underflow.
40458         * tests/test-getdate.c (main): String literals are not safe with
40459         putenv, so use setenv.  Declare unused argument.
40460         * modules/getdate-tests (Depends-on): Add setenv.
40461         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40462         problems with string literals in char *.
40463         * tests/test-hash.c (main): Avoid shadowing declaration.
40464         (insert_new): Treat string literals as char const *.
40465         * tests/test-getopt.h (test_getopt): Likewise.
40466         (getopt_loop): Alter types to minimize casting elsewhere.
40467         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40468         (test_getopt_long_posix): Likewise.
40469         (do_getopt_long): Add wrapper to minimize casting.
40470         * tests/test-atexit.c (clear_temp_file): Use void.
40471         * tests/test-areadlink-with-size.c (main): Declare unused
40472         arguments.
40473         * tests/test-areadlink.c (main): Likewise.
40474         * tests/test-areadlinkat-with-size.c (main): Likewise.
40475         * tests/test-areadlinkat.c (main): Likewise.
40476         * tests/test-canonicalize-lgpl.c (main): Likewise.
40477         * tests/test-canonicalize.c (main): Likewise.
40478         * tests/test-dirent-safer.c (main): Likewise.
40479         * tests/test-dirname.c (main): Likewise.
40480         * tests/test-dup2.c (main): Likewise.
40481         * tests/test-fchdir.c (main): Likewise.
40482         * tests/test-fcntl-h.c (main): Likewise.
40483         * tests/test-fcntl-safer.c (main): Likewise.
40484         * tests/test-fdopendir.c (main): Likewise.
40485         * tests/test-fdutimensat.c (main): Likewise.
40486         * tests/test-fflush.c (main): Likewise.
40487         * tests/test-filenamecat.c (main): Likewise.
40488         * tests/test-filevercmp.c (main): Likewise.
40489         * tests/test-fopen-safer.c (main): Likewise.
40490         * tests/test-fopen.c (main): Likewise.
40491         * tests/test-fpending.c (main): Likewise.
40492         * tests/test-fpurge.c (main): Likewise.
40493         * tests/test-freading.c (main): Likewise.
40494         * tests/test-fstatat.c (main): Likewise.
40495         * tests/test-fsync.c (main): Likewise.
40496         * tests/test-futimens.c (main): Likewise.
40497         * tests/test-getndelim2.c (main): Likewise.
40498         * tests/test-gettimeofday.c (main): Likewise.
40499         * tests/test-getopt.c (main): Likewise.
40500         * tests/test-i-ring.c (main): Likewise.
40501         * tests/test-inttypes.c (main): Likewise.
40502         * tests/test-link.c (main): Likewise.
40503         * tests/test-lstat.c (main): Likewise.
40504         * tests/test-math.c (main): Likewise.
40505         * tests/test-md5.c (main): Likewise.
40506         * tests/test-memchr2.c (main): Likewise.
40507         * tests/test-memrchr.c (main): Likewise.
40508         * tests/test-mkdir.c (main): Likewise.
40509         * tests/test-mkdirat.c (main): Likewise.
40510         * tests/test-mkfifoat.c (main): Likewise.
40511         * tests/test-open.c (main): Likewise.
40512         * tests/test-openat-safer.c (main): Likewise.
40513         * tests/test-openat.c (main): Likewise.
40514         * tests/test-quotearg.c (main): Likewise.
40515         * tests/test-rawmemchr.c (main): Likewise.
40516         * tests/test-readlink.c (main): Likewise.
40517         * tests/test-remove.c (main): Likewise.
40518         * tests/test-rename.c (main): Likewise.
40519         * tests/test-renameat.c (main): Likewise.
40520         * tests/test-rmdir.c (main): Likewise.
40521         * tests/test-sha1.c (main): Likewise.
40522         * tests/test-signal.c (main): Likewise.
40523         * tests/test-sigaction.c (main): Likewise.
40524         * tests/test-stat.c (main): Likewise.
40525         * tests/test-stat-time.c (main): Likewise.
40526         * tests/test-stddef.c (main): Likewise.
40527         * tests/test-stdint.c (main): Likewise.
40528         * tests/test-stdio.c (main): Likewise.
40529         * tests/test-stdlib.c (main): Likewise.
40530         * tests/test-strchrnul.c (main): Likewise.
40531         * tests/test-strerror.c (main): Likewise.
40532         * tests/test-string.c (main): Likewise.
40533         * tests/test-strtod.c (main): Likewise.
40534         * tests/test-strverscmp.c (main): Likewise.
40535         * tests/test-symlink.c (main): Likewise.
40536         * tests/test-symlinkat.c (main): Likewise.
40537         * tests/test-sys_stat.c (main): Likewise.
40538         * tests/test-sys_time.c (main): Likewise.
40539         * tests/test-time.c (main): Likewise.
40540         * tests/test-unistd.c (main): Likewise.
40541         * tests/test-unlink.c (main): Likewise.
40542         * tests/test-unlinkat.c (main): Likewise.
40543         * tests/test-utimens.c (main): Likewise.
40544         * tests/test-utimensat.c (main): Likewise.
40545         * tests/test-version-etc.c (main): Likewise.
40546         * tests/test-wchar.c (main): Likewise.
40547         * tests/test-wctype.c (main): Likewise.
40548         * tests/test-xprintf-posix.c (main): Likewise.
40549         * tests/test-posixtm.c (main): Likewise.
40550         (STREQ): Delete unused macro.
40551         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40552         shadowed variables.
40553         * tests/test-memchr.c (main): Likewise.
40554
40555 2009-10-21  Eric Blake  <ebb9@byu.net>
40556
40557         areadlinkat: avoid failure on older glibc
40558         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40559         rather than mis-comparing 0 against FUNC_RESULT of char*.
40560
40561 2009-10-21  Bruno Haible  <bruno@clisp.org>
40562
40563         * modules/stpncpy (License): Relicense under LGPLv2+.
40564         Reported by David Lutterkort <lutter@redhat.com>.
40565
40566 2009-10-20  Eric Blake  <ebb9@byu.net>
40567
40568         utimensat: work around Solaris 9 bug
40569         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40570         has trailing slash bugs.
40571         * tests/test-lutimens.h (test_lutimens): Enhance test.
40572         * tests/test-utimens.h (test_utimens): Likewise.
40573         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40574         * doc/posix-functions/utimes.texi (utimes): Likewise.
40575         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40576         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40577         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40578         * doc/posix-functions/futimens.texi (futimens): Likewise.
40579
40580         fdutimensat: new module
40581         * modules/fdutimensat: New file.
40582         * lib/fdutimensat.c (fdutimensat): Likewise.
40583         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40584         * MODULES.html.sh (File system functions): Mention module.
40585         * modules/fdutimensat-tests: New test.
40586         * tests/test-fdutimensat.c: Likewise.
40587
40588         doc: regenerate INSTALL
40589         * doc/INSTALL: Reflect recent autoconf update.
40590         * doc/INSTALL.ISO: Likewise.
40591         * doc/INSTALL.UTF-8: Likewise.
40592
40593 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40594
40595         acl: warn if ACL support is not detected
40596         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40597
40598 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40599
40600         * lib/nproc.h: Add extern "C" block for C++.
40601
40602 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40603             Bruno Haible  <bruno@clisp.org>
40604
40605         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40606         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40607         * doc/posix-functions/isalpha.texi: Likewise.
40608         * doc/posix-functions/isblank.texi: Likewise.
40609         * doc/posix-functions/iscntrl.texi: Likewise.
40610         * doc/posix-functions/isdigit.texi: Likewise.
40611         * doc/posix-functions/isgraph.texi: Likewise.
40612         * doc/posix-functions/islower.texi: Likewise.
40613         * doc/posix-functions/isprint.texi: Likewise.
40614         * doc/posix-functions/ispunct.texi: Likewise.
40615         * doc/posix-functions/isspace.texi: Likewise.
40616         * doc/posix-functions/isupper.texi: Likewise.
40617         * doc/posix-functions/isxdigit.texi: Likewise.
40618
40619 2009-10-18  Bruno Haible  <bruno@clisp.org>
40620
40621         Tests for module 'isblank'.
40622         * modules/isblank-tests: New file.
40623         * tests/test-isblank.c: New file.
40624
40625         New module 'isblank'.
40626         * lib/isblank.c: New file.
40627         * m4/isblank.m4: New file.
40628         * modules/isblank: New file.
40629         * doc/posix-functions/isblank.texi: Mention the new module.
40630
40631 2009-10-18  Bruno Haible  <bruno@clisp.org>
40632
40633         New module 'ctype'.
40634         * lib/ctype.in.h: New file.
40635         * m4/ctype.m4: New file.
40636         * modules/ctype: New file.
40637         * doc/posix-headers/ctype.texi: Mention the new module.
40638
40639 2009-10-18  Jim Meyering  <meyering@redhat.com>
40640
40641         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40642         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40643         right after its initialization, rather than farther down.
40644         Keeping these in close proximity makes it easier to ensure
40645         that each such variable is initialized.  E.g.,
40646
40647             LIB_CLOCK_GETTIME=
40648             AC_SUBST([LIB_CLOCK_GETTIME])
40649
40650         This change also increments these serial numbers.
40651         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40654
40655 2009-10-18  Bruno Haible  <bruno@clisp.org>
40656
40657         Don't let environment variables perturb build.
40658         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40659         (gl_PREREQ_GETHRXTIME): ... not here.
40660
40661 2009-10-18  Bruno Haible  <bruno@clisp.org>
40662
40663         Avoid symlink attack in localcharset module.
40664         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40665         (O_NOFOLLOW): Define fallback.
40666         (get_charset_aliases): Don't open the file if it is a symbolic link.
40667         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40668         gl_FCNTL_H.
40669         (gl_FCNTL_H): Require it.
40670         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40671         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40672         Reported by Fergal Glynn <fglynn@veracode.com>.
40673
40674 2009-10-18  Bruno Haible  <bruno@clisp.org>
40675
40676         Implement nproc for mingw.
40677         * lib/nproc.c: Include <windows.h>
40678         (num_processors): On native Windows platforms, try GetSystemInfo.
40679
40680 2009-10-18  Bruno Haible  <bruno@clisp.org>
40681
40682         Implement nproc for IRIX.
40683         * lib/nproc.c: Include <sys/sysmp.h>.
40684         (num_processors): On IRIX systems, try sysmp.
40685         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40686
40687 2009-10-18  Bruno Haible  <bruno@clisp.org>
40688
40689         Implement nproc for HP-UX.
40690         * lib/nproc.c: Include <sys/pstat.h>
40691         (num_processors): On HP-UX systems, try pstat_getdynamic.
40692         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40693         pstat_getdynamic.
40694
40695 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40696             Bruno Haible  <bruno@clisp.org>
40697
40698         Implement nproc for NetBSD, OpenBSD.
40699         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40700         (ARRAY_SIZE): New macro.
40701         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40702         * m4/nproc.m4: New file.
40703         * modules/nproc (Files): Add m4/nproc.m4.
40704         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40705         (Makefile.am): Instead, augment lib_SOURCES.
40706
40707 2009-10-18  Bruno Haible  <bruno@clisp.org>
40708
40709         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40710         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40711         sys/param.h.
40712
40713 2009-10-16  Eric Blake  <ebb9@byu.net>
40714
40715         utimensat: new module
40716         * modules/utimensat: New file.
40717         * lib/utimensat.c (utimensat): Likewise.
40718         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40719         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40720         so we can work around Linux bugs.
40721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40722         * modules/sys_stat (Makefile.am): Substitute them.
40723         * lib/sys_stat.in.h (utimensat): Declare it.
40724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40725         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40726         * modules/utimensat-tests: New test.
40727         * tests/test-utimensat.c: Likewise.
40728
40729         utimens: let lutimens work on non-symlinks
40730         * lib/utimens.c (lutimens): Fall back to utimens rather than
40731         failing with ENOSYS, when file is not a symlink.
40732         (utimens): Reduce redirection.
40733         * tests/test-lutimens.h (test_lutimens): Update test to cover
40734         non-symlinks.
40735         * tests/test-utimens.h (test_utimens): Update test to cover
40736         symlinks.
40737         * tests/test-utimens.c (main): Update caller.
40738
40739         utimens: cache whether utimensat syscall works
40740         * lib/utimens.c (utimensat_works_really): New cache variable.
40741         (fdutimens, lutimens): Use it to avoid failing syscall.
40742
40743         test-stat-time, test-utimens: improve portability
40744         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40745         ext4 on alpha, and for cygwin.
40746         * tests/test-utimens-common.h: New file.
40747         (nap): Factor delays into single function.
40748         * tests/test-lutimens.h (test_lutimens): Use new header.
40749         * tests/test-futimens.h (test_futimens): Likewise.
40750         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40751         timestamps to occur from same machine, as was done previously for
40752         test_utimens.
40753         * modules/utimens-tests (Files): Ship new file.
40754         * modules/futimens-tests (Files): Likewise.
40755         Reported in part by Jim Meyering.
40756
40757         sys_stat: sort replacement declarations
40758         * lib/sys_stat.in.h: Sort declarations.
40759         * lib/futimens.c (futimens): Fix typo.
40760
40761 2009-10-15  Jim Meyering  <meyering@redhat.com>
40762
40763         don't let environment settings perturb build
40764         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40765         could cause a configure-time and/or build-time malfunction.
40766         Typically, a configure-time function-in-library test is performed
40767         via code like this:
40768
40769           LIB_VAR=
40770           AC_SUBST([LIB_VAR])
40771           prefix_saved_LIBS=$LIBS
40772             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40773                        [test "$ac_cv_search_FUNC" = "none required" ||
40774                         LIB_VAR=$ac_cv_search_FUNC])
40775           LIBS=$prefix_saved_LIBS
40776
40777         However, in each of the files affected by this change, the LIB_VAR=
40778         initialization was omitted.  Thus, when set in the environment, its
40779         value would propagate into generated Makefiles when FUNC is not found
40780         in LIB_NAME.
40781         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40782         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40784
40785 2009-10-14  Eric Blake  <ebb9@byu.net>
40786
40787         fchdir: avoid infinite recursion in mingw
40788         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40789         recursing.
40790
40791         test-stat-time: port to mingw
40792         * tests/test-stat-time.c (force_unlink): Return a value.
40793         (test_ctime) [W32]: Fix compilation error.
40794         (nap): Don't call usleep with too large an argument.  Use
40795         force_unlink.
40796         * doc/pastposix-functions/usleep.texi (usleep): Document the
40797         portability issue.
40798
40799 2009-10-13  Jim Meyering  <meyering@redhat.com>
40800
40801         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40802         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40803         * modules/pipe-filter-ii: Likewise.
40804         * modules/sys_socket-tests: Likewise.
40805         * modules/tsearch-tests: Likewise.
40806         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40807         (check): Depend on it.
40808
40809 2009-10-12  Eric Blake  <ebb9@byu.net>
40810
40811         utimens-tests: port to NFS file systems
40812         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40813         comparisons to avoid spurious failures from timestamp drift
40814         between NFS machines.
40815
40816 2009-10-12  Eric Blake  <ebb9@byu.net>
40817
40818         stat-time-tests: minor cleanups
40819         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40820         * tests/test-stat-time.c (nap): Separate assignment from call.
40821         Suggested by Paolo Bonzini and Bruno Haible.
40822
40823         sys_stat: guarantee struct timespec
40824         * lib/sys_stat.in.h (includes): Always include <time.h>
40825         * modules/sys_stat (Depends-on): Add time.
40826         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40827         mode_t permission values.
40828         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40829         get at subsecond timestamps.
40830
40831 2009-10-10  Eric Blake  <ebb9@byu.net>
40832
40833         futimens: new module
40834         * modules/futimens: New file.
40835         * lib/futimens.c (futimens): Likewise.
40836         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40837         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40838         we can work around Linux bugs.
40839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40840         * modules/sys_stat (Makefile.am): Substitute them.
40841         * lib/sys_stat.in.h (futimens): Declare it.
40842         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40843         * doc/posix-functions/futimens.texi (futimens): Likewise.
40844         * modules/futimens-tests: New test.
40845         * tests/test-futimens.c: Likewise.
40846
40847         utimens: introduce fdutimens
40848         * lib/utimens.h (fdutimens): New prototype.
40849         * lib/utimens.c (gl_futimens): Move guts...
40850         (fdutimens): ...to new interface.
40851         * tests/test-utimens.c (do_fdutimens): Use it.
40852
40853         utimens: add UTIME_NOW and UTIME_OMIT support
40854         * lib/utimens.c (validate_timespec, update_timespec): New helper
40855         functions.
40856         (gl_futimens, lutimens): Use them.
40857         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40858         stdbool, sys_stat.
40859         (Link): Mention resulting library dependency.
40860         * modules/utimecmp (Link): Likewise.
40861         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40862         (Makefile.am): Pick up library dependency.
40863         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40864         definition.
40865         * tests/test-sys_stat.c: Test the definitions.
40866         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40867         * NEWS: Document library dependency.
40868
40869         utimecmp: support symlink timestamps
40870         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40871         hashing when possible.  Use pathconf when available.
40872         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40873         * modules/utimecmp (Depends-on): Add lstat.
40874
40875         utimens: add lutimens interface
40876         * lib/utimens.c (lutimens): New function.
40877         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40878         * lib/utimens.h (lutimens): Declare new interface.
40879         * tests/test-utimens.c (main): Enhance test.
40880         * tests/test-lutimens.h (test_lutimens): New file.
40881         * modules/utimens-tests (Files): Distribute it.
40882         (Depends-on): Add symlink.
40883         (configure.ac): Check for usleep.
40884
40885         utimens: validate futimens usage
40886         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40887         fewer syscalls on failure later on.  Avoid compiler warning on
40888         mingw.
40889         * modules/utimens (Depends-on): Add dup2.
40890
40891         utimens: add test
40892         * modules/utimens-tests: New test.
40893         * tests/test-utimens.h: New file.
40894         * tests/test-futimens.h: Likewise.
40895         * tests/test-utimens.c: Likewise.
40896
40897         doc: mention timestamp portability issues
40898         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40899         instead.
40900         * doc/posix-functions/utime.texi (utime): Likewise.
40901         * doc/posix-functions/utimes.texi (utimes): Likewise.
40902         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40903         instead.
40904         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40905         module.
40906         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40907         Mention weakness with symlink timestamps.
40908         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40909         to utimensat/futimens instead.
40910         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40911
40912         test-dup2: enhance test
40913         * tests/test-dup2.c (main): Also check AT_FDCWD.
40914
40915         test-stat-time: avoid more spurious failures
40916         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40917         xfs; and avoid race if the two timestamps cross quantization edge.
40918
40919         relocatable: prefer 'file system' over 'filesystem'
40920         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40921         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40922         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40923         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40924         * lib/relocatable.c (compute_curr_prefix): Likewise.
40925
40926 2009-10-10  Jim Meyering  <meyering@redhat.com>
40927
40928         stat-time-tests: check for the usleep function
40929         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40930
40931 2009-10-10  Bruno Haible  <bruno@clisp.org>
40932
40933         * modules/xnanosleep: Put the Link section after the Include section.
40934
40935 2009-10-09  Eric Blake  <ebb9@byu.net>
40936
40937         dup2: work around FreeBSD 6.1 bug
40938         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40939         * doc/posix-functions/dup2.texi (dup2): Document it.
40940         Reported by Nelson H. F. Beebe and Jim Meyering.
40941
40942         test-stat-time: port to buggy NFS clients
40943         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40944         (test_ctime): Also skip test if mtime and ctime are skewed.
40945
40946         maint: prefer 'file system' over 'filesystem'
40947         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40948         * doc/posix-functions/lstat.texi (lstat): Likewise.
40949         * lib/file-has-acl.c (file_has_acl): Likewise.
40950         * lib/fwriteerror.c [TEST]: Likewise.
40951         * tests/test-areadlink.h (test_areadlink): Likewise.
40952         * tests/test-areadlinkat-with-size.c (main): Likewise.
40953         * tests/test-areadlinkat.c (main): Likewise.
40954         * tests/test-canonicalize-lgpl.c (main): Likewise.
40955         * tests/test-canonicalize.c (main): Likewise.
40956         * tests/test-fstatat.c (main): Likewise.
40957         * tests/test-linkat.c (main): Likewise.
40958         * tests/test-lstat.h (test_lstat_func): Likewise.
40959         * tests/test-mkdir.h (test_mkdir): Likewise.
40960         * tests/test-readlink.h (test_readlink): Likewise.
40961         * tests/test-remove.c (main): Likewise.
40962         * tests/test-rename.h (test_rename): Likewise.
40963         * tests/test-renameat.c (main): Likewise.
40964         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40965         * tests/test-symlink.h (test_symlink): Likewise.
40966         * tests/test-symlinkat.c (main): Likewise.
40967         * tests/test-unlink.h (test_unlink_func): Likewise.
40968         * tests/test-unlinkat.c (main): Likewise.
40969
40970         maint: make realtime library usage explicit
40971         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40972         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40973         * modules/settime (Link): Likewise.
40974         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40975
40976         test-stat-time: speed up execution
40977         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40978         warning on mingw.
40979         (nap): New helper function.
40980         (prepare_test): Use it to reduce sleep time.
40981         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40982         execution.
40983         * modules/stat-time-tests (configure.ac): Check for usleep.
40984
40985 2009-10-09  Jim Meyering  <meyering@redhat.com>
40986
40987         selinux-h: always use getfilecon wrappers
40988         * lib/getfilecon.c: New file.
40989         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40990         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40991         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40992         (fgetfilecon): Provide a stub.
40993         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40994         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40995         file unconditionally.
40996         When <selinux/selinux.h> is found, arrange to use wrappers.
40997         * modules/selinux-h (Files): Add getfilecon.c.
40998         (Makefile.am): Substitute include-next-related bits
40999         into the now-always-generated selinux/selinux.h file.
41000         * doc/glibc-functions/lgetfilecon.texi: New file.
41001         * doc/glibc-functions/fgetfilecon.texi: New file.
41002         * doc/glibc-functions/getfilecon.texi: New file.
41003         * doc/glibc-functions/getfilecon-desc.texi: New file.
41004         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41005         which to pull in the new files.
41006         * MODULES.html.sh (Misc): Add selinux-h.
41007
41008 2009-10-08  Jim Meyering  <meyering@redhat.com>
41009
41010         unistd: fix comment typo
41011         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41012
41013 2009-10-08  Eric Blake  <ebb9@byu.net>
41014
41015         areadlink: use SIZE_MAX consistently
41016         * modules/areadlink (Depends-on): Add stdint.
41017         * modules/areadlink-with-size (Depends-on): Likewise.
41018         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41019         gives NULL; drop sys/types, since unistd gives size_t; and add
41020         stdint for SIZE_MAX.
41021         (SIZE_MAX): Rely on headers.
41022         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41023         and add stdint.
41024         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41025         (SIZE_MAX): Likewise.
41026         (INITIAL_BUF_SIZE): Turn into enum.
41027         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41028
41029 2009-10-08  Jim Meyering  <meyering@redhat.com>
41030
41031         areadlinkat: avoid compilation failure
41032         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41033         Fix typo in comment.
41034
41035 2009-10-07  Eric Blake  <ebb9@byu.net>
41036
41037         areadlinkat-with-size: new module
41038         * modules/areadlinkat-with-size: New module.
41039         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41040         * lib/areadlink.h (areadlinkat): Declare it.
41041         * MODULES.html.sh (File system functions): Mention it.
41042         * modules/areadlinkat-with-size-tests: New test.
41043         * tests/test-areadlinkat-with-size.c: New file.
41044
41045         xreadlinkat: new module
41046         * modules/xreadlinkat: New module.
41047         * lib/xreadlinkat.c (xreadlinkat): New file.
41048         * lib/xreadlink.h (xreadlinkat): Declare it.
41049         * MODULES.html.sh (File system functions): Mention it.
41050
41051         areadlinkat: new module
41052         * lib/at-func.c (FUNC_FAIL): New define.
41053         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41054         * modules/areadlinkat: New module.
41055         * lib/linkat.c (areadlinkat): Move...
41056         * lib/areadlinkat.c (areadlinkat): ...to new file.
41057         * lib/areadlink.h (areadlinkat): Declare it.
41058         * modules/linkat (Depends-on): Add areadlinkat.
41059         * MODULES.html.sh (File system functions): Mention it.
41060         * modules/areadlinkat-tests: New test.
41061         * tests/test-areadlinkat.c: New file.
41062
41063         areadlink, areadlink-with-size: add tests
41064         * modules/areadlink-tests: New test.
41065         * modules/areadlink-with-size-tests: Likewise.
41066         * tests/test-areadlink.h: New file.
41067         * tests/test-areadlink.c: Likewise.
41068         * tests/test-areadlink-with-size.c: Likewise.
41069
41070         maint: minor cleanups
41071         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41072         _UNUSED_PARAMETER_ instead.
41073         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41074         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41075         * modules/linkat-tests (Files): Distribute test-link.h.
41076
41077         openat, utimens: whitespace cleanup
41078         * lib/openat.c: Prefer space throughout, rather than mix of 8
41079         spaces vs. tabs.
41080         * lib/at-func.c: Likewise.
41081         * lib/utimens.c: Likewise.
41082
41083         openat: avoid using wrong fd
41084         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41085         working directory chooses same fd.
41086         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41087
41088         mkdir, mkdirat: fix cygwin 1.5.x bug
41089         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41090         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41091         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41092         bug.
41093         (gl_PREREQ_MKDIR): Delete unused macro.
41094         * modules/mkdir (Files): Track file rename.
41095         (configure.ac): Update macro name.
41096         * modules/openat (Depends-on): Add mkdir.
41097         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41098
41099         mkdir, mkdirat: add tests
41100         * modules/mkdir-tests: New test.
41101         * tests/test-mkdir.h: New file.
41102         * tests/test-mkdir.c: Likewise.
41103         * tests/test-mkdirat.c: Likewise.
41104         * modules/openat-tests (Files): Add new files.
41105         (Makefile.am): Run new test.
41106
41107 2009-10-06  Eric Blake  <ebb9@byu.net>
41108
41109         doc: tweak *at function documentation
41110         * doc/posix-functions/faccessat.texi (faccessat): Mention
41111         known issue with replacement.
41112         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41113         * doc/posix-functions/linkat.texi (linkat): Likewise.
41114         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41115         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41116         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41117         * doc/posix-functions/renameat.texi (renameat): Likewise.
41118         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41119
41120         openat: fix GNU/Hurd bug in unlinkat
41121         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41122         broken.
41123         * doc/posix-functions/unlink.texi (unlink): Document this.
41124         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41125
41126         fdopendir: fix GNU/Hurd bug
41127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41128         allowing non-directory fds.
41129         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41130         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41131         * modules/dirent (Makefile.am): Substitute it.
41132         * lib/dirent.in.h (fdopendir): Declare replacement.
41133         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41134         * tests/test-fdopendir.c (main): Test something other than
41135         /dev/null, since on Hurd that behaves like a directory.
41136
41137         test-symlink: port to GNU/Hurd
41138         * tests/test-symlink.h (test_symlink): Relax expected errno.
41139
41140         doc: tweak more cygwin information
41141         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41142         now compatible with glibc.
41143         * doc/posix-functions/getopt.texi (getopt): Likewise.
41144
41145         getopt-gnu: add another test
41146         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41147         guarantee behavior relied on by m4.
41148         * tests/test-getopt.c (main): Use it.
41149         * modules/getopt-posix-tests (Depends-on): Add setenv.
41150         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41151
41152         getopt: fix compilation on darwin
41153         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41154         include.
41155         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41156         Reported by Ludovic Courtès.
41157
41158 2009-10-06  Bruno Haible  <bruno@clisp.org>
41159
41160         * modules/size_max (Description): Discourage its use.
41161         Reported by Simon Josefsson.
41162
41163 2009-10-06  Jim Meyering  <meyering@redhat.com>
41164
41165         linkat: avoid compilation failure
41166         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41167
41168 2009-10-05  Eric Blake  <ebb9@byu.net>
41169
41170         linkat: support Linux 2.6.17
41171         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41172         linkat on Linux, but allow cache variable override.
41173         * lib/linkat.c (rpl_linkat): Define override.
41174         * modules/linkat (Depends-on): Add symlinkat.
41175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41176         * modules/unistd (Makefile.am): Substitute it.
41177         * lib/unistd.in.h (linkat): Declare replacement.
41178         Reported by Pádraig Brady.
41179
41180         quotearg: port test to systems with C.UTF-8 locale
41181         * tests/test-quotearg.c (struct result_strings): Add another
41182         member, differentiating between C.ASCII and C.UTF-8 handling.
41183         (compare_strings): Add parameter.
41184         (main): Adjust all callers.
41185
41186         getopt: avoid clash with FreeBSD _getopt_internal
41187         * lib/getopt.in.h (_getopt_internal): Override the name.
41188         * lib/getopt_int.h (includes): Pick up any overrides.
41189         Reported by Reuben Thomas.
41190
41191         hash: allow C89 compilation
41192         * lib/hash.c (check_tuning): Move declaration before statement.
41193         Reported by Reuben Thomas.
41194
41195 2009-10-05  Karl Berry  <karl@gnu.org>
41196
41197         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41198
41199 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41200             Bruno Haible  <bruno@clisp.org>
41201
41202         * lib/uname.c (uname): Use a table-driven algorithm to compute
41203         Windows NT versions.
41204
41205 2009-10-04  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41208         program_invocation_short_name.
41209         * modules/progname (configure.ac): Test for presence of
41210         program_invocation_short_name.
41211         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41212
41213 2009-10-04  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/progname.c (set_program_name): Fix comment.
41216         Reported by Jim Meyering.
41217
41218 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41219             Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/uname.c: Include <string.h>.
41222         (uname): Do only one call to GetVersionEx in the common case.
41223
41224 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41225             Bruno Haible  <bruno@clisp.org>
41226
41227         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41228         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41229         (uname): Add support for Windows CE and various non-x86 CPU types.
41230
41231 2009-10-03  Bruno Haible  <bruno@clisp.org>
41232
41233         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41234         invocation to tests/configure.ac.
41235         Reported by Ian Beckwith <ianb@erislabs.net>.
41236
41237 2009-10-02  Eric Blake  <ebb9@byu.net>
41238
41239         fchdir: avoid compiler warning
41240         * lib/fchdir.c (canonicalize_file_name)
41241         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41242
41243         test-open: support mingw errno values
41244         * tests/test-open.h (test_open): Relax test.
41245         * tests/test-fopen.h (test_fopen): Likewise.
41246         * tests/test-openat-safer.c (main): Likewise.
41247
41248         open: fix opening directory on mingw
41249         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41250
41251         test-open: on GNU/Hurd, /dev/null is a directory
41252         * tests/test-fopen.h (main): Rename...
41253         (test_fopen): ...to this.  Use a guaranteed non-directory when
41254         confirming open behavior on trailing slash.
41255         * tests/test-openat-safer.c (main): Likewise.
41256         * tests/test-open.h (main): Likewise....
41257         (test_open): ...to this.
41258         * tests/test-fopen.c (main): Adjust caller.
41259         * tests/test-fopen-safer.c (main): Likewise.
41260         * tests/test-open.c (main): Likewise.
41261         * tests/test-fcntl-safer.c (main): Likewise.
41262         Reported by Samuel Thibault.
41263
41264         rename, fchdir: don't ignore chdir failure
41265         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41266         * lib/rename.c (rpl_rename) [W32]: Likewise.
41267         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41268         an empty destination directory if source cannot be renamed,
41269         although there is still possibility for failure.
41270         * doc/posix-functions/rename.texi (rename): Document the race.
41271         Reported by Jim Meyering.
41272
41273         maint: cleanup whitespace in recent commits
41274         * lib/rename.c (rpl_rename): Remove tabs.
41275         * tests/test-link.h (test_link): Likewise.
41276         * lib/fchdir.c (get_name): Likewise.
41277         Reported by Jim Meyering.
41278
41279 2009-10-02  Ben Pfaff  <blp@gnu.org>
41280
41281         relocatable-prog-wrapper: Add missing dependency on
41282         double-slash-root.
41283         * modules/relocatable-prog-wrapper: Add dependency.
41284         Reported by Ian Beckwith <ianb@erislabs.net>.
41285
41286 2009-10-02  Eric Blake  <ebb9@byu.net>
41287
41288         renameat: fix Solaris bugs
41289         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41290         needed fixing.
41291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41292         * modules/stdio (Makefile.am): Substitute it.
41293         * lib/stdio.in.h (renameat): Declare replacement.
41294         * lib/renameat.c (rpl_renameat): Implement fix.
41295
41296         renameat: new module
41297         * modules/renameat: New file.
41298         * lib/renameat.c (renameat): Likewise.
41299         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41301         * modules/stdio (Makefile.am): Substitute them.
41302         * lib/stdio.in.h (renameat): Declare it.
41303         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41304         * doc/posix-functions/renameat.texi (renameat): Likewise.
41305         * modules/renameat-tests: New test.
41306         * tests/test-renameat.c: Likewise.
41307
41308         rename: fix mingw bugs
41309         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41310         directory overwrite bugs.
41311
41312         rename: fix another cygwin 1.5 bug
41313         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41314         checks.
41315         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41316         unnecessary cygwin workarounds.  Also work around bug with moving
41317         full directory onto an empty one.
41318         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41319
41320         rename-dest-slash: merge into rename module
41321         * modules/rename-dest-slash (Status): Mark obsolete.
41322         (Depends-on): Add rename.
41323         (Files): Let rename do it all.
41324         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41325         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41326         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41327         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41328         * lib/rename.c (rpl_rename): Update comments.
41329
41330         rename: fix cygwin 1.5.x bugs
41331         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41332         * lib/rename.c (rpl_rename): Work around them.
41333         * modules/rename (Depends-on): Add same-inode.
41334
41335         rename: fix Solaris 10 bug
41336         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41337         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41338         was the only bug.
41339
41340         rename: fix Solaris 9 bug
41341         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41342         on non-directory.  Avoid calling exit.
41343         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41344         strdup.
41345         * modules/rename-tests (Depends-on): Drop lstat.
41346         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41347         (gl_PREREQ_RENAME): Delete unused macro.
41348
41349         rename-dest-slash: fix NetBSD bug
41350         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41351         links.
41352         * modules/rename-dest-slash (Depends-on): Add same-inode.
41353
41354         rename-tests: new test, exposes several platform bugs
41355         * modules/rename-tests: New file.
41356         * tests/test-rename.h: Likewise.
41357         * tests/test-rename.c: Likewise.
41358         * doc/posix-functions/rename.texi (rename): Improve documentation,
41359         including bugs that will eventually be fixed in gnulib.
41360
41361 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41362
41363         * lib/uname.c: Include <stdlib.h>
41364         (uname): Assume version info is available.
41365
41366 2009-10-02  Jim Meyering  <meyering@redhat.com>
41367
41368         gnu-web-doc-update: correct --help output
41369         * build-aux/gnu-web-doc-update: Make --help output relevant.
41370
41371         gnu-web-doc-update: add standard options
41372         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41373
41374         gnu-web-doc-update: New module.
41375         Use this script to automatically update the on-line web documentation
41376         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41377         * modules/gnu-web-doc-update: New file, from coreutils.
41378         * build-aux/gnu-web-doc-update: New script.
41379
41380 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41381
41382         link: LoadLibrary is not needed.
41383         * lib/link.c: Use GetModuleHandle.
41384
41385 2009-10-01  Eric Blake  <ebb9@byu.net>
41386
41387         getopt: bump serial number
41388         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41389         change.
41390
41391         tests: tighten link, rmdir, and remove tests
41392         * tests/test-link.h (includes): No need to use <config.h> here.
41393         Clean up if directory hard link was created, otherwise test for
41394         trailing '.'.
41395         * tests/test-linkat.c (main): Simplify.
41396         * tests/test-remove.c (main): Enhance test for trailing '.'.
41397         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41398
41399 2009-10-01  Jim Meyering  <meyering@redhat.com>
41400
41401         maint.mk: requiring "make major" was annoying, for a "minor" release.
41402         What is intended is "stable", to contrast with alpha and beta,
41403         so require "make stable", not "make major".
41404         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41405         (get_tool_versions): Likewise.
41406         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41407
41408 2009-09-30  Ben Pfaff  <blp@gnu.org>
41409
41410         Fix broken build of replacement for Windows tmpfile().
41411         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41412         flags argument added along with the 'mkostemp' module.
41413
41414 2009-09-28  Bruno Haible  <bruno@clisp.org>
41415
41416         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41417         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41418         to 'remove_elt'.
41419         (gl_list_remove): Update.
41420         * lib/gl_list.c (gl_list_remove): Update.
41421         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41422         to 'remove_elt'.
41423         (gl_oset_remove): Update.
41424         * lib/gl_list.c (gl_oset_remove): Update.
41425         Reported by Eric Blake.
41426
41427 2009-09-28  Eric Blake  <ebb9@byu.net>
41428
41429         doc: mention yet more cygwin 1.7 status
41430         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41431         cygwin.
41432         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41433         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41434
41435         argp: fix test failure
41436         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41437         that are not upper-case.  Pass correct range to tolower.
41438
41439 2009-09-27  Jim Meyering  <meyering@redhat.com>
41440
41441         test-yesno: work around sparc-dash here-document infelicity
41442         Without this change, the literal \177 byte in a here document
41443         would make dash 0.5.5.1-3 access uninitialized memory.
41444         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41445         Instead, use a marker, "@", and filter through tr to create the desired
41446         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41447
41448 2009-09-27  Bruno Haible  <bruno@clisp.org>
41449
41450         Disable untested support for new flavours of ACLs on AIX.
41451         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41452         progress.
41453         * lib/set-mode-acl.c (qset_acl): Likewise.
41454
41455 2008-12-07  Bruno Haible  <bruno@clisp.org>
41456
41457         Add support for new flavours of ACLs on AIX. (Untested.)
41458         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41459         (file_has_acl): Add support for newer AIX.
41460         * lib/set-mode-acl.c (qset_acl): Likewise.
41461         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41462         Rainer Tammer <tammer@tammer.net>.
41463
41464 2009-09-26  Eric Blake  <ebb9@byu.net>
41465
41466         argp: fix compilation of getopt
41467         * lib/getopt.in.h (includes): Use different guard than glibc.
41468         Reported by Sergey Poznyakoff.
41469
41470         doc: mention more cygwin 1.7 status
41471         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41472         bug.
41473         * doc/posix-functions/execl.texi (execl): Likewise.
41474         * doc/posix-functions/execle.texi (execle): Likewise.
41475         * doc/posix-functions/execlp.texi (execlp): Likewise.
41476         * doc/posix-functions/execv.texi (execv): Likewise.
41477         * doc/posix-functions/execve.texi (execve): Likewise.
41478         * doc/posix-functions/execvp.texi (execvp): Likewise.
41479         * doc/glibc-functions/canonicalize_file_name.texi
41480         (canonicalize_file_name): Cygwin 1.7 now provides this.
41481         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41482         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41483         on AT_SYMLINK_NOFOLLOW.
41484
41485 2009-09-24  Eric Blake  <ebb9@byu.net>
41486
41487         test-linkat: make test more robust
41488         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41489
41490         getopt: fix inclusion guards for cygwin
41491         * modules/getopt-posix (Depends-on): Add include-next.
41492         (Makefile.am): Substitute more items in replacement header.
41493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41494         <getopt.h>.
41495         * lib/getopt.in.h (includes): Use split inclusion guard, and
41496         prefer <getopt.h> over include <unistd.h> when one is present.
41497         (option): Also override name of 'struct option'.
41498
41499         same-inode: revert prior change; it is not yet ready
41500         * NEWS: Undo mention of this change.
41501         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41502         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41503         * lib/cycle-check.c (cycle_check): Likewise.
41504         * lib/same.c (same_name): Likewise.
41505         * lib/at-func2.c (at_func2): Likewise.
41506
41507 2009-09-23  Eric Blake  <ebb9@byu.net>
41508
41509         linkat: new module
41510         * modules/linkat: New file.
41511         * lib/at-func2.c (at_func2): Likewise.
41512         * lib/linkat.c (linkat): Likewise.
41513         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41514         * lib/openat-priv.h (at_func2): Add declaration.
41515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41516         * modules/unistd (Makefile.am): Substitute them.
41517         * lib/unistd.in.h (linkat): Declare it.
41518         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41519         * doc/posix-functions/linkat.texi (linkat): Likewise.
41520         * doc/posix-functions/link.texi (link): Tweak wording.
41521         * tests/test-link.c (main): Move guts...
41522         * tests/test-link.h (test_link): ...into new file.
41523         * modules/linkat-tests: New test.
41524         * tests/test-linkat.c: Likewise.
41525         * modules/link-tests (Files): Ship new file.
41526         (Depends-on): Add stdbool.
41527
41528         dirname: add library-safe mdir_name
41529         * lib/dirname.h (mdir_name): New prototype.
41530         * lib/dirname.c (dir_name): Move guts...
41531         (mdir_name): ...to new function that avoids xalloc_die.
41532
41533         fchdir: another mingw fix
41534         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41535         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41536         on mingw (where it has not yet been ported), and make it optional
41537         elsewhere.
41538         (_gl_register_fd): Use it.
41539
41540         same-inode: make SAME_INODE tri-state, to port to mingw
41541         * NEWS: Mention this change.
41542         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41543         st_ino always being 0.
41544         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41545         * lib/cycle-check.c (cycle_check): Likewise.
41546         * lib/same.c (same_name): Likewise.
41547
41548         lstat: avoid mingw compilation error
41549         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41550         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41551         lstat ourselves.
41552         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41553         was adequate.
41554         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41555         the checks for lstat.
41556         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41557
41558         link: fix test failure on Solaris 9
41559         * lib/link.c (rpl_link): Don't assume link will catch bogus
41560         trailing slash on source.
41561
41562         test-symlinkat: enhance test
41563         * tests/test-readlink.c (main): Move guts...
41564         * tests/test-readlink.h (test_readlink): ...into new file.
41565         * tests/test-symlink.c (main): Move guts...
41566         * tests/test-symlink.h (test_symlink): ...into new file.
41567         * tests/test-symlinkat.c (main): Use new files for further
41568         coverage.
41569         (do_symlink, do_readlink): New helper functions.
41570         * modules/symlink-tests (Files): Ship new file.
41571         (Depends-on): Add stdbool.
41572         * modules/readlink-tests (Files): Ship new file.
41573         (Depends-on): Add stdbool.
41574         * modules/symlinkat-tests (Files): Use new files.
41575
41576 2009-09-23  Eric Blake  <ebb9@byu.net>
41577
41578         readlink: document portability issue with symlink length
41579         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41580         systems have bogus st_size on symlinks, and mention the
41581         areadlink-with-size module.
41582         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41583         * doc/posix-functions/readlink.texi (readlink): Mention the
41584         areadlink module, and ERANGE failure.
41585         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41586         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41587
41588         readlink: fix Solaris 9 bug with trailing slash
41589         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41590         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41591         * doc/posix-functions/readlink.texi (readlink): Document this.
41592         * modules/readlink-tests: New test.
41593         * tests/test-readlink.c: Likewise.
41594
41595         readlink: fix cygwin 1.5.x bug with return type
41596         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41597         * lib/unistd.in.h (readlink): Use ssize_t.
41598         * lib/readlink.c (readlink): Likewise.
41599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41600         * modules/unistd (Makefile.am): Substitute it.
41601         * lib/unistd.in.h (readlink): Declare replacement.
41602         * doc/posix-functions/readlink.texi (readlink): Document this.
41603
41604         symlink: use throughout gnulib
41605         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41606         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41607         symlink is not used.
41608         * modules/symlinkat (Depends-on): Add symlink.
41609         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41610         * modules/canonicalize-tests (Depends-on): Likewise.
41611         * modules/lstat-tests (Depends-on): Likewise.
41612         * modules/openat-tests (Depends-on): Likewise.
41613         * modules/remove-tests (Depends-on): Likewise.
41614         * modules/rmdir-tests (Depends-on): Likewise.
41615         * modules/unlink-tests (Depends-on): Likewise.
41616         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41617         * tests/test-canonicalize.c (symlink): Likewise.
41618         * tests/test-fstatat.c (symlink): Likewise.
41619         * tests/test-lstat.c (symlink): Likewise.
41620         * tests/test-remove.c (symlink): Likewise.
41621         * tests/test-rmdir.c (symlink): Likewise.
41622         * tests/test-unlink.c (symlink): Likewise.
41623         * tests/test-unlinkat.c (symlink): Likewise.
41624
41625         symlink: new module, for Solaris 9 bug
41626         * modules/symlink: New file.
41627         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41628         * lib/symlink.c: Likewise.
41629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41630         * modules/unistd (Makefile.am): Substitute them.
41631         * lib/unistd.in.h (symlink): Declare replacement.
41632         * MODULES.html.sh (File system functions): Mention it.
41633         * doc/posix-functions/symlink.texi (symlink): Likewise.
41634         * modules/symlink-tests: New test.
41635         * tests/test-symlink.c: Likewise.
41636
41637 2009-09-23  Bruno Haible  <bruno@clisp.org>
41638
41639         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41640         when needed.
41641         Test case: gnulib-tool --import --with-tests atexit inttypes.
41642         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41643
41644 2009-09-23  Bruno Haible  <bruno@clisp.org>
41645
41646         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41647         subcommand, not in a subshell.
41648
41649 2009-09-22  Eric Blake  <ebb9@byu.net>
41650
41651         unistd: sort replacement declarations
41652         * lib/unistd.in.h: Sort declarations.
41653
41654         open, openat: minor optimization
41655         * lib/open.c (open): If open succeeded, len is non-zero.
41656         * lib/openat.c (rpl_openat): Likewise.
41657
41658         link-follow: ensure correct result
41659         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41660         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41661         distinguish between possible failures.
41662
41663 2009-09-21  Eric Blake  <ebb9@byu.net>
41664
41665         fts: avoid compiler warning
41666         * lib/fts.c (dirent_inode_sort_may_be_useful)
41667         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41668
41669 2009-09-19  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/progreloc.c (canonicalize_file_name): New declaration.
41672
41673 2009-09-19  Eric Blake  <ebb9@byu.net>
41674
41675         link: fix quoting
41676         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41677
41678         openat: fix openat bugs on Solaris 9
41679         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41680         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41681         * modules/openat (Depends-on): Add open.
41682         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41683         * modules/fcntl-h (Makefile.am): Substitute it.
41684         * lib/fcntl.in.h (openat): Declare replacement.
41685         * doc/posix-functions/openat.texi (openat): Document this.
41686
41687         openat: move fstatat and unlinkat into correct files
41688         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41689         compiled.
41690         * lib/openat.c (fstatat, unlinkat): Move...
41691         * lib/fstatat.c (fstatat): ...into correct files.
41692         * lib/unlinkat.c (unlinkat): Likewise.
41693
41694         openat: fix unlinkat bugs on Solaris 9
41695         * lib/unlinkat.c (unlinkat): New file.
41696         * modules/openat (Depends-on): Add unlink.
41697         (Files): Distribute it.
41698         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41699         trailing slash behavior is broken.
41700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41701         * modules/unistd (Makefile.am): Substitute it.
41702         * lib/unistd.in.h (unlinkat): Declare replacement.
41703         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41704
41705         openat: fix fstatat bugs on Solaris 9
41706         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41707         stat.
41708         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41709
41710         test-unlinkat: enhance test, to expose Solaris 9 bug
41711         * tests/test-unlink.c (main): Factor guts...
41712         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41713         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41714         * tests/test-rmdir.c (main): Adjust caller.
41715         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41716         (unlinker): New helper function.
41717         (rmdirat): Enhance check.
41718         * modules/rmdir-tests (Depends-on): Add stdbool.
41719         * modules/unlink-tests (Depends-on): Likewise.
41720         (Files): Add test-unlink.h.
41721         * modules/openat-tests (Files): Likewise.
41722         (Depends-on): Add unlinkdir.
41723
41724         test-fstatat: new test, to expose Solaris 9 bugs
41725         * tests/test-stat.c (main): Factor guts...
41726         * tests/test-stat.h (test_stat_func): ...into new file.
41727         * tests/test-lstat.c (main): Factor guts...
41728         * tests/test-lstat.h (test_lstat_func): ...into new file.
41729         * tests/test-fstatat.c: New file.
41730         * modules/stat-tests (Files): Add test-stat.h.
41731         * modules/lstat-tests (Files): Add test-lstat.h.
41732         (Depends-on): Add stdbool.
41733         * modules/openat-tests (Depends-on): Add pathmax.
41734         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41735         (Makefile.am): Run new test.
41736
41737         remove: new module, for mingw and Solaris 9 bugs
41738         * modules/remove: New file.
41739         * lib/remove.c: Likewise.
41740         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41742         * modules/stdio (Makefile.am): Use them.
41743         * lib/stdio.in.h (remove): Declare replacement.
41744         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41745         * doc/posix-functions/remove.texi (remove): Likewise.
41746         * modules/remove-tests: New test.
41747         * tests/test-remove.c: Likewise.
41748
41749         unlink: new module, for Solaris 9 bug
41750         * modules/unlink: New file.
41751         * lib/unlink.c: Likewise.
41752         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41754         * modules/unistd (Makefile.am): Use them.
41755         * lib/unistd.in.h (stat): Declare replacement.
41756         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41757         * doc/posix-functions/unlink.texi (unlink): Likewise.
41758         * modules/unlink-tests: New test.
41759         * tests/test-unlink.c: Likewise.
41760
41761         lstat: fix Solaris 9 bug
41762         * lib/lstat.c (lstat): Also check for trailing slash on
41763         non-symlink, non-directories.  Use stat module to simplify logic.
41764         * doc/posix-functions/lstat.texi (lstat): Document it.
41765         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41766         (configure.ac): Check for symlink.
41767         * tests/test-lstat.c (main): Add more tests.
41768
41769         stat: add as dependency to other modules
41770         * modules/chown (Depends-on): Add stat.
41771         * modules/euidaccess (Depends-on): Likewise.
41772         * modules/fchdir (Depends-on): Likewise.
41773         * modules/isdir (Depends-on): Likewise.
41774         * modules/link (Depends-on): Likewise.
41775         * modules/lstat (Depends-on): Likewise.
41776         * modules/mkdir-p (Depends-on): Likewise.
41777         * modules/modechange (Depends-on): Likewise.
41778         * modules/open (Depends-on): Likewise.
41779         * modules/readlink (Depends-on): Likewise.
41780         * modules/same (Depends-on): Likewise.
41781
41782         stat: fix Solaris 9 bug
41783         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41784         slash.
41785         * lib/stat.c (rpl_stat): Work around it.
41786         * doc/posix-functions/stat.texi (stat): Update documentation.
41787
41788         stat: new module, for mingw bug
41789         * modules/stat: New file.
41790         * lib/stat.c: Likewise.
41791         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41793         * modules/sys_stat (Makefile.am): Use them.
41794         * lib/sys_stat.in.h (stat): Declare replacement.
41795         * lib/openat.c (fstatat): Deal with lstat and stat being function
41796         macros.
41797         * modules/openat (Depends-on): Add inline.
41798         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41799         * doc/posix-functions/stat.texi (stat): Likewise.
41800         * modules/stat-tests: New test.
41801         * tests/test-stat.c: Likewise.
41802
41803 2009-09-19  Jim Meyering  <meyering@redhat.com>
41804
41805         syntax-check: detect unnecessary inclusion of canonicalize.h
41806         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41807
41808 2009-09-19  Eric Blake  <ebb9@byu.net>
41809
41810         canonicalize-lgpl: adjust clients to use correct header
41811         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41812         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41813         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41814         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41815         * lib/progreloc.c (includes): Likewise.
41816
41817 2009-09-19  Jim Meyering  <meyering@redhat.com>
41818
41819         test-posixtm.c: correct a comment
41820         * tests/test-posixtm.c: Correct first-line comment.
41821         Spotted by Eric Blake.
41822
41823 2009-09-16  Jim Meyering  <meyering@redhat.com>
41824
41825         posixtm-tests: make T const-correct; add a test case
41826         * tests/test-posixtm.c (T): Declare const.
41827         Add a test for -(2^31+1).
41828         Remove useless can-succeed-only-in-2002 test.
41829
41830         posixtm-tests: adjust the sole failing test
41831         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41832         expected output matches what mktime now produces.  Cross-checked via
41833         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41834
41835         posixtm: move #ifdef'd tests into a new module
41836         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41837         * tests/test-posixtm.c: ... this new file.
41838         * modules/posixtm-tests: New module.
41839
41840 2009-09-19  Eric Blake  <ebb9@byu.net>
41841
41842         openat: simplify use of at-func.c
41843         * lib/at-func.c (includes): Include prerequisites here, to
41844         simplify requirements on client files.
41845         * lib/openat-priv.h: Add double-inclusion guard.
41846         * lib/faccessat.c (includes): Simplify.
41847         * lib/fchmodat.c (includes): Likewise.
41848         * lib/fchownat.c (includes): Likewise.
41849         * lib/mkdirat.c (includes): Likewise.
41850         * lib/mkfifoat.c (includes): Likewise.
41851         * lib/symlinkat.c (includes): Likewise.
41852
41853         openat: allow return of fd 0
41854         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41855         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41856         unistd-safer.
41857         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41858         <fcntl.h>; this module does not leak fds.
41859         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41860         must be allowed to return 0, leaving openat_safer to add the
41861         safety.
41862         (openat_permissive): Avoid writing to just-opened fd 2 if
41863         restoring the current directory fails.
41864         * lib/openat-die.c (openat_restore_fail): Add comment.
41865         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41866         (save_cwd): Guarantee safe fd, but without use of open_safer.
41867         * tests/test-openat.c: New test.
41868         * modules/openat-tests (Files, Makefile.am): Distribute and build
41869         new file.
41870
41871         relocatable-prog-wrapper: fix build
41872         * modules/relocatable-prog-wrapper (Files): Update name of
41873         canonicalize m4 file, broken on 2009-09-17.
41874         Reported by emad hajjar <aleppos@hotmail.com>.
41875
41876 2009-09-19  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41879         * lib/safe-alloc.c: Likewise.
41880         Reported by Ian Beckwith <ianb@erislabs.net>.
41881
41882 2009-09-18  Bruno Haible  <bruno@clisp.org>
41883
41884         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41885         Reported by <erobles@sensacd.com.mx>.
41886
41887 2009-09-17  Eric Blake  <ebb9@byu.net>
41888
41889         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41890         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41891         slashes when checking if last component is missing.
41892         * tests/test-canonicalize.c (main): Test this.
41893
41894         canonicalize, canonicalize-lgpl: honor // if distinct from /
41895         * modules/canonicalize (Files): Add double-slash-root.m4.
41896         * modules/canonicalize-lgpl (Files): Likewise.
41897         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41898         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41899         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41900         fallback definition.
41901         (canonicalize_filename_mode): Use it to protect //.
41902         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41903         (__realpath): Likewise.
41904         * tests/test-canonicalize.c (main): Test this.
41905         * tests/test-canonicalize-lgpl.c (main): Likewise.
41906         * modules/canonicalize-tests (Depends-on): Add same-inode.
41907         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41908
41909         canonicalize-lgpl: fix glibc bug with trailing slash
41910         * m4/canonicalize-lgpl.m4: Move contents...
41911         * m4/canonicalize.m4: ...here.
41912         (gl_CANONICALIZE_LGPL): Factor realpath check...
41913         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41914         glibc 2.3.5 bug, fixed 2005-04-27.
41915         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41916         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41917         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41918         * modules/canonicalize-lgpl (Files): Manage file rename.
41919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41920         * modules/stdlib (Makefile.am): Substitute witness.
41921         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41922         is needed.
41923         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41924         replacement is required.
41925         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41926         * doc/glibc-functions/canonicalize_file_name.texi
41927         (canonicalize_file_name): Document this.
41928         * doc/posix-functions/realpath.texi (realpath): Likewise.
41929
41930         canonicalize-lgpl: reject non-directory with trailing slash
41931         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41932         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41933         catches failures in glibc 2.3.5.
41934         * tests/test-canonicalize.c (main): Likewise.
41935
41936         canonicalize-lgpl: use native realpath if it works
41937         * lib/canonicalize-lgpl.c (realpath): Guard with
41938         FUNC_REALPATH_WORKS.
41939         * lib/stdlib.in.h (realpath): Make declaration optional based on
41940         HAVE_REALPATH.
41941         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41942         native realpath works.
41943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41944         * modules/stdlib (Makefile.am): Substitute witness.
41945
41946         canonicalize, canonicalize-lgpl: use <stdlib.h>
41947         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41948         (Include): Mention <stdlib.h>.
41949         (configure.ac): Mention functions we provide.
41950         * modules/canonicalize (configure.ac): Likewise.
41951         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41952         realpath if canonicalize_file_name is missing.
41953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41954         * modules/stdlib (Makefile.am): Substitute witnesses.
41955         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41956         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41957         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41958         * NEWS: Document this.
41959         * doc/glibc-functions/canonicalize_file_name.texi
41960         (canonicalize_file_name): Likewise.
41961         * doc/posix-functions/realpath.texi (realpath): Likewise.
41962         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41963
41964         test-canonicalize: consolidate into single C program
41965         * tests/test-canonicalize.sh: Delete; move setup into...
41966         * tests/test-canonicalize.c (main): ...the program, making it
41967         easier to run in debugger.  Add some tests.
41968         * modules/canonicalize-tests (Files): Remove unused file.
41969         (Depends-on): Add progname.
41970         (configure.ac, Makefile.am): Simplify.
41971
41972         test-canonicalize-lgpl: consolidate into single C program
41973         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41974         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41975         easier to run in debugger.  Add some tests.
41976         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41977         (configure.ac, Makefile.am): Simplify.
41978
41979         canonicalize: avoid resolvepath
41980         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41981         unnecessary checks.
41982         * lib/canonicalize.c (includes): Simplify.
41983         (canonicalize_file_name): Drop resolvepath implementation.
41984         * modules/canonicalize (Depends-on): Drop filenamecat.
41985
41986         canonicalize: don't lose errno
41987         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41988         over calls to free.
41989
41990         canonicalize: simplify errno handling
41991         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41992         assignment.
41993
41994         canonicalize, canonicalize-lgpl: update module dependencies
41995         * modules/canonicalize (Depends-on): Add extensions, lstat,
41996         pathmax, stdlib.
41997         (Files): Drop pathmax.h.
41998         (configure.ac): Adjust macro name.
41999         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42000         lstat, stdlib, sys_stat.
42001         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42002         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42003         extensions.
42004         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42005         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42006         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42007         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42008         declaration, if available.
42009         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42010         we can rely on the readlink module.
42011         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42012         (includes): Use <unistd.h> unconditionally.
42013
42014 2009-09-17  Eric Blake  <ebb9@byu.net>
42015
42016         maint: make Include sections of modules consistent
42017         * modules/alloca: Use only header name; no need to list #include.
42018         * modules/alloca-opt: Likewise.
42019         * modules/arpa_inet: Likewise.
42020         * modules/canon-host: Likewise.
42021         * modules/configmake: Likewise.
42022         * modules/dirent: Likewise.
42023         * modules/eealloc: Likewise.
42024         * modules/environ: Likewise.
42025         * modules/fchdir: Likewise.
42026         * modules/fcntl: Likewise.
42027         * modules/fcntl-h: Likewise.
42028         * modules/gethrxtime: Likewise.
42029         * modules/gettime: Likewise.
42030         * modules/ignore-value: Likewise.
42031         * modules/inet_ntop: Likewise.
42032         * modules/inet_pton: Likewise.
42033         * modules/inttypes: Likewise.
42034         * modules/isnand-nolibm: Likewise.
42035         * modules/isnanf-nolibm: Likewise.
42036         * modules/mbchar: Likewise.
42037         * modules/mbfile: Likewise.
42038         * modules/mbiter: Likewise.
42039         * modules/mbuiter: Likewise.
42040         * modules/netdb: Likewise.
42041         * modules/netinet_in: Likewise.
42042         * modules/nproc: Likewise.
42043         * modules/pagealign_alloc: Likewise.
42044         * modules/poll: Likewise.
42045         * modules/printf-frexp: Likewise.
42046         * modules/pthread: Likewise.
42047         * modules/putenv: Likewise.
42048         * modules/random_r: Likewise.
42049         * modules/relocatable-prog: Likewise.
42050         * modules/search: Likewise.
42051         * modules/select: Likewise.
42052         * modules/selinux-h: Likewise.
42053         * modules/settime: Likewise.
42054         * modules/signal: Likewise.
42055         * modules/size_max: Likewise.
42056         * modules/socklen: Likewise.
42057         * modules/ssize_t: Likewise.
42058         * modules/stdarg: Likewise.
42059         * modules/stdbool: Likewise.
42060         * modules/stddef: Likewise.
42061         * modules/stdint: Likewise.
42062         * modules/stdio: Likewise.
42063         * modules/stdlib: Likewise.
42064         * modules/string: Likewise.
42065         * modules/strings: Likewise.
42066         * modules/sys_file: Likewise.
42067         * modules/sys_ioctl: Likewise.
42068         * modules/sys_select: Likewise.
42069         * modules/sys_socket: Likewise.
42070         * modules/sys_stat: Likewise.
42071         * modules/sys_time: Likewise.
42072         * modules/sys_times: Likewise.
42073         * modules/sys_utsname: Likewise.
42074         * modules/sys_wait: Likewise.
42075         * modules/sysexits: Likewise.
42076         * modules/time: Likewise.
42077         * modules/times: Likewise.
42078         * modules/tmpfile: Likewise.
42079         * modules/trim: Likewise.
42080         * modules/unistd: Likewise.
42081         * modules/wchar: Likewise.
42082         * modules/wctype: Likewise.
42083
42084 2009-09-17  Bruno Haible  <bruno@clisp.org>
42085
42086         Make getdate.y compile on QNX and NetBSD 5 / i386.
42087         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42088         TIME_T_FITS_IN_LONG_INT.
42089         * lib/getdate.y (long_time_t): New type.
42090         (relative_time): Change type of 'seconds' field to long_time_t.
42091         (get_date): Update types of local variables. Check against overflow
42092         during conversion from long_time_t to time_t.
42093         Reported by Matt Kraai <kraai@ftbfs.org>
42094         and Hasso Tepper <hasso@netbsd.org>.
42095
42096 2009-09-17  Bruno Haible  <bruno@clisp.org>
42097
42098         * modules/COPYING: Update copyright years.
42099         * modules/README: Likeiwse.
42100         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42101         Reported by Ian Beckwith <ianb@erislabs.net>.
42102
42103 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42104
42105         * users.txt: Update references for gnuit package.
42106
42107 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42108
42109         * m4/getdelim.m4: Fix typo in copyright line.
42110
42111 2009-09-17  Bruno Haible  <bruno@clisp.org>
42112
42113         * lib/atoll.c: Use the standard header with GPL copyright.
42114         * lib/argz.in.h: Likewise.
42115         * lib/glob.c: Likewise.
42116         * lib/glob-libc.h: Likewise.
42117         * lib/random_r.c: Likewise.
42118         * lib/siglist.h: Likewise.
42119         * lib/strsignal.c: Likewise.
42120         Reported by Ian Beckwith <ianb@erislabs.net>.
42121
42122 2009-09-17  Eric Blake  <ebb9@byu.net>
42123
42124         rmdir: ensure correct dependency order
42125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42126
42127 2009-09-17  Bruno Haible  <bruno@clisp.org>
42128
42129         Disable assertion that fails on NetBSD 5 / i386.
42130         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42131         Reported by Sam Steingold <sds@gnu.org>
42132         and Hasso Tepper <hasso@netbsd.org>.
42133
42134 2009-09-16  Eric Blake  <ebb9@byu.net>
42135
42136         unlinkdir: port to mingw
42137         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42138         on which no one can unlink a directory.
42139
42140         stdlib: sort witness names
42141         * modules/stdlib (Makefile.am): Sort replacements.
42142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42143         * lib/stdlib.in.h: Likewise.
42144
42145         parse-duration-tests: avoid link failure
42146         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42147         LIBINTL.
42148         Reported by Tom G. Christensen.
42149
42150         openat-tests: ensure unlinkat behaves like rmdir
42151         * tests/test-rmdir.c (main): Factor guts...
42152         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42153         * modules/rmdir-tests (Files): Ship new file.
42154         * modules/openat-tests: New test.
42155         * tests/test-unlinkat.c: Likewise.
42156
42157         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42158         * modules/rmdir-errno (Status, Notice): Now obsolete.
42159
42160         rmdir: work around cygwin 1.5.x and mingw bugs
42161         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42162         * lib/rmdir.c (rmdir): Work around it.
42163         * modules/rmdir (Status, Notice): No longer obsolete.
42164         (Files): Add dos.m4.
42165         (Depends-on): Add unistd.
42166         (configure.ac): Set witnesses.
42167         (License): Relax to LGPLv2+.
42168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42169         * modules/unistd (Makefile.am): Substitute witnesses.
42170         * lib/unistd.in.h (rmdir): Declare replacement.
42171         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42172         * modules/rmdir-tests: New tests.
42173         * tests/test-rmdir.c: Likewise.
42174
42175 2009-09-15  Eric Blake  <ebb9@byu.net>
42176
42177         fchdir: improve use of replacement functions
42178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42180         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42181         REPLACE_CLOSEDIR.
42182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42183         * modules/sys_stat (Makefile.am): Substitute correct witness.
42184         * modules/dirent (Makefile.am): Likewise.
42185         * modules/unistd (Makefile.am): Likewise.
42186         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42187         * lib/unistd.in.h (dup): Likewise.
42188         * lib/sys_stat.in.h (fstat): Likewise.
42189
42190         maint: ignore gnulib-tool temp files
42191         * .gitignore: Ignore files created during gnulib-tool --test.
42192
42193 2009-09-13  Jim Meyering  <meyering@redhat.com>
42194
42195         posixtm: don't reject a time that specify "60" as the number of seconds
42196         * lib/posixtm.c (posixtime): The code to reject invalid dates
42197         would also reject a time specified with the .60 suffix.
42198         But POSIX allows that, in order to accommodate leap seconds.
42199         So don't reject it.
42200         (main): Adjust tests accordingly.
42201         * modules/posixtm (Depends-on): Add stpcpy.
42202
42203 2009-09-11  Jim Meyering  <meyering@redhat.com>
42204
42205         announce-gen: include [$release_type] in emitted Subject:
42206         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42207         e.g., [stable] in the emitted Subject: line.
42208
42209 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42210
42211         Remove obsolete macros from several modules.
42212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42213         obsolete Autoconf macros with their modern counterparts.
42214         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42215         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42217         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42218         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42219         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42222         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42223         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42224         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42226         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42227         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42228         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42229         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42230         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42231         * m4/time_r.m4 (gl_TIME_R): Likewise.
42232         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42233         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42234         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42235
42236         Fix copyright header in build-aux scripts.
42237         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42238         recommendation.
42239         * build-aux/ncftpput-ftp: Likewise.
42240         * build-aux/update-copyright: Likewise.
42241
42242 2009-09-09  Eric Blake  <ebb9@byu.net>
42243
42244         test-link: allow Linux choice of errno
42245         * tests/test-link.c (main): Relax test for alternate error.
42246
42247         strndup: fix improper m4 caching
42248         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42249         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42250         (gl_PREREQ_STRNDUP): Delete.
42251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42252         * modules/string (Makefile.am): Substitute it.
42253         * lib/string.in.h (strndup): Modernize prototype.
42254
42255         getcwd: port to mingw
42256         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42257         different from the POSIX assumptions made throughout the getcwd
42258         module; fortunately, the mingw getcwd does not need replacement.
42259         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42260         * modules/getcwd-tests: New test.
42261         * tests/test-getcwd.c: Likewise.
42262
42263         link: fix platform bugs
42264         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42265         * lib/link.c (link): Work around them.  Fix related mingw bug.
42266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42267         * modules/unistd (Makefile.am): Substitute it.
42268         * lib/unistd.in.h (link): Declare replacement.
42269         * doc/posix-functions/link.texi (link): Document this.
42270         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42271
42272         test-link: consolidate into single C program, test more cases
42273         * tests/test-link.sh: Delete.
42274         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42275         at least Cygwin and Solaris.
42276         * modules/link-tests (Files): Remove unused file.
42277         (Depends-on): Add errno, sys_stat.
42278         (Makefile.am): Simplify.
42279
42280 2009-09-08  Bruno Haible  <bruno@clisp.org>
42281
42282         Work around towlower, towupper bug on mingw.
42283         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42284         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42285         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42286         * doc/posix-functions/towupper.texi: Likewise.
42287         Reported by Eric Blake.
42288
42289 2009-09-08  Jim Meyering  <meyering@redhat.com>
42290
42291         build: don't try to run autoheader if we don't use it
42292         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42293         is not used in configure.ac.
42294
42295 2009-09-08  Eric Blake  <ebb9@byu.net>
42296
42297         euidaccess: fix compilation error
42298         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42299
42300         rawmemchr: relax license
42301         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42302         okay.
42303         Reported by Jim Meyering.
42304
42305         mkfifoat: new module
42306         * modules/mkfifoat: New file.
42307         * lib/mkfifoat.c: Likewise.
42308         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42310         * modules/sys_stat (Makefile.am): Use them.
42311         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42312         * MODULES.html.sh (File system functions): Mention module.
42313         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42314         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42315         * modules/mkfifoat-tests: New test.
42316         * tests/test-mkfifoat.c: Likewise.
42317
42318         strchrnul: relax license
42319         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42320         okay.
42321         Reported by Jim Meyering.
42322
42323 2009-09-08  Eric Blake  <ebb9@byu.net>
42324
42325         fstatat: fix compilation on Solaris
42326         * lib/fstatat.c (includes): Add fcntl.h.
42327         Reported by Pádraig Brady.
42328
42329 2009-09-07  Eric Blake  <ebb9@byu.net>
42330
42331         rename: modernize replacement
42332         * modules/rename (Depends-on): Add stdio.
42333         (configure.ac): Declare witness.
42334         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42335         stdio take care of replacement.
42336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42337         * modules/stdio (Makefile.am): Substitute them.
42338         * lib/stdio.in.h (rename): Declare replacement.
42339         * lib/rename.c (includes): Allow cross-compilation to non-windows
42340         machines.
42341         * doc/posix-functions/rename.texi (rename): Improve
42342         documentation.
42343
42344         stdio: sort witness names
42345         * modules/stdio (Makefile.am): Sort replacements.
42346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42347         * lib/stdio.in.h: Likewise.
42348
42349         getcwd: minor cleanups
42350         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42351         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42352
42353         openat: provide more convenience names
42354         * modules/faccessat (configure.ac): Add C witness.
42355         * lib/unistd.in.h (readlinkat): Fix typo.
42356         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42357         convenience wrappers.
42358         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42359         wrappers in syntax checks.
42360
42361 2009-09-06  Eric Blake  <ebb9@byu.net>
42362
42363         doc: fix comments in recent patches
42364         * lib/faccessat.c: Mention correct function.
42365         * lib/fchmodat.c: Likewise.
42366         * lib/fchownat.c: Likewise.
42367         * lib/symlinkat.c: Likewise.
42368         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42369         constants.
42370
42371         faccessat, symlinkat: continue cleanup of previous patch
42372         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42373         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42374         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42376         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42377         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42378         set.
42379
42380 2009-09-06  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42383         (fstatat): Declare if GNULIB_FSTATAT is set.
42384         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42385         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42386         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42387         * modules/fcntl-h (Files): Remove m4/openat.m4.
42388         * modules/sys_stat (Files): Remove m4/openat.m4.
42389         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42390         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42391         * modules/unistd (Files): Remove m4/openat.m4.
42392         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42393         GNULIB_OPENAT.
42394         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42395         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42397         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42398         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42399         gl_OPENAT_DEFAULTS.
42400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42401         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42402         Don't require gl_OPENAT_DEFAULTS.
42403         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42404         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42405         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42406         (gl_OPENAT_DEFAULTS): Remove macro.
42407
42408 2009-09-06  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/openat (configure.ac): Remove unneeded witness.
42411
42412 2009-09-06  Bruno Haible  <bruno@clisp.org>
42413
42414         Set errno to ENOSYS when a function is entirely unsupported.
42415         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42416         EOPNOTSUPP.
42417         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42418         * modules/chown (Depends-on): Remove errno.
42419
42420 2009-09-06  Bruno Haible  <bruno@clisp.org>
42421
42422         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42423
42424 2009-09-06  Bruno Haible  <bruno@clisp.org>
42425
42426         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42427
42428 2009-09-06  Ben Pfaff  <blp@gnu.org>
42429             Bruno Haible  <bruno@clisp.org>
42430
42431         Work around a glibc bug in strtok_r.
42432         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42433         Undefine if UNDEFINE_STRTOK_R is set.
42434         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42436         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42437         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42438         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42439         UNDEFINE_STRTOK_R.
42440         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42441
42442 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42443
42444         exclude: minor fix
42445         * lib/exclude.c: Include wctype.h
42446
42447 2009-09-06  Akim Demaille  <demaille@gostai.com>
42448
42449         bootstrap: improve error message
42450         * build-aux/bootstrap (find_tool): Upon failure, report the list
42451         of candidates.
42452         Honor the initial value of the envvar.
42453
42454 2009-09-05  Eric Blake  <ebb9@byu.net>
42455
42456         symlinkat: new module
42457         * modules/symlinkat: New file.
42458         * lib/symlinkat.c: Likewise.
42459         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42461         * modules/unistd (Makefile.am): Use them.
42462         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42463         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42464         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42465         * MODULES.html.sh (File system functions): Mention module.
42466         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42467         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42468         * modules/symlinkat-tests: New test.
42469         * tests/test-symlinkat.c: Likewise.
42470
42471         test-openat-safer: add more checks
42472         * tests/test-openat-safer.c (main): Check more code paths.
42473
42474 2009-09-05  Jim Meyering  <meyering@redhat.com>
42475
42476         syntax-check: detect unnecessary inclusion of openat.h
42477         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42478
42479 2009-09-05  Bruno Haible  <bruno@clisp.org>
42480
42481         Support towlower, towupper.
42482         * doc/posix-functions/towlower.texi: Mention module wctype.
42483         * doc/posix-functions/towupper.texi: Likewise.
42484         * lib/wctype.in.h (towlower, towupper): New functions.
42485         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42486         (ASSERT): New macro.
42487         (e): New variable.
42488         (main): Test also towlower, towupper. Test WEOF argument.
42489         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42490
42491 2009-09-05  Bruno Haible  <bruno@clisp.org>
42492
42493         Fix conversion behaviour when the input is invalid.
42494         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42495         mark occurring in first pass of indirect conversion.
42496         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42497         input.
42498         Found by clang's static analyzer.
42499
42500 2009-09-05  Bruno Haible  <bruno@clisp.org>
42501
42502         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42503         where direct conversion is possible.
42504
42505 2009-09-04  Eric Blake  <ebb9@byu.net>
42506
42507         openat: fail with ENOENT on empty name
42508         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42509         buffer.
42510
42511         link-follow: fix logic bug in prior patch
42512         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42513         reversed sense of yes and no in prior patch.  Avoid confusing
42514         compilation failure with desired semantics.
42515
42516         link-follow: accommodate mingw and cross-compilation
42517         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42518         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42519         cross-compilation results to -1, to make linkat easier to
42520         implement when cross-compiling.  Trivially support mingw.
42521         * modules/link-follow (configure.ac): Call new name.
42522         * NEWS: Mention this.
42523
42524 2009-09-03  Eric Blake  <ebb9@byu.net>
42525
42526         faccessat: compile replacement
42527         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42528         needed.
42529
42530         fts: fix compilation error
42531         * lib/fts.c (includes): Re-add "openat.h", for
42532         openat_needs_fchdir.
42533
42534         faccessat: new module
42535         * modules/faccessat: New file.
42536         * lib/faccessat.c: Likewise.
42537         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42539         * modules/unistd (Makefile.am): Use it.
42540         * lib/unistd.in.h (faccessat): Declare it.
42541         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42542         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42543         * MODULES.html.sh (File system functions): Mention it.
42544         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42545         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42546
42547         euidaccess: prefer POSIX over non-standard implementation
42548         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42549         * lib/euidaccess.c (euidaccess): Use it if available.
42550
42551         openat: make template easier to use
42552         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42553         AT_FUNC_F2 to be undefined.
42554         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42555         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42556         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42557         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42558         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42559         Likewise.
42560         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42561         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42562         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42563         Likewise.
42564
42565         openat: declare in POSIX headers
42566         * NEWS: Mention this.
42567         * modules/openat (configure.ac): Declare witnesses.
42568         (Depends-on): Add fcntl-h, sys_stat, unistd.
42569         (Include): Mention correct headers.
42570         * modules/fcntl-h (Depends-on): Add link-warning.
42571         (Files): Add openat.m4.
42572         (Makefile.am): Substitute witnesses.
42573         * modules/sys_stat (Files, Makefile.am): Likewise.
42574         * modules/unistd (Files, Makefile.am): Likewise.
42575         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42576         (gl_OPENAT_DEFAULTS): New macro.
42577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42580         (SYS_STAT_H): Remove unused variable.
42581         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42582         * lib/fcntl--.h (includes): Remove unneeded header.
42583         * lib/openat-safer.c (includes): Likewise.
42584         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42585         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42586         appropriate headers.
42587         (__OPENAT_PREFIX): Delete.
42588         * lib/fcntl.in.h (openat): Provide declaration.
42589         (AT_FDCWD): Fix Solaris bug.
42590         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42591         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42592         * lib/fchmodat.c (includes):  Adjust to find declaration.
42593         * lib/fchownat.c (includes): Likewise.
42594         * lib/mkdirat.c (includes): Likewise.
42595         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42596         still visible.
42597
42598 2009-09-02  Eric Blake  <ebb9@byu.net>
42599
42600         errno: use consistently
42601         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42602         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42603         * lib/canonicalize.c (ELOOP): Likewise.
42604         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42605         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42606         * lib/lchown.c (EOPNOTSUPP): Likewise.
42607         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42608         * lib/savewd.c (ESTALE): Likewise.
42609         * lib/settime.c (ENOSYS): Likewise.
42610         * lib/utimens.c (ENOSYS): Likewise.
42611         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42612         * lib/chdir-safer.c (ELOOP): Likewise.
42613         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42614         * modules/c-stack (Depends-on): Add errno.
42615         * modules/canonicalize (Depends-on): Likewise.
42616         * modules/chdir-safer (Depends-on): Likewise.
42617         * modules/fdopendir (Depends-on): Likewise.
42618         * modules/inet_ntop (Depends-on): Likewise.
42619         * modules/inet_pton (Depends-on): Likewise.
42620         * modules/lchown (Depends-on): Likewise.
42621         * modules/openat (Depends-on): Likewise.
42622         * modules/savewd (Depends-on): Likewise.
42623         * modules/settime (Depends-on): Likewise.
42624         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42625
42626         fts: avoid leaking fds
42627         * modules/fts (Depends-on): Add cloexec.
42628         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42629         flag.
42630
42631         fts: make directory fds more robust
42632         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42633         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42634
42635         backupfile, chdir-long, fts, savedir: make safer
42636         * lib/backupfile.c (includes): Use "dirent--.h", since
42637         numbered_backup can write to stderr during readdir.
42638         * lib/savedir.c (includes): Likewise.
42639         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42640         emulation can write to stderr on failure.
42641         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42642         * lib/getcwd.c: Document why opendir_safer is unused.
42643         * lib/glob.c: Likewise.
42644         * lib/scandir.c: Likewise.
42645         * lib/openat-proc.c: Likewise, for open_safer.
42646         * modules/backupfile (Depends-on): Add dirent-safer.
42647         * modules/savedir (Depends-on): Likewise.
42648         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42649         * modules/chdir-long (Depends-on): Add openat-safer.
42650
42651         openat-safer: new module
42652         * modules/openat-safer: New file.
42653         * lib/openat-safer.c: Likewise.
42654         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42655         * lib/fcntl-safer.h (openat_safer): Declare.
42656         * lib/fcntl--.h (openat): Override.
42657         * MODULES.html.sh (File descriptor based I/O): Mention it.
42658         * lib/openat.h: Add double-inclusion guards.
42659         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42660         "fcntl--.h", so we can implement openat.
42661         * modules/openat-safer-tests: New test.
42662         * tests/test-openat-safer.c: New file.
42663
42664         dirent-safer: new module
42665         * modules/dirent-safer: New file.
42666         * lib/dirent--.h: Likewise.
42667         * lib/dirent-safer.h: Likewise.
42668         * lib/opendir-safer.c: Likewise.
42669         * m4/dirent-safer.m4: Likewise.
42670         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42671         * modules/dirent-safer-tests: New test.
42672         * tests/test-dirent-safer.c: New file.
42673         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42674
42675         fdopendir: optimize on mingw
42676         * lib/unistd.in.h (_gl_directory_name): New prototype.
42677         * lib/fchdir.c (_gl_directory_name): Implement it.
42678         (fchdir): Use it to simplify implementation.
42679         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42680         fchdir, when available, to avoid calling [f]chdir().
42681
42682         fdopendir: split into its own module
42683         * lib/openat.c (fdopendir): Move...
42684         * lib/fdopendir.c: ...into new file.
42685         * modules/fdopendir: New module.
42686         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42687         * modules/openat (Depends-on): Add fdopendir.
42688         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42689         fdopendir here.
42690         * modules/savedir (Depends-on): Only need fdopendir, not full
42691         openat.
42692         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42693         * lib/openat.h (fdopendir): Drop prototype.
42694         * lib/dirent.in.h (fdopendir): Provide prototype.
42695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42696         * modules/dirent (Makefile.am): Substitute them.
42697         * MODULES.html.sh (File system functions): Mention it.
42698         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42699         * modules/fdopendir-tests: New file.
42700         * tests/test-fdopendir.c: Likewise.
42701
42702         fchdir: use more consistent macro convention
42703         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42704         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42705         REPLACE_FCHDIR, rather than relying on config.h macros.
42706         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42707         inside a single make-time REPLACE_FCHDIR block, rather than using
42708         the config.h FCHDIR_REPLACEMENT.
42709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42710         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42711         Manage fstat replacement.
42712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42713         REPLACE_FCHDIR.
42714         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42715         (Makefile.am): Substitute REPLACE_FCHDIR.
42716         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42717         FCHDIR_REPLACEMENT.
42718         * lib/dup-safer.c (dup_safer): Likewise.
42719         * lib/dup2.c (rpl_dup2): Likewise.
42720         * lib/dup3.c (rpl_dup3): Likewise.
42721         * lib/open.c (rpl_open): Likewise.
42722
42723         fchdir: simplify error handling, and support dup3
42724         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42725         stdbool, malloc-posix, realloc-posix.
42726         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42727         (ensure_dirs_slot): Return false on allocation failure.
42728         (rpl_dup2): Delete.
42729         (_gl_register_dup): New function.
42730         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42731         (_gl_register_fd): Close fd on allocation failure.
42732         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42733         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42734         prototype.
42735         (rpl_dup2_fchdir): Delete prototype.
42736         * lib/open.c (open): Update caller.
42737         * lib/dup2.c (dup2): Track fchdir metadata.
42738         * lib/dup3.c (dup3): Likewise.
42739         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42741
42742 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42743
42744         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42745         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42746         don't pass arguments to AC_OUTPUT.
42747
42748 2009-09-02  Bruno Haible  <bruno@clisp.org>
42749
42750         * modules/mkdtemp (License): Relicense under LGPLv2+.
42751         Reported by Paolo Bonzini.
42752
42753 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42754
42755         Replace uses of obsolete autoconf macros in Jim's modules.
42756         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42757         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42758         can evoke a warning from autoconf when run with -Wobsolete
42759         enabled.  They were declared obsolete for good reasons (see
42760         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42761         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42762         should not continue using the deprecated macros.
42763         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42764         obsolete Autoconf macros with modern counterparts.
42765         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42766         * m4/dos.m4 (gl_AC_DOS): Likewise.
42767         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42768         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42769         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42770         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42771         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42773         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42774         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42775         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42776         Likewise.
42777         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42778         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42779         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42780         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42781         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42782         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42783
42784 2009-09-01  Eric Blake  <ebb9@byu.net>
42785
42786         fchdir: fix off-by-one bug in previous patch
42787         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42788         (_gl_unregister_fd): Delete useless if.
42789
42790 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42791
42792         maint.mk: sort the list of syntax-check rules
42793         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42794         easier to get a sense of progress when the rules are run sequentially
42795         and take a long time.
42796
42797 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42798
42799         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42800         * modules/netinet_in: Likewise.
42801         * modules/sys_file: Likewise.
42802         * modules/sys_ioctl: Likewise.
42803         * modules/sys_select: Likewise.
42804         * modules/sys_socket: Likewise.
42805         * modules/sys_stat: Likewise.
42806         * modules/sys_time: Likewise.
42807         * modules/sys_times: Likewise.
42808         * modules/sys_utsname: Likewise.
42809         * modules/sys_wait: Likewise.
42810
42811 2009-09-01  Jim Meyering  <meyering@redhat.com>
42812
42813         fts: help ensure that return values are not ignored
42814         * lib/fts_.h (__GNUC_PREREQ): Define.
42815         (__attribute_warn_unused_result__): Define.
42816         (fts_children, fts_close, fts_open, fts_read): Declare with
42817         __attribute_warn_unused_result__.
42818
42819         fts: fts_close now fails also when closing a dir file descriptor fails
42820         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42821         and propagate to caller, along with errno.
42822
42823         announce-gen: correct formatting in --help output
42824         * build-aux/announce-gen (usage): Move the one-line description in
42825         --help output "up", to where it belongs, just after Usage:.
42826
42827 2009-08-31  Eric Blake  <ebb9@byu.net>
42828
42829         fchdir: port to mingw
42830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42831         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42832         opened, then use a substitute.
42833         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42834         replacement.
42835         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42836         (_gl_register_fd): No need to check stat if open already filters
42837         all directories.
42838         (fchdir): Fix error condition to match POSIX.
42839         * modules/fchdir (Depends-on): Add sys_stat.
42840         * doc/posix-functions/open.texi (open): Document the limitation.
42841         * modules/fchdir-tests: New file.
42842         * tests/test-fchdir.c: Likewise.
42843
42844         canonicalize: allow cross-testing from cygwin to mingw
42845         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42846         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42847         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42848         Likewise.
42849         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42850         target does not support symlinks.
42851         * tests/test-canonicalize-lgpl.sh: Likewise.
42852
42853         chown: avoid compilation warning on mingw
42854         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42855         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42856         mingw.
42857         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42858         * modules/chown (Depends-on): Add errno.
42859
42860 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42861
42862         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42863         command.
42864
42865 2009-08-31  Jim Meyering  <meyering@redhat.com>
42866
42867         canonicalize: remove useless initialization
42868         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42869         initialization of local, "end".
42870
42871 2009-08-30  Bruno Haible  <bruno@clisp.org>
42872
42873         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42874         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42875         ENOSYS.
42876
42877 2009-08-30  Bruno Haible  <bruno@clisp.org>
42878
42879         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42880         /usr/xpg4/bin/tr when it exists.
42881         * tests/test-pipe-filter-gi1.sh: Likewise.
42882
42883 2009-08-30  Bruno Haible  <bruno@clisp.org>
42884
42885         Work around deficient /usr/bin/id program on Solaris.
42886         * tests/test-file-has-acl.sh (ID): New variable.
42887         * tests/test-set-mode-acl.sh (ID): Likewise.
42888         * tests/test-copy-acl.sh (ID): Likewise.
42889         * tests/test-copy-file.sh (ID): Likewise.
42890
42891 2009-08-30  Bruno Haible  <bruno@clisp.org>
42892
42893         New module 'xstriconveh'.
42894         * lib/xstriconveh.h: New file.
42895         * lib/xstriconveh.c: New file.
42896         * modules/xstriconveh: New file.
42897
42898 2009-08-30  Bruno Haible  <bruno@clisp.org>
42899
42900         Make it easier to use mem_cd_iconveh.
42901         * lib/striconveh.h (iconveh_t): New type.
42902         (iconveh_open, iconveh_close): New declarations.
42903         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42904         with a single 'const iconveh_t *' argument.
42905         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42906         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42907         with a single 'const iconveh_t *' argument.
42908         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42909         * tests/test-striconveh.c (main): Update.
42910         * NEWS: Mention the change.
42911
42912 2009-08-30  Bruno Haible  <bruno@clisp.org>
42913
42914         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42915         problem.
42916
42917 2009-08-30  Bruno Haible  <bruno@clisp.org>
42918
42919         Work around iconv_open problem on Solaris.
42920         * lib/iconv_open-solaris.gperf: New file.
42921         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42922         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42923         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42924         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42925         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42926         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42927
42928 2009-08-29  Jim Meyering  <meyering@redhat.com>
42929
42930         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42931         * top/maint.mk (cvs-check): Remove target; it was just an alias
42932         to the better-named vc-diff-check.
42933         (maintainer-distcheck): Remove rule.  It was used only from
42934         the (alpha/beta/major) target, and all of its commands but one
42935         were coreutils-specific.
42936         (vc-dist): Remove rule.
42937         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42938         Run vc-diff-check, not vc-dist.
42939         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42940
42941 2009-08-27  Bruno Haible  <bruno@clisp.org>
42942
42943         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42944         of 0.
42945
42946 2009-08-27  Bruno Haible  <bruno@clisp.org>
42947
42948         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42949         compilers.
42950         * doc/func.texi: Document the SunPRO C bug.
42951
42952 2009-08-27  Bruno Haible  <bruno@clisp.org>
42953
42954         Fix link error on Solaris.
42955         * tests/test-parse-duration.c (xstrdup): Remove function.
42956
42957 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42958
42959         ignore-value: handle pointer types, too
42960         * lib/ignore-value.h (__attribute__): Remove definition.
42961         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42962         of a more concise and more-often effective "(void) i" statement.
42963         (ignore_ptr): New function to suppress warnings from functions that
42964         return pointers, and to make it explicit that one function doesn't
42965         handle all cases.
42966
42967 2009-08-25  Bruno Haible  <bruno@clisp.org>
42968
42969         dup2: work around a Linux bug.
42970         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42971         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42972         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42973         Reported by Simon Josefsson.
42974
42975 2009-08-25  Jim Meyering  <meyering@redhat.com>
42976
42977         libguestfs uses gnulib
42978         * users.txt: Add libguestfs.
42979
42980 2009-08-24  Eric Blake  <ebb9@byu.net>
42981
42982         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42983         * lib/pipe2.c (includes): Add binary-io.h.
42984         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42985
42986 2009-08-24  Bruno Haible  <bruno@clisp.org>
42987
42988         Tolerate declared but missing accept4 syscall.
42989         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42990         available.
42991         * lib/sys_socket.in.h (accept4): If the function is already present,
42992         override it.
42993         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42994         * modules/accept4 (Makefile.am): Compile accept4.c always.
42995         Reported by Paolo Bonzini and Eric Blake.
42996
42997 2009-08-23  Bruno Haible  <bruno@clisp.org>
42998
42999         New module 'accept4'.
43000         * lib/sys_socket.in.h (accept4): New declaration.
43001         * lib/accept4.c: New file.
43002         * m4/accept4.m4: New file.
43003         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43004         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43005         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43006         HAVE_ACCEPT4.
43007         * modules/accept4: New file.
43008         * doc/glibc-functions/accept4.texi: Mention the new module.
43009
43010 2009-08-24  Jim Meyering  <meyering@redhat.com>
43011
43012         progname: also set global program_invocation_name, when possible
43013         Before this change, a libtool-enabled program that calls glibc's
43014         error function would report the program name as
43015         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43016         * modules/progname (configure.ac): Check for a declaration of
43017         program_invocation_name.
43018         * lib/progname.c:  Include <errno.h>.
43019         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43020         Set program_invocation_name.
43021
43022 2009-08-23  Bruno Haible  <bruno@clisp.org>
43023
43024         * lib/dup3.c: Include <string.h>.
43025
43026 2009-08-23  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43029         * lib/pipe2.c (pipe2): Likewise.
43030         Suggested by Eric Blake.
43031
43032 2009-08-23  Bruno Haible  <bruno@clisp.org>
43033
43034         Tolerate declared but missing dup3 syscall.
43035         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43036         * lib/unistd.in.h (dup3): If the function is already present,
43037         override it.
43038         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43039         * modules/dup3 (Makefile.am): Compile dup3.c always.
43040         Reported by Paolo Bonzini.
43041
43042 2009-08-23  Bruno Haible  <bruno@clisp.org>
43043
43044         Tolerate declared but missing pipe2 syscall.
43045         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43046         available.
43047         * lib/unistd.in.h (pipe2): If the function is already present,
43048         override it.
43049         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43050         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43051         Reported by Paolo Bonzini.
43052
43053 2009-08-23  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/pipe2.c (pipe2): Move #ifs inside function.
43056
43057 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43058
43059         quotearg: document limitations of quote_these_too
43060         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43061         those limitations are created.
43062         * lib/quotearg.h (set_char_quoting): Document that digits and
43063         letters that are special after backslash are not permitted.
43064         (quotearg_char): Cross-reference set_char_quoting documentation.
43065
43066 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43067
43068         quotearg: implement custom_quoting_style
43069         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43070         right_quote fields.
43071         (set_custom_quoting): New public function.
43072         (quotearg_buffer_restyled): Add left_quote and right_quote
43073         arguments, handle them very much like locale quoting, and update
43074         all uses.
43075         (quotearg_n_custom): New public function.
43076         (quotearg_n_custom_mem): New public function.
43077         (quotearg_custom): New public function.
43078         (quotearg_custom_mem): New public function.
43079         * lib/quotearg.h: Prototype and document new public functions.
43080         (enum quoting_style): For escape_quoting_style and
43081         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43082         ignored even though they're otherwise like c_quoting_style.
43083         Add custom_quoting_style member and document with comparison to
43084         clocale_quoting_style.
43085         * tests/test-quotearg.c (custom_quotes): New array.
43086         (custom_results): New array.
43087         (main): Extend to test custom quoting.
43088
43089 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43090
43091         quotearg: fix right quote escaping when it's in quote_these_too
43092         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43093         quote, be sure to prepend only one backslash.
43094         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43095         (main): Test it.
43096
43097 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43098
43099         quotearg-tests: test escaping of embedded locale quotes
43100         * tests/test-quotearg.c (struct result_strings): Add member for
43101         new input.
43102         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43103         (inputs): Add new input.
43104         (results_g): Add expected results.
43105         (flag_results): Likewise.
43106         (locale_results): Likewise.
43107         (compare_strings): Check those.
43108
43109 2009-08-23  Bruno Haible  <bruno@clisp.org>
43110
43111         Tests for module 'dup3'.
43112         * modules/dup3-tests: New file.
43113         * tests/test-dup3.c: New file.
43114
43115         New module 'dup3'.
43116         * lib/unistd.in.h (dup3): New declaration.
43117         * lib/dup3.c: New file.
43118         * m4/dup3.m4: New file.
43119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43120         HAVE_DUP3.
43121         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43122         * modules/dup3: New file.
43123         * doc/glibc-functions/dup3.texi: Mention the new module.
43124
43125 2009-08-23  Bruno Haible  <bruno@clisp.org>
43126
43127         Tweak the dup2 test.
43128         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43129         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43130         the test file is still empty. Fix argument order of lseek.
43131
43132 2009-08-23  Bruno Haible  <bruno@clisp.org>
43133
43134         Avoid test link errors when the modules getopt-gnu, gettext are used.
43135         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43137
43138 2009-08-23  Bruno Haible  <bruno@clisp.org>
43139
43140         Fix getdtablesize() on mingw.
43141         * lib/getdtablesize.c (getdtablesize): Implement differently.
43142         * lib/unistd.in.h (getdtablesize): Improve comment.
43143
43144 2009-08-23  Bruno Haible  <bruno@clisp.org>
43145
43146         New module 'mkostemp'.
43147         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43148         * lib/stdlib.in.h (mksotemp): New declaration.
43149         * lib/mkostemp.c: New file, from glibc with modifications.
43150         * lib/tempname.h (GT_FILE): Remove outdated comment.
43151         (gen_tempname): Add flags argument.
43152         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43153         (__GT_FILE): Map to 1.
43154         (small_open, large_open): Remove macros.
43155         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43156         * lib/mkstemp.c (mkstemp): Update.
43157         * lib/mkdtemp.c (mkdtemp): Likewise.
43158         * m4/mkostemp.m4: New file.
43159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43160         HAVE_MKOSTEMP.
43161         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43162         HAVE_MKOSTEMP.
43163         * modules/mkostemp: New file, based on modules/mkstemp.
43164         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43165         * NEWS: Mention the change.
43166
43167 2009-08-23  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43170         Reported by Eric Blake.
43171
43172 2009-08-23  Bruno Haible  <bruno@clisp.org>
43173
43174         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43175         Reported by Eric Blake.
43176
43177 2009-08-23  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43180         * modules/pipe2 (Depends-on): Likewise.
43181
43182 2009-08-23  Eric Blake  <ebb9@byu.net>
43183
43184         fcntl-h: add O_TTY_INIT support
43185         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43186         * tests/test-fcntl-h.c (o): Test it.
43187         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43188
43189         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43190         * modules/fcntl: Move <fcntl.h> header replacement...
43191         * modules/fcntl-h: ...to new name, so as not to collide with
43192         like-named function.
43193         * tests/test-fcntl.c: Rename...
43194         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43195         * modules/fcntl-tests: Rename...
43196         * modules/fcntl-h-tests: ...to this.  Update test file name.
43197         * modules/chdir-long (Depends-on): Update clients.
43198         * modules/chdir-safer (Depends-on): Likewise.
43199         * modules/fcntl-safer (Depends-on): Likewise.
43200         * modules/fts (Depends-on): Likewise.
43201         * modules/mkancesdirs (Depends-on): Likewise.
43202         * modules/mkdir-p (Depends-on): Likewise.
43203         * modules/open (Depends-on): Likewise.
43204         * modules/savewd (Depends-on): Likewise.
43205         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43206         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43207
43208 2009-08-22  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/binary-io (License): Relicense under LGPL.
43211         * modules/pipe2 (License): Likewise.
43212
43213 2009-08-22  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43216         return value.
43217         * lib/pipe-filter-gi.c (filter_init): Likewise.
43218         Reported by Eric Blake.
43219
43220 2009-08-22  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43223         * modules/pipe (Depends-on): Add pipe2.
43224
43225 2009-08-22  Bruno Haible  <bruno@clisp.org>
43226
43227         Tests for module 'pipe2'.
43228         * modules/pipe2-tests: New file.
43229         * tests/test-pipe2.c: New file.
43230
43231         New module 'pipe2'.
43232         * lib/unistd.in.h (pipe2): New declaration.
43233         * lib/pipe2.c: New file.
43234         * m4/pipe2.m4: New file.
43235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43236         HAVE_PIPE2.
43237         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43238         * modules/pipe2: New file.
43239         * doc/glibc-functions/pipe2.texi: Mention the new module.
43240
43241 2009-08-22  Bruno Haible  <bruno@clisp.org>
43242
43243         Reference some new glibc functions.
43244         * doc/glibc-functions/accept4.texi: New file.
43245         * doc/glibc-functions/dup3.texi: New file.
43246         * doc/glibc-functions/mkostemp.texi: New file.
43247         * doc/glibc-functions/pipe2.texi: New file.
43248         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43249         (Glibc sys/socket.h): Refer to accept4.
43250         (Glibc unistd.h): Refer to dup3, pipe2.
43251         Reported by Eric Blake.
43252
43253 2009-08-22  Jim Meyering  <meyering@redhat.com>
43254             Bruno Haible  <bruno@clisp.org>
43255
43256         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43257         This makes it so packages using automake-1.11's silent-rules option
43258         can print e.g., a single "GEN    configmake.h" line, rather than
43259         the 30+ statements that perform the job.  If you want to see the
43260         actual commands, you can still run "make V=1".
43261         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43262         so that make output is abbreviated when those variables are defined
43263         appropriately.
43264         * modules/argz: Likewise.
43265         * modules/arpa_inet: Likewise.
43266         * modules/byteswap: Likewise.
43267         * modules/configmake: Likewise.
43268         * modules/dirent: Likewise.
43269         * modules/errno: Likewise.
43270         * modules/fcntl: Likewise.
43271         * modules/float: Likewise.
43272         * modules/fnmatch: Likewise.
43273         * modules/getopt-posix: Likewise.
43274         * modules/glob: Likewise.
43275         * modules/iconv_open: Likewise.
43276         * modules/inttypes: Likewise.
43277         * modules/localcharset: Likewise.
43278         * modules/locale: Likewise.
43279         * modules/math: Likewise.
43280         * modules/netdb: Likewise.
43281         * modules/netinet_in: Likewise.
43282         * modules/poll: Likewise.
43283         * modules/posix_spawnp-tests: Likewise.
43284         * modules/sched: Likewise.
43285         * modules/search: Likewise.
43286         * modules/selinux-h: Likewise.
43287         * modules/signal: Likewise.
43288         * modules/spawn: Likewise.
43289         * modules/stdarg: Likewise.
43290         * modules/stdbool: Likewise.
43291         * modules/stddef: Likewise.
43292         * modules/stdint: Likewise.
43293         * modules/stdio: Likewise.
43294         * modules/stdlib: Likewise.
43295         * modules/string: Likewise.
43296         * modules/strings: Likewise.
43297         * modules/sys_file: Likewise.
43298         * modules/sys_ioctl: Likewise.
43299         * modules/sys_select: Likewise.
43300         * modules/sys_socket: Likewise.
43301         * modules/sys_stat: Likewise.
43302         * modules/sys_time: Likewise.
43303         * modules/sys_times: Likewise.
43304         * modules/sys_utsname: Likewise.
43305         * modules/sys_wait: Likewise.
43306         * modules/sysexits: Likewise.
43307         * modules/time: Likewise.
43308         * modules/unistd: Likewise.
43309         * modules/wchar: Likewise.
43310         * modules/wctype: Likewise.
43311
43312 2009-08-22  Jim Meyering  <meyering@redhat.com>
43313
43314         announce-gen: detect write failure
43315         * build-aux/announce-gen: Add Coda at end.
43316         Remove equivalent-but-more-verbose block at top.
43317
43318 2009-08-19  Akim Demaille  <demaille@gostai.com>
43319
43320         bootstrap: --help to stdout.
43321         * bootstrap (usage): Don't send --help to stderr.
43322         Use a here doc instead of a long string.
43323
43324 2009-08-21  Eric Blake  <ebb9@byu.net>
43325
43326         test-popen-safer: split from test-popen
43327         * tests/test-popen.c (main): Move...
43328         * tests/test-popen.h: ...into new file.
43329         * tests/test-popen-safer2.c: New file.
43330         * modules/popen-tests (Files): Add test-popen.h.
43331         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43332         Suggested by Bruno Haible.
43333
43334         test-fcntl-safer: split from test-open
43335         * tests/test-open.c (main): Move...
43336         * tests/test-open.h: ...into new file.
43337         * tests/test-fcntl-safer.c: New file.
43338         * modules/open-tests (Files): Add test-open.h.
43339         * modules/fcntl-safer-tests: New file.
43340         Suggested by Bruno Haible.
43341
43342         test-fopen-safer: split from test-fopen
43343         * tests/test-fopen.c (main): Move...
43344         * tests/test-fopen.h: ...into new file.
43345         * tests/test-fopen-safer.c: New file.
43346         * modules/fopen-tests (Files): Add test-fopen.h.
43347         * modules/fopen-safer-tests: New file.
43348         Suggested by Bruno Haible.
43349
43350 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43351
43352         popen-safer: test O_CLOEXEC at run-time.
43353         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43354
43355 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43356
43357         fcntl: move more flags to the header
43358         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43359         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43360         * lib/fcntl.in.h: Do both things here.
43361
43362 2009-08-21  Jim Meyering  <meyering@redhat.com>
43363
43364         consistently remove $@-t before redirecting to it
43365         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43366         * modules/alloca-opt: Likewise.
43367         * modules/byteswap: Likewise.
43368         * modules/fnmatch: Likewise.
43369         * modules/getopt-posix: Likewise.
43370         * modules/glob: Likewise.
43371         * modules/poll: Likewise.
43372         * modules/posix_spawnp-tests: Likewise.
43373         * modules/sys_socket: Likewise.
43374         * modules/sysexits: Likewise.
43375
43376 2009-08-21  Eric Blake  <ebb9@byu.net>
43377
43378         popen: simplify access to original popen
43379         * lib/popen.c (rpl_popen): No need to worry about popen being a
43380         macro.
43381         Reported by Bruno Haible.
43382
43383 2009-08-20  Eric Blake  <ebb9@byu.net>
43384
43385         build: avoid some compiler warnings
43386         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43387         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43388         type.
43389         (new_exclude_segment, excluded_file_pattern_p)
43390         (excluded_file_name_p): Reduce scope.
43391         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43392         old-style declaration.
43393
43394 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43395
43396         * tests/test-exclude1.sh: Handle Windows EOL.
43397         * tests/test-exclude2.sh: Likewise.
43398         * tests/test-exclude3.sh: Likewise.
43399         * tests/test-exclude4.sh: Likewise.
43400         * tests/test-exclude5.sh: Likewise.
43401         * tests/test-exclude6.sh: Likewise.
43402         * tests/test-exclude7.sh: Likewise.
43403
43404 2009-08-19  Akim Demaille  <demaille@gostai.com>
43405
43406         bootstrap: find sha1sum when named gsha1sum.
43407         * bootstrap (find_tool): New.
43408         ($SHA1SUM): New.
43409         Use it.
43410
43411 2009-08-20  Jim Meyering  <meyering@redhat.com>
43412
43413         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43414         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43415         expression that converts "." in a file name to "\." in the resulting
43416         regexp.  Start with a dummy statement, so that prior shell variable
43417         definitions are expanded portably.  Reported by Simon Josefsson.
43418
43419 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43420
43421         Fix polling for writeability of a screen buffer.
43422         * lib/poll.c: Distinguish input and screen buffers for the
43423         Win32 implementation.
43424         * lib/select.c: Likewise.
43425
43426 2009-08-19  Eric Blake  <ebb9@byu.net>
43427
43428         popen-safer: prevent popen from clobbering std descriptors
43429         * modules/popen-safer: New file.
43430         * lib/popen-safer.c: Likewise.
43431         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43432         * lib/stdio--.h (popen): Provide override.
43433         * lib/stdio-safer.h (popen_safer): Provide declaration.
43434         * tests/test-popen.c (includes): Partially test this.
43435         * modules/popen-safer-tests: New file, for more tests.
43436         * tests/test-popen-safer.c: Likewise.
43437         * MODULES.html.sh (file stream based Input/Output): Mention it.
43438
43439         tests: test some of the *-safer modules
43440         * modules/fopen-safer (Depends-on): Add fopen.
43441         * modules/fcntl-safer (Depends-on): Add fcntl.
43442         * modules/stdlib-safer (Depends-on): Add stdlib.
43443         (configure.ac): Set indicator.
43444         * modules/unistd-safer (configure.ac): Likewise.
43445         * modules/tmpfile-safer (configure.ac): Likewise.
43446         (Depends-on): Add tmpfile.
43447         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43448         active.
43449         * tests/test-fopen.c (includes): Test safer versions when they are
43450         in use.
43451         * tests/test-open.c (includes): Likewise.
43452
43453         popen: fix cygwin 1.5 bug when stdin closed
43454         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43455         * modules/popen: New file.
43456         * modules/popen-tests: Likewise.
43457         * tests/test-popen.c: Likewise.
43458         * m4/popen.m4: Likewise.
43459         * lib/popen.c: Likewise.
43460         * lib/stdio.in.h (popen): New declaration.
43461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43462         * modules/stdio (Makefile.am): Likewise.
43463         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43464
43465 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43466
43467         maint.mk: give full control over update-copyright exclusions
43468         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43469         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43470         (update-copyright): Don't force inclusion of top-level
43471         ChangeLog.  Don't force exclusion of all COPYING files, but make
43472         them the default exclusion instead.
43473
43474 2009-08-16  Bruno Haible  <bruno@clisp.org>
43475
43476         Fix test failures on Solaris 10.
43477         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43478         tests when Solaris iconv() is used.
43479         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43480         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43481         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43482         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43483         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43484
43485 2009-08-16  Bruno Haible  <bruno@clisp.org>
43486
43487         Fix test failures on Solaris 10.
43488         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43489         'tr' program and pass it as first argument.
43490         * tests/test-pipe-filter-gi1.sh: Likewise.
43491         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43492         program as first argument.
43493         * tests/test-pipe-filter-gi1.c (main): Likewise.
43494
43495 2009-08-16  Eric Blake  <ebb9@byu.net>
43496
43497         fpurge: fix previous commits
43498         * modules/fpurge (Makefile.am): Make replacement conditional,
43499         partially reverting 2007-04-29 change; missed in previous
43500         attempt.
43501         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43502         is missing.
43503
43504 2009-08-16  Bruno Haible  <bruno@clisp.org>
43505
43506         Clarify fpurge's effect on the file position.
43507         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43508         * tests/test-fpurge.c (main): Make a second pass for checking the file
43509         position.
43510
43511 2009-08-16  Bruno Haible  <bruno@clisp.org>
43512
43513         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43514         declaration of fpurge is missing.
43515         * tests/test-fpurge.c (main): Check that the file has not more contents
43516         than expected. Close the file before removing it.
43517
43518 2009-08-15  Eric Blake  <ebb9@byu.net>
43519
43520         fpurge: don't wrap working cygwin implementation
43521         * lib/fpurge.c (fpurge): Fix comment typo.
43522         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43523         1.7 to avoid replacement.
43524         * tests/test-fpurge.c (main): Enhance test.
43525
43526 2009-08-15  Eric Blake  <ebb9@byu.net>
43527         and Jim Meyering  <meyering@redhat.com>
43528
43529         test-update-copyright: skip if perl is insufficient
43530         * tests/test-update-copyright.sh: Failure to run maintainer tool
43531         should not cause testsuite failure on cygwin 1.5.
43532
43533 2009-08-14  Eric Blake  <ebb9@byu.net>
43534
43535         doc: mention more functions added in cygwin 1.7.0
43536         * doc/posix-headers/limits.texi (limits.h): Update for recent
43537         cygwin additions.
43538         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43539         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43540         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43541         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43542         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43543
43544 2009-08-14  Eric Blake  <ebb9@byu.net>
43545
43546         maint.mk: simplify update-copyright rule
43547         * top/maint.mk (update-copyright-local): Delete, and document how
43548         to do it in cfg.mk instead.
43549         (update-copyright-exclude-regexp): Delete, and document how to do
43550         it in .x-update-copyright instead.
43551         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43552         exclude ChangeLog.
43553
43554 2009-08-14  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43557
43558 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43559
43560         maint.mk: support update-copyright-env
43561         * top/maint.mk (update-copyright-env): Define place-holder.
43562         (update-copyright): Expand $(update-copyright-env) before
43563         invoking update-copyright.
43564
43565 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43566
43567         update-copyright: implement forced reformatting
43568         * build-aux/update-copyright: Implement and document
43569         UPDATE_COPYRIGHT_FORCE.
43570         * tests/test-update-copyright.sh: Test it.
43571
43572 2009-08-14  Eric Blake  <ebb9@byu.net>
43573         and Bruno Haible  <bruno@clisp.org>
43574
43575         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43576         * tests/test-locale.c: Revert previous patch related to NULL.
43577         * tests/test-stdio.c: Likewise.
43578         * tests/test-stdlib.c: Likewise.
43579         * tests/test-string.c: Likewise.
43580         * tests/test-unistd.c: Likewise.
43581         * modules/time-tests (Depends-on): Add verify.
43582         * modules/wchar-tests (Depends-on): Likewise.
43583         * tests/test-time.c: Test for NULL compliance.
43584         * tests/test-wchar.c: Likewise.
43585         * modules/locale (Depends-on): Add stddef.
43586         * modules/stdio (Depends-on): Likewise.
43587         * modules/stdlib (Depends-on): Likewise.
43588         * modules/string (Depends-on): Likewise.
43589         * modules/time (Depends-on): Likewise.
43590         * modules/unistd (Depends-on): Likewise.
43591         * modules/wchar (Depends-on): Likewise.
43592         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43593         * lib/stdlib.in.h (includes): Likewise.
43594         * lib/string.in.h (includes): Likewise.
43595         * lib/time.in.h (includes): Likewise.
43596         * lib/unistd.in.h (includes): Likewise.
43597         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43598         replaced.
43599         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43600         * m4/stddef_h.m4: New file.
43601         * modules/stddef: Likewise.
43602         * lib/stddef.in.h: Likewise.
43603         * modules/stddef-tests: Likewise.
43604         * tests/test-stddef.c: Likewise.
43605         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43606         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43607         * doc/posix-headers/locale.texi (locale.h): Likewise.
43608         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43609         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43610         * doc/posix-headers/string.texi (string.h): Likewise.
43611         * doc/posix-headers/time.texi (time.h): Likewise.
43612         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43613         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43614
43615 2009-08-14  Eric Blake  <ebb9@byu.net>
43616
43617         doc: improve git diff of texinfo files
43618         * .gitattributes: Add rule for *.texi files, with hint on how to
43619         use it.
43620         Copied from m4, and based on a report by Bruno Haible.
43621
43622 2009-08-14  Bruno Haible  <bruno@clisp.org>
43623
43624         Disable multithread support by default on Cygwin 1.5.x for real.
43625         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43626
43627 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43628
43629         update-copyright: much ado about intervals
43630         * build-aux/update-copyright: Implement and document
43631         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43632         of copyright year intervals.
43633         Also, document UPDATE_COPYRIGHT_YEAR.
43634         * tests/test-update-copyright.sh: Test it.
43635
43636         update-copyright: convert 2-digit to 4-digit years
43637         * build-aux/update-copyright: Implement and document.
43638         * tests/test-update-copyright.sh: Update.
43639
43640 2009-08-14  Jim Meyering  <meyering@redhat.com>
43641
43642         test-exclude: avoid coreutils "make check" failure
43643         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43644         just as in test-argmatch.c.
43645
43646 2009-08-13  Eric Blake  <ebb9@byu.net>
43647
43648         test-dup2: fix bad assumption
43649         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43650         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43651
43652         test-version-etc: fix CRLF portability issue
43653         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43654         recognize \r.
43655         * tests/test-argp-version-etc-1.sh: Likewise.
43656
43657         getopt: update client modules
43658         * modules/argp (Depends-on): Use getopt-gnu.
43659         * modules/git-merge-changelog (Depends-on): Likewise.
43660         * modules/long-options (Depends-on): Likewise.
43661         * modules/xstrtol (Depends-on): Likewise.
43662
43663 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43664
43665         * tests/test-version-etc.sh: Don't fail on different
43666         project/version.  Don't fail on CRLF differences.  Rewrite to use
43667         multiple -e instead of multiple sed forks, suggested by Eric Blake
43668         <ebb9@byu.net>.
43669         * tests/test-argp-version-etc-1.sh: Likewise.
43670
43671 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43672
43673         * tests/test-version-etc.sh: Don't fail on different
43674         project/version.
43675
43676 2009-08-12  Bruno Haible  <bruno@clisp.org>
43677
43678         Tests for modules 'getopt-posix', 'getopt-gnu'.
43679         * modules/getopt-posix-tests: New file.
43680         * tests/test-getopt.c: New file.
43681         * tests/test-getopt.h: New file.
43682         * tests/test-getopt_long.h: New file.
43683
43684         New modules 'getopt-posix', 'getopt-gnu'.
43685         * modules/getopt-gnu: New file, renamed from modules/getopt.
43686         * modules/getopt-posix: New file.
43687         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43688         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43689         (gl_GETOPT): Remove macro.
43690         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43691         Disable the test against BSD systems that declare optreset. Test
43692         against mingw bug. Test against lack of support of optional arguments
43693         on many platforms.
43694         * doc/glibc-headers/getopt.texi: Update module name and list of
43695         relevant platforms.
43696         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43697         'getopt-gnu' and more portability problems.
43698         * NEWS: Mention the changes.
43699
43700 2009-08-12  Bruno Haible  <bruno@clisp.org>
43701
43702         Ensure that optarg etc. get declared by <unistd.h>.
43703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43704         AC_USE_SYSTEM_EXTENSIONS.
43705         * modules/getopt (Depends-on): Add 'extensions'.
43706
43707 2009-08-12  Bruno Haible  <bruno@clisp.org>
43708
43709         Avoid test link errors.
43710         * modules/pipe-filter-ii-tests (Makefile.am): Define
43711         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43712         * modules/pipe-filter-gi-tests (Makefile.am): Define
43713         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43715
43716 2009-08-12  Bruno Haible  <bruno@clisp.org>
43717
43718         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43719         gl_GETOPT_SUBSTITUTE before.
43720         (gl_GETOPT): Use it.
43721         * m4/argp.m4 (gl_ARGP): Update.
43722         Reported by Sergey Poznyakoff.
43723
43724         * m4/getopt.m4: Reorder macros.
43725         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43726         (gl_GETOPT_SUBSTITUTE): Remove macro.
43727
43728 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43729
43730         Minor improvement in gitlog-to-changelog
43731
43732         * build-aux/gitlog-to-changelog: New option `--format' makes
43733         output format string configurable.
43734
43735 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43736
43737         Optimize exclude: use hash tables for non-wildcard patterns.
43738
43739         * lib/exclude.c: Include hash.h and mbuiter.h
43740         (struct exclude_pattern, exclude_segment): New data types.
43741         (struct exclude): Rewrite.
43742         (fnmatch_pattern_has_wildcards): New function.
43743         (new_exclude_segment, free_exclude_segment): New functions.
43744         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43745         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43746         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43747         * modules/exclude: Depend on hash and mbuiter.
43748
43749         * modules/exclude-tests: New file.
43750         * tests/test-exclude.c: New file.
43751         * tests/test-exclude1.sh: New file.
43752         * tests/test-exclude2.sh: New file.
43753         * tests/test-exclude3.sh: New file.
43754         * tests/test-exclude4.sh: New file.
43755         * tests/test-exclude5.sh: New file.
43756         * tests/test-exclude6.sh: New file.
43757         * tests/test-exclude7.sh: New file.
43758
43759 2009-08-12  Bruno Haible  <bruno@clisp.org>
43760
43761         Ensure that getopt() gets declared by <unistd.h>.
43762         * lib/unistd.in.h: Conditionally include getopt.h.
43763         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43764         Set GNULIB_UNISTD_H_GETOPT.
43765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43766         GNULIB_UNISTD_H_GETOPT.
43767         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43768
43769 2009-08-12  Bruno Haible  <bruno@clisp.org>
43770
43771         Clarify logic.
43772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43773         gl_replace_getopt instead of GETOPT_H.
43774
43775 2009-08-12  Bruno Haible  <bruno@clisp.org>
43776
43777         * m4/getopt.m4: Add comments.
43778
43779 2009-08-12  Bruno Haible  <bruno@clisp.org>
43780
43781         Disable multithread support by default on Cygwin 1.5.x.
43782         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43783         set gl_use_threads=no if not specified otherwise.
43784
43785 2009-08-11  Bruno Haible  <bruno@clisp.org>
43786
43787         Avoid compilation error on NetBSD 5.0.
43788         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43789         * tests/test-stdio.c: Likewise.
43790         * tests/test-stdlib.c: Likewise.
43791         * tests/test-string.c: Likewise.
43792         * tests/test-unistd.c: Likewise.
43793         Reported by Greg Troxel <gdt@ir.bbn.com>
43794         at <https://savannah.gnu.org/support/?106973>.
43795
43796 2009-08-11  Bruno Haible  <bruno@clisp.org>
43797
43798         * modules/dup2-tests (Depends-on): Remove close.
43799
43800         Undo 2009-07-19 commit.
43801         * modules/acl-tests (Depends-on): Remove close.
43802         * modules/binary-io-tests (Depends-on): Likewise.
43803         * modules/closein-tests (Depends-on): Likewise.
43804         * modules/flock-tests (Depends-on): Likewise.
43805         * modules/fsync-tests (Depends-on): Likewise.
43806         * modules/lseek-tests (Depends-on): Likewise.
43807         * modules/pipe-tests (Depends-on): Likewise.
43808         * modules/posix_spawn-tests (Depends-on): Likewise.
43809         * modules/posix_spawnp-tests (Depends-on): Likewise.
43810         * modules/stat-time-tests (Depends-on): Likewise.
43811         * modules/yesno-tests (Depends-on): Likewise.
43812
43813 2009-08-10  Bruno Haible  <bruno@clisp.org>
43814
43815         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43816
43817 2009-08-10  Bruno Haible  <bruno@clisp.org>
43818
43819         Fix a gcc warning.
43820         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43821
43822 2009-08-10  Bruno Haible  <bruno@clisp.org>
43823
43824         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43825         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43826         not only the first time.
43827         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43828         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43829         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43830         is 1, not only the the first time.
43831
43832 2009-08-10  Bruno Haible  <bruno@clisp.org>
43833
43834         Make it possible to use module 'gethostname' without module 'close'.
43835         * lib/unistd.in.h (close): Evoke a link error only if
43836         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43838         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43839         * modules/unistd (Makefile.am): Substitute
43840         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43841         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43842         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43843         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43844         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43845         * modules/sys_ioctl (Makefile.am): Substitute
43846         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43847         * modules/socket (configure.ac): On native Windows, set
43848         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43849         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43850         Reported by Sam Steingold <sds@gnu.org>.
43851
43852 2009-08-10  Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43855         * modules/ioctl (configure.ac): Likewise.
43856
43857 2009-08-10  Bruno Haible  <bruno@clisp.org>
43858
43859         Avoid collision between gnulib wrapper and libintl wrapper.
43860         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43861         already defined in intl/printf.c.
43862         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43863         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43864
43865 2009-08-09  Bruno Haible  <bruno@clisp.org>
43866
43867         Make <sys/select.h> really self-contained, also on Solaris 10.
43868         * lib/sys_select.in.h: Include <string.h>.
43869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43870         Solaris 10 problem.
43871         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43872         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43873         Reported by Jim Meyering.
43874
43875 2009-08-09  Bruno Haible  <bruno@clisp.org>
43876
43877         Avoid warnings from 'aclocal' that are due to a use of macro name
43878         AM_XGETTEXT_OPTION that is not defined in automake.
43879         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43880         automake.
43881         * modules/error (configure.ac): Likewise.
43882         * modules/propername (configure.ac): Likewise.
43883         * modules/vasprintf (configure.ac): Likewise.
43884         * modules/verror (configure.ac): Likewise.
43885         * modules/xprintf (configure.ac): Likewise.
43886         * modules/xvasprintf (configure.ac): Likewise.
43887
43888 2009-08-08  Bruno Haible  <bruno@clisp.org>
43889
43890         Avoid compilation error in C++ mode.
43891         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43892         Reported by Sam Steingold <sds@gnu.org>.
43893
43894 2009-08-08  Bruno Haible  <bruno@clisp.org>
43895
43896         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43897         for the various Unix platforms.
43898         * doc/posix-headers/limits.texi: Update platforms list regarding
43899         HOST_NAME_MAX.
43900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43901
43902 2009-08-07  Jim Meyering  <meyering@redhat.com>
43903
43904         selinux-at: fix typo in a comment
43905         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43906         Spotted by Paolo Bonzini.
43907
43908         selinux-at: remove redundant m4 code, add documentation
43909         * modules/selinux-at (configure.ac): Remove redundant code.
43910         LIB_SELINUX is already set via the dependent module, selinux-h.
43911         (Include): Add quotes around selinux-at.h.
43912         * lib/selinux-at.h: Add documentation.
43913         Reported by Bruno Haible in
43914         http://marc.info/?l=gnulib-bug&m=124958988300749
43915
43916 2009-08-07  Bruno Haible  <bruno@clisp.org>
43917
43918         Avoid link error on MacOS X 10.3 and 10.4.
43919         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43920         on non-ELF systems.
43921         * lib/argp-pv.c (argp_program_version): Likewise.
43922         Reported by Simon Josefsson.
43923
43924 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43925
43926         * tests/test-version-etc.sh: Use $EXEEXT.
43927
43928 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43929
43930         update-copyright: update documentation to point to maint.mk
43931         * build-aux/update-copyright: Here.
43932
43933 2009-08-06  Jim Meyering  <meyering@redhat.com>
43934
43935         maint.mk: support update-copyright-local
43936         * top/maint.mk (update-copyright-local): Define place-holder.
43937         (update-copyright): Depend on $(update-copyright-local).
43938
43939 2009-08-06  Jim Meyering  <meyering@redhat.com>
43940
43941         selinux-at: new module
43942         Initially written for coreutils, this module will soon be
43943         used by findutils, too.
43944         * MODULES.html.sh [Misc]: Add selinux-at.
43945         * lib/selinux-at.h: New file, from coreutils.
43946         * lib/selinux-at.c: Likewise.
43947         * modules/selinux-at: Likewise.
43948         (License): Change from LGPL to GPL, since it depends
43949         on the GPL'd openat module.
43950
43951         doc: update README
43952         * README: Remove references to cogito.
43953         Remove cvs-repo-updating instructions from 2007.
43954         Don't imply that CVS is better if you have limited disk space.
43955
43956 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43957
43958         update-copyright: support C-style comments
43959         * build-aux/update-copyright: Implement and document.
43960         * tests/test-update-copyright.sh: Test.
43961
43962 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43963
43964         update-copyright: support omitted "(C)"
43965         * build-aux/update-copyright: Implement and document.  Also,
43966         allow variable whitespace before "(C)".
43967         * tests/test-update-copyright.sh: Test.
43968
43969 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43970
43971         update-copyright: don't trip on non-FSF copyright statements
43972         * build-aux/update-copyright: Fix so that the first correctly
43973         formatted FSF copyright statement is recognized no matter what
43974         appears before it.  Update documentation.
43975         * tests/test-update-copyright.sh: Test that.
43976
43977 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43978
43979         update-copyright: clean up code a little
43980         * build-aux/update-copyright: Append "_re" to the name of any
43981         variable holding a regular expression.
43982         Replace "old" and "new" with "stmt" in variable names.
43983         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43984         handled correctly.
43985         Format code more consistently.
43986
43987 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43988
43989         update-copyright-tests: improve portability
43990         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43991         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43992
43993 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43994
43995         update-copyright: support @copyright{} and &copy;
43996         * build-aux/update-copyright: Implement and document.
43997         * tests/test-update-copyright.sh: Test.
43998
43999 2009-08-04  Jim Meyering  <meyering@redhat.com>
44000
44001         update-copyright-tests: correctly test EOL=\r\n handling
44002         * tests/test-update-copyright.sh: Put \r at the end of some lines
44003         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44004
44005         maint.mk: make update-copyright exclusion list more configurable
44006         * top/maint.mk (update-copyright): Default to excluding COPYING,
44007         but allow an override, in case someone does want to update that file.
44008
44009         maint.mk: don't update copyright date in COPYING
44010         * top/maint.mk (update-copyright): Exclude COPYING.
44011
44012         maint.mk: add a copyright-updating rule
44013         * top/maint.mk (update-copyright): New rule.
44014         Derived from coreutils/Makefile.am.
44015
44016         update-copyright: rename some variables
44017         * build-aux/update-copyright: Rename a few variables for clarity.
44018         Tweak syntax.  List Joel E. Denny as coauthor.
44019
44020 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44021
44022         update-copyright: fix bug for 2-digit last year and add tests
44023         * build-aux/update-copyright: Fix bug.
44024         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44025         specified.
44026         * modules/update-copyright-tests: New
44027         * tests/test-update-copyright.sh: New.
44028
44029 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44030
44031         update-copyright: handle leading tabs in line prefix
44032         * build-aux/update-copyright: Count leading tabs as 8 spaces
44033         when computing margin.  This helps with the formatting of
44034         ChangeLogs, for example.
44035         Fix documentation a little.
44036
44037 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44038
44039         update-copyright: support EOL=\r\n
44040         * build-aux/update-copyright: Implement that.
44041
44042 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44043
44044         update-copyright: automatically format copyright statements
44045         * build-aux/update-copyright: Implement that.
44046         Also, be a little more predictable and safer by always failing
44047         when the full copyright format is not perfectly recognized as an
44048         unbroken whole.  Discussed at
44049         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44050         Rewrite documentation.
44051
44052 2009-08-03  Bruno Haible  <bruno@clisp.org>
44053
44054         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44055
44056 2009-08-02  Bruno Haible  <bruno@clisp.org>
44057
44058         Tests for module 'uname'.
44059         * modules/uname-tests: New file.
44060         * tests/test-uname.c: New file.
44061
44062         New module 'uname'.
44063         * lib/uname.c: New file.
44064         * m4/uname.m4: New file.
44065         * modules/uname: New file.
44066         * doc/posix-functions/uname.texi: Mention the new module.
44067
44068 2009-08-02  Bruno Haible  <bruno@clisp.org>
44069
44070         Tests for module 'sys_utsname'.
44071         * modules/sys_utsname-tests: New file.
44072         * tests/test-sys_utsname.c: New file.
44073
44074         New module 'sys_utsname'.
44075         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44076         * m4/sys_utsname_h.m4: New file.
44077         * modules/sys_utsname: New file.
44078         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44079
44080 2009-08-02  Bruno Haible  <bruno@clisp.org>
44081
44082         Implicitly initialize the sockets library.
44083         * lib/gethostname.c: Include sockets.h.
44084         (rpl_gethostname): Invoke gl_sockets_startup.
44085         * lib/socket.c: Include sockets.h.
44086         (rpl_socket): Invoke gl_sockets_startup.
44087         * modules/gethostname (Depends-on): Add sockets.
44088         * modules/socket (Depends-on): Likewise.
44089         * tests/test-poll.c: Don't include sockets.h.
44090         (main): Don't invoke gl_sockets_startup.
44091         * tests/test-select.c: Don't include sockets.h.
44092         (main): Don't invoke gl_sockets_startup.
44093
44094 2009-08-02  Bruno Haible  <bruno@clisp.org>
44095
44096         Allow multiple calls to gl_sockets_startup.
44097         * lib/sockets.c (initialized_sockets_version): New variable.
44098         (gl_sockets_startup): Do nothing if already called for this or a higher
44099         version.
44100         (gl_sockets_cleanup): Reset initialized_sockets_version.
44101
44102 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44103
44104         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44105         different project/version.
44106
44107 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44108             Bruno Haible  <bruno@clisp.org>
44109
44110         Tests for module 'pipe-filter-gi'.
44111         * modules/pipe-filter-gi-tests: New file.
44112         * tests/test-pipe-filter-gi1.sh: New file.
44113         * tests/test-pipe-filter-gi1.c: New file.
44114         * tests/test-pipe-filter-gi2.sh: New file.
44115         * tests/test-pipe-filter-gi2-main.c: New file.
44116         * tests/test-pipe-filter-gi2-child.c: New file.
44117
44118         New module 'pipe-filter-gi'.
44119         * lib/pipe-filter-gi.c: New file.
44120         * modules/pipe-filter-gi: New file.
44121
44122 2009-08-02  Bruno Haible  <bruno@clisp.org>
44123             Paolo Bonzini  <bonzini@gnu.org>
44124
44125         Tests for module 'pipe-filter-ii'.
44126         * modules/pipe-filter-ii-tests: New file.
44127         * tests/test-pipe-filter-ii1.sh: New file.
44128         * tests/test-pipe-filter-ii1.c: New file.
44129         * tests/test-pipe-filter-ii2.sh: New file.
44130         * tests/test-pipe-filter-ii2-main.c: New file.
44131         * tests/test-pipe-filter-ii2-child.c: New file.
44132
44133         New module 'pipe-filter-ii'.
44134         * lib/pipe-filter.h: New file.
44135         * lib/pipe-filter-ii.c: New file.
44136         * lib/pipe-filter-aux.h: New file.
44137         * modules/pipe-filter-ii: New file.
44138
44139 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44140
44141         * lib/gc-libgcrypt.c: Change copyright to FSF.
44142         * lib/gc-gnulib.c: Likewise.
44143
44144 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44145
44146         * lib/gethostname.c: Include limits.h.
44147
44148 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44149             Bruno Haible  <bruno@clisp.org>
44150
44151         Ensure HOST_NAME_MAX as part of the gethostname module.
44152         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44153         define also HOST_NAME_MAX.
44154         * tests/test-gethostname.c: Include <limits.h>.
44155         (main): Check also HOST_NAME_MAX.
44156         * doc/posix-headers/limits.texi: Document the mingw problem.
44157
44158 2009-08-02  Bruno Haible  <bruno@clisp.org>
44159
44160         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44161         Add comments.
44162
44163 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44164
44165         * lib/gethostname.c: Add Windows wrapper.
44166         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44167         * modules/gethostname: Depend on sys_socket & errno, for also
44168         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44169         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44170
44171 2009-07-31  Jim Meyering  <meyering@redhat.com>
44172
44173         getloadavg: fix symbol name in comment
44174         * lib/getloadavg.c: Correct a typo I introduced when adding
44175         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44176         Matt Kraai spotted the problem.
44177
44178 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44179
44180         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44181         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44182         code also if ! defined N_NAME_POINTER.
44183         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44184         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44185         but the n_name member is a 12-byte array.
44186
44187 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44188
44189         update-copyright: generalize comment handling
44190         * build-aux/update-copyright: Handle copyright statements
44191         within more comment styles.
44192         Document usage.
44193         Report any file with an external copyright holder or parse failure.
44194
44195 2009-07-29  Jim Meyering  <meyering@redhat.com>
44196
44197         mktime: correct setting of REPLACE_MKTIME
44198         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44199
44200         update-copyright: new module
44201         * modules/update-copyright: New file.
44202         * build-aux/update-copyright: New file.
44203         * MODULES.html.sh (maint+release support): Add update-copyright.
44204
44205 2009-07-27  Bruno Haible  <bruno@clisp.org>
44206
44207         Fix compilation error when <ctime> is used and mktime is replaced.
44208         * lib/time.in.h (mktime): New declaration.
44209         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44210         REPLACE_MKTIME instead of defining mktime in config.h.
44211         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44212         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44213         Reported by Ross McFarland <rwmcfa1@neces.com>.
44214
44215 2009-07-27  Bruno Haible  <bruno@clisp.org>
44216
44217         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44218         Reported by Matt Kraai <mkraai@beckman.com>.
44219
44220 2009-07-25  Jim Meyering  <meyering@redhat.com>
44221
44222         maint.mk: avoid warnings about missing files
44223         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44224         diagnostic when .prev-version does not exist.
44225         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44226         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44227         nonexistent cfg.mk.
44228         Suggestions from Simon Josefsson.
44229
44230 2009-07-25  Bruno Haible  <bruno@clisp.org>
44231
44232         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44233         defined as macros. Needed on QNX 6.4.1.
44234         Reported by Matt Kraai <mkraai@beckman.com>.
44235
44236 2009-07-23  Jim Meyering  <meyering@redhat.com>
44237
44238         maint.mk: invoke "make dist" with a working value of XZ_OPT
44239         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44240
44241 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44242
44243         Make fseeko.c compile on QNX.
44244         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44245
44246 2009-07-22  Peter Simons  <simons@cryp.to>
44247
44248         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44249         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44250         * lib/md4.h: Likewise.
44251         * lib/md5.h: Likewise.
44252         * lib/sha1.h: Likewise.
44253         * lib/sha256.h: Likewise.
44254         * lib/sha512.h: Likewise.
44255
44256         tests-sha1: don't assign literal string to 'char *' variable
44257         * tests/test-sha1.c (main): Declare locals with "const" to match
44258         attributes of the right hand side.
44259
44260 2009-07-21  Eric Blake  <ebb9@byu.net>
44261
44262         dup2: fix more mingw problems
44263         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44264         fd to itself.
44265         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44266         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44267         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44268         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44269         care of mingw bugs.
44270
44271 2009-07-21  Jim Meyering  <meyering@redhat.com>
44272
44273         vc-list-files: avoid failure when /bin/sh is dash
44274         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44275         On some Debian based systems, /bin/sh is a symlink to dash, and running
44276         this command would omit the "/" following each 'tests' prefix:
44277           dash -x build-aux/vc-list-files -C . tests
44278         That is because bash and dash work differently:
44279           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44280           bash ok
44281           dash odd
44282
44283 2009-07-21  Eric Blake  <ebb9@byu.net>
44284
44285         dup2-tests: test previous patch
44286         * modules/dup2-tests: New file.
44287         * tests/test-dup2.c: Likewise.
44288         * tests/test-open.c (main): Avoid unspecified behavior.
44289         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44290         test.
44291
44292         dup2: work around mingw and cygwin 1.5 bug
44293         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44295         * modules/unistd (Makefile.am): Substitute it.
44296         * lib/unistd.in.h (dup2): Declare the replacement.
44297         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44298         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44299         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44300         * modules/execute (Depends-on): Add dup2.
44301         * modules/fseterr (Depends-on): Likewise.
44302         * modules/pipe (Depends-on): Likewise.
44303         * modules/posix_spawn-internal (Depends-on): Likewise.
44304
44305 2009-07-21  Bruno Haible  <bruno@clisp.org>
44306
44307         * modules/.gitattributes: New file.
44308
44309 2009-07-20  Bruno Haible  <bruno@clisp.org>
44310
44311         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44312         (main): Use it.
44313
44314 2009-07-20  Eric Blake  <ebb9@byu.net>
44315
44316         test-pipe: make a bit more robust.
44317         * tests/test-pipe.c (myerr): Allow error messages regardless of
44318         what we do to stderr.
44319         (test_pipe): Rearrange to avoid deadlock.
44320         (child_main): Try a larger read, to ensure we avoided deadlock.
44321         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44322         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44323         if misused.
44324
44325 2009-07-19  Jim Meyering  <meyering@redhat.com>
44326
44327         fts: avoid false-positive cycle-detection
44328         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44329         for each new command line argument.
44330
44331 2009-07-19  Bruno Haible  <bruno@clisp.org>
44332
44333         Fix build error on mingw with the modules sys_select and unistd.
44334         * modules/acl-tests (Depends-on): Add close.
44335         * modules/binary-io-tests (Depends-on): Likewise.
44336         * modules/closein-tests (Depends-on): Likewise.
44337         * modules/flock-tests (Depends-on): Likewise.
44338         * modules/fsync-tests (Depends-on): Likewise.
44339         * modules/lseek-tests (Depends-on): Likewise.
44340         * modules/pipe-tests (Depends-on): Likewise.
44341         * modules/posix_spawn-tests (Depends-on): Likewise.
44342         * modules/posix_spawnp-tests (Depends-on): Likewise.
44343         * modules/stat-time-tests (Depends-on): Likewise.
44344         * modules/yesno-tests (Depends-on): Likewise.
44345
44346 2009-07-19  Bruno Haible  <bruno@clisp.org>
44347
44348         Unify conditionals.
44349         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44350         macros, not at the compiler macros.
44351         * lib/pipe.c: Likewise.
44352         * lib/execute.c: Likewise.
44353         * lib/spawni.c: Likewise.
44354
44355 2009-07-19  Bruno Haible  <bruno@clisp.org>
44356
44357         Fix handling of closed stdin/stdout/stderr on mingw.
44358         * lib/w32spawn.h: Include unistd.h.
44359         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44360         file descriptor with O_NOINHERIT flag.
44361         (fd_safer_noinherit): New function, based on fd-safer.c.
44362         (dup_safer_noinherit): New function, based on dup-safer.c.
44363         (undup_safer_noinherit): New function.
44364         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44365         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44366         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44367         instead of fd_safer.
44368         * tests/test-pipe.c: Include <windows.h>.
44369         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44370         result.
44371
44372         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44373         from main.
44374         (test_pipe): Pass an extra argument for disambiguation.
44375         (main): Invoke parent_main or child_main.
44376
44377         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44378         consistently.
44379
44380 2009-07-18  Eric Blake  <ebb9@byu.net>
44381
44382         test-pipe: fix mingw build
44383         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44384
44385 2009-07-18  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/pipe-tests (Makefile.am): Fix typo.
44388
44389 2009-07-18  Eric Blake  <ebb9@byu.net>
44390
44391         error: fix mingw build
44392         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44393         Reported by Bruno Haible.
44394
44395         error: avoid undefined use of stdout
44396         * lib/error.c (error, error_at_line): Check that fd 1 is open
44397         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44398         is handling faults and the close_stdout module wants to report the
44399         detection of closed stdout as an error.
44400
44401 2009-07-17  Eric Blake  <ebb9@byu.net>
44402
44403         pipe: be robust in face of closed fds
44404         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44405         should cause child to misbehave.
44406         * modules/pipe-tests: New module.
44407         * tests/test-pipe.c: New file.
44408         * tests/test-pipe.sh: New file.
44409         Reported by Akim Demaille.
44410
44411 2009-07-14  Bruno Haible  <bruno@clisp.org>
44412
44413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44414         Reported by anonymous kc.
44415
44416 2009-07-07  Jim Meyering  <meyering@redhat.com>
44417
44418         maint.mk: don't look for translatable strings in *.m4 or *.mk
44419         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44420         when searching for translatable strings.
44421
44422 2009-07-05  Jim Meyering  <meyering@redhat.com>
44423
44424         remove superfluous parentheses in STREQ definition
44425         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44426         * lib/getugroups.c (STREQ): Likewise.
44427         * lib/fnmatch.c (STREQ): Likewise.
44428         Spotted by Bruno Haible.
44429
44430 2009-07-04  Jim Meyering  <meyering@redhat.com>
44431
44432         argv-iter: new module
44433         * MODULES.html.sh: Add argv-iter.
44434         * lib/argv-iter.c, lib/argv-iter.h: New files.
44435         * modules/argv-iter: New file.
44436         * modules/argv-iter-tests: New file.
44437         * tests/test-argv-iter.c: Test it.
44438
44439 2009-07-04  Bruno Haible  <bruno@clisp.org>
44440
44441         Fix assertion.
44442         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44443         contains more exact copies of a given entry than file2, leave the extra
44444         copies unpaired rather than aborting.
44445         Reported by Eric Blake.
44446
44447 2009-07-02  Bruno Haible  <bruno@clisp.org>
44448
44449         Speedup git-merge-changelog for git cherry-pick.
44450         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44451         (entries_mapping_get): New function, extracted from compute_mapping.
44452         (entries_mapping_reverse_get): New function.
44453         (compute_mapping): Add a 'full' argument. Return the result in a
44454         'struct entries_mapping'.
44455         (main): Update. Access the mappings through entries_mapping_get.
44456         Reported by Eric Blake.
44457
44458 2009-07-02  Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44461         best_i.
44462
44463 2009-07-02  Bruno Haible  <bruno@clisp.org>
44464
44465         Speed up approximate search for matching ChangeLog entries.
44466         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44467         argument. Call fstrcmp_bounded instead of fstrcmp.
44468         (compute_mapping, try_split_merged_entry, main): Update callers.
44469
44470 2009-07-02  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44473
44474 2009-06-30  Bruno Haible  <bruno@clisp.org>
44475
44476         Reduce the number of uc_is_cased calls.
44477         * lib/unicase.h (casing_suffix_context_t): Add
44478         'first_char_except_ignorable' field.
44479         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44480         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44481         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44482         Update initializer.
44483         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44484         case-ignorable characters.
44485         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44486         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44487         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44488         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44489         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44490
44491 2009-06-30  Bruno Haible  <bruno@clisp.org>
44492
44493         Tests for module 'unicase/ignorable'.
44494         * modules/unicase/ignorable-tests: New file.
44495         * tests/unicase/test-ignorable.c: New file, generated by
44496         gen-uni-tables.
44497
44498         Tests for module 'unicase/cased'.
44499         * modules/unicase/cased-tests: New file.
44500         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44501         * tests/unicase/test-predicate-part1.h: New file, derived from
44502         tests/unictype/test-predicate-part1.h.
44503         * tests/unicase/test-predicate-part2.h: New file, same as
44504         tests/unictype/test-predicate-part2.h.
44505
44506         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44507         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44508         (output_casing_properties): New function.
44509         (main): Call it.
44510         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44511         * lib/unicase/cased.c: Include unictype/bitmap.h.
44512         (uc_is_cased): Define through a bitmap lookup.
44513         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44514         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44515         (uc_is_case_ignorable): Define through a bitmap lookup.
44516         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44517         lib/unictype/bitmap.h.
44518         (Depends-on): Add inline. Clean up.
44519         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44520         lib/unictype/bitmap.h.
44521         (Depends-on): Add inline. Clean up.
44522         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44523         recognition.
44524         * tests/unicase/test-u16-tolower.c (main): Likewise.
44525         * tests/unicase/test-u32-tolower.c (main): Likewise.
44526
44527 2009-06-30  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44530         * lib/unicase/u16-casemap.c: Likewise.
44531         * lib/unicase/u32-casemap.c: Likewise.
44532
44533 2009-06-29  Bruno Haible  <bruno@clisp.org>
44534
44535         Define u32_casefold as a wrapper around u32_ct_casefold.
44536         * lib/unicase/u32-casefold.c: Update.
44537         * modules/unicase/u32-casefold (Depends-on): Add
44538         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44539         unicase/empty-suffix-context. Clean up.
44540
44541         Define u16_casefold as a wrapper around u16_ct_casefold.
44542         * lib/unicase/u16-casefold.c: Update.
44543         * modules/unicase/u16-casefold (Depends-on): Add
44544         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44545         unicase/empty-suffix-context. Clean up.
44546
44547         Define u8_casefold as a wrapper around u8_ct_casefold.
44548         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44549         * lib/unicase/u8-casefold.c: Update.
44550         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44551         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44552
44553         Define u32_totitle as a wrapper around u32_ct_totitle.
44554         * lib/unicase/u32-totitle.c: Update.
44555         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44556         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44557
44558         Define u16_totitle as a wrapper around u16_ct_totitle.
44559         * lib/unicase/u16-totitle.c: Update.
44560         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44561         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44562
44563         Define u8_totitle as a wrapper around u8_ct_totitle.
44564         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44565         functions.
44566         (FUNC): Delegate to U_CT_TOTITLE.
44567         * lib/unicase/u8-totitle.c: Update.
44568         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44569         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44570
44571         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44572         invocation.
44573         * modules/unicase/u32-tolower (Depends-on): Add
44574         unicase/empty-prefix-context, unicase/empty-suffix-context.
44575
44576         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44577         invocation.
44578         * modules/unicase/u16-tolower (Depends-on): Add
44579         unicase/empty-prefix-context, unicase/empty-suffix-context.
44580
44581         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44582         * modules/unicase/u8-tolower (Depends-on): Add
44583         unicase/empty-prefix-context, unicase/empty-suffix-context.
44584
44585         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44586         invocation.
44587         * modules/unicase/u32-toupper (Depends-on): Add
44588         unicase/empty-prefix-context, unicase/empty-suffix-context.
44589
44590         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44591         invocation.
44592         * modules/unicase/u16-toupper (Depends-on): Add
44593         unicase/empty-prefix-context, unicase/empty-suffix-context.
44594
44595         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44596         * modules/unicase/u8-toupper (Depends-on): Add
44597         unicase/empty-prefix-context, unicase/empty-suffix-context.
44598
44599         New module 'unicase/u32-ct-casefold'.
44600         * lib/unicase/u32-ct-casefold.c: New file.
44601         * modules/unicase/u32-ct-casefold: New file.
44602
44603         New module 'unicase/u16-ct-casefold'.
44604         * lib/unicase/u16-ct-casefold.c: New file.
44605         * modules/unicase/u16-ct-casefold: New file.
44606
44607         New module 'unicase/u8-ct-casefold'.
44608         * lib/unicase/u8-ct-casefold.c: New file.
44609         * lib/unicase/u-ct-casefold.h: New file, derived from
44610         lib/unicase/u-casefold.h.
44611         * modules/unicase/u8-ct-casefold: New file.
44612
44613         New module 'unicase/u32-ct-totitle'.
44614         * lib/unicase/u32-ct-totitle.c: New file.
44615         * modules/unicase/u32-ct-totitle: New file.
44616
44617         New module 'unicase/u16-ct-totitle'.
44618         * lib/unicase/u16-ct-totitle.c: New file.
44619         * modules/unicase/u16-ct-totitle: New file.
44620
44621         New module 'unicase/u8-ct-totitle'.
44622         * lib/unicase/u8-ct-totitle.c: New file.
44623         * lib/unicase/u-ct-totitle.h: New file, derived from
44624         lib/unicase/u-totitle.h.
44625         * modules/unicase/u8-ct-totitle: New file.
44626
44627         New module 'unicase/u32-ct-tolower'.
44628         * lib/unicase/u32-ct-tolower.c: New file.
44629         * modules/unicase/u32-ct-tolower: New file.
44630
44631         New module 'unicase/u16-ct-tolower'.
44632         * lib/unicase/u16-ct-tolower.c: New file.
44633         * modules/unicase/u16-ct-tolower: New file.
44634
44635         New module 'unicase/u8-ct-tolower'.
44636         * lib/unicase/u8-ct-tolower.c: New file.
44637         * modules/unicase/u8-ct-tolower: New file.
44638
44639         New module 'unicase/u32-ct-toupper'.
44640         * lib/unicase/u32-ct-toupper.c: New file.
44641         * modules/unicase/u32-ct-toupper: New file.
44642
44643         New module 'unicase/u16-ct-toupper'.
44644         * lib/unicase/u16-ct-toupper.c: New file.
44645         * modules/unicase/u16-ct-toupper: New file.
44646
44647         New module 'unicase/u8-ct-toupper'.
44648         * lib/unicase/u8-ct-toupper.c: New file.
44649         * modules/unicase/u8-ct-toupper: New file.
44650
44651         Add context arguments to u*_casemap functions.
44652         * lib/unicase/unicasemap.h: Include unicase.h.
44653         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44654         suffix_context arguments.
44655         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44656         functions.
44657         (FUNC): Add prefix_context and suffix_context arguments. Use
44658         uc_is_cased and uc_is_case_ignorable.
44659         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44660         * lib/unicase/u16-casemap.c: Likewise.
44661         * lib/unicase/u32-casemap.c: Likewise.
44662         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44663         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44664         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44665         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44666         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44667         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44668
44669         New module 'unicase/u32-suffix-context'.
44670         * lib/unicase/u32-suffix-context.c: New file.
44671         * modules/unicase/u32-suffix-context: New file.
44672
44673         New module 'unicase/u16-suffix-context'.
44674         * lib/unicase/u16-suffix-context.c: New file.
44675         * modules/unicase/u16-suffix-context: New file.
44676
44677         New module 'unicase/u8-suffix-context'.
44678         * lib/unicase/u8-suffix-context.c: New file.
44679         * lib/unicase/u-suffix-context.h: New file.
44680         * modules/unicase/u8-suffix-context: New file.
44681
44682         New module 'unicase/empty-suffix-context'.
44683         * lib/unicase/empty-suffix-context.c: New file.
44684         * modules/unicase/empty-suffix-context: New file.
44685
44686         New module 'unicase/u32-prefix-context'.
44687         * lib/unicase/u32-prefix-context.c: New file.
44688         * modules/unicase/u32-prefix-context: New file.
44689
44690         New module 'unicase/u16-prefix-context'.
44691         * lib/unicase/u16-prefix-context.c: New file.
44692         * modules/unicase/u16-prefix-context: New file.
44693
44694         New module 'unicase/u8-prefix-context'.
44695         * lib/unicase/u8-prefix-context.c: New file.
44696         * lib/unicase/u-prefix-context.h: New file.
44697         * lib/unicase/context.h: New file.
44698         * modules/unicase/u8-prefix-context: New file.
44699
44700         New module 'unicase/empty-prefix-context'.
44701         * lib/unicase/empty-prefix-context.c: New file.
44702         * modules/unicase/empty-prefix-context: New file.
44703
44704         New module 'unicase/ignorable'.
44705         * lib/unicase/ignorable.c: New file.
44706         * modules/unicase/ignorable: New file.
44707
44708         New module 'unicase/cased'.
44709         * lib/unicase/caseprop.h: New file.
44710         * lib/unicase/cased.c: New file.
44711         * modules/unicase/cased: New file.
44712
44713         New functions for case mapping of substrings.
44714         * lib/unicase.h (casing_prefix_context_t): New type.
44715         (unicase_empty_prefix_context): New variable.
44716         (u8_casing_prefix_context, u16_casing_prefix_context,
44717         u32_casing_prefix_context, u8_casing_prefixes_context,
44718         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44719         declarations.
44720         (casing_suffix_context_t): New type.
44721         (unicase_empty_suffix_context): New variable.
44722         (u8_casing_suffix_context, u16_casing_suffix_context,
44723         u32_casing_suffix_context, u8_casing_suffixes_context,
44724         u16_casing_suffixes_context, u32_casing_suffixes_context,
44725         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44726         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44727         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44728         declarations.
44729
44730 2009-06-28  Jim Meyering  <meyering@redhat.com>
44731
44732         boostrap: indent only with spaces
44733         * build-aux/bootstrap: Indent only with spaces, never TABs.
44734
44735         bootstrap: split long lines
44736         * build-aux/bootstrap: Keep line length < 80.
44737
44738         bootstrap: sync from coreutils
44739         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44740         just as autoreconf does.  Verify a list of prerequisite
44741         package-name,version-number pairs if defined in bootstrap.conf.
44742         Refer to README-prereq, if prerequisites are not satisfied.
44743
44744 2009-06-27  Eric Blake  <ebb9@byu.net>
44745
44746         tests: add test for bogus NULL definition
44747         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44748         * tests/test-stdlib.c: Likewise.
44749         * tests/test-string.c: Likewise.
44750         * tests/test-locale.c: Likewise.
44751         * tests/test-unistd.c: Likewise.
44752         * modules/stdio-tests (Depends-on): Add verify.
44753         * modules/stdlib-tests (Depends-on): Likewise.
44754         * modules/string-tests (Depends-on): Likewise.
44755         * modules/locale-tests (Depends-on): Likewise.
44756         * modules/unistd-tests (Depends-on): Likewise.
44757
44758 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44759
44760         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44761         self-explaining comment.
44762         * m4/selinux-selinux-h: Update serial.
44763         (gl_LIBSELINUX): New macro, adding a warning for missing development
44764         packages to code extracted from...
44765         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44766         Add warning for missing development packages here, too.
44767
44768 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44769
44770         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44771
44772 2009-06-25  Eric Blake  <ebb9@byu.net>
44773
44774         version-etc: fix regression
44775         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44776         gcc.
44777         (version_etc): Use it, to catch bugs with trailing NULL.
44778         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44779         (version_etc_va): Fix logic bug.
44780         * modules/version-etc-tests: Add test.
44781         * tests/test-version-etc.c: New file.
44782         * tests/test-version-etc.sh: Likewise.
44783
44784 2009-06-25  Sam Steingold  <sds@gnu.org>
44785
44786         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44787         mbtowc declaration.
44788
44789 2009-06-25  Eric Blake  <ebb9@byu.net>
44790
44791         fpurge: migrate into <stdio.h>
44792         * lib/fpurge.h: Delete...
44793         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44794         * lib/fpurge.c (fpurge): Change declaring header.
44795         * modules/fpurge (Files): Drop deleted file.
44796         (Depends-on): Add stdio.
44797         (configure.ac): Set witness.
44798         * modules/stdio (Makefile.am): Support fpurge macros.
44799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44800         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44801         * lib/fflush.c: Update client.
44802         * tests/test-fpurge.c: Likewise.
44803         * NEWS: Mention the change.
44804
44805 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44806
44807         * lib/argp-version-etc.c (program_authors): Add const
44808         qualifier.
44809         * lib/version-etc.c: Fix typos in the comments.
44810         * modules/argp-version-etc: Depends on version-etc.
44811
44812 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44813
44814         argp-version-etc: new module.
44815
44816         * lib/argp-version-etc.c: New file.
44817         * lib/argp-version-etc.h: New file.
44818         * modules/argp-version-etc: New file.
44819         * modules/argp-version-etc-tests: New file.
44820         * tests/test-argp-version-etc.c: New test.
44821         * tests/test-argp-version-etc-1.sh: New test.
44822
44823 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44824
44825         Provide additional interfaces and documentation for version-etc
44826         module.
44827
44828         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44829         interfaces.
44830         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44831         prototypes.
44832
44833 2009-06-24  Bruno Haible  <bruno@clisp.org>
44834
44835         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44836         HAVE_LIB${NAME} macro.
44837         Reported by Sam Steingold <sds@gnu.org>.
44838
44839 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44840
44841         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44842         needed.
44843
44844 2009-06-21  Bruno Haible  <bruno@clisp.org>
44845
44846         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44847         work.
44848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44849         together with LIB${NAME}, LTLIB${NAME}.
44850         Reported by Sam Steingold <sds@gnu.org>.
44851
44852 2009-06-20  Jim Meyering  <meyering@redhat.com>
44853
44854         tests: make sc_require_test_exit_idiom more generic
44855         * top/maint.mk (Exit_witness_file): New overridable variable.
44856         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44857         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44858
44859 2009-06-19  Jim Meyering  <meyering@redhat.com>
44860
44861         hash: reverse order of src/dst parameters in an internal interface
44862         * lib/hash.c (transfer_entries): Reverse order of parameters to
44863         put DST before SRC.  Adjust callers.
44864
44865         tests: test-hash: avoid wholesale duplication
44866         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44867         Instead, use a loop and add a single conditional.
44868
44869         tests: test-hash: allow seed selection via a command line argument
44870         * tests/test-hash.c (get_seed): New function.
44871         (main): Use it.
44872
44873 2009-06-19  Eric Blake  <ebb9@byu.net>
44874
44875         hash: avoid memory leak on allocation failure
44876         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44877         failure.  Factor repeated algorithm...
44878         (transfer_entries): ...into new helper routine.
44879         (hash_delete): React to hash_rehash return value.
44880
44881         hash: reduce memory pressure in hash_rehash no-op case
44882         * lib/hash.c (next_prime): Avoid overflow.
44883         (hash_initialize): Factor bucket size computation...
44884         (compute_bucket_size): ...into new helper function.
44885         (hash_rehash): Use new function and open coding to reduce memory
44886         pressure, and avoid a memory leak in USE_OBSTACK code.
44887         Reported by Jim Meyering.
44888
44889 2009-06-18  Eric Blake  <ebb9@byu.net>
44890
44891         hash: make rotation more obvious
44892         * modules/hash (Depends-on): Add bitrotate and stdint.
44893         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44894         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44895         (SIZE_MAX): Rely on headers for definition.
44896         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44897         (raw_hasher): Use rotr_sz.
44898         Suggested by Jim Meyering.
44899
44900         hash: fix memory leak in last patch
44901         * lib/hash.c (hash_rehash): Avoid memory leak.
44902
44903         hash: avoid no-op rehashing
44904         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44905
44906         hash: provide default callback functions
44907         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44908         (hash_initialize): Use them as defaults.
44909         * tests/test-hash.c (main): Test this.
44910
44911         hash: minor optimization
44912         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44913         when possible.
44914         (hash_initialize): Document this promise.
44915         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44916         * tests/test-hash.c (hash_compare_strings): Test this.
44917
44918 2009-06-18  Bruno Haible  <bruno@clisp.org>
44919
44920         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44921         going to be replaced anyway.
44922
44923 2009-06-18  Bruno Haible  <bruno@clisp.org>
44924
44925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44926         in one place.
44927         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44928         be replaced anyway.
44929
44930 2009-06-18  Eric Blake  <ebb9@byu.net>
44931
44932         hash: check for resize before insertion
44933         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44934         threshold before insertion, so that a pathological hash_rehash
44935         that fills every bucket can still trigger another rehash.
44936
44937 2009-06-18  Jim Meyering  <meyering@redhat.com>
44938
44939         hash-tests: add a loop around the small tests
44940         * tests/test-hash.c (main): Repeat small tests with selected
44941         small initial table sizes.
44942
44943 2009-06-17  Eric Blake  <ebb9@byu.net>
44944
44945         hash: minor cleanups
44946         * lib/hash.h (hash_entry): Make opaque, by moving...
44947         * lib/hash.c (hash_entry): ...here.
44948         (hash_insert): Clarify restrictions on what can be inserted.
44949         (hash_get_next): Clarify when it is safe to remove an element
44950         during traversal.
44951         (check_tuning): Skip verification when tuning is known safe.
44952         (hash_initialize): Clarify restrictions on tuning.
44953
44954 2009-06-17  Jim Meyering  <jim@meyering.net>
44955         and Eric Blake  <ebb9@byu.net>
44956
44957         hash-tests: new module
44958         * modules/hash-tests: New file.
44959         * tests/test-hash.c: New file.
44960
44961 2009-06-17  Eric Blake  <ebb9@byu.net>
44962
44963         strstr-simple: document new module
44964         * MODULES.html.sh: Document new module.
44965
44966         strstr, strcasestr: replace on platforms with broken memchr
44967         * modules/strstr: Split into...
44968         * modules/strstr-simple: ...new module that does not care about
44969         performance, but does care about glibc bug.
44970         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44971         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44972         if platform memchr is broken, per Debian bug 521737.
44973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44974         memchr.
44975         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44976         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44977         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44978         * modules/mountlist (Depends-on): Add strstr-simple.
44979         * modules/gen-uni-tables (Depends-on): Likewise.
44980         * modules/argz (Depends-on): Add strstr.
44981
44982 2009-06-17  Bruno Haible  <bruno@clisp.org>
44983
44984         * modules/posix_spawn-internal (Depends-on): Add errno.
44985
44986 2009-06-17  Bruno Haible  <bruno@clisp.org>
44987
44988         Define missing ESTALE on Interix 3.5.
44989         * lib/errno.in.h (ESTALE): Assign a value if missing.
44990         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44991         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44992         missing.
44993         * doc/posix-headers/errno.texi: Mention the Interix bug.
44994         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44995
44996 2009-06-15  Eric Blake  <ebb9@byu.net>
44997
44998         memchr, memchr2: add valgrind exception
44999         * lib/memchr.valgrind: New file.
45000         * lib/memchr2.valgrind: New file.
45001         * modules/memchr (Files): Distribute valgrind file.
45002         * modules/memchr2 (Files): Likewise.
45003
45004         docs: memchr is no longer obsolete
45005         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45006         * lib/string.in.h (memchr): Simplify logic.
45007
45008 2009-06-14  Jim Meyering  <meyering@redhat.com>
45009
45010         link-follow: fix the "checking..." message to not mention trailing slash
45011         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45012         never considered trailing slashes.
45013
45014 2009-06-14  Bruno Haible  <bruno@clisp.org>
45015
45016         * m4/memchr.m4: Mention also the bug on IA-64.
45017         * doc/posix-functions/memchr.texi: Likewise.
45018
45019 2009-06-12  Eric Blake  <ebb9@byu.net>
45020
45021         memchr: detect broken x86_64 and alpha implementations
45022         * modules/memchr-tests (Depends-on): Move mmap detection...
45023         * modules/memchr (Depends-on): ...here.
45024         (configure.ac): Set indicator.
45025         * lib/string.in.h (memchr): Declare replacement.
45026         * modules/string (Makefile.am): Trigger replacement.
45027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45028         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45029         bugs.
45030         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45031         * modules/getpagesize (License): Relax license.
45032
45033 2009-06-11  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/idpriv.h: Add more references.
45036
45037 2009-06-08  Bruno Haible  <bruno@clisp.org>
45038
45039         Tests for module 'idpriv-droptemp'.
45040         * modules/idpriv-droptemp-tests: New file.
45041         * tests/test-idpriv-droptemp.sh: New file.
45042         * tests/test-idpriv-droptemp.su.sh: New file.
45043         * tests/test-idpriv-droptemp.c: New file.
45044
45045         New module 'idpriv-droptemp'.
45046         * lib/idpriv-droptemp.c: New file.
45047         * modules/idpriv-droptemp: New file.
45048
45049 2009-06-08  Bruno Haible  <bruno@clisp.org>
45050
45051         Tests for module 'idpriv-drop'.
45052         * modules/idpriv-drop-tests: New file.
45053         * tests/test-idpriv-drop.sh: New file.
45054         * tests/test-idpriv-drop.su.sh: New file.
45055         * tests/test-idpriv-drop.c: New file.
45056
45057         New module 'idpriv-drop'.
45058         * lib/idpriv.h: New file.
45059         * lib-idpriv-drop.c: New file.
45060         * m4/idpriv.m4: New file.
45061         * modules/idpriv-drop: New file.
45062
45063 2009-06-08  Bruno Haible  <bruno@clisp.org>
45064
45065         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45066         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45067         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45068         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45069         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45071         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45072
45073 2009-06-08  Eric Blake  <ebb9@byu.net>
45074
45075         test-strstr: use memory fence, when possible
45076         * tests/test-strstr.c (main): Use memory fence, in order to be
45077         more likely to trigger Debian bug 521737.
45078         * modules/strstr-tests (Files): Pull in additional files.
45079
45080         memchr: no longer obsolete, for wider field testing
45081         * modules/memchr (Status, Notice): Delete, this module is no
45082         longer obsolete.
45083         * modules/vasnprintf (Depends-on): Add memchr.
45084
45085 2009-06-07  Jim Meyering  <meyering@redhat.com>
45086
45087         hash: declare some functions with the warn_unused_result attribute
45088         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45089
45090 2009-06-07  Bruno Haible  <bruno@clisp.org>
45091
45092         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45093         Reported by Eric Blake.
45094
45095 2009-06-06  Eric Blake  <ebb9@byu.net>
45096
45097         test-alignof: fix typo with long double
45098         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45099         compiler error.
45100
45101 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45102
45103         Escape non-texinfo { and }s.
45104         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45105         markup error.
45106
45107 2009-06-04  Jim Meyering  <meyering@redhat.com>
45108
45109         gitlog-to-changelog: don't infloop on an empty commit log
45110         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45111         Reported by Boris Petersen <transacid@centerim.org>.
45112
45113 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45114
45115         version-etc: extend for packagers
45116         Add three new configure options, intended for packagers:
45117           --with-packager="packager name"
45118           --with-packager-version="packager-specific version"
45119           --with-packager-bug-reports="packager bug reporting"
45120         An example with coreutils:
45121           $ ./configure \
45122             --with-packager=Gentoo \
45123             --with-packager-bug-report=http://bugs.gentoo.org/ \
45124             --with-packager-version="patchset 1.6"
45125           $ ./src/ls --version | head -n2
45126           ls (GNU coreutils) 7.1-dirty
45127           Packaged by Gentoo (patchset 1.6)
45128         Note that the bug reporting info via --help doesn't show up because
45129         coreutils uses its own custom emit_bug_reporting_address() implementation
45130         in src/system.h.  If it didn't, it'd look like:
45131           $ ./src/ls --help | tail -n4
45132           Report bugs to <bug-coreutils@gnu.org>.
45133           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45134           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45135           General help using GNU software: <http://www.gnu.org/gethelp/>.
45136         * lib/version-etc.c: Print new information, if provided.
45137         * m4/version-etc.m4: New file.
45138         * modules/version-etc (Files): Add m4/version-etc.m4.
45139         (configure.ac): Add gl_VERSION_ETC.
45140
45141 2009-05-31  Bruno Haible  <bruno@clisp.org>
45142
45143         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45144         and 'int64_t'.
45145         * modules/alignof-tests (Dependencies): Add stdint.
45146         Reported by Eric Blake.
45147
45148 2009-05-31  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45151         restriction due to compiler bugs.
45152         Reported by Eric Blake.
45153
45154 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45155             Bruno Haible  <bruno@clisp.org>
45156
45157         Fix test-alignof failure.
45158         * lib/alignof.h (alignof_slot): New macro.
45159         (alignof_type): New macro, with the same semantics as the previous
45160         'alignof'.
45161         (alignof): Alias to alignof_slot.
45162         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45163         check that the results are usable as constant expressions.
45164
45165 2009-05-31  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45168         * tests/test-memchr.c (main): Check that memchr does not read past the
45169         first occurrence of the byte.
45170         * tests/test-strstr.c (main): Update comment.
45171         Suggested by Eric Blake.
45172
45173 2009-05-30  Bruno Haible  <bruno@clisp.org>
45174
45175         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45176         detail how to use dumpbin.
45177         Reported by David Byron <dbyron@dbyron.com>.
45178
45179 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45180
45181         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45182
45183 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45184
45185         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45186
45187 2009-05-28  Bruno Haible  <bruno@clisp.org>
45188
45189         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45190         build-aux/ files.
45191
45192 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45193
45194         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45195
45196 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45197
45198         * gnulib-tool (sed_transform_main_lib_file)
45199         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45200         regexps.
45201
45202 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45203
45204         * tests/test-strstr.c: Add another self-test.
45205         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45206         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45207
45208 2009-05-23  Bruno Haible  <bruno@clisp.org>
45209
45210         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45211         change.
45212
45213 2009-05-21  Bruno Haible  <bruno@clisp.org>
45214
45215         Simplify use of mode_t varargs.
45216         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45217         uses 'mode_t' or 'int'.
45218         * lib/openat.c (openat): Likewise.
45219         * lib/open-safer.c (open_safer): Likewise.
45220         * m4/mode_t.m4: New file.
45221         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45222         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45223         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45224         * modules/open (Files): Add m4/mode_t.m4.
45225         * modules/openat (Files): Likewise.
45226         * modules/fcntl-safer (Files): Likewise.
45227         Suggested by Eric Blake.
45228
45229 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45230
45231         * doc/glibc-functions/fallocate.texi: New file.
45232         * doc/gnulib.texi: Include it.
45233
45234 2009-05-21  Eric Blake  <ebb9@byu.net>
45235             Bruno Haible  <bruno@clisp.org>
45236
45237         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45238         invocations.
45239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45240
45241 2009-05-21  Eric Blake  <ebb9@byu.net>
45242             Bruno Haible  <bruno@clisp.org>
45243
45244         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45245         include_next. Fix of 2008-11-20 commit.
45246         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45247         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45248         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45249         NEXT_MATH_H.
45250         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45251         instead of NEXT_MATH_H.
45252
45253 2009-05-21  Bruno Haible  <bruno@clisp.org>
45254
45255         Avoid redefinition warnings for SIZE_MAX.
45256         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45257         Reported by Simon Josefsson.
45258
45259 2009-05-21  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45262         AC_CACHE_VAL.
45263
45264 2009-05-20  Bruno Haible  <bruno@clisp.org>
45265
45266         Make zeroptr.h work on mingw.
45267         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45268         mprotect.
45269         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45270         * modules/memchr2-tests (configure.ac): Likewise.
45271         * modules/memcmp-tests (configure.ac): Likewise.
45272         * modules/memmem-tests (configure.ac): Likewise.
45273         * modules/memrchr-tests (configure.ac): Likewise.
45274         Reported by Simon Josefsson.
45275
45276 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45277
45278         * tests/test-glob.c: Include string.h for strcmp prototype.
45279
45280 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45281
45282         * modules/getdelim (Depends-on): Add explicit stdint, although it
45283         was implicitly already pulled in via realloc-posix.
45284         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45285
45286 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45287
45288         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45289         G. Christensen" <tgc@jupiterrise.com>.
45290         * m4/sys_socket_h.m4: Check for sa_family_t.
45291         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45292         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45293         * tests/test-sys_socket.c: Check that sa_family_t works.
45294
45295 2009-05-18  Eric Blake  <ebb9@byu.net>
45296
45297         maint.mk: allow gnulib_dir in VPATH build
45298         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45299
45300 2009-05-15  Jim Meyering  <meyering@redhat.com>
45301
45302         maint.mk: Give gnulib_dir a default definition.
45303         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45304         Thus, most packages no longer need to specify this variable in cfg.mk
45305
45306 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45307
45308         rename.m4: fix typos that would make non-mingw cross-configure fail
45309         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45310
45311 2009-05-13  Eric Blake  <ebb9@byu.net>
45312
45313         mmap-anon: avoid out-of-order autoconf expansion
45314         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45315         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45316         * modules/memchr-tests (Depends-on): Add extensions.
45317         * modules/memchr2-tests (Depends-on): Add extensions.
45318         * modules/memcmp-tests (Depends-on): Add extensions.
45319         * modules/memmem-tests (Depends-on): Add extensions.
45320         * modules/memrchr-tests (Depends-on): Add extensions.
45321
45322 2009-05-13  Bruno Haible  <bruno@clisp.org>
45323
45324         Make some tests ISO C 99 compliant.
45325         * tests/zerosize-ptr.h: New file.
45326         * tests/test-memchr.c: Include zerosize-ptr.h.
45327         (main): Use a zero-size object pointer instead of NULL.
45328         * tests/test-memchr2.c: Include zerosize-ptr.h.
45329         (main): Use a zero-size object pointer instead of NULL.
45330         * tests/test-memcmp.c: Include zerosize-ptr.h.
45331         (main): Use a zero-size object pointer instead of NULL.
45332         * tests/test-memmem.c: Include zerosize-ptr.h.
45333         (main): Use a zero-size object pointer instead of NULL.
45334         * tests/test-memrchr.c: Include zerosize-ptr.h.
45335         (main): Use a zero-size object pointer instead of NULL.
45336         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45337         m4/mmap-anon.m4.
45338         (Depends-on): Add getpagesize.
45339         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45340         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45341         m4/mmap-anon.m4.
45342         (Depends-on): Add getpagesize.
45343         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45344         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45345         m4/mmap-anon.m4.
45346         (Depends-on): Add getpagesize.
45347         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45348         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45349         m4/mmap-anon.m4.
45350         (Depends-on): Add getpagesize.
45351         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45352         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45353         m4/mmap-anon.m4.
45354         (Depends-on): Add getpagesize.
45355         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45356
45357 2009-05-12  Bruno Haible  <bruno@clisp.org>
45358
45359         Tests for module 'alignof'.
45360         * modules/alignof-tests: New file.
45361         * tests/test-alignof.c: New file.
45362
45363 2009-05-12  Bruno Haible  <bruno@clisp.org>
45364
45365         Fix alignof macro.
45366         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45367         vendor compilers that are always correct.
45368
45369 2009-05-12  Bruno Haible  <bruno@clisp.org>
45370
45371         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45372         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45373         not whether its fully works.
45374
45375 2009-05-12  Bruno Haible  <bruno@clisp.org>
45376
45377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45378
45379 2009-05-12  Jim Meyering  <meyering@redhat.com>
45380
45381         * top/maint.mk: Adjust backslash alignment.
45382
45383 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45384
45385         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45386
45387 2009-05-11  Eric Blake  <ebb9@byu.net>
45388
45389         argp: avoid undefined behavior
45390         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45391         macros.
45392
45393 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45394
45395         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45396         user.name to prevent git commit from complaining.
45397
45398 2009-05-10  Bruno Haible  <bruno@clisp.org>
45399
45400         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45401         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45402         it rewrites every file name only once.
45403         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45404
45405 2009-05-08  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45408         instead of 'max'.
45409
45410 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45411
45412         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45413         sockaddr_storage test.
45414
45415 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45416
45417         * modules/sys_socket (Makefile.am): Substitute
45418         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45419         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45420         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45421         * tests/test-sys_socket.c: Check sockaddr_storage.
45422
45423 2009-05-08  Bruno Haible  <bruno@clisp.org>
45424
45425         New module 'alignof'.
45426         * lib/alignof.h: New file.
45427         * modules/alignof: New file.
45428
45429 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45430             Bruno Haible  <bruno@clisp.org>
45431
45432         Fix test-file-has-acl on FreeBSD.
45433         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45434         mask is implicitly added.
45435         * tests/test-file-has-acl.c: Include <signal.h>.
45436         (main): Terminate the test after 5 seconds.
45437         * modules/acl-tests (configure.ac): Check for alarm function.
45438
45439 2009-05-04  Bruno Haible  <bruno@clisp.org>
45440
45441         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45443         * modules/errno (configure.ac): Drop AC_REQUIRE.
45444         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45445         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45446
45447 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45448
45449         * modules/glob-tests: New module.
45450         * tests/test-glob.c: Add.
45451
45452 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45453
45454         * modules/fnmatch-tests: New module.
45455         * tests/test-fnmatch.c: Add.
45456
45457 2009-05-04  Eric Blake  <ebb9@byu.net>
45458
45459         maint: make the new no-submodule-changes rule VPATH-safe
45460         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45461
45462 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45463             Bruno Haible  <bruno@clisp.org>
45464
45465         acl: Fix infinite loop on FreeBSD.
45466         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45467         of return value from acl_get_entry.
45468         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45469         Likewise.
45470
45471 2009-05-03  Bruno Haible  <bruno@clisp.org>
45472
45473         * lib/acl-internal.h (acl_entries): Clarify return value.
45474         * lib/acl_entries.c (acl_entries): Likewise.
45475
45476 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45477
45478         Bug fix in acl module.
45479         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45480
45481 2009-05-03  Bruno Haible  <bruno@clisp.org>
45482
45483         Create gperf-generated file in the source dir, not in the build dir.
45484         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45485         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45486         * modules/unicase/locale-language (unicase/locale-languages.h):
45487         Likewise.
45488         * modules/unicase/special-casing (unicase/special-casing-table.h):
45489         Likewise.
45490         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45491         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45492         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45493         Reported by Ralf Wildenhues.
45494
45495 2009-05-03  Bruno Haible  <bruno@clisp.org>
45496
45497         * modules/fnmatch (Description, configure.ac): Taken from
45498         fnmatch-posix.
45499         * modules/fnmatch-posix: Turn into a symbolic reference to the
45500         'fnmatch' module, and deprecate.
45501         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45502
45503 2009-05-03  Bruno Haible  <bruno@clisp.org>
45504
45505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45506         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45507         Reported by Ralf Wildenhues.
45508
45509 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45510
45511         * m4/fnmatch.m4: Fix fnmatch re-define.
45512
45513 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45514
45515         priv-set: new module and tests; adapt write-any-file
45516         * lib/priv-set.c: New file.
45517         * lib/priv-set.h: New file.
45518         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45519         * lib/write-any-file.c: Simplify by using priv-set module.
45520         * m4/priv-set.m4: New file.
45521         * modules/priv-set: New file.
45522         * modules/unlinkdir: Add dependency on priv-set module.
45523         * modules/write-any-file: Likewise.
45524
45525         Tests for module 'priv-set'.
45526         * modules/priv-set-tests: New file.
45527         * tests/test-priv-set.c: New file.
45528
45529 2009-05-03  Jim Meyering  <meyering@redhat.com>
45530             Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45533         use the converted UTF-8 variant of the name instead.
45534
45535 2009-05-03  Jim Meyering  <meyering@redhat.com>
45536
45537         tests: tighten some getdate tests
45538         * tests/test-getdate.c (main): Tighten tests: require equality,
45539         not just greater than.  Set TZ envvar to UTC0.
45540
45541 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45542
45543         getdate: correctly interpret "next monday" when run on a Monday
45544         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45545         that e.g., "next tues" (when run on a tuesday) results in a date
45546         that is one week in the future, and not today's date.
45547         I.e., add a week when the wday is the same as the current one.
45548         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45549         and earlier by Martin Bernreuther and Jan Minář.
45550         * tests/test-getdate.c (main): Check that "next DAY" is always in
45551         the future and that "last DAY" is always in the past.
45552
45553 2009-05-02  Jim Meyering  <meyering@redhat.com>
45554
45555         build: ensure that a release build fails when a submodule is unclean
45556         * top/maint.mk (no-submodule-changes): New rule.
45557         (alpha beta major): Depend on it.
45558
45559 2009-05-02  Bruno Haible  <bruno@clisp.org>
45560
45561         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45562         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45563         shell variable gl_fnmatch_required to detect which variant is
45564         requested.
45565         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45566         gl_FUNC_FNMATCH_POSIX.
45567         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45568         exclude fnmatch-posix.
45569
45570 2009-05-02  Bruno Haible  <bruno@clisp.org>
45571
45572         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45573         * modules/mbsrtowcs (License): Change to LGPLv2+.
45574         * modules/strnlen1 (License): Likewise.
45575         Reported by Simon Josefsson.
45576
45577 2009-05-02  Bruno Haible  <bruno@clisp.org>
45578
45579         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45580         "cross".
45581         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45582         gnulib-tool was called with option --source-base=lib.
45583
45584 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45585
45586         Use automake *-local hooks without commands, for extensibility.
45587         * modules/localcharset (Makefile.am): Rename install-exec-local
45588         rule to install-exec-localcharset, and make it a prerequisite of
45589         install-exec-local.  Likewise, rename the uninstall-local rule to
45590         uninstall-localcharset, and make it a prerequisite of the former.
45591
45592 2009-05-01  Bruno Haible  <bruno@clisp.org>
45593
45594         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45595         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45596         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45598         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45599         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45600         m4/locale-zh.m4, m4/codeset.m4.
45601
45602         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45603         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45604         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45605         m4/locale-zh.m4.
45606
45607         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45608         REPLACE_WCRTOMB if mbstate_t must be replaced.
45609         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45610         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45611
45612 2009-05-01  Bruno Haible  <bruno@clisp.org>
45613
45614         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45615         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45616         dngettext, dcngettext, textdomain, bindtextdomain,
45617         bind_textdomain_codeset): Undefine before redefining.
45618
45619 2009-04-30  Bruno Haible  <bruno@clisp.org>
45620
45621         Fix bug introduced on 2009-04-25.
45622         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45623         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45624         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45625         is defined.
45626         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45627         is defined.
45628         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45629         is defined.
45630         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45631
45632 2009-04-28  Bruno Haible  <bruno@clisp.org>
45633
45634         Comment tweaks.
45635         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45636         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45637         * lib/unicase.h (u*_casexfrm): Likewise.
45638         Reported by Paolo Bonzini.
45639
45640 2009-04-28  Bruno Haible  <bruno@clisp.org>
45641
45642         Fix a compilation error.
45643         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45644         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45645         Reported by Jim Meyering.
45646
45647 2009-04-27  Bruno Haible  <bruno@clisp.org>
45648
45649         New module 'libunistring'.
45650         * modules/libunistring: New file.
45651         * m4/libunistring.m4: New file.
45652         * MODULES.html.sh (Unicode string functions): Add it.
45653
45654 2009-04-27  Eric Blake  <ebb9@byu.net>
45655
45656         maint.mk: allow package-specific header to provide <config.h>
45657         * top/maint.mk (sc_require_config_h): New variable.
45658         (sc_require_config_h, sc_require_config_h_first): Use it.
45659
45660 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45661
45662         * top/maint.mk (sc_avoid_if_before_free): Except
45663         useless-if-before-free script.
45664
45665 2009-04-27  Eric Blake  <ebb9@byu.net>
45666
45667         maintainer-makefile: depend on all required helper scripts
45668         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45669         useless-if-before-free.
45670         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45671         version, rather than assuming gnulib checkout is available.
45672         Reported by Simen Josefsson.
45673
45674 2009-04-26  Bruno Haible  <bruno@clisp.org>
45675
45676         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45677         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45678         "../" or "..".
45679
45680 2009-04-26  Bruno Haible  <bruno@clisp.org>
45681
45682         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45683         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45684         AC_LIB_HAVE_LINKFLAGS.
45685
45686 2009-04-26  Bruno Haible  <bruno@clisp.org>
45687
45688         Simplify calling convention of u*_conv_from_encoding.
45689         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45690         u32_conv_from_encoding): Expect a resultbuf argument and return the
45691         result directly as a pointer.
45692         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45693         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45694         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45695         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45696         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45697         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45698         Update.
45699         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45700         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45701         * lib/vasnprintf.c (VASNPRINTF): Update.
45702         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45703         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45704         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45705         * NEWS: Mention the change.
45706
45707 2009-04-26  Bruno Haible  <bruno@clisp.org>
45708
45709         Simplify calling convention of u*_conv_to_encoding.
45710         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45711         u32_conv_to_encoding): Expect a resultbuf argument and return the
45712         result directly as a pointer.
45713         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45714         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45715         freeing scaled_offsets if mem_iconveha failed.
45716         * lib/unicase/u-casexfrm.h (FUNC): Update.
45717         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45718         * lib/vasnprintf.c (VASNPRINTF): Update.
45719         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45720         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45721         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45722         * NEWS: Mention the change.
45723
45724 2009-04-26  Bruno Haible  <bruno@clisp.org>
45725
45726         Avoid test failures on AIX and OSF/1.
45727         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45728         malloc(0).
45729         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45730         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45731         Likewise.
45732         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45733         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45734         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45735         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45736         * doc/posix-functions/malloc.texi: Document the portability problem
45737         related to malloc(0).
45738
45739 2009-04-26  Bruno Haible  <bruno@clisp.org>
45740
45741         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45742         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45743         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45744
45745 2009-04-25  Bruno Haible  <bruno@clisp.org>
45746
45747         Avoid link error when creating a namespace clean library.
45748         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45749         as macro with arguments if already defined as an alias.
45750         * lib/signbitf.c (gl_signbitf): Don't undefine.
45751         * lib/signbitd.c (gl_signbitd): Don't undefine.
45752         * lib/signbitl.c (gl_signbitl): Don't undefine.
45753
45754 2009-04-25  Jim Meyering  <meyering@redhat.com>
45755
45756         vc-list-files: fix another quoting bug
45757         * build-aux/vc-list-files: Avoid sed backslash expansion
45758         of pathological directory names.
45759
45760 2009-04-25  Eric Blake  <ebb9@byu.net>
45761
45762         vc-list-files: fix shell quoting error
45763         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45764         timestamp.
45765
45766 2009-04-25  Jim Meyering  <meyering@redhat.com>
45767
45768         vc-list-files: restore lost functionality with subdir argument
45769         * build-aux/vc-list-files: When given a non-"." sub-directory
45770         argument, substitute the $dir/ prefix back onto each resulting name.
45771         Otherwise, coreutils' root_tests check would fail.
45772
45773 2009-04-24  Eric Blake  <ebb9@byu.net>
45774
45775         vc-list-files: ignore git symlinks
45776         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45777         than ls-files, to ignore git symlinks.
45778
45779         maint.mk: import improvements from m4
45780         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45781         (move_if_change): Delete unused macro.
45782         (news-date-check, vc-diff-check): Support VPATH builds.
45783         (announcement): Likewise.  Split --bootstrap-tools list...
45784         (boostrap-tools): ...into separate list, which can be overridden
45785         in cfg.mk.
45786         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45787         requiring dependency on useless-if-before-free module.
45788         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45789         Support VPATH builds.
45790
45791 2009-04-24  Jim Meyering  <meyering@redhat.com>
45792
45793         maint.mk: remove coreutils-specific rules and variables
45794         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45795         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45796         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45797
45798         maint.mk: remove obsolete rule
45799         * top/maint.mk (rel-check): Remove rule.
45800         (WGET, WGETFLAGS): Remove now-unused variables.
45801
45802 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45803
45804         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45805         consistency.
45806
45807         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45808         '$(PATH_SEPARATOR)' instead of ':'.
45809
45810 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45811
45812         * lib/getopt1.c (main): Use 'const' for static array.
45813
45814 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45815
45816         * top/maint.mk: Sync with coreutils.
45817         * NEWS: Explain incompatibilities.
45818
45819 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45820             Bruno Haible  <bruno@clisp.org>
45821
45822         Fix cross-compilation results.
45823         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45824         statement, as third argument of AC_TRY_RUN.
45825         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45826         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45827         Likewise.
45828         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45829         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45830         Likewise.
45831         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45833         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45834
45835 2009-04-20  Bruno Haible  <bruno@clisp.org>
45836
45837         Avoid test failure on mingw.
45838         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45839
45840 2009-04-20  Bruno Haible  <bruno@clisp.org>
45841
45842         Avoid compilation error on mingw.
45843         * modules/localename-tests (Depends-on): Add locale.
45844
45845 2009-04-19  Bruno Haible  <bruno@clisp.org>
45846
45847         Support for building a shared library on Windows platforms.
45848         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45849         (main): Test the presence of UNINORM_NFC here.
45850         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45851         (main): Test the presence of UNINORM_NFD here.
45852         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45853         (main): Test the presence of UNINORM_NFKC here.
45854         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45855         (main): Test the presence of UNINORM_NFKD here.
45856
45857 2009-04-19  Bruno Haible  <bruno@clisp.org>
45858
45859         Avoid a compiler warning.
45860         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45861         Change type of variable 'sequence'.
45862
45863 2009-04-19  Bruno Haible  <bruno@clisp.org>
45864
45865         * modules/configmake (Makefile.am): When the contents of configmake.h
45866         does not change, arrange to preserve its modification time.
45867
45868 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45869
45870         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45871         gettext domain.
45872
45873 2009-04-16  Jim Meyering  <meyering@redhat.com>
45874
45875         useless-if-before-free: improve conversion code
45876         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45877         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45878
45879 2009-04-14  Bruno Haible  <bruno@clisp.org>
45880
45881         * modules/fcntl (Depends-on): Add extensions.
45882         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45883
45884 2009-04-12  Ben Pfaff  <blp@gnu.org>
45885
45886         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45887         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45888
45889 2009-03-20  Ben Pfaff  <blp@gnu.org>
45890
45891         Make rename replace existing destinations on Windows.
45892         * m4/rename.m4: Add test for Mingw.
45893         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45894         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45895         * doc/posix-functions/rename.texi: Document.
45896
45897 2009-04-10  Bruno Haible  <bruno@clisp.org>
45898
45899         New include file "iconveh.h".
45900         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45901         * lib/striconveh.h: Include it.
45902         (enum iconv_ilseq_handler): Remove definition.
45903         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45904         striconveh.h.
45905         * lib/striconveha.c: Include striconveh.h.
45906         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45907         * modules/striconveh (Files): Add lib/iconveh.h.
45908         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45909         lib/striconveh.h.
45910
45911 2009-04-10  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/uniconv.h: Update comment.
45914
45915 2009-04-10  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45918         always.
45919         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45920         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45921         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45922         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45923         "unistring-notinline.h", so that the function gets defined always.
45924         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45925         * lib/unistr/u8-uctomb.c: Likewise.
45926         * lib/unistr/u16-mbtouc.c: Likewise.
45927         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45928         * lib/unistr/u16-uctomb.c: Likewise.
45929         * lib/unistr/u32-mbtouc.c: Likewise.
45930         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45931         * lib/unistr/u32-uctomb.c: Likewise.
45932
45933 2009-04-10  Bruno Haible  <bruno@clisp.org>
45934
45935         Mark 'utime' obsolete.
45936         * modules/utime (Status, Notice): New sections.
45937         Suggested by Jim Meyering.
45938
45939         Fix cross-compile guess for utime test.
45940         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45941         autoconf.
45942         * doc/posix-functions/utime.texi: Give more precisions.
45943         Reported by Jan <ipif@ymail.com>.
45944
45945 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45946
45947         filevercmp: correct today's change
45948         * lib/filevercmp.c: Also handle coreutils' test inputs.
45949         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45950
45951         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45952         for reporting it.
45953         * lib/filevercmp.c: Special handle for "", "." and "..".
45954         * tests/test-filevercmp.c: Enlarge the set suite.
45955
45956 2009-04-07  Jim Meyering  <meyering@redhat.com>
45957
45958         useless-if-before-free: show how to remove braced useless free, too
45959         * build-aux/useless-if-before-free: still only in a comment, though.
45960
45961 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45962
45963         maint.mk: import changes to syntax-check macros from coreutils
45964         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45965         Use them in the relevant macros.
45966
45967 2009-04-06  Bruno Haible  <bruno@clisp.org>
45968
45969         Fix unportable use of bit-fields.
45970         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45971         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45972         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45973
45974 2009-04-06  Bruno Haible  <bruno@clisp.org>
45975
45976         Avoid test failures on AIX and OSF/1.
45977         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45978         that malloc(0) = NULL.
45979         * tests/unicase/test-u8-tolower.c (check): Likewise.
45980         * tests/unicase/test-u8-totitle.c (check): Likewise.
45981         * tests/unicase/test-u8-toupper.c (check): Likewise.
45982         * tests/unicase/test-u16-casefold.c (check): Likewise.
45983         * tests/unicase/test-u16-tolower.c (check): Likewise.
45984         * tests/unicase/test-u16-totitle.c (check): Likewise.
45985         * tests/unicase/test-u16-toupper.c (check): Likewise.
45986         * tests/unicase/test-u32-casefold.c (check): Likewise.
45987         * tests/unicase/test-u32-tolower.c (check): Likewise.
45988         * tests/unicase/test-u32-totitle.c (check): Likewise.
45989         * tests/unicase/test-u32-toupper.c (check): Likewise.
45990         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45991         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45992         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45993         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45994         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45995         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45996         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45997         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45998         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45999         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46000         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46001         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46002
46003 2009-04-05  Bruno Haible  <bruno@clisp.org>
46004
46005         Work around an autoconf limitation.
46006         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46007         comment line if it would be longer than 3 KB.
46008
46009 2009-04-05  Bruno Haible  <bruno@clisp.org>
46010
46011         Avoid test failure with libiconv-1.13.
46012         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46013         of the expected test results.
46014
46015 2009-04-05  Bruno Haible  <bruno@clisp.org>
46016
46017         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46018         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46019         that it should be installed.
46020
46021 2009-04-05  Bruno Haible  <bruno@clisp.org>
46022
46023         * gnulib-tool: New option --copy-file.
46024         (func_usage): Document it.
46025         (func_dest_tmpfilename): Moved out of func_import.
46026         (func_add_file, func_update_file): New functions, extracted from
46027         func_import.
46028         (func_import): Update.
46029
46030 2009-04-05  Karl Berry  <karl@gnu.org>
46031
46032         * README: prominently mention gnulib-tool.
46033         Rearrange sections so getting the code is near the top.
46034
46035 2009-04-05  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/unicase.h: Mention u*_cmp2.
46038         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46039         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46040         * lib/unicase/ulc-casecmp.c: Likewise.
46041         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46042         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46043         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46044         unistr/u8-cmp.
46045         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46046         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46047         unistr/u16-cmp.
46048         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46049         unistr/u32-cmp.
46050
46051         * lib/uninorm.h: Mention u*_cmp2.
46052         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46053         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46054         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46055         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46056         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46057         unistr/u8-cmp.
46058         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46059         unistr/u16-cmp.
46060         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46061         unistr/u32-cmp.
46062
46063         New module 'unistr/u32-cmp2'.
46064         * lib/unistr/u32-cmp2.c: New file.
46065         * modules/unistr/u32-cmp2: New file.
46066
46067         New module 'unistr/u16-cmp2'.
46068         * lib/unistr/u16-cmp2.c: New file.
46069         * modules/unistr/u16-cmp2: New file.
46070
46071         New module 'unistr/u8-cmp2'.
46072         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46073         * lib/unistr/u8-cmp2.c: New file.
46074         * lib/unistr/u-cmp2.h: New file.
46075         * modules/unistr/u8-cmp2: New file.
46076
46077 2009-04-05  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/unictype.h (uc_property_is_valid): New macro.
46080         * tests/unictype/test-pr_byname.c (main): Use it.
46081
46082         * lib/unistr.h: Doc fixes.
46083         * lib/uniconv.h: Doc fixes.
46084         * lib/unictype.h: Doc fixes.
46085
46086 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46087
46088         Port coreutils 7.2 to Solaris 8.
46089
46090         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46091         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46092         for Solaris 8.  This is a bit of a hack, as it means it's the
46093         caller's responsibility to add -lnsl if needed, but most likely it
46094         won't be needed since only getaddrinfo uses this and getaddrinfo
46095         isn't needed on Solaris 8.
46096
46097         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46098         problem to Solaris 8 encountered with coreutils 7.2, which
46099         resulted in a message "fnmatch.c:292: warning: passing argument 4
46100         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46101         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46102
46103 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46104
46105         * m4/ld-version-script.m4: Add FIXME comment.
46106
46107 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46108
46109         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46110         SOVERSION variable.
46111
46112 2009-04-02  Bruno Haible  <bruno@clisp.org>
46113
46114         * Makefile (info, html, dvi, pdf): Combine the rules.
46115         Suggested by Jim Meyering.
46116
46117 2009-04-01  Bruno Haible  <bruno@clisp.org>
46118
46119         * Makefile (info, html, dvi, pdf): New targets.
46120         Reported by Reuben Thomas <rrt@sc3d.org>.
46121
46122 2009-04-01  Bruno Haible  <bruno@clisp.org>
46123
46124         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46125         can be put into PATH.
46126         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46127
46128 2009-04-01  Bruno Haible  <bruno@clisp.org>
46129
46130         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46131
46132 2009-04-01  Bruno Haible  <bruno@clisp.org>
46133
46134         Rename module 'visibility'.
46135         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46136         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46137         * doc/gnulib.texi: Update.
46138         * MODULES.html.sh (Misc): Update.
46139         * NEWS: Mention the change.
46140
46141 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46142
46143         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46144         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46145         Eric Blake <ebb9@byu.net> for review.
46146         * MODULES.html.sh: Add lib-msvc-compat.
46147         * doc/gnulib.texi: Link to new section.
46148         * m4/ld-output-def.m4: New file.
46149         * doc/ld-output-def.texi: New file.
46150
46151 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46152
46153         Rename ld-version-script to lib-symbol-versions.  Suggested by
46154         Bruno Haible <bruno@clisp.org>.
46155         * modules/ld-version-script: Renamed to lib-symbol-versions.
46156         * doc/ld-version-script.texi: Fix module name.
46157         * MODULES.html.sh: Add lib-symbol-versions.
46158
46159 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46160
46161         * modules/u64-tests: New file.
46162         * tests/test-u64.c: New file.
46163
46164 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46165
46166         * MODULES.html.sh: Mention u64.
46167         * modules/u64: New module.
46168         * modules/crypto/sha512: Depend on u64 module instead of providing
46169         u64.h.
46170
46171 2009-03-27  Eric Blake  <ebb9@byu.net>
46172
46173         test-strerror: make debugging EAI_SYSTEM easier
46174         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46175         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46176         failure was EAI_SYSTEM.
46177
46178 2009-03-25  Bruno Haible  <bruno@clisp.org>
46179
46180         Fix a problem with --enable-relocatable on Solaris 7.
46181         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46182         since 2008-02-24.
46183
46184 2009-03-25  Eric Blake  <ebb9@byu.net>
46185
46186         test-sockets: avoid gcc warning
46187         * tests/test-sockets.c (main): Silence compiler warning.
46188
46189 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46190
46191         New modules nproc, pthread, contributed by Glen Lenker.
46192
46193         * MODULES.html.sh: Add pthread, nproc.
46194         * lib/nproc.c: New file.
46195         * lib/nproc.h: New file.
46196         * lib/pthread.in.h: New file.
46197         * m4/pthread.m4: New file.
46198         * modules/nproc: New file.
46199         * modules/pthread: New file.
46200
46201 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46202
46203         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46204         New variable.
46205
46206 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46207
46208         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46209         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46210         * tests/test-filevercmp.c: Add tests for backup suffixes.
46211
46212 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46213
46214         * modules/stdlib (Depends-on): Add stdint, needed when defining
46215         struct random_data on, for example, HP-UX 10.20.  Reported by
46216         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46217
46218 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46219
46220         * lib/readline.c (readline): Call fflush on stdout after printing
46221         prompt.
46222
46223 2009-03-20  Bruno Haible  <bruno@clisp.org>
46224
46225         Remove dependency from 'close' module to -lws2_32 on native Windows.
46226         * lib/close-hook.h: New file.
46227         * lib/close-hook.c: New file.
46228         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46229         w32sock.h.
46230         (_gl_close_fd_maybe_socket): Remove function.
46231         (rpl_close): Invoke execute_all_close_hooks instead of
46232         _gl_close_fd_maybe_socket.
46233         * lib/sockets.c: Include close-hook.h, w32sock.h.
46234         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46235         (close_sockets_hook): New variable.
46236         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46237         (gl_sockets_cleanup): Unregister it.
46238         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46239         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46240         * modules/close-hook: New file.
46241         * modules/close (Files): Remove lib/w32sock.h.
46242         (Depends-on): Add close-hook.
46243         (Link): Remove section.
46244         * modules/sockets (Files): Add lib/w32sock.h.
46245         (Depends-on): Add close-hook.
46246         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46247         invocation.
46248         * NEWS: Mention that LIB_CLOSE is gone.
46249
46250 2009-03-23  Eric Blake  <ebb9@byu.net>
46251
46252         signal-tests: test previous patch
46253         * tests/test-signal.c: New file.
46254         * modules/signal-tests: Likewise.
46255
46256         signal.h: always support 'volatile sig_atomic_t'
46257         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46258         (gl_SIGNAL_H_DEFAULTS): Add a default.
46259         * modules/signal (Makefile.am): Substitute if needed.
46260         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46261         users can blindly add volatile.
46262         * doc/posix-headers/signal.texi (signal.h): Document it.
46263         Reported by Matthew Woehlke.
46264
46265 2009-03-23  Jim Meyering  <meyering@redhat.com>
46266
46267         pathmax: PATH_MAX: use pathconf only when available
46268         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46269         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46270         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46271         This avoids a link failure in a PSP cross-compilation environment
46272         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46273
46274         * lib/vasnprintf.c (divide): Fix typo in comment.
46275
46276 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46277
46278         * gnulib-tool (func_filter_filelist): Fix comment.
46279
46280 2009-03-20  Bruno Haible  <bruno@clisp.org>
46281
46282         Make sockets.h self-contained.
46283         * lib/sockets.c: Include sockets.h first.
46284         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46285
46286 2009-03-19  Eric Blake  <ebb9@byu.net>
46287
46288         doc: mention more functions added in cygwin 1.7.0
46289         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46290         addition.
46291         * doc/posix-functions/log2f.texi: Likewise.
46292
46293 2009-03-19  Jim Meyering  <meyering@redhat.com>
46294
46295         fsusage: avoid syntax error due to statement-before-declaration
46296         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46297         after all declarations.  Reported by Matthew Woehlke in
46298         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46299
46300 2009-03-18  Eric Blake  <ebb9@byu.net>
46301
46302         build-aux/compile: sync from automake
46303         * build-aux/compile: New file, from automake.
46304         * config/srclist.txt: Mention build-aux/compile.
46305
46306 2009-03-17  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/git-merge-changelog.c: Fix typo in comment.
46309         Reported by Reuben Thomas <rrt@sc3d.org>.
46310
46311 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46312
46313         * m4/regex.m4: update and improve help for
46314         --without-included-regex.
46315
46316 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46317
46318         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46319         failure on missing include files.
46320
46321 2009-03-17  Eric Blake  <ebb9@byu.net>
46322
46323         doc: mention more functions added in cygwin 1.7.0
46324         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46325         addition.
46326         * doc/posix-functions/fwscanf.texi: Likewise.
46327         * doc/posix-functions/swprintf.texi: Likewise.
46328         * doc/posix-functions/swscanf.texi: Likewise.
46329         * doc/posix-functions/vfwprintf.texi: Likewise.
46330         * doc/posix-functions/vfwscanf.texi: Likewise.
46331         * doc/posix-functions/vswprintf.texi: Likewise.
46332         * doc/posix-functions/vswscanf.texi: Likewise.
46333         * doc/posix-functions/vwprintf.texi: Likewise.
46334         * doc/posix-functions/vwscanf.texi: Likewise.
46335         * doc/posix-functions/wcscasecmp.texi: Likewise.
46336         * doc/posix-functions/wcsdup.texi: Likewise.
46337         * doc/posix-functions/wcsftime.texi: Likewise.
46338         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46339         * doc/posix-functions/wprintf.texi: Likewise.
46340         * doc/posix-functions/wscanf.texi: Likewise.
46341         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46342
46343 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46344
46345         maint.mk: really add $(AM_MAKEFLAGS)
46346         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46347         was inadvertently omitted in the last commit.
46348         Spotted by Bruno Haible.
46349
46350         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46351         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46352         $(AM_MAKEFLAGS)' rather than plain `make'.
46353
46354         gnulib-tool: execute $MAKE not make
46355         * gnulib-tool: Default $MAKE to 'make'.
46356         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46357         than make.  Initialize $MAKE in the do-autobuild script.
46358
46359         gnulib-tool: use $MAKE not make in generated files
46360         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46361         make, in generated files.  Initialize $MAKE in the do-autobuild
46362         script.
46363
46364         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46365
46366         GNUmakefile: disable parallelism only for multiple, recursive targets
46367         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46368         additions in the Makefile.
46369         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46370         by Automake.
46371         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46372         are listed on the command line and at least one of them is
46373         listed in $(ALL_RECURSIVE_TARGETS).
46374
46375 2009-03-14  Bruno Haible  <bruno@clisp.org>
46376
46377         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46378         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46379         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46380         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46381         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46382         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46383         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46384         unistr/u8-uctomb.
46385         * modules/unistr/u8-strchr (Depends-on): Likewise.
46386         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46387         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46388         unistr/u16-uctomb.
46389         * modules/unistr/u16-strchr (Depends-on): Likewise.
46390         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46391
46392 2009-03-12  Bruno Haible  <bruno@clisp.org>
46393
46394         Work around select() bug on Interix 3.5.
46395         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46396         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46397         * m4/select.m4: New file.
46398         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46399         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46400         * modules/select (Files): Add m4/select.m4.
46401         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46402         * modules/nanosleep (Depends-on): Add select.
46403         * modules/poll (Depends-on): Likewise.
46404         * doc/posix-functions/select.texi: Mention the Interix bug.
46405         Reported by Markus Duft <mduft@gentoo.org>.
46406
46407         * lib/select.c: Renamed from lib/winsock-select.c.
46408         * modules/select (Files): Add lib/select.c, remove
46409         lib/winsock-select.c.
46410         (configure.ac): Update.
46411
46412 2009-03-12  Jim Meyering  <meyering@redhat.com>
46413
46414         avoid gcc warnings about unused macro definitions
46415         * lib/readtokens.c (STREQ): Remove unused definition.
46416         * lib/xmalloc.c (SIZE_MAX): Likewise.
46417         * lib/openat-die.c (N_): Likewise.
46418         * lib/mountlist.c (SIZE_MAX): Remove definition.
46419         Instead, include <stdint.h>.
46420         * lib/readutmp.c: Likewise.
46421         * modules/readutmp (Depends-on): Add stdint.
46422         * modules/mountlist (Depends-on): Add stdint.
46423         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46424
46425 2009-03-10  Bruno Haible  <bruno@clisp.org>
46426
46427         Tests for module 'mbmemcasecoll'.
46428         * modules/mbmemcasecoll-tests: New file.
46429         * tests/test-mbmemcasecoll1.sh: New file.
46430         * tests/test-mbmemcasecoll2.sh: New file.
46431         * tests/test-mbmemcasecoll3.sh: New file.
46432         * tests/test-mbmemcasecoll.c: New file.
46433
46434         New module 'mbmemcasecoll'.
46435         * lib/mbmemcasecoll.h: New file.
46436         * lib/mbmemcasecoll.c: New file.
46437         * modules/mbmemcasecoll: New file.
46438
46439         * tests/test-mbmemcasecmp.h: New file, extracted from
46440         tests/test-mbmemcasecmp.c.
46441         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46442         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46443         (main): Update.
46444         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46445
46446 2009-03-09  Bruno Haible  <bruno@clisp.org>
46447
46448         Tests for module 'mbmemcasecmp'.
46449         * modules/mbmemcasecmp-tests: New file.
46450         * tests/test-mbmemcasecmp1.sh: New file.
46451         * tests/test-mbmemcasecmp2.sh: New file.
46452         * tests/test-mbmemcasecmp3.sh: New file.
46453         * tests/test-mbmemcasecmp.c: New file.
46454
46455         New module 'mbmemcasecmp'.
46456         * lib/mbmemcasecmp.h: New file.
46457         * lib/mbmemcasecmp.c: New file.
46458         * modules/mbmemcasecmp: New file.
46459
46460 2009-03-09  Bruno Haible  <bruno@clisp.org>
46461
46462         Tests for module 'unicase/ulc-casecoll'.
46463         * modules/unicase/ulc-casecoll-tests: New file.
46464         * tests/unicase/test-ulc-casecoll1.sh: New file.
46465         * tests/unicase/test-ulc-casecoll2.sh: New file.
46466         * tests/unicase/test-ulc-casecoll.c: New file.
46467
46468         New module 'unicase/ulc-casecoll'.
46469         * lib/unicase.h (ulc_casecoll): New declaration.
46470         * lib/unicase/ulc-casecoll.c: New file.
46471         * modules/unicase/ulc-casecoll: New file.
46472
46473         New module 'unicase/ulc-casexfrm'.
46474         * lib/unicase.h (ulc_casexfrm): New declaration.
46475         * lib/unicase/ulc-casexfrm.c: New file.
46476         * modules/unicase/ulc-casexfrm: New file.
46477
46478 2009-03-09  Bruno Haible  <bruno@clisp.org>
46479
46480         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46481         invocations.
46482
46483         * m4/mbscasecmp.m4: Remove file.
46484         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46485         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46486
46487         * m4/mbscasestr.m4: Remove file.
46488         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46489         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46490
46491         * m4/mbschr.m4: Remove file.
46492         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46493         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46494
46495         * m4/mbscspn.m4: Remove file.
46496         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46497         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46498
46499         * m4/mbslen.m4: Remove file.
46500         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46501         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46502
46503         * m4/mbsncasecmp.m4: Remove file.
46504         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46505         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46506
46507         * m4/mbsnlen.m4: Remove file.
46508         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46509         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46510
46511         * m4/mbspbrk.m4: Remove file.
46512         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46513         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46514
46515         * m4/mbspcasecmp.m4: Remove file.
46516         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46517         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46518
46519         * m4/mbsrchr.m4: Remove file.
46520         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46521         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46522
46523         * m4/mbssep.m4: Remove file.
46524         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46525         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46526
46527         * m4/mbsspn.m4: Remove file.
46528         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46529         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46530
46531         * m4/mbsstr.m4: Remove file.
46532         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46533         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46534
46535         * m4/mbstok_r.m4: Remove file.
46536         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46537         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46538
46539         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46540
46541         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46542         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46543
46544         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46545
46546 2009-03-08  Bruno Haible  <bruno@clisp.org>
46547
46548         Tests for module 'unicase/ulc-casecmp'.
46549         * modules/unicase/ulc-casecmp-tests: New file.
46550         * tests/unicase/test-ulc-casecmp1.sh: New file.
46551         * tests/unicase/test-ulc-casecmp2.sh: New file.
46552         * tests/unicase/test-ulc-casecmp.c: New file.
46553
46554         New module 'unicase/ulc-casecmp'.
46555         * lib/unicase.h (ulc_casecmp): New declaration.
46556         * lib/unicase/ulc-casecmp.c: New file.
46557         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46558         'const SRC_UNIT *'.
46559         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46560         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46561         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46562         * modules/unicase/ulc-casecmp: New file.
46563
46564         Tests for module 'unicase/u32-is-cased'.
46565         * modules/unicase/u32-is-cased-tests: New file.
46566         * tests/unicase/test-u32-is-cased.c: New file.
46567
46568         Tests for module 'unicase/u16-is-cased'.
46569         * modules/unicase/u16-is-cased-tests: New file.
46570         * tests/unicase/test-u16-is-cased.c: New file.
46571
46572         Tests for module 'unicase/u8-is-cased'.
46573         * modules/unicase/u8-is-cased-tests: New file.
46574         * tests/unicase/test-u8-is-cased.c: New file.
46575         * tests/unicase/test-is-cased.h: New file.
46576
46577         New module 'unicase/u32-is-cased'.
46578         * lib/unicase/u32-is-cased.c: New file.
46579         * modules/unicase/u32-is-cased: New file.
46580
46581         New module 'unicase/u16-is-cased'.
46582         * lib/unicase/u16-is-cased.c: New file.
46583         * modules/unicase/u16-is-cased: New file.
46584
46585         New module 'unicase/u8-is-cased'.
46586         * lib/unicase/u8-is-cased.c: New file.
46587         * lib/unicase/u-is-cased.h: New file.
46588         * modules/unicase/u8-is-cased: New file.
46589
46590         Tests for module 'unicase/u32-is-casefolded'.
46591         * modules/unicase/u32-is-casefolded-tests: New file.
46592         * tests/unicase/test-u32-is-casefolded.c: New file.
46593
46594         Tests for module 'unicase/u16-is-casefolded'.
46595         * modules/unicase/u16-is-casefolded-tests: New file.
46596         * tests/unicase/test-u16-is-casefolded.c: New file.
46597
46598         Tests for module 'unicase/u8-is-casefolded'.
46599         * modules/unicase/u8-is-casefolded-tests: New file.
46600         * tests/unicase/test-u8-is-casefolded.c: New file.
46601         * tests/unicase/test-is-casefolded.h: New file.
46602
46603         New module 'unicase/u32-is-casefolded'.
46604         * lib/unicase/u32-is-casefolded.c: New file.
46605         * modules/unicase/u32-is-casefolded: New file.
46606
46607         New module 'unicase/u16-is-casefolded'.
46608         * lib/unicase/u16-is-casefolded.c: New file.
46609         * modules/unicase/u16-is-casefolded: New file.
46610
46611         New module 'unicase/u8-is-casefolded'.
46612         * lib/unicase/u8-is-casefolded.c: New file.
46613         * modules/unicase/u8-is-casefolded: New file.
46614
46615         Tests for module 'unicase/u32-is-titlecase'.
46616         * modules/unicase/u32-is-titlecase-tests: New file.
46617         * tests/unicase/test-u32-is-titlecase.c: New file.
46618
46619         Tests for module 'unicase/u16-is-titlecase'.
46620         * modules/unicase/u16-is-titlecase-tests: New file.
46621         * tests/unicase/test-u16-is-titlecase.c: New file.
46622
46623         Tests for module 'unicase/u8-is-titlecase'.
46624         * modules/unicase/u8-is-titlecase-tests: New file.
46625         * tests/unicase/test-u8-is-titlecase.c: New file.
46626         * tests/unicase/test-is-titlecase.h: New file.
46627
46628         New module 'unicase/u32-is-titlecase'.
46629         * lib/unicase/u32-is-titlecase.c: New file.
46630         * modules/unicase/u32-is-titlecase: New file.
46631
46632         New module 'unicase/u16-is-titlecase'.
46633         * lib/unicase/u16-is-titlecase.c: New file.
46634         * modules/unicase/u16-is-titlecase: New file.
46635
46636         New module 'unicase/u8-is-titlecase'.
46637         * lib/unicase/u8-is-titlecase.c: New file.
46638         * modules/unicase/u8-is-titlecase: New file.
46639
46640         Tests for module 'unicase/u32-is-lowercase'.
46641         * modules/unicase/u32-is-lowercase-tests: New file.
46642         * tests/unicase/test-u32-is-lowercase.c: New file.
46643
46644         Tests for module 'unicase/u16-is-lowercase'.
46645         * modules/unicase/u16-is-lowercase-tests: New file.
46646         * tests/unicase/test-u16-is-lowercase.c: New file.
46647
46648         Tests for module 'unicase/u8-is-lowercase'.
46649         * modules/unicase/u8-is-lowercase-tests: New file.
46650         * tests/unicase/test-u8-is-lowercase.c: New file.
46651         * tests/unicase/test-is-lowercase.h: New file.
46652
46653         New module 'unicase/u32-is-lowercase'.
46654         * lib/unicase/u32-is-lowercase.c: New file.
46655         * modules/unicase/u32-is-lowercase: New file.
46656
46657         New module 'unicase/u16-is-lowercase'.
46658         * lib/unicase/u16-is-lowercase.c: New file.
46659         * modules/unicase/u16-is-lowercase: New file.
46660
46661         New module 'unicase/u8-is-lowercase'.
46662         * lib/unicase/u8-is-lowercase.c: New file.
46663         * modules/unicase/u8-is-lowercase: New file.
46664
46665         Tests for module 'unicase/u32-is-uppercase'.
46666         * modules/unicase/u32-is-uppercase-tests: New file.
46667         * tests/unicase/test-u32-is-uppercase.c: New file.
46668
46669         Tests for module 'unicase/u16-is-uppercase'.
46670         * modules/unicase/u16-is-uppercase-tests: New file.
46671         * tests/unicase/test-u16-is-uppercase.c: New file.
46672
46673         Tests for module 'unicase/u8-is-uppercase'.
46674         * modules/unicase/u8-is-uppercase-tests: New file.
46675         * tests/unicase/test-u8-is-uppercase.c: New file.
46676         * tests/unicase/test-is-uppercase.h: New file.
46677
46678         New module 'unicase/u32-is-uppercase'.
46679         * lib/unicase/u32-is-uppercase.c: New file.
46680         * modules/unicase/u32-is-uppercase: New file.
46681
46682         New module 'unicase/u16-is-uppercase'.
46683         * lib/unicase/u16-is-uppercase.c: New file.
46684         * modules/unicase/u16-is-uppercase: New file.
46685
46686         New module 'unicase/u8-is-uppercase'.
46687         * lib/unicase/u8-is-uppercase.c: New file.
46688         * modules/unicase/u8-is-uppercase: New file.
46689
46690         New module 'unicase/u32-is-invariant'.
46691         * lib/unicase/u32-is-invariant.c: New file.
46692         * modules/unicase/u32-is-invariant: New file.
46693
46694         New module 'unicase/u16-is-invariant'.
46695         * lib/unicase/u16-is-invariant.c: New file.
46696         * modules/unicase/u16-is-invariant: New file.
46697
46698         New module 'unicase/u8-is-invariant'.
46699         * lib/unicase/u8-is-invariant.c: New file.
46700         * lib/unicase/invariant.h: New file.
46701         * lib/unicase/u-is-invariant.h: New file.
46702         * modules/unicase/u8-is-invariant: New file.
46703
46704         Tests for module 'unicase/u32-casecoll'.
46705         * modules/unicase/u32-casecoll-tests: New file.
46706         * tests/unicase/test-u32-casecoll.c: New file.
46707
46708         Tests for module 'unicase/u16-casecoll'.
46709         * modules/unicase/u16-casecoll-tests: New file.
46710         * tests/unicase/test-u16-casecoll.c: New file.
46711
46712         Tests for module 'unicase/u8-casecoll'.
46713         * modules/unicase/u8-casecoll-tests: New file.
46714         * tests/unicase/test-u8-casecoll.c: New file.
46715
46716         New module 'unicase/u32-casecoll'.
46717         * lib/unicase/u32-casecoll.c: New file.
46718         * modules/unicase/u32-casecoll: New file.
46719
46720         New module 'unicase/u16-casecoll'.
46721         * lib/unicase/u16-casecoll.c: New file.
46722         * modules/unicase/u16-casecoll: New file.
46723
46724         New module 'unicase/u8-casecoll'.
46725         * lib/unicase/u8-casecoll.c: New file.
46726         * lib/unicase/u-casecoll.h: New file.
46727         * modules/unicase/u8-casecoll: New file.
46728
46729         New module 'unicase/u32-casexfrm'.
46730         * lib/unicase/u32-casexfrm.c: New file.
46731         * modules/unicase/u32-casexfrm: New file.
46732
46733         New module 'unicase/u16-casexfrm'.
46734         * lib/unicase/u16-casexfrm.c: New file.
46735         * modules/unicase/u16-casexfrm: New file.
46736
46737         New module 'unicase/u8-casexfrm'.
46738         * lib/unicase/u8-casexfrm.c: New file.
46739         * lib/unicase/u-casexfrm.h: New file.
46740         * modules/unicase/u8-casexfrm: New file.
46741
46742         Tests for module 'unicase/u32-casecmp'.
46743         * modules/unicase/u32-casecmp-tests: New file.
46744         * tests/unicase/test-u32-casecmp.c: New file.
46745
46746         Tests for module 'unicase/u16-casecmp'.
46747         * modules/unicase/u16-casecmp-tests: New file.
46748         * tests/unicase/test-u16-casecmp.c: New file.
46749
46750         Tests for module 'unicase/u8-casecmp'.
46751         * modules/unicase/u8-casecmp-tests: New file.
46752         * tests/unicase/test-u8-casecmp.c: New file.
46753         * tests/unicase/test-casecmp.h: New file.
46754
46755         New module 'unicase/u32-casecmp'.
46756         * lib/unicase/u32-casecmp.c: New file.
46757         * modules/unicase/u32-casecmp: New file.
46758
46759         New module 'unicase/u16-casecmp'.
46760         * lib/unicase/u16-casecmp.c: New file.
46761         * modules/unicase/u16-casecmp: New file.
46762
46763         New module 'unicase/u8-casecmp'.
46764         * lib/unicase/u8-casecmp.c: New file.
46765         * lib/unicase/u-casecmp.h: New file.
46766         * modules/unicase/u8-casecmp: New file.
46767
46768         Tests for module 'unicase/u32-casefold'.
46769         * modules/unicase/u32-casefold-tests: New file.
46770         * tests/unicase/test-u32-casefold.c: New file.
46771
46772         Tests for module 'unicase/u16-casefold'.
46773         * modules/unicase/u16-casefold-tests: New file.
46774         * tests/unicase/test-u16-casefold.c: New file.
46775
46776         Tests for module 'unicase/u8-casefold'.
46777         * modules/unicase/u8-casefold-tests: New file.
46778         * tests/unicase/test-u8-casefold.c: New file.
46779
46780         New module 'unicase/u32-casefold'.
46781         * lib/unicase/u32-casefold.c: New file.
46782         * modules/unicase/u32-casefold: New file.
46783
46784         New module 'unicase/u16-casefold'.
46785         * lib/unicase/u16-casefold.c: New file.
46786         * modules/unicase/u16-casefold: New file.
46787
46788         New module 'unicase/u8-casefold'.
46789         * lib/unicase/u8-casefold.c: New file.
46790         * lib/unicase/u-casefold.h: New file.
46791         * modules/unicase/u8-casefold: New file.
46792
46793         New module 'unicase/tocasefold'.
46794         * lib/unicase/casefold.h: New file.
46795         * lib/unicase/tocasefold.c: New file.
46796         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46797         * modules/unicase/tocasefold: New file.
46798
46799         Tests for module 'unicase/u32-totitle'.
46800         * modules/unicase/u32-totitle-tests: New file.
46801         * tests/unicase/test-u32-totitle.c: New file.
46802
46803         Tests for module 'unicase/u16-totitle'.
46804         * modules/unicase/u16-totitle-tests: New file.
46805         * tests/unicase/test-u16-totitle.c: New file.
46806
46807         Tests for module 'unicase/u8-totitle'.
46808         * modules/unicase/u8-totitle-tests: New file.
46809         * tests/unicase/test-u8-totitle.c: New file.
46810
46811         New module 'unicase/u32-totitle'.
46812         * lib/unicase/u32-totitle.c: New file.
46813         * modules/unicase/u32-totitle: New file.
46814
46815         New module 'unicase/u16-totitle'.
46816         * lib/unicase/u16-totitle.c: New file.
46817         * modules/unicase/u16-totitle: New file.
46818
46819         New module 'unicase/u8-totitle'.
46820         * lib/unicase/u8-totitle.c: New file.
46821         * lib/unicase/u-totitle.h: New file.
46822         * modules/unicase/u8-totitle: New file.
46823
46824         Tests for module 'unicase/u32-tolower'.
46825         * modules/unicase/u32-tolower-tests: New file.
46826         * tests/unicase/test-u32-tolower.c: New file.
46827
46828         Tests for module 'unicase/u16-tolower'.
46829         * modules/unicase/u16-tolower-tests: New file.
46830         * tests/unicase/test-u16-tolower.c: New file.
46831
46832         Tests for module 'unicase/u8-tolower'.
46833         * modules/unicase/u8-tolower-tests: New file.
46834         * tests/unicase/test-u8-tolower.c: New file.
46835
46836         New module 'unicase/u32-tolower'.
46837         * lib/unicase/u32-tolower.c: New file.
46838         * modules/unicase/u32-tolower: New file.
46839
46840         New module 'unicase/u16-tolower'.
46841         * lib/unicase/u16-tolower.c: New file.
46842         * modules/unicase/u16-tolower: New file.
46843
46844         New module 'unicase/u8-tolower'.
46845         * lib/unicase/u8-tolower.c: New file.
46846         * modules/unicase/u8-tolower: New file.
46847
46848         Tests for module 'unicase/u32-toupper'.
46849         * modules/unicase/u32-toupper-tests: New file.
46850         * tests/unicase/test-u32-toupper.c: New file.
46851
46852         Tests for module 'unicase/u16-toupper'.
46853         * modules/unicase/u16-toupper-tests: New file.
46854         * tests/unicase/test-u16-toupper.c: New file.
46855
46856         Tests for module 'unicase/u8-toupper'.
46857         * modules/unicase/u8-toupper-tests: New file.
46858         * tests/unicase/test-u8-toupper.c: New file.
46859
46860         New module 'unicase/u32-toupper'.
46861         * lib/unicase/u32-toupper.c: New file.
46862         * modules/unicase/u32-toupper: New file.
46863
46864         New module 'unicase/u16-toupper'.
46865         * lib/unicase/u16-toupper.c: New file.
46866         * modules/unicase/u16-toupper: New file.
46867
46868         New module 'unicase/u8-toupper'.
46869         * lib/unicase/u8-toupper.c: New file.
46870         * modules/unicase/u8-toupper: New file.
46871
46872         New module 'unicase/u32-casemap'.
46873         * lib/unicase/u32-casemap.c: New file.
46874         * modules/unicase/u32-casemap: New file.
46875
46876         New module 'unicase/u16-casemap'.
46877         * lib/unicase/u16-casemap.c: New file.
46878         * modules/unicase/u16-casemap: New file.
46879
46880         New module 'unicase/u8-casemap'.
46881         * lib/unicase/unicasemap.h: New file.
46882         * lib/unicase/u8-casemap.c: New file.
46883         * lib/unicase/u-casemap.h: New file.
46884         * modules/unicase/u8-casemap: New file.
46885
46886         New module 'unicase/special-casing'.
46887         * lib/unicase/special-casing.h: New file.
46888         * lib/unicase/special-casing.c: New file.
46889         * lib/unicase/special-casing-table.gperf: New file, generated by
46890         gen-uni-tables.c.
46891         * modules/unicase/special-casing: New file.
46892
46893         Tests for module 'unicase/locale-language'.
46894         * modules/unicase/locale-language-tests: New file.
46895         * tests/unicase/test-locale-language.sh: New file.
46896         * tests/unicase/test-locale-language.c: New file.
46897
46898         New module 'unicase/locale-language'.
46899         * lib/unicase/locale-language.c: New file.
46900         * lib/unicase/locale-languages.gperf: New file.
46901         * modules/unicase/locale-language: New file.
46902
46903         Generate more tables for case conversion and case folding.
46904         * lib/gen-uni-tables.c (SCC_*): New enum items.
46905         (struct special_casing_rule): New type.
46906         (casing_rules, num_casing_rules, allocated_casing_rules): New
46907         variables.
46908         (add_casing_rule, fill_casing_rules): New functions.
46909         (struct casefold_rule): New type.
46910         (casefolding_rules, num_casefolding_rules,
46911         allocated_casefolding_rules): New variables.
46912         (fill_casefolding_rules): New function.
46913         (unicode_casefold): New variable.
46914         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46915         sort_casing_rules, output_casing_rules): New functions.
46916         (main): Accept to more arguments: SpecialCasing.txt and
46917         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46918         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46919         Output mapping for casefolding.
46920
46921         * lib/unicase.h: Include stdbool.h, uninorm.h.
46922         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46923         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46924         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46925         arguments.
46926         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46927         resultp arguments.
46928         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46929         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46930         resultp arguments.
46931         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46932         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46933         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46934         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46935         declarations.
46936         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46937
46938 2009-03-08  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46941         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46942         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46943         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46944
46945 2009-03-07  Bruno Haible  <bruno@clisp.org>
46946
46947         Adjust u*_normcmp, u*_normcoll API.
46948         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46949         u16_normcoll, u32_normcoll): Change failure conventions.
46950         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46951         errno and return -1.
46952         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46953
46954 2009-03-07  Bruno Haible  <bruno@clisp.org>
46955
46956         Tests for module 'uninorm/u32-normcoll'.
46957         * modules/uninorm/u32-normcoll-tests: New file.
46958         * tests/uninorm/test-u32-normcoll.c: New file.
46959
46960         Tests for module 'uninorm/u16-normcoll'.
46961         * modules/uninorm/u16-normcoll-tests: New file.
46962         * tests/uninorm/test-u16-normcoll.c: New file.
46963
46964         Tests for module 'uninorm/u8-normcoll'.
46965         * modules/uninorm/u8-normcoll-tests: New file.
46966         * tests/uninorm/test-u8-normcoll.c: New file.
46967
46968 2009-03-07  Bruno Haible  <bruno@clisp.org>
46969
46970         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46971         tests/uninorm/test-u32-normcmp.c.
46972         * tests/uninorm/test-u32-normcmp.c: Include it.
46973         (test_nonascii): New function, extracted from main. Add some more
46974         tests.
46975         (main): Invoke test_ascii and test_nonascii.
46976         * modules/uninorm/u32-normcmp-tests (Files): Add
46977         tests/uninorm/test-u32-normcmp.h.
46978         (Depends-on): Remove uninorm/u32-normcmp.
46979
46980         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46981         tests/uninorm/test-u16-normcmp.c.
46982         * tests/uninorm/test-u16-normcmp.c: Include it.
46983         (test_nonascii): New function, extracted from main. Add some more
46984         tests.
46985         (main): Invoke test_ascii and test_nonascii.
46986         * modules/uninorm/u16-normcmp-tests (Files): Add
46987         tests/uninorm/test-u16-normcmp.h.
46988         (Depends-on): Remove uninorm/u16-normcmp.
46989
46990         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46991         tests/uninorm/test-u8-normcmp.c.
46992         * tests/uninorm/test-u8-normcmp.c: Include it.
46993         (test_nonascii): New function, extracted from main. Add some more
46994         tests.
46995         (main): Invoke test_ascii and test_nonascii.
46996         * modules/uninorm/u8-normcmp-tests (Files): Add
46997         tests/uninorm/test-u8-normcmp.h.
46998         (Depends-on): Remove uninorm/u8-normcmp.
46999
47000 2009-03-07  Bruno Haible  <bruno@clisp.org>
47001
47002         New module 'uninorm/u32-normcoll'.
47003         * lib/uninorm/u32-normcoll.c: New file.
47004         * modules/uninorm/u32-normcoll: New file.
47005
47006         New module 'uninorm/u16-normcoll'.
47007         * lib/uninorm/u16-normcoll.c: New file.
47008         * modules/uninorm/u16-normcoll: New file.
47009
47010         New module 'uninorm/u8-normcoll'.
47011         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47012         declarations.
47013         * lib/uninorm/u8-normcoll.c: New file.
47014         * lib/uninorm/u-normcoll.h: New file.
47015         * modules/uninorm/u8-normcoll: New file.
47016
47017         New module 'uninorm/u32-normxfrm'.
47018         * lib/uninorm/u32-normxfrm.c: New file.
47019         * modules/uninorm/u32-normxfrm: New file.
47020
47021         New module 'uninorm/u16-normxfrm'.
47022         * lib/uninorm/u16-normxfrm.c: New file.
47023         * modules/uninorm/u16-normxfrm: New file.
47024
47025         New module 'uninorm/u8-normxfrm'.
47026         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47027         declarations.
47028         * lib/uninorm/u8-normxfrm.c: New file.
47029         * lib/uninorm/u-normxfrm.h: New file.
47030         * modules/uninorm/u8-normxfrm: New file.
47031
47032 2009-03-07  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47035         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47036         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47037
47038 2009-03-07  Bruno Haible  <bruno@clisp.org>
47039
47040         New module 'memxfrm'.
47041         * lib/memxfrm.h: New file.
47042         * lib/memxfrm.c: New file.
47043         * modules/memxfrm: New file.
47044
47045 2009-03-07  Bruno Haible  <bruno@clisp.org>
47046
47047         New module 'memcmp2'.
47048         * lib/memcmp2.h: New file.
47049         * lib/memcmp2.c: New file.
47050         * modules/memcmp2: New file.
47051
47052 2009-03-07  Bruno Haible  <bruno@clisp.org>
47053
47054         Tests for module 'uninorm/decomposing-form'.
47055         * modules/uninorm/decomposing-form-tests: New file.
47056         * tests/uninorm/test-decomposing-form.c: New file.
47057
47058         New module 'uninorm/decomposing-form'.
47059         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47060         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47061         Add 'decomposing_variant' field.
47062         * lib/uninorm/decomposing-form.c: New file.
47063         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47064         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47065         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47066         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47067         * modules/uninorm/decomposing-form: New file.
47068         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47069         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47070
47071 2009-03-07  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47074         strings.
47075
47076 2009-03-06  Bruno Haible  <bruno@clisp.org>
47077
47078         Tests for module 'uninorm/u32-normcmp'.
47079         * tests/uninorm/test-u32-normcmp.c: New file.
47080         * modules/uninorm/u32-normcmp-tests: New file.
47081
47082         Tests for module 'uninorm/u16-normcmp'.
47083         * tests/uninorm/test-u16-normcmp.c: New file.
47084         * modules/uninorm/u16-normcmp-tests: New file.
47085
47086         Tests for module 'uninorm/u8-normcmp'.
47087         * tests/uninorm/test-u8-normcmp.c: New file.
47088         * modules/uninorm/u8-normcmp-tests: New file.
47089
47090         New module 'uninorm/u32-normcmp'.
47091         * lib/uninorm/u32-normcmp.c: New file.
47092         * modules/uninorm/u32-normcmp: New file.
47093
47094         New module 'uninorm/u16-normcmp'.
47095         * lib/uninorm/u16-normcmp.c: New file.
47096         * modules/uninorm/u16-normcmp: New file.
47097
47098         New module 'uninorm/u8-normcmp'.
47099         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47100         declarations.
47101         * lib/uninorm/u8-normcmp.c: New file.
47102         * lib/uninorm/u-normcmp.h: New file.
47103         * modules/uninorm/u8-normcmp: New file.
47104
47105 2009-03-06  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47108         Reported by Eric Blake.
47109
47110 2009-03-06  Eric Blake  <ebb9@byu.net>
47111             Bruno Haible  <bruno@clisp.org>
47112
47113         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47114         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47115         condition.
47116         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47117         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47118         condition.
47119         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47120
47121 2009-03-06  Eric Blake  <ebb9@byu.net>
47122
47123         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47124         to avoid compiler warnings.
47125         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47126
47127 2009-03-05  Bruno Haible  <bruno@clisp.org>
47128
47129         * tests/test-ftell.c (main): Disable test beyond end of file on
47130         FreeMiNT.
47131         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47132
47133 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47134
47135         * lib/filevercmp.c: Move hidden files up in ordering.
47136         * tests/test-filevercmp.c: Add tests for hidden files.
47137
47138 2009-03-04  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47141         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47142         AM_CFLAGS.
47143         Reported by Simon Josefsson.
47144
47145 2009-03-03  Bruno Haible  <bruno@clisp.org>
47146
47147         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47148         Reported by Simon Josefsson.
47149
47150         * doc/ld-version-script.texi: Update node reference.
47151
47152 2009-03-03  Bruno Haible  <bruno@clisp.org>
47153
47154         * modules/visibility (License): Change to 'unlimited'.
47155         Suggested by Simon Josefsson.
47156
47157 2009-03-03  Jim Meyering  <meyering@redhat.com>
47158
47159         unlinkdir: cannot_unlink_dir may modify process state
47160         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47161         it's neither thread-safe nor appropriate for use in a library.
47162
47163 2009-03-03  Eric Blake  <ebb9@byu.net>
47164
47165         test-closein: silence test under Darwin
47166         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47167         care if it dies from EPIPE or EBADF.
47168
47169 2009-03-03  Bruno Haible  <bruno@clisp.org>
47170
47171         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47172         earlier.
47173         * doc/visibility.texi: Fix @node and @section.
47174
47175 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47176
47177         * doc/gnulib.texi: Link to sections for ld version script and
47178         visibility.
47179         * doc/visibility.texi: Add @node and @section.
47180         * modules/ld-version-script: New module.
47181         * m4/ld-version-script.m4: New file.
47182         * doc/ld-version-script.texi: New file.
47183
47184 2009-03-02  David Lutterkort  <lutter@redhat.com>
47185
47186         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47188
47189 2009-03-02  Bruno Haible  <bruno@clisp.org>
47190
47191         * doc/visibility.texi: Mention libtool's -export-symbols option.
47192
47193 2009-03-02  Jim Meyering  <meyering@redhat.com>
47194
47195         announce-gen: new option: --no-print-checksums
47196         * build-aux/announce-gen (usage): Describe it.
47197         (print_checksums): Print a newline here, not in the [*] footnote.
47198         (main): Honor it.
47199
47200 2009-03-01  Bruno Haible  <bruno@clisp.org>
47201
47202         Use socklen_t in the native Windows replacements prototypes.
47203         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47204         instead of 'int'.
47205         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47206         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47207         * modules/getsockopt (Depends-on): Add socklen.
47208         * modules/setsockopt (Depends-on): Add socklen.
47209
47210 2009-03-01  Bruno Haible  <bruno@clisp.org>
47211
47212         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47213         least 4.2.
47214
47215 2009-03-01  Eric Blake  <ebb9@byu.net>
47216             Bruno Haible  <bruno@clisp.org>
47217
47218         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47219         error messages.
47220         * lib/wait-process.c (wait_subprocess): Omit error message about
47221         deadly signal sent to the child of termsigp != NULL.
47222
47223 2009-03-01  Eric Blake  <ebb9@byu.net>
47224
47225         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47226
47227 2009-03-01  Bruno Haible  <bruno@clisp.org>
47228
47229         Avoid a gcc warning.
47230         * tests/test-sched.c (b): Make global.
47231         Reported by Eric Blake.
47232
47233 2009-01-19  Martin Lambers  <marlam@marlam.de>
47234
47235         Provide POSIX semantics for socket timeout options on W32.
47236         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47237         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47238         * modules/setsockopt: Depend on sys_time module for struct timeval.
47239         * modules/getsockopt: Depend on sys_time module for struct timeval.
47240
47241 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47242
47243         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47244         __USE_GNU, for consistency with netdb.in.h.
47245         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47246
47247 2009-03-01  Bruno Haible  <bruno@clisp.org>
47248
47249         More support for FreeMiNT.
47250         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47251         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47252
47253 2009-03-01  Bruno Haible  <bruno@clisp.org>
47254
47255         More support for FreeMiNT.
47256         * lib/fpurge.c (fpurge): Correct last commit.
47257         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47258
47259 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47260
47261         Fix unportable awk script in vc-list-files.
47262         * build-aux/vc-list-files: In the replacement awk script, use
47263         substr with a second argument of 1, not zero.
47264         Report by Simon Josefsson.
47265
47266 2009-02-28  Bruno Haible  <bruno@clisp.org>
47267
47268         More support for FreeMiNT.
47269         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47270         to FreeMiNT today.
47271         * lib/fwriting.c (fwriting): Likewise.
47272         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47273
47274 2009-02-28  Bruno Haible  <bruno@clisp.org>
47275
47276         * tests/test-freadseek.c (main): Disable test beyond end of file on
47277         FreeMiNT.
47278         * tests/test-ftello.c (main): Likewise.
47279         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47280
47281 2009-02-28  Bruno Haible  <bruno@clisp.org>
47282
47283         Add tentative support for FreeMiNT.
47284         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47285         * lib/fpurge.c (fpurge): Likewise.
47286         * lib/freadable.c (freadable): Likewise.
47287         * lib/freading.c (freading): Likewise.
47288         * lib/freadptr.c (freadptr): Likewise.
47289         * lib/freadseek.c (freadptrinc): Likewise.
47290         * lib/fseeko.c (rpl_fseeko): Likewise.
47291         * lib/fseterr.c (fseterr): Likewise.
47292         * lib/fwritable.c (fwritable): Likewise.
47293         * lib/fwriting.c (fwriting): Likewise.
47294         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47295         Hourihane.
47296         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47297
47298 2009-02-28  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47301         SIGCHLD.
47302         Reported by Jim Meyering.
47303
47304 2009-02-28  Bruno Haible  <bruno@clisp.org>
47305
47306         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47307         Mention the results of these tests on various platforms.
47308         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47309         order.
47310         * doc/posix-functions/printf.texi: Likewise.
47311         * doc/posix-functions/snprintf.texi: Likewise.
47312         * doc/posix-functions/sprintf.texi: Likewise.
47313         * doc/posix-functions/vfprintf.texi: Likewise.
47314         * doc/posix-functions/vprintf.texi: Likewise.
47315         * doc/posix-functions/vsnprintf.texi: Likewise.
47316         * doc/posix-functions/vsprintf.texi: Likewise.
47317         * doc/glibc-functions/obstack_printf.texi: Likewise.
47318         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47319
47320 2009-02-28  Bruno Haible  <bruno@clisp.org>
47321
47322         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47323         Reported by Loïc Minier <lool@dooz.org>.
47324
47325 2009-02-27  Bruno Haible  <bruno@clisp.org>
47326
47327         * gnulib-tool (func_import): Make the sed expression used to create the
47328         sed script for updating the .gitignore file POSIX compliant.
47329         Reported by Eric Blake.
47330
47331 2009-02-27  Bruno Haible  <bruno@clisp.org>
47332
47333         * gnulib-tool (sed): Don't alias as "sed --posix".
47334         Reported by Eric Blake.
47335
47336 2009-02-27  Bruno Haible  <bruno@clisp.org>
47337
47338         Avoid test link errors.
47339         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47340         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47341         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47342         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47344
47345 2009-02-27  Bruno Haible  <bruno@clisp.org>
47346
47347         Avoid spurious "(cached)" in configure output.
47348         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47349         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47350         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47351         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47352         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47353         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47354         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47355         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47356         Reported by Eric Blake.
47357
47358 2009-02-27  Eric Blake  <ebb9@byu.net>
47359
47360         printf: fix regression in previous patch
47361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47362
47363 2009-02-27  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47366         value.
47367         * lib/stdint.in.h: Likewise.
47368         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47369
47370 2009-02-27  Eric Blake  <ebb9@byu.net>
47371
47372         doc: mention more functions added in cygwin 1.7.0
47373         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47374         addition.
47375         * doc/posix-functions/open_wmemstream.texi: Likewise.
47376         * doc/posix-functions/wcsnlen.texi: Likewise.
47377         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47378         * doc/posix-functions/wcstod.texi: Likewise.
47379         * doc/posix-functions/wcstof.texi: Likewise.
47380         * doc/posix-functions/wcstoimax.texi: Likewise.
47381         * doc/posix-functions/wcstok.texi: Likewise.
47382         * doc/posix-functions/wcstoumax.texi: Likewise.
47383
47384         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47385         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47386         * doc/posix-functions/fprintf.texi: Update.
47387         * doc/posix-functions/printf.texi: Update.
47388         * doc/posix-functions/snprintf.texi: Update.
47389         * doc/posix-functions/sprintf.texi: Update.
47390         * doc/posix-functions/vfprintf.texi: Update.
47391         * doc/posix-functions/vprintf.texi: Update.
47392         * doc/posix-functions/vsnprintf.texi: Update.
47393         * doc/posix-functions/vsprintf.texi: Update.
47394         * doc/glibc-functions/obstack_printf.texi: Update.
47395         * doc/glibc-functions/obstack_vprintf.texi: Update.
47396
47397 2009-02-26  Eric Blake  <ebb9@byu.net>
47398
47399         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47400         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47401         compilation bug by using runtime conversion.
47402         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47403         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47404         * modules/ceill-tests (Files): Use nan.h.
47405         * modules/floorl-tests (Files): Likewise.
47406         * modules/frexpl-tests (Files): Likewise.
47407         * modules/isnanl-tests (Files): Likewise.
47408         * modules/ldexpl-tests (Files): Likewise.
47409         * modules/roundl-tests (Files): Likewise.
47410         * modules/truncl-tests (Files): Likewise.
47411         * tests/test-ceill.c (main): Use a working NaN.
47412         * tests/test-floorl.c (main): Likewise.
47413         * tests/test-frexpl.c (main): Likewise.
47414         * tests/test-isnan.c (test_long_double): Likewise.
47415         * tests/test-isnanl.h (main): Likewise.
47416         * tests/test-ldexpl.h (main): Likewise.
47417         * tests/test-roundl.h (main): Likewise.
47418         * tests/test-truncl.h (main): Likewise.
47419         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47420
47421 2009-02-26  Eric Blake  <ebb9@byu.net>
47422             Bruno Haible  <bruno@clisp.org>
47423
47424         Work around a *printf bug with %ls on Solaris.
47425         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47426         precision is specified, sprintf stops converting the wide string
47427         argument when the number of bytes that have been produced by this
47428         conversion equals or exceeds the precision.
47429         * doc/posix-functions/fprintf.texi: Update.
47430         * doc/posix-functions/printf.texi: Update.
47431         * doc/posix-functions/snprintf.texi: Update.
47432         * doc/posix-functions/sprintf.texi: Update.
47433         * doc/posix-functions/vfprintf.texi: Update.
47434         * doc/posix-functions/vprintf.texi: Update.
47435         * doc/posix-functions/vsnprintf.texi: Update.
47436         * doc/posix-functions/vsprintf.texi: Update.
47437         * doc/glibc-functions/obstack_printf.texi: Update.
47438         * doc/glibc-functions/obstack_vprintf.texi: Update.
47439
47440 2009-02-26  Eric Blake  <ebb9@byu.net>
47441
47442         stdlib: favor compiler check of random.h
47443         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47444         to avoid an ObjC random.h installed by Swarm.
47445
47446 2009-02-26  Bruno Haible  <bruno@clisp.org>
47447
47448         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47449         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47450         Reported by Gary V. Vaughan <gary@gnu.org>.
47451
47452 2009-02-26  Bruno Haible  <bruno@clisp.org>
47453
47454         Fix *printf behaviour regarding the %ls directive.
47455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47456         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47457         NEED_PRINTF_DIRECTIVE_LS.
47458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47459         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47461         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47462         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47463         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47464         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47465         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47469         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47470         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47471         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47472         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47473         * doc/posix-functions/fprintf.texi: Update.
47474         * doc/posix-functions/printf.texi: Update.
47475         * doc/posix-functions/snprintf.texi: Update.
47476         * doc/posix-functions/sprintf.texi: Update.
47477         * doc/posix-functions/vfprintf.texi: Update.
47478         * doc/posix-functions/vprintf.texi: Update.
47479         * doc/posix-functions/vsnprintf.texi: Update.
47480         * doc/posix-functions/vsprintf.texi: Update.
47481         * doc/glibc-functions/obstack_printf.texi: Update.
47482         * doc/glibc-functions/obstack_vprintf.texi: Update.
47483         Reported by Eric Blake.
47484
47485 2009-02-25  Bruno Haible  <bruno@clisp.org>
47486
47487         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47488         with known value.
47489         Reported by Gary V. Vaughan <gary@gnu.org>.
47490
47491 2009-02-25  Bruno Haible  <bruno@clisp.org>
47492
47493         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47494         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47495         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47496         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47497         Reported by Gary V. Vaughan <gary@gnu.org>.
47498
47499 2009-02-25  Bruno Haible  <bruno@clisp.org>
47500
47501         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47502         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47503         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47504         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47505         Reported by Gary V. Vaughan <gary@gnu.org>.
47506
47507 2009-02-25  Eric Blake  <ebb9@byu.net>
47508
47509         tests: skip fseek/ftell tests if ungetc is broken
47510         * m4/ungetc.m4: New file.
47511         * modules/fseek-tests: Split test, so ungetc dependency is
47512         separate from rest of test.
47513         * modules/fseeko-tests: Likewise.
47514         * modules/ftell-tests: Likewise.
47515         * modules/ftello-tests: Likewise.
47516         * tests/test-fseek.c (main): Isolate ungetc dependency.
47517         * tests/test-fseeko.c (main): Likewise.
47518         * tests/test-ftell.c (main): Likewise.
47519         * tests/test-ftello.c (main): Likewise.
47520         * tests/test-fseek2.sh: New file.
47521         * tests/test-fseeko2.sh: Likewise.
47522         * tests/test-ftell2.sh: Likewise.
47523         * tests/test-ftello2.sh: Likewise.
47524
47525 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47526
47527         test-getaddrinfo: fix usage of skip return code 77
47528         * tests/test-gettaddrinfo.c: Return skip code 77 only
47529         for first occurrence of skip (4x77 is not 77)
47530
47531 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47532
47533         strtod: avoid C99 decl-after-statement
47534         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47535
47536 2009-02-24  Eric Blake  <ebb9@byu.net>
47537
47538         strtod: detect HP-UX 11.31 bug
47539         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47540         Reported by Gary V. Vaughan.
47541
47542 2009-02-23  Bruno Haible  <bruno@clisp.org>
47543
47544         Fix invalid read past end of memory block.
47545         * lib/vasnprintf.c (DCHAR_SET): Define.
47546         (local_wcslen): Define only when needed.
47547         (local_strnlen, local_wcsnlen): New functions.
47548         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47549         directives that involve a conversion ourselves.
47550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47551         wcsnlen, mbrtowc, wcrtomb.
47552         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47553         * tests/test-vasprintf-posix.c (test_function): Likewise.
47554         * tests/test-snprintf-posix.h (test_function): Likewise.
47555         * tests/test-sprintf-posix.h (test_function): Likewise.
47556         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47557
47558 2009-02-22  Bruno Haible  <bruno@clisp.org>
47559
47560         Implement new clarified decomposition of Hangul syllables.
47561         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47562         of type LTV, return only a pairwise decomposition.
47563         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47564         Likewise.
47565         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47566         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47567         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47568
47569 2009-02-22  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47572         zero-length results and shrink excess allocated memory.
47573         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47574         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47575         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47576         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47577         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47578         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47579         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47580         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47581         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47582         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47583         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47584         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47585
47586 2009-02-21  Bruno Haible  <bruno@clisp.org>
47587
47588         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47589         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47590         spaces after a period. Put a space between a macro name and its
47591         argument list. Trivial rewordings.
47592         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47593         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47594         (main): Return 0 explicitly.
47595
47596 2009-02-21  Bruno Haible  <bruno@clisp.org>
47597
47598         Tests for module 'uninorm/filter'.
47599         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47600         * modules/uninorm/filter-tests: New file.
47601
47602         New module 'uninorm/filter'.
47603         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47604         uninorm_filter_flush, uninorm_filter_free): New declarations.
47605         * lib/uninorm/uninorm-filter.c: New file.
47606         * modules/uninorm/filter: New file.
47607
47608 2009-02-21  Bruno Haible  <bruno@clisp.org>
47609
47610         Tests for module 'uninorm/nfkc'.
47611         * tests/uninorm/test-nfkc.c: New file.
47612         * tests/uninorm/test-u8-nfkc.c: New file.
47613         * tests/uninorm/test-u16-nfkc.c: New file.
47614         * tests/uninorm/test-u32-nfkc.c: New file.
47615         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47616         * tests/uninorm/test-u32-nfkc-big.c: New file.
47617         * modules/uninorm/nfkc-tests: New file.
47618
47619         New module 'uninorm/nfkc'.
47620         * lib/uninorm/nfkc.c: New file.
47621         * modules/uninorm/nfkc: New file.
47622
47623         Tests for module 'uninorm/nfkd'.
47624         * tests/uninorm/test-nfkd.c: New file.
47625         * tests/uninorm/test-u8-nfkd.c: New file.
47626         * tests/uninorm/test-u16-nfkd.c: New file.
47627         * tests/uninorm/test-u32-nfkd.c: New file.
47628         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47629         * tests/uninorm/test-u32-nfkd-big.c: New file.
47630         * modules/uninorm/nfkd-tests: New file.
47631
47632         New module 'uninorm/nfkd'.
47633         * lib/uninorm/nfkd.c: New file.
47634         * modules/uninorm/nfkd: New file.
47635
47636         Tests for module 'uninorm/nfc'.
47637         * tests/uninorm/test-nfc.c: New file.
47638         * tests/uninorm/test-u8-nfc.c: New file.
47639         * tests/uninorm/test-u16-nfc.c: New file.
47640         * tests/uninorm/test-u32-nfc.c: New file.
47641         * tests/uninorm/test-u32-nfc-big.sh: New file.
47642         * tests/uninorm/test-u32-nfc-big.c: New file.
47643         * modules/uninorm/nfc-tests: New file.
47644
47645         New module 'uninorm/nfc'.
47646         * lib/uninorm/nfc.c: New file.
47647         * modules/uninorm/nfc: New file.
47648
47649         Tests for module 'uninorm/nfd'.
47650         * tests/uninorm/test-nfd.c: New file.
47651         * tests/uninorm/test-u8-nfd.c: New file.
47652         * tests/uninorm/test-u16-nfd.c: New file.
47653         * tests/uninorm/test-u32-nfd.c: New file.
47654         * tests/uninorm/test-u32-nfd-big.sh: New file.
47655         * tests/uninorm/test-u32-nfd-big.c: New file.
47656         * tests/uninorm/test-u32-normalize-big.h: New file.
47657         * tests/uninorm/test-u32-normalize-big.c: New file.
47658         * tests/uninorm/NormalizationTest.txt: New file, created from
47659         Unicode 5.1.0 NormalizationTest.txt.
47660         * modules/uninorm/nfd-tests: New file.
47661
47662         New module 'uninorm/nfd'.
47663         * lib/uninorm/nfd.c: New file.
47664         * modules/uninorm/nfd: New file.
47665
47666         New module 'uninorm/u32-normalize'.
47667         * lib/uninorm/u32-normalize.c: New file.
47668         * modules/uninorm/u32-normalize: New file.
47669
47670         New module 'uninorm/u16-normalize'.
47671         * lib/uninorm/u16-normalize.c: New file.
47672         * modules/uninorm/u16-normalize: New file.
47673
47674         New module 'uninorm/u8-normalize'.
47675         * lib/uninorm/u8-normalize.c: New file.
47676         * lib/uninorm/normalize-internal.h: New file.
47677         * lib/uninorm/u-normalize-internal.h: New file.
47678         * modules/uninorm/u8-normalize: New file.
47679
47680         New module 'uninorm/decompose-internal'.
47681         * lib/uninorm/decompose-internal.c: New file.
47682         * modules/uninorm/decompose-internal: New file.
47683
47684         Tests for module 'uninorm/composition'.
47685         * tests/uninorm/test-composition.c: New file.
47686         * modules/uninorm/composition-tests: New file.
47687
47688         New module 'uninorm/composition'.
47689         * lib/uninorm/composition.c: New file.
47690         * lib/uninorm/composition-table.gperf: New file, generated by
47691         gen-uni-tables.
47692         * modules/uninorm/composition: New file.
47693
47694         Tests for module 'uninorm/compat-decomposition'.
47695         * tests/uninorm/test-compat-decomposition.c: New file.
47696         * modules/uninorm/compat-decomposition-tests: New file.
47697
47698         New module 'uninorm/compat-decomposition'.
47699         * lib/uninorm/decompose-internal.h: New file.
47700         * lib/uninorm/compat-decomposition.c: New file.
47701         * modules/uninorm/compat-decomposition: New file.
47702
47703         Tests for module 'uninorm/canonical-decomposition'.
47704         * tests/uninorm/test-canonical-decomposition.c: New file.
47705         * modules/uninorm/canonical-decomposition-tests: New file.
47706
47707         New module 'uninorm/canonical-decomposition'.
47708         * lib/uninorm/canonical-decomposition.c: New file.
47709         * modules/uninorm/canonical-decomposition: New file.
47710
47711         Tests for module 'uninorm/decomposition'.
47712         * tests/uninorm/test-decomposition.c: New file.
47713         * modules/uninorm/decomposition-tests: New file.
47714
47715         New module 'uninorm/decomposition'.
47716         * lib/uninorm/decomposition.c: New file.
47717         * modules/uninorm/decomposition: New file.
47718
47719         New module 'uninorm/decomposition-table'.
47720         * lib/uninorm/decomposition-table.h: New file.
47721         * lib/uninorm/decomposition-table.c: New file.
47722         * lib/uninorm/decomposition-table1.h: New file, generated by
47723         gen-uni-tables.
47724         * lib/uninorm/decomposition-table2.h: New file, generated by
47725         gen-uni-tables.
47726         * modules/uninorm/decomposition-table: New file.
47727
47728         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47729         (UC_DECOMP_*): New enumeration items.
47730         (get_decomposition): New function.
47731         (struct decomp_table): New type.
47732         (output_decomposition, output_decomposition_tables): New functions.
47733         (unicode_composition_exclusions): New variable.
47734         (fill_composition_exclusions, debug_output_composition_tables): New
47735         functions.
47736         (main): Accept one more argument. Invoke fill_composition_exclusions.
47737         Output decomposition and composition tables.
47738
47739         New module 'uninorm/base'.
47740         * lib/uninorm.h: New file.
47741         * lib/unictype.h: Update comment.
47742         * modules/uninorm/base: New file.
47743
47744 2009-02-21  David Lutterkort  <lutter@redhat.com>
47745
47746         Tests for module 'safe-alloc'.
47747         * tests/test-safe-alloc.c: New file.
47748         * modules/safe-alloc-tests: New file.
47749
47750         New module 'safe-alloc'.
47751         * lib/safe-alloc.h: New file.
47752         * lib/safe-alloc.c: New file.
47753         * m4/safe-alloc.m4: New file.
47754         * modules/safe-alloc: New file.
47755         * doc/safe-alloc.texi: New file.
47756         * doc/gnulib.texi: Include it.
47757         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47758         safe-alloc.
47759
47760 2009-02-18  Bruno Haible  <bruno@clisp.org>
47761
47762         Fix link error on non-glibc systems.
47763         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47764         variable.
47765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47766
47767 2009-02-18  Jim Meyering  <meyering@redhat.com>
47768
47769         fts: avoid used-uninitialized error due to recent change
47770         * lib/fts.c (fts_read): Guard uses of the new member,
47771         parent->fts_n_dirs_remaining, since it's not relevant for
47772         the parent of a directory specified on the command-line.
47773
47774 2009-02-17  James Youngman  <jay@gnu.org>
47775             Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/include_next.m4: Reformulate comment.
47778
47779 2009-02-16  Jim Meyering  <meyering@redhat.com>
47780
47781         fts: add #if guards so that the fts_lgpl module still builds
47782         * lib/fts.c: Guard just-added hash-table-using parts with
47783         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47784         Reported by Simon Josefsson.
47785
47786 2009-02-15  Bruno Haible  <bruno@clisp.org>
47787
47788         * modules/array-mergesort-tests: New file.
47789         * tests/test-array-mergesort.c: New file.
47790
47791         New module 'array-mergesort'.
47792         * modules/array-mergesort: New file.
47793         * lib/array-mergesort.h: New file.
47794
47795 2009-02-15  Bruno Haible  <bruno@clisp.org>
47796
47797         Fix 2009-02-07 commit.
47798         * lib/gen-uni-tables.c (output_predicate, output_category,
47799         output_combclass, output_bidi_category, output_decimal_digit,
47800         output_digit, output_numeric, output_mirror, output_scripts,
47801         output_ident_category, output_simple_mapping): Fix format directives.
47802         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47803
47804 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47805
47806         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47807         fixes are available from IBM.
47808
47809 2009-02-13  Jim Meyering  <meyering@redhat.com>
47810
47811         fts: arrange not to stat non-directories in more cases
47812         This makes GNU find (when it doesn't need to stat each file)
47813         *much* more efficient at traversing reiserfs file systems.
47814         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47815         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47816         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47817         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47818         (leaf_optimization_applies): New function.
47819         (LCO_hash, LCO_compare): New helper functions.
47820         (link_count_optimize_ok): New function.
47821         (fts_stat): Initialize new member (if dir).
47822         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47823         we've just stat'ed a directory.  Skip the stat call when possible.
47824         ---
47825         Note this AFS-related exchange:
47826         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47827         and note find's pioctl call in find/fstype.c.
47828         But that is necessary only if you want to enable the
47829         optimization for AFS, and for now, I don't.
47830
47831         fts: move a function definition "up" (no semantic change)
47832         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47833         "up" to precede upcoming use of a related function.
47834
47835 2009-02-11  Jim Meyering  <meyering@redhat.com>
47836
47837         fts: correct internal computation of nlinks (optimization-related)
47838         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47839         whether the current entry is a directory, so don't test it.
47840
47841 2009-02-10  Bruno Haible  <bruno@clisp.org>
47842
47843         Tests for module 'uniwbrk/ulc-wordbreaks'.
47844         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47845         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47846         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47847
47848         Tests for module 'uniwbrk/u32-wordbreaks'.
47849         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47850         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47851
47852         Tests for module 'uniwbrk/u16-wordbreaks'.
47853         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47854         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47855
47856         Tests for module 'uniwbrk/u8-wordbreaks'.
47857         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47858         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47859
47860 2009-02-10  Bruno Haible  <bruno@clisp.org>
47861
47862         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47863         property.
47864         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47865         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47866         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47867
47868 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47869
47870         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47871         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47872
47873 2009-02-10  Bruno Haible  <bruno@clisp.org>
47874
47875         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47876         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47877         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47878         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47879         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47880         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47881
47882 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47883
47884         * lib/sockets.h (gl_fd_to_handle): New function.
47885
47886         * tests/test-sockets.c: Call gl_fd_to_handle.
47887
47888 2009-02-09  Bruno Haible  <bruno@clisp.org>
47889
47890         * doc/havelib.texi: Document the conventions on bi-arch systems.
47891
47892 2009-02-08  Bruno Haible  <bruno@clisp.org>
47893
47894         Document the AC_LIB_LINKFLAGS macro.
47895         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47896         * doc/gnulib.texi: Include it.
47897
47898 2009-02-08  Bruno Haible  <bruno@clisp.org>
47899
47900         Fix wrong order of sections, compared to TOC.
47901         * doc/gnulib.texi: Include relocatable-maint.texi after the
47902         "Regular expressions" node, not before.
47903
47904 2009-02-08  Bruno Haible  <bruno@clisp.org>
47905
47906         Tests for module 'unicase/totitle'.
47907         * modules/unicase/totitle-tests: New file.
47908
47909         Tests for module 'unicase/tolower'.
47910         * modules/unicase/tolower-tests: New file.
47911
47912         Tests for module 'unicase/toupper'.
47913         * modules/unicase/toupper-tests: New file.
47914         * tests/unicase/test-mapping-part1.h: New file.
47915         * tests/unicase/test-mapping-part2.h: New file.
47916
47917         New module 'unicase/totitle'.
47918         * modules/unicase/totitle: New file.
47919         * lib/unicase/totitle.c: New file.
47920
47921         New module 'unicase/tolower'.
47922         * modules/unicase/tolower: New file.
47923         * lib/unicase/tolower.c: New file.
47924
47925         New module 'unicase/toupper'.
47926         * modules/unicase/toupper: New file.
47927         * lib/unicase/toupper.c: New file.
47928         * lib/unicase/simple-mapping.h: New file.
47929
47930         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47931         (mapping_table): New structure.
47932         (output_simple_mapping): New function.
47933         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47934         * modules/gen-uni-tables (Description): Update.
47935         * lib/unicase/toupper.h: New file, automatically generated by
47936         gen-uni-tables.
47937         * lib/unicase/tolower.h: New file, automatically generated by
47938         gen-uni-tables.
47939         * lib/unicase/totitle.h: New file, automatically generated by
47940         gen-uni-tables.
47941         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47942         gen-uni-tables.
47943         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47944         gen-uni-tables.
47945         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47946         gen-uni-tables.
47947
47948         New module 'unicase/base'.
47949         * modules/unicase/base: New file.
47950         * lib/unicase.h: New file.
47951
47952 2009-02-08  Bruno Haible  <bruno@clisp.org>
47953
47954         New module 'uniwbrk/ulc-wordbreaks'.
47955         * modules/uniwbrk/ulc-wordbreaks: New file.
47956         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47957
47958         New module 'uniwbrk/u32-wordbreaks'.
47959         * modules/uniwbrk/u32-wordbreaks: New file.
47960         * lib/uniwbrk/u32-wordbreaks.c: New file.
47961
47962         New module 'uniwbrk/u16-wordbreaks'.
47963         * modules/uniwbrk/u16-wordbreaks: New file.
47964         * lib/uniwbrk/u16-wordbreaks.c: New file.
47965
47966         New module 'uniwbrk/u8-wordbreaks'.
47967         * modules/uniwbrk/u8-wordbreaks: New file.
47968         * lib/uniwbrk/u8-wordbreaks.c: New file.
47969         * lib/uniwbrk/u-wordbreaks.h: New file.
47970
47971         New module 'uniwbrk/table'.
47972         * modules/uniwbrk/table: New file.
47973         * lib/uniwbrk/wbrktable.h: New file.
47974         * lib/uniwbrk/wbrktable.c: New file.
47975
47976         New module 'uniwbrk/wordbreak-property'.
47977         * modules/uniwbrk/wordbreak-property: New file.
47978         * lib/uniwbrk/wordbreak-property.c: New file.
47979
47980         * lib/gen-uni-tables.c (WBP_*): New enum items.
47981         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47982         (unicode_org_wbp): New variable.
47983         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47984         New functions.
47985         (wbp_table): New structure.
47986         (output_wbp, output_wbrk_tables): New functions.
47987         (main): Accept additional argument. Invoke fill_org_wbp,
47988         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47989         output_wbrk_tables.
47990         * modules/gen-uni-tables (Description): Update.
47991         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47992         gen-uni-tables.
47993
47994         New module 'uniwbrk/base'.
47995         * modules/uniwbrk/base: New file.
47996         * lib/uniwbrk.h: New file.
47997
47998 2009-02-08  Bruno Haible  <bruno@clisp.org>
47999
48000         Update to Unicode 5.1.0.
48001         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48002         U+2185..U+2188.
48003         (is_property_default_ignorable_code_point): Don't include characters
48004         of category Cc or Cs and not-a-characters.
48005         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48006         U+0D79, U+109E, U+109F, U+A60C.
48007         * lib/unictype/bidi_of.h: Regenerated.
48008         * lib/unictype/blocks.h: Regenerated.
48009         * lib/unictype/categ_C.h: Regenerated.
48010         * lib/unictype/categ_Cf.h: Regenerated.
48011         * lib/unictype/categ_Cn.h: Regenerated.
48012         * lib/unictype/categ_L.h: Regenerated.
48013         * lib/unictype/categ_Ll.h: Regenerated.
48014         * lib/unictype/categ_Lm.h: Regenerated.
48015         * lib/unictype/categ_Lo.h: Regenerated.
48016         * lib/unictype/categ_Lu.h: Regenerated.
48017         * lib/unictype/categ_M.h: Regenerated.
48018         * lib/unictype/categ_Mc.h: Regenerated.
48019         * lib/unictype/categ_Me.h: Regenerated.
48020         * lib/unictype/categ_Mn.h: Regenerated.
48021         * lib/unictype/categ_N.h: Regenerated.
48022         * lib/unictype/categ_Nd.h: Regenerated.
48023         * lib/unictype/categ_Nl.h: Regenerated.
48024         * lib/unictype/categ_No.h: Regenerated.
48025         * lib/unictype/categ_P.h: Regenerated.
48026         * lib/unictype/categ_Pd.h: Regenerated.
48027         * lib/unictype/categ_Pe.h: Regenerated.
48028         * lib/unictype/categ_Pf.h: Regenerated.
48029         * lib/unictype/categ_Pi.h: Regenerated.
48030         * lib/unictype/categ_Po.h: Regenerated.
48031         * lib/unictype/categ_Ps.h: Regenerated.
48032         * lib/unictype/categ_S.h: Regenerated.
48033         * lib/unictype/categ_Sk.h: Regenerated.
48034         * lib/unictype/categ_Sm.h: Regenerated.
48035         * lib/unictype/categ_So.h: Regenerated.
48036         * lib/unictype/categ_of.h: Regenerated.
48037         * lib/unictype/combining.h: Regenerated.
48038         * lib/unictype/ctype_alnum.h: Regenerated.
48039         * lib/unictype/ctype_alpha.h: Regenerated.
48040         * lib/unictype/ctype_graph.h: Regenerated.
48041         * lib/unictype/ctype_lower.h: Regenerated.
48042         * lib/unictype/ctype_print.h: Regenerated.
48043         * lib/unictype/ctype_punct.h: Regenerated.
48044         * lib/unictype/ctype_upper.h: Regenerated.
48045         * lib/unictype/decdigit.h: Regenerated.
48046         * lib/unictype/digit.h: Regenerated.
48047         * lib/unictype/mirror.h: Regenerated.
48048         * lib/unictype/numeric.h: Regenerated.
48049         * lib/unictype/pr_alphabetic.h: Regenerated.
48050         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48051         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48052         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48053         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48054         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48055         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48056         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48057         * lib/unictype/pr_combining.h: Regenerated.
48058         * lib/unictype/pr_dash.h: Regenerated.
48059         * lib/unictype/pr_decimal_digit.h: Regenerated.
48060         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48061         * lib/unictype/pr_deprecated.h: Regenerated.
48062         * lib/unictype/pr_diacritic.h: Regenerated.
48063         * lib/unictype/pr_extender.h: Regenerated.
48064         * lib/unictype/pr_format_control.h: Regenerated.
48065         * lib/unictype/pr_grapheme_base.h: Regenerated.
48066         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48067         * lib/unictype/pr_grapheme_link.h: Regenerated.
48068         * lib/unictype/pr_id_continue.h: Regenerated.
48069         * lib/unictype/pr_id_start.h: Regenerated.
48070         * lib/unictype/pr_ideographic.h: Regenerated.
48071         * lib/unictype/pr_ignorable_control.h: Regenerated.
48072         * lib/unictype/pr_lowercase.h: Regenerated.
48073         * lib/unictype/pr_math.h: Regenerated.
48074         * lib/unictype/pr_numeric.h: Regenerated.
48075         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48076         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48077         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48078         * lib/unictype/pr_other_id_continue.h: Regenerated.
48079         * lib/unictype/pr_other_lowercase.h: Regenerated.
48080         * lib/unictype/pr_other_math.h: Regenerated.
48081         * lib/unictype/pr_punctuation.h: Regenerated.
48082         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48083         * lib/unictype/pr_soft_dotted.h: Regenerated.
48084         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48085         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48086         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48087         * lib/unictype/pr_uppercase.h: Regenerated.
48088         * lib/unictype/pr_xid_continue.h: Regenerated.
48089         * lib/unictype/pr_xid_start.h: Regenerated.
48090         * lib/unictype/pr_zero_width.h: Regenerated.
48091         * lib/unictype/scripts.h: Regenerated.
48092         * lib/unictype/scripts_byname.gperf: Regenerated.
48093         * lib/unictype/sy_java_ident.h: Regenerated.
48094         * lib/unilbrk/lbrkprop1.h: Regenerated.
48095         * lib/unilbrk/lbrkprop2.h: Regenerated.
48096         * tests/unictype/test-categ_C.c: Regenerated.
48097         * tests/unictype/test-categ_Cf.c: Regenerated.
48098         * tests/unictype/test-categ_Cn.c: Regenerated.
48099         * tests/unictype/test-categ_L.c: Regenerated.
48100         * tests/unictype/test-categ_Ll.c: Regenerated.
48101         * tests/unictype/test-categ_Lm.c: Regenerated.
48102         * tests/unictype/test-categ_Lo.c: Regenerated.
48103         * tests/unictype/test-categ_Lu.c: Regenerated.
48104         * tests/unictype/test-categ_M.c: Regenerated.
48105         * tests/unictype/test-categ_Mc.c: Regenerated.
48106         * tests/unictype/test-categ_Me.c: Regenerated.
48107         * tests/unictype/test-categ_Mn.c: Regenerated.
48108         * tests/unictype/test-categ_N.c: Regenerated.
48109         * tests/unictype/test-categ_Nd.c: Regenerated.
48110         * tests/unictype/test-categ_Nl.c: Regenerated.
48111         * tests/unictype/test-categ_No.c: Regenerated.
48112         * tests/unictype/test-categ_P.c: Regenerated.
48113         * tests/unictype/test-categ_Pd.c: Regenerated.
48114         * tests/unictype/test-categ_Pe.c: Regenerated.
48115         * tests/unictype/test-categ_Pf.c: Regenerated.
48116         * tests/unictype/test-categ_Pi.c: Regenerated.
48117         * tests/unictype/test-categ_Po.c: Regenerated.
48118         * tests/unictype/test-categ_Ps.c: Regenerated.
48119         * tests/unictype/test-categ_S.c: Regenerated.
48120         * tests/unictype/test-categ_Sk.c: Regenerated.
48121         * tests/unictype/test-categ_Sm.c: Regenerated.
48122         * tests/unictype/test-categ_So.c: Regenerated.
48123         * tests/unictype/test-ctype_alnum.c: Regenerated.
48124         * tests/unictype/test-ctype_alpha.c: Regenerated.
48125         * tests/unictype/test-ctype_graph.c: Regenerated.
48126         * tests/unictype/test-ctype_lower.c: Regenerated.
48127         * tests/unictype/test-ctype_print.c: Regenerated.
48128         * tests/unictype/test-ctype_punct.c: Regenerated.
48129         * tests/unictype/test-ctype_upper.c: Regenerated.
48130         * tests/unictype/test-decdigit.h: Regenerated.
48131         * tests/unictype/test-digit.h: Regenerated.
48132         * tests/unictype/test-numeric.h: Regenerated.
48133         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48134         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48135         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48136         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48137         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48138         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48139         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48140         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48141         * tests/unictype/test-pr_combining.c: Regenerated.
48142         * tests/unictype/test-pr_dash.c: Regenerated.
48143         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48144         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48145         * tests/unictype/test-pr_deprecated.c: Regenerated.
48146         * tests/unictype/test-pr_diacritic.c: Regenerated.
48147         * tests/unictype/test-pr_extender.c: Regenerated.
48148         * tests/unictype/test-pr_format_control.c: Regenerated.
48149         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48150         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48151         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48152         * tests/unictype/test-pr_id_continue.c: Regenerated.
48153         * tests/unictype/test-pr_id_start.c: Regenerated.
48154         * tests/unictype/test-pr_ideographic.c: Regenerated.
48155         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48156         * tests/unictype/test-pr_lowercase.c: Regenerated.
48157         * tests/unictype/test-pr_math.c: Regenerated.
48158         * tests/unictype/test-pr_numeric.c: Regenerated.
48159         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48160         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48161         Regenerated.
48162         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48163         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48164         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48165         * tests/unictype/test-pr_other_math.c: Regenerated.
48166         * tests/unictype/test-pr_punctuation.c: Regenerated.
48167         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48168         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48169         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48170         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48171         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48172         * tests/unictype/test-pr_uppercase.c: Regenerated.
48173         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48174         * tests/unictype/test-pr_xid_start.c: Regenerated.
48175         * tests/unictype/test-pr_zero_width.c: Regenerated.
48176
48177         Update to Unicode 5.1.0.
48178         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48179         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48180         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48181         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48182         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48183         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48184         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48185         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48186         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48187         (nonspacing_table_ind): Update.
48188         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48189
48190         Update to Unicode 5.1.0.
48191         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48192         code transform.
48193         * lib/uniname/uniname.c (unicode_character_name,
48194         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48195         * lib/uniname/uninames.h: Regenerated.
48196         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48197
48198 2009-02-07  Bruno Haible  <bruno@clisp.org>
48199
48200         Merge gen-ctype and gen-lbrk into a single program.
48201         * lib/gen-uni-tables.c: New file, incorporating
48202         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48203         Add directory prefixes to the names of the generated files.
48204         * lib/unictype/gen-ctype.c: Remove file.
48205         * lib/unilbrk/gen-lbrk.c: Remove file.
48206         * modules/gen-uni-tables: New file.
48207         * modules/unictype/gen-ctype: Remove file.
48208         * modules/unilbrk/gen-lbrk: Remove file.
48209
48210 2009-02-07  Bruno Haible  <bruno@clisp.org>
48211
48212         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48213
48214         New module 'unistr/u32-strcoll'.
48215         * modules/unistr/u32-strcoll: New file.
48216         * lib/unistr/u32-strcoll.c: New file.
48217
48218         New module 'unistr/u16-strcoll'.
48219         * modules/unistr/u16-strcoll: New file.
48220         * lib/unistr/u16-strcoll.c: New file.
48221
48222         New module 'unistr/u8-strcoll'.
48223         * modules/unistr/u8-strcoll: New file.
48224         * lib/unistr/u8-strcoll.c: New file.
48225         * lib/unistr/u-strcoll.h: New file.
48226
48227 2009-02-07  Bruno Haible  <bruno@clisp.org>
48228
48229         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48230         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48231         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48232         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48233         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48234         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48235
48236 2009-02-07  Bruno Haible  <bruno@clisp.org>
48237
48238         Make 64-bit clean.
48239         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48240         output_combclass, output_bidi_category, output_decimal_digit,
48241         output_digit, output_numeric, output_mirror, output_scripts,
48242         output_ident_category): Use proper width specifier in format strings.
48243
48244 2009-02-07  Bruno Haible  <bruno@clisp.org>
48245
48246         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48247         failure behaviour.
48248
48249 2009-02-07  Jim Meyering  <meyering@redhat.com>
48250
48251         regex: avoid compilation failure with upcoming gcc-4.4
48252         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48253         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48254         "... error: integer overflow in preprocessor expression".
48255
48256 2009-02-05  Ben Pfaff  <blp@gnu.org>
48257
48258         Fix link errors on Windows when close module is used.
48259         * modules/close: Add $(LIB_CLOSE) to Link section.
48260         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48261         $(LIB_CLOSE) on Windows.
48262
48263 2009-02-05  Jim Meyering  <meyering@redhat.com>
48264
48265         still avoid unused-parameter warnings, but do it cleanly
48266         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48267         (get_fs_usage): Cast to void instead.
48268         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48269         (dev_from_mount_options, read_file_system_list): Cast to void.
48270         Prompted by Bruno Haible.
48271
48272 2009-02-04  Jim Meyering  <meyering@redhat.com>
48273
48274         fsusage.c: correct copyright year
48275         * lib/fsusage.c: Reflect year in which the change is pushed into
48276
48277         avoid misc. warnings
48278         * lib/fsusage.c (UNUSED_PARAM): Define.
48279         (get_fs_usage): Mark parameter "disk" as unused.
48280         * lib/getugroups.c (getgrent): Use "void" in prototype.
48281         * lib/mountlist.c: Mark unused parameters.
48282         (read_file_system_list): Declare a local with "const".
48283         * lib/nanosleep.c (getnow): Declare static.
48284         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48285
48286         dirfd: set errno upon failure
48287         * lib/dirfd.c: Include <errno.h>.
48288         Set errno to ENOTSUP when returning -1.
48289         * modules/dirfd (Depends-on): Add errno.
48290         Suggested by John Kodis <kodis@comcast.net>.
48291
48292 2009-02-01  Bruno Haible  <bruno@clisp.org>
48293
48294         Don't assume sizeof (long) >= sizeof (void *).
48295         * lib/memcmp.c: Include stdint.h.
48296         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48297         srcp2 to 'const byte *'.
48298         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48299         types to uintptr_t.
48300         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48301         * modules/memcmp (Depends-on): Add stdint.
48302         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48303
48304 2009-01-30  Eric Blake  <ebb9@byu.net>
48305
48306         fix more require-before-expand issues
48307         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48308         expand, AC_PROG_AWK.
48309         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48310
48311 2009-01-28  Eric Blake  <ebb9@byu.net>
48312
48313         version-etc: use consistent URL formatting
48314         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48315         Improve formatting.  Use fputs for string without %.
48316
48317 2009-01-28  Jim Meyering  <meyering@redhat.com>
48318
48319         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48320         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48321         "underquoted definition of NAME" from autoconf-2.59.
48322
48323 2009-01-28  Bruno Haible  <bruno@clisp.org>
48324
48325         * doc/gnulib.texi: Add "Obsolete modules" to index.
48326
48327 2009-01-28  Jim Meyering  <meyering@redhat.com>
48328
48329         useless-if-before-free: recognize more variants
48330         * build-aux/useless-if-before-free: Also recognize e.g.,
48331         if (NULL != p) free (p);
48332
48333 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48334
48335         test-getaddrinfo: skip (don't fail) this test when there's no network
48336         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48337         on the presumption that it means you lack network access.
48338
48339 2009-01-26  Jim Meyering  <meyering@redhat.com>
48340
48341         fflush: avoid warnings on modern systems
48342         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48343         pos and result, into scopes where they're used.
48344
48345 2009-01-26  Eric Blake  <ebb9@byu.net>
48346
48347         Silence warning reintroduced by recent extensions patch.
48348         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48349         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48350         autoconf.
48351
48352         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48353         * m4/00gnulib.m4: New file.
48354         * gnulib-tool (func_get_filelist): Always use it.
48355         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48356         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48357
48358 2009-01-25  Bruno Haible  <bruno@clisp.org>
48359
48360         Make test-quotearg work on MacOS X and AIX.
48361         * tests/test-quotearg.sh: New file.
48362         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48363         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48364         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48365         include <libintl.h>.
48366         (fake_locale): Remove variable.
48367         (gettext, dgettext, dcgettext): Remove functions.
48368         (main): Instead of setting a fake locale, set a real locale. Call
48369         textdomain and bindtextdomain.
48370         * modules/quotearg-tests (Files): Add the new files.
48371         (Depends-on): Add gettext, setenv, unsetenv.
48372         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48373         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48374         Augment TESTS_ENVIRONMENT.
48375
48376 2009-01-25  Bruno Haible  <bruno@clisp.org>
48377
48378         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48379         fr_FR.ISO8859-1 locale on MacOS X.
48380         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48381         ja_JP.eucJP locale on MacOS X.
48382         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48383         zh_CN.GB18030 locale on MacOS X.
48384
48385 2009-01-25  Bruno Haible  <bruno@clisp.org>
48386
48387         Avoid link errors on MacOS X 10.3.
48388         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48389         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48390
48391 2009-01-25  Bruno Haible  <bruno@clisp.org>
48392
48393         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48394         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48395         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48396         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48397         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48398         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48399         posix_spawnattr_init, posix_spawnattr_setsigmask,
48400         posix_spawnattr_setflags, posix_spawnattr_destroy.
48401
48402         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48403         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48404         * modules/execute (Files): Remove m4/posix_spawn.m4.
48405         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48406         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48407         posix_spawnattr_init, posix_spawnattr_setsigmask,
48408         posix_spawnattr_setflags, posix_spawnattr_destroy.
48409
48410 2009-01-25  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/glthread/threadlib.c: Include <stdlib.h>.
48413
48414 2009-01-25  Bruno Haible  <bruno@clisp.org>
48415
48416         * lib/glthread/threadlib.c (dummy): New declaration.
48417
48418 2009-01-25  Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48421         multibyte characters also for the GB18030 encoding. Don't crash when
48422         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48423
48424 2009-01-25  Bruno Haible  <bruno@clisp.org>
48425
48426         Avoid redefining 'struct random_data' on OSF/1 5.1.
48427         * lib/stdlib.in.h: Include <random.h> if it exists.
48428         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48429         HAVE_RANDOM_H. Include <random.h> when testing whether
48430         'struct random_data' exists.
48431         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48432
48433 2009-01-25  Bruno Haible  <bruno@clisp.org>
48434
48435         Don't install charset.alias on MacOS X >= 10.3.
48436         * lib/localcharset.c (DARWIN7): New macro.
48437         (get_charset_aliases): Hardcode the result for Darwin7.
48438         * modules/localcharset (install-exec-local): Don't install
48439         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48440
48441 2009-01-25  Bruno Haible  <bruno@clisp.org>
48442
48443         Don't install charset.alias on mingw and Cygwin.
48444         * modules/localcharset (install-exec-local): Don't install
48445         charset.alias on mingw and Cygwin, if the file does not yet exist.
48446         The result for these platforms is hardcoded in localcharset.c.
48447
48448 2009-01-25  Bruno Haible  <bruno@clisp.org>
48449
48450         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48451         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48452         before requiring AC_USE_SYSTEM_EXTENSIONS.
48453
48454 2009-01-25  Jim Meyering  <meyering@redhat.com>
48455
48456         c-strtod: avoid warnings
48457         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48458         "assignment discards qualifiers from pointer target type" warnings.
48459
48460 2009-01-24  Bruno Haible  <bruno@clisp.org>
48461
48462         Add support for non-UTF-8 locales on MacOS X.
48463         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48464         canonical encodings. For Darwin 7 and newer, don't map traditional
48465         encodings to UTF-8.
48466         Reported by Vincent Lefevre <vincent@vinc17.org>
48467         at <http://savannah.gnu.org/bugs/?25235>.
48468
48469 2009-01-24  Bruno Haible  <bruno@clisp.org>
48470
48471         * doc/gnulib.texi (Obsolete modules): New section.
48472         Reported by Mike Frysinger <vapier@gentoo.org>.
48473
48474 2009-01-24  Bruno Haible  <bruno@clisp.org>
48475
48476         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48477         (%.dvi): New rule.
48478
48479 2009-01-24  Bruno Haible  <bruno@clisp.org>
48480
48481         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48482         Reported by Eric Blake.
48483
48484 2009-01-24  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48487         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48488         Reported by Gary V. Vaughan <gary@gnu.org>.
48489
48490 2009-01-24  Bruno Haible  <bruno@clisp.org>
48491
48492         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48493
48494 2009-01-23  Bruno Haible  <bruno@clisp.org>
48495
48496         Make c-strtod, c-strtold usable in libraries.
48497         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48498         (C_STRTOD): Call strdup instead of xstrdup.
48499         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48500         * modules/c-strtold (Depends-on): Likewise.
48501         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48502         * NEWS: Mention the change.
48503         Reported by Michael Gold <mgold@ncf.ca>.
48504
48505 2009-01-23  Jim Meyering  <meyering@redhat.com>
48506
48507         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48508         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48509         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48510
48511 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48512
48513         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48514         GNU CoreUtils.
48515         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48516         * modules/version-etc (Description): Update.
48517
48518 2009-01-22  Bruno Haible  <bruno@clisp.org>
48519
48520         Cache the C locale object.
48521         * lib/c-strtod.c (c_locale_cache): New variable.
48522         (c_locale): New function.
48523         (C_STRTOD): Use it, and don't call freelocale.
48524         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48525         Suggested by Paolo Bonzini.
48526
48527 2009-01-21  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48530         conditions other than overflow.
48531
48532 2009-01-21  Bruno Haible  <bruno@clisp.org>
48533
48534         * lib/c-strtod.c: Include errno.h.
48535         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48536         value from STRTOD_L and STRTOD.
48537
48538 2009-01-21  Bruno Haible  <bruno@clisp.org>
48539         and Jim Meyering  <meyering@redhat.com>
48540
48541         nanosleep: skip configure test (fail it) for apple universal builds
48542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48543         universal builds, assume that nanosleep does not work.
48544         * modules/nanosleep (Depends-on): Add multiarch.
48545
48546         mktime: skip configure test (fail it) for apple universal builds
48547         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48548         universal builds, assume that mktime does not work.
48549         * modules/mktime (Depends-on): Add multiarch.
48550
48551 2009-01-21  Eric Blake  <ebb9@byu.net>
48552
48553         multiarch: avoid expand-before-require warning
48554         * modules/multiarch (configure.ac): Require, rather than expand,
48555         gl_MULTIARCH.
48556         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48557         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48558         enforce that all clients require it.  Partial reversion of
48559         2008-12-29 patch.
48560
48561         error: avoid expand-before-require warning
48562         * modules/errno (configure.ac): Require, rather than expand,
48563         gl_HEADER_ERRNO_H.
48564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48565         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48566         enforce that all clients require it.
48567
48568         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48569         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48570         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48571         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48572
48573 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48574
48575         Revert:
48576         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48577
48578         regex: do not depend on obsolete modules.
48579         * modules/regex: Remove memcmp and memmove.
48580
48581 2009-01-20  Bruno Haible  <bruno@clisp.org>
48582
48583         Make the 'link' module link on Windows NT 4.
48584         * lib/link.c (_WIN32_WINNT): Don't define.
48585         (CreateHardLinkFuncType): New type.
48586         (CreateHardLinkFunc, initialized): New variables.
48587         (initialize): New function.
48588         (link): Invoke CreateHardLink indirectly through the function pointer.
48589
48590 2009-01-20  Bruno Haible  <bruno@clisp.org>
48591
48592         Fix compilation failure on mingw.
48593         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48594
48595 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48596
48597         * doc/c-strtod.texi: Mention a couple of restrictions.
48598
48599 2009-01-20  Jim Meyering  <meyering@redhat.com>
48600
48601         gettimeofday: move more declarations out of functions
48602         * lib/gettimeofday.c: Move extern declarations of tzset and
48603         gmtime out of containing functions.  Prompted by Bruno Haible.
48604
48605 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48606
48607         regex: do not depend on obsolete modules.
48608         * modules/regex: Remove memcmp and memmove.
48609
48610 2009-01-19  Bruno Haible  <bruno@clisp.org>
48611
48612         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48613         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48614         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48615         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48616         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48617
48618 2009-01-19  Bruno Haible  <bruno@clisp.org>
48619
48620         * tests/test-link.c: Include <errno.h>.
48621         (main): Exit with code 77 when a hard link cannot be created due to
48622         the file system.
48623         * tests/test-link.sh: Skip test when a hard link cannot be created due
48624         to the file system.
48625         Suggested by Eric Blake.
48626
48627 2009-01-19  Martin Lambers  <marlam@marlam.de>
48628
48629         * modules/link-tests: New file.
48630         * tests/test-link.sh: New file.
48631         * tests/test-link.c: New file.
48632
48633 2009-01-19  Eric Blake  <ebb9@byu.net>
48634
48635         doc: mention another function added in cygwin 1.7.0
48636         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48637         Another new function in cygwin 1.7.
48638
48639 2009-01-19  Bruno Haible  <bruno@clisp.org>
48640
48641         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48642         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48643         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48644         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48645         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48646         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48647         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48648         * m4/md4.m4 (gl_MD4): Likewise.
48649         * m4/md5.m4 (gl_MD5): Likewise.
48650         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48651         * m4/sha1.m4 (gl_SHA1): Likewise.
48652         * m4/sha256.m4 (gl_SHA256): Likewise.
48653         * m4/sha512.m4 (gl_SHA512): Likewise.
48654
48655 2009-01-19  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/uniname/uniname-tests (Depends-on): Add progname.
48658         * tests/uniname/test-uninames.c: Include progname.h.
48659         (main): Call set_program_name.
48660
48661         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48662         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48663         (main): Call set_program_name.
48664
48665         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48666         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48667         (main): Call set_program_name.
48668
48669         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48670         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48671         (main): Call set_program_name.
48672
48673         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48674         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48675         (main): Call set_program_name.
48676
48677         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48678         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48679         (main): Call set_program_name.
48680
48681         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48682         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48683         (main): Call set_program_name.
48684
48685         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48686         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48687         (main): Call set_program_name.
48688
48689         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48690         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48691         (main): Call set_program_name.
48692
48693 2009-01-19  Eric Blake  <ebb9@byu.net>
48694
48695         test-unistd: test previous patch
48696         * tests/test-unistd.c: Test *_FILENO macros.
48697
48698         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48699         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48700         Guarantee a definition.
48701         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48702         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48703         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48704         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48705         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48706         Likewise.
48707         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48708         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48709         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48710         Likewise.
48711         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48712         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48713         (STDERR_FILENO): Likewise.
48714         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48715         (STDERR_FILENO): Likewise.
48716         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48717         (STDERR_FILENO): Likewise.
48718         Reported by Elbert Pol.
48719
48720 2009-01-19  Eric Blake  <ebb9@byu.net>
48721
48722         doc: mention more functions added in cygwin 1.7.0
48723         * doc/posix-functions/abort.texi (abort): Update wording related
48724         to cygwin.
48725         * doc/posix-functions/daylight.texi (daylight): Likewise.
48726         * doc/posix-functions/optarg.texi (optarg): Likewise.
48727         * doc/posix-functions/optarg.texi (opterr): Likewise.
48728         * doc/posix-functions/optarg.texi (optind): Likewise.
48729         * doc/posix-functions/optarg.texi (optopt): Likewise.
48730         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48731         worked in 1.5.x, and was withdrawn in 1.7.
48732         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48733         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48734         cygwin versions.
48735         * doc/posix-functions/perror.texi (perror): Likewise.
48736         * doc/posix-functions/printf.texi (printf): Likewise.
48737         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48738         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48739         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48740         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48741         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48742         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48743         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48744         Likewise.
48745         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48746         Likewise.
48747         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48748         this function.
48749         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48750         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48751         Likewise.
48752         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48753         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48754         * doc/posix-functions/confstr.texi (confstr): Likewise.
48755         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48756         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48757         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48758         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48759         * doc/posix-functions/fputws.texi (fputws): Likewise.
48760         * doc/posix-functions/fwide.texi (fwide): Likewise.
48761         * doc/posix-functions/getwc.texi (getwc): Likewise.
48762         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48763         * doc/posix-functions/putwc.texi (putwc): Likewise.
48764         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48765         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48766         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48767         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48768         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48769         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48770         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48771         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48772         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48773         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48774         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48775
48776 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48777
48778         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48779         * lib/ioctl.c: Include <sys/ioctl.h>.
48780
48781 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48782
48783         * modules/getdate-tests (Depends-on): Add progname.
48784         * tests/test-getdate.c: Use progname module, to avoid link errors
48785         on non-glibc systems.
48786
48787 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48788
48789         * modules/filenamecat-tests (Depends-on): Add progname.
48790         * modules/fstrcmp-tests (Depends-on): Likewise.
48791
48792         * tests/test-filenamecat.c: Use progname module, to avoid link
48793         errors on non-glibc systems.
48794         * tests/test-fstrcmp.c: Likewise.
48795
48796 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48797
48798         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48799         * lib/gettimeofday.c: Move extern declaration out of function.
48800
48801 2009-01-18  Bruno Haible  <bruno@clisp.org>
48802
48803         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48804         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48805         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48806
48807 2009-01-18  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/strftime.c (MEMPCPY): Remove unused macro.
48810         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48811
48812 2009-01-18  Martin Lambers  <marlam@marlam.de>
48813
48814         New module 'link'.
48815         * lib/unistd.in.h (link): New declaration.
48816         * lib/link.c: New file.
48817         * m4/link.m4: New file.
48818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48819         HAVE_LINK.
48820         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48821         * modules/link: New file.
48822         * doc/posix-functions/link.texi: Mention the new module.
48823
48824 2009-01-18  Bruno Haible  <bruno@clisp.org>
48825
48826         * tests/test-avltree_list.c (main): Call set_program_name.
48827         * tests/test-avltree_oset.c (main): Likewise.
48828         * tests/test-obstack-printf.c: Include progname.h.
48829         (main): Call set_program_name.
48830         * tests/test-quotearg.c: Include progname.h.
48831         (main): Call set_program_name.
48832         * tests/test-xmemdup0.c: Include progname.h.
48833         (main): Call set_program_name.
48834
48835 2009-01-18  Bruno Haible  <bruno@clisp.org>
48836
48837         New module 'alphasort'.
48838         * lib/dirent.in.h (alphasort): New declaration.
48839         * lib/alphasort.c: New file, from glibc with modifications.
48840         * m4/alphasort.m4: New file.
48841         * modules/alphasort: New file.
48842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48843         HAVE_ALPHASORT.
48844         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48845         HAVE_ALPHASORT.
48846         * doc/posix-functions/alphasort.texi: Mention the new module and the
48847         portability problems.
48848
48849 2009-01-18  Bruno Haible  <bruno@clisp.org>
48850
48851         New module 'scandir'.
48852         * lib/dirent.in.h (scandir): New declaration.
48853         * lib/scandir.c: New file, from glibc with modifications.
48854         * m4/scandir.m4: New file.
48855         * modules/scandir: New file.
48856         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48857         HAVE_SCANDIR.
48858         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48859         HAVE_SCANDIR.
48860         * doc/posix-functions/scandir.texi: Mention the new module and the
48861         portability problems.
48862
48863 2009-01-17  Bruno Haible  <bruno@clisp.org>
48864
48865         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48866         Update documentation.
48867         (func_remove_suffix): Escape all dots in the suffix. Update
48868         documentation.
48869         (func_filter_filelist): Update documentation.
48870         Reported by Ralf Wildenhues.
48871
48872 2009-01-17  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/dprintf-posix-tests: New file.
48875         * tests/test-dprintf-posix.sh: New file.
48876         * tests/test-dprintf-posix.c: New file.
48877
48878         New modules 'dprintf', 'dprintf-posix'.
48879         * lib/stdio.in.h (dprintf): New declaration.
48880         * lib/dprintf.c: New file.
48881         * m4/dprintf.m4: New file.
48882         * m4/dprintf-posix.m4: New file.
48883         * modules/dprintf: New file.
48884         * modules/dprintf-posix: New file.
48885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48886         HAVE_DPRINTF, REPLACE_DPRINTF.
48887         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48888         HAVE_DPRINTF, REPLACE_DPRINTF.
48889         * doc/posix-functions/dprintf.texi: Mention the new modules.
48890
48891 2009-01-17  Bruno Haible  <bruno@clisp.org>
48892
48893         * modules/vdprintf-posix-tests: New file.
48894         * tests/test-vdprintf-posix.sh: New file.
48895         * tests/test-vdprintf-posix.c: New file.
48896
48897         New modules 'vdprintf', 'vdprintf-posix'.
48898         * lib/stdio.in.h (vdprintf): New declaration.
48899         * lib/vdprintf.c: New file.
48900         * m4/vdprintf.m4: New file.
48901         * m4/vdprintf-posix.m4: New file.
48902         * modules/vdprintf: New file.
48903         * modules/vdprintf-posix: New file.
48904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48905         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48906         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48907         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48908         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48909
48910 2009-01-17  Bruno Haible  <bruno@clisp.org>
48911
48912         Fix replacement of fopen on mingw.
48913         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48914         mingw.
48915
48916 2009-01-17  Bruno Haible  <bruno@clisp.org>
48917
48918         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48919         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48920
48921 2009-01-17  Bruno Haible  <bruno@clisp.org>
48922
48923         Avoid test-fflush2.sh failure on mingw.
48924         * tests/test-fflush2.c: Include binary-io.h.
48925         (main): Put standard input into binary mode.
48926         * modules/fflush-tests (Depends-on): Add binary-io.
48927
48928 2009-01-17  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/wchar.in.h: In another particular situation, include only the
48931         system's <wchar.h> file.
48932         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48933         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48934         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48935
48936 2009-01-17  Bruno Haible  <bruno@clisp.org>
48937
48938         Support for stripping executables in --enable-relocatable.
48939         * build-aux/install-reloc: Expect one more argument, or an environment
48940         variable RELOC_STRIP_PROG. If set, strip the destination program and
48941         its wrapper.
48942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48943         RELOC_STRIP_PROG.
48944         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48945         to set RELOCATABLE_STRIP.
48946         * NEWS: Mention the new Makefile requirement.
48947
48948 2009-01-17  Bruno Haible  <bruno@clisp.org>
48949
48950         * build-aux/install-reloc: Remove debugging information left over by
48951         C compiler on MacOS X.
48952
48953 2009-01-17  Bruno Haible  <bruno@clisp.org>
48954
48955         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48956         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48957         _NSGetExecutablePath.
48958
48959 2009-01-16  Jim Meyering  <meyering@redhat.com>
48960
48961         strerror: avoid warnings about discarding "const"
48962         * lib/strerror.c (rpl_strerror): Instead of returning a const
48963         string from each and every "case", use a variable, and add a single
48964         cast after the switch.
48965
48966 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48967
48968         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48969
48970 2009-01-16  Bruno Haible  <bruno@clisp.org>
48971
48972         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48973         array initializer syntax that also works in C++ mode.
48974         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48975
48976 2009-01-16  Jim Meyering  <meyering@redhat.com>
48977
48978         poll: suppress a warning
48979         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48980         to ignore "...unsigned expression < 0 is always false" warnings.
48981
48982 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48983
48984         poll: remove declarations of unused variables
48985         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48986         sockbuf and optlen.
48987
48988 2009-01-15  Bruno Haible  <bruno@clisp.org>
48989
48990         Make fflush-after-ungetc POSIX compliant on BSD systems.
48991         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48992         (clear_ungetc_buffer): Implement also for other systems.
48993         (rpl_fflush): On glibc systems, invoke
48994         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48995         clear_ungetc_buffer after fetching the stream's position, not before.
48996
48997 2009-01-15  Bruno Haible  <bruno@clisp.org>
48998
48999         Make fflush-after-ungetc POSIX compliant on glibc systems.
49000         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49001         after ungetc.
49002         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49003         (rpl_fflush): On glibc systems, simply call the system's fflush
49004         function after clearing the ungetc buffer.
49005         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49006         Instead, lseek only to the end of file, then use the system's fseeko
49007         for the rest. On glibc systems, reset the EOF indicator bit.
49008
49009 2009-01-15  Jim Meyering  <meyering@redhat.com>
49010
49011         openmp.m4: revert quote-adding change, for portability to older autoconf
49012         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49013         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49014         Simon Josefsson noticed the problem when using autoconf-2.61.
49015
49016 2009-01-15  Bruno Haible  <bruno@clisp.org>
49017
49018         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49019         * tests/test-fflush2.c (ASSERT): Always fail.
49020         (main): Add two tests for fflush() after ungetc(), taking into account
49021         the Austin Group's clarification.
49022         Suggested by Eric Blake.
49023
49024 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49025
49026         mktime.m4: remove K&R-style function prototypes
49027         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49028         for the Sun C++ compiler.
49029
49030 2009-01-14  Bruno Haible  <bruno@clisp.org>
49031
49032         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49033         while including <wchar.h>.
49034         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49035         the system's <wchar.h> file.
49036         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49037
49038 2009-01-14  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/csharp.m4: Don't mention gettext on the serial number line.
49041         * m4/csharpexec.m4: Likewise.
49042         * m4/eaccess.m4: Likewise.
49043         * m4/javaexec.m4: Likewise.
49044         * m4/sig_atomic_t.m4: Likewise.
49045         * m4/tmpdir.m4: Likewise.
49046         * m4/intldir.m4: Bump gettext version.
49047         * m4/lib-ld.m4: Likewise.
49048
49049 2009-01-14  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/progname.c (set_program_name): Add more comments.
49052         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49053
49054 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49055
49056         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49057         were sys/stat.h does not define it.
49058
49059 2009-01-14  Jim Meyering  <meyering@redhat.com>
49060
49061         many *.m4 files: improve m4 quoting
49062         99% of this change was performed by running the following commands:
49063         git ls-files | grep '\.m4$' | xargs perl -pi \
49064           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49065           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49066           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49067           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49068         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49069         The remainder were to add Copyright dates, increment serial numbers,
49070         undo some changes in comments, exclude m4/intl.m4, and add quotes
49071         around the "1" in ",1" where the unusual spacing prohibited the
49072         above regexps from doing the job.  For more details, see
49073         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49074         * m4/acl.m4: Modified.
49075         * m4/afs.m4: Likewise.
49076         * m4/alloca.m4: Likewise.
49077         * m4/argp.m4: Likewise.
49078         * m4/argz.m4: Likewise.
49079         * m4/atexit.m4: Likewise.
49080         * m4/bison-i18n.m4: Likewise.
49081         * m4/bison.m4: Likewise.
49082         * m4/byteswap.m4: Likewise.
49083         * m4/c-stack.m4: Likewise.
49084         * m4/c-strtod.m4: Likewise.
49085         * m4/calloc.m4: Likewise.
49086         * m4/canonicalize-lgpl.m4: Likewise.
49087         * m4/chown.m4: Likewise.
49088         * m4/clock_time.m4: Likewise.
49089         * m4/codeset.m4: Likewise.
49090         * m4/copy-file.m4: Likewise.
49091         * m4/csharp.m4: Likewise.
49092         * m4/csharpcomp.m4: Likewise.
49093         * m4/csharpexec.m4: Likewise.
49094         * m4/d-ino.m4: Likewise.
49095         * m4/d-type.m4: Likewise.
49096         * m4/dirfd.m4: Likewise.
49097         * m4/double-slash-root.m4: Likewise.
49098         * m4/eaccess.m4: Likewise.
49099         * m4/eealloc.m4: Likewise.
49100         * m4/environ.m4: Likewise.
49101         * m4/errno_h.m4: Likewise.
49102         * m4/euidaccess.m4: Likewise.
49103         * m4/execute.m4: Likewise.
49104         * m4/fatal-signal.m4: Likewise.
49105         * m4/fchdir.m4: Likewise.
49106         * m4/fcntl_h.m4: Likewise.
49107         * m4/fileblocks.m4: Likewise.
49108         * m4/filenamecat.m4: Likewise.
49109         * m4/findprog.m4: Likewise.
49110         * m4/flexmember.m4: Likewise.
49111         * m4/fnmatch.m4: Likewise.
49112         * m4/fopen.m4: Likewise.
49113         * m4/fpending.m4: Likewise.
49114         * m4/fprintf-posix.m4: Likewise.
49115         * m4/free.m4: Likewise.
49116         * m4/frexp.m4: Likewise.
49117         * m4/frexpl.m4: Likewise.
49118         * m4/fsusage.m4: Likewise.
49119         * m4/ftruncate.m4: Likewise.
49120         * m4/gc-camellia.m4: Likewise.
49121         * m4/gc-random.m4: Likewise.
49122         * m4/gc.m4: Likewise.
49123         * m4/getaddrinfo.m4: Likewise.
49124         * m4/getcwd-abort-bug.m4: Likewise.
49125         * m4/getcwd-path-max.m4: Likewise.
49126         * m4/getdate.m4: Likewise.
49127         * m4/getdomainname.m4: Likewise.
49128         * m4/getgroups.m4: Likewise.
49129         * m4/gethostname.m4: Likewise.
49130         * m4/gethrxtime.m4: Likewise.
49131         * m4/getline.m4: Likewise.
49132         * m4/getloadavg.m4: Likewise.
49133         * m4/getndelim2.m4: Likewise.
49134         * m4/getpass.m4: Likewise.
49135         * m4/gettext.m4: Likewise.
49136         * m4/gettime.m4: Likewise.
49137         * m4/gettimeofday.m4: Likewise.
49138         * m4/gnulib-common.m4: Likewise.
49139         * m4/group-member.m4: Likewise.
49140         * m4/host-os.m4: Likewise.
49141         * m4/iconv.m4: Likewise.
49142         * m4/iconv_open.m4: Likewise.
49143         * m4/inet_ntop.m4: Likewise.
49144         * m4/inet_pton.m4: Likewise.
49145         * m4/inline.m4: Likewise.
49146         * m4/intldir.m4: Likewise.
49147         * m4/intlmacosx.m4: Likewise.
49148         * m4/intmax.m4: Likewise.
49149         * m4/intmax_t.m4: Likewise.
49150         * m4/inttypes.m4: Likewise.
49151         * m4/inttypes_h.m4: Likewise.
49152         * m4/inttypes-pri.m4: Likewise.
49153         * m4/isapipe.m4: Likewise.
49154         * m4/isnand.m4: Likewise.
49155         * m4/isnanf.m4: Likewise.
49156         * m4/isnanl.m4: Likewise.
49157         * m4/javacomp.m4: Likewise.
49158         * m4/javaexec.m4: Likewise.
49159         * m4/jm-winsz1.m4: Likewise.
49160         * m4/jm-winsz2.m4: Likewise.
49161         * m4/lchown.m4: Likewise.
49162         * m4/lcmessage.m4: Likewise.
49163         * m4/ldexpl.m4: Likewise.
49164         * m4/lib-ld.m4: Likewise.
49165         * m4/lib-link.m4: Likewise.
49166         * m4/libsigsegv.m4: Likewise.
49167         * m4/link-follow.m4: Likewise.
49168         * m4/localcharset.m4: Likewise.
49169         * m4/locale-fr.m4: Likewise.
49170         * m4/locale-ja.m4: Likewise.
49171         * m4/locale-tr.m4: Likewise.
49172         * m4/locale-zh.m4: Likewise.
49173         * m4/lock.m4: Likewise.
49174         * m4/longlong.m4: Likewise.
49175         * m4/ls-mntd-fs.m4: Likewise.
49176         * m4/lstat.m4: Likewise.
49177         * m4/malloc.m4: Likewise.
49178         * m4/mathl.m4: Likewise.
49179         * m4/mbrtowc.m4: Likewise.
49180         * m4/mbstate_t.m4: Likewise.
49181         * m4/mbswidth.m4: Likewise.
49182         * m4/memchr.m4: Likewise.
49183         * m4/memcmp.m4: Likewise.
49184         * m4/memcpy.m4: Likewise.
49185         * m4/memmem.m4: Likewise.
49186         * m4/memmove.m4: Likewise.
49187         * m4/mempcpy.m4: Likewise.
49188         * m4/memrchr.m4: Likewise.
49189         * m4/memset.m4: Likewise.
49190         * m4/minmax.m4: Likewise.
49191         * m4/mkdir-slash.m4: Likewise.
49192         * m4/mkdtemp.m4: Likewise.
49193         * m4/mktime.m4: Likewise.
49194         * m4/mmap-anon.m4: Likewise.
49195         * m4/mountlist.m4: Likewise.
49196         * m4/nanosleep.m4: Likewise.
49197         * m4/nls.m4: Likewise.
49198         * m4/nocrash.m4: Likewise.
49199         * m4/open.m4: Likewise.
49200         * m4/openat.m4: Likewise.
49201         * m4/openmp.m4: Likewise.
49202         * m4/pathmax.m4: Likewise.
49203         * m4/perl.m4: Likewise.
49204         * m4/physmem.m4: Likewise.
49205         * m4/pipe.m4: Likewise.
49206         * m4/po.m4: Likewise.
49207         * m4/poll.m4: Likewise.
49208         * m4/posixtm.m4: Likewise.
49209         * m4/posixver.m4: Likewise.
49210         * m4/printf-frexp.m4: Likewise.
49211         * m4/printf-frexpl.m4: Likewise.
49212         * m4/printf-posix.m4: Likewise.
49213         * m4/printf-posix-rpl.m4: Likewise.
49214         * m4/printf.m4: Likewise.
49215         * m4/progtest.m4: Likewise.
49216         * m4/putenv.m4: Likewise.
49217         * m4/readline.m4: Likewise.
49218         * m4/readlink.m4: Likewise.
49219         * m4/readutmp.m4: Likewise.
49220         * m4/realloc.m4: Likewise.
49221         * m4/regex.m4: Likewise.
49222         * m4/relocatable.m4: Likewise.
49223         * m4/relocatable-lib.m4: Likewise.
49224         * m4/rename-dest-slash.m4: Likewise.
49225         * m4/rename.m4: Likewise.
49226         * m4/rmdir-errno.m4: Likewise.
49227         * m4/rmdir.m4: Likewise.
49228         * m4/roundf.m4: Likewise.
49229         * m4/roundl.m4: Likewise.
49230         * m4/rpmatch.m4: Likewise.
49231         * m4/save-cwd.m4: Likewise.
49232         * m4/selinux-selinux-h.m4: Likewise.
49233         * m4/setenv.m4: Likewise.
49234         * m4/settime.m4: Likewise.
49235         * m4/sig2str.m4: Likewise.
49236         * m4/sig_atomic_t.m4: Likewise.
49237         * m4/signalblocking.m4: Likewise.
49238         * m4/signbit.m4: Likewise.
49239         * m4/sigpipe.m4: Likewise.
49240         * m4/sockets.m4: Likewise.
49241         * m4/sockpfaf.m4: Likewise.
49242         * m4/st_dm_mode.m4: Likewise.
49243         * m4/stat-time.m4: Likewise.
49244         * m4/stdbool.m4: Likewise.
49245         * m4/stdint.m4: Likewise.
49246         * m4/stdint_h.m4: Likewise.
49247         * m4/stpcpy.m4: Likewise.
49248         * m4/stpncpy.m4: Likewise.
49249         * m4/strcase.m4: Likewise.
49250         * m4/strchrnul.m4: Likewise.
49251         * m4/strcspn.m4: Likewise.
49252         * m4/strdup.m4: Likewise.
49253         * m4/strftime.m4: Likewise.
49254         * m4/strndup.m4: Likewise.
49255         * m4/strnlen.m4: Likewise.
49256         * m4/strpbrk.m4: Likewise.
49257         * m4/strptime.m4: Likewise.
49258         * m4/strsep.m4: Likewise.
49259         * m4/strtod.m4: Likewise.
49260         * m4/strtoimax.m4: Likewise.
49261         * m4/strtok_r.m4: Likewise.
49262         * m4/strtol.m4: Likewise.
49263         * m4/strtoll.m4: Likewise.
49264         * m4/strtoul.m4: Likewise.
49265         * m4/strtoull.m4: Likewise.
49266         * m4/strtoumax.m4: Likewise.
49267         * m4/strverscmp.m4: Likewise.
49268         * m4/threadlib.m4: Likewise.
49269         * m4/timegm.m4: Likewise.
49270         * m4/tm_gmtoff.m4: Likewise.
49271         * m4/tmpdir.m4: Likewise.
49272         * m4/tmpfile.m4: Likewise.
49273         * m4/tzset.m4: Likewise.
49274         * m4/uintmax_t.m4: Likewise.
49275         * m4/unlinkdir.m4: Likewise.
49276         * m4/unlocked-io.m4: Likewise.
49277         * m4/uptime.m4: Likewise.
49278         * m4/userspec.m4: Likewise.
49279         * m4/utimbuf.m4: Likewise.
49280         * m4/utime.m4: Likewise.
49281         * m4/utimes-null.m4: Likewise.
49282         * m4/utimes.m4: Likewise.
49283         * m4/vararrays.m4: Likewise.
49284         * m4/vasnprintf.m4: Likewise.
49285         * m4/vfprintf-posix.m4: Likewise.
49286         * m4/vprintf-posix.m4: Likewise.
49287         * m4/wait-process.m4: Likewise.
49288         * m4/wchar_t.m4: Likewise.
49289         * m4/wint_t.m4: Likewise.
49290         * m4/write-any-file.m4: Likewise.
49291         * m4/yield.m4: Likewise.
49292
49293 2009-01-13  Bruno Haible  <bruno@clisp.org>
49294
49295         Avoid test-copy-file.sh failures when ACL support insufficient.
49296         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49297         TESTS_ENVIRONMENT.
49298         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49299         Reported by Jim Meyering.
49300
49301 2009-01-13  Bruno Haible  <bruno@clisp.org>
49302
49303         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49304         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49305         * modules/unistdio/u8-printf-parse (Files): Likewise.
49306         * modules/unistdio/u32-printf-parse (Files): Likewise.
49307         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49308
49309 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49310
49311         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49312         and m4/inttypes_h.m4 too.
49313
49314 2009-01-12  Eric Blake  <ebb9@byu.net>
49315
49316         tests: IRIX 6.2 cc can't compile -0.0 into .data
49317         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49318         rather than at compile-time.
49319         * tests/test-floorl.c (minus_zero): Likewise.
49320         * tests/test-frexpl.c (minus_zero): Likewise.
49321         * tests/test-isnan.c (minus_zerol): Likewise.
49322         * tests/test-isnanl.h (minus_zero): Likewise.
49323         * tests/test-ldexpl.c (minus_zero): Likewise.
49324         * tests/test-roundl.c (minus_zero): Likewise.
49325         * tests/test-signbit.c (minus_zerol): Likewise.
49326         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49327         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49328         * tests/test-truncl.c (minus_zero): Likewise.
49329         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49330         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49331         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49332
49333 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49334
49335         regex: fix glibc bug 9697
49336         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49337         handling.
49338
49339 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49340
49341         regex: fix glibc bug 697
49342         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49343         being NULL also if there are no backreferences.
49344
49345 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49346
49347         regex: merge glibc changes
49348         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49349         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49350         re_string_skip_chars, re_string_reconstruct): Likewise.
49351         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49352
49353 2009-01-07  Jim Meyering  <meyering@redhat.com>
49354
49355         poll: filter through cppi
49356         * lib/poll.c: Indent cpp directives to reflect nesting.
49357
49358 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49359
49360         poll: don't return uninitialized
49361         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49362
49363 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49364
49365         avoid compile failure on AIX 6.1
49366         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49367         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49368
49369 2009-01-04  Jim Meyering  <meyering@redhat.com>
49370
49371         remove duplicate inclusion of <stdio.h>
49372         * tests/test-fprintf-posix.c: Likewise.
49373         * tests/test-printf-posix.c: Likewise.
49374         * tests/test-snprintf-posix.c: Likewise.
49375         * tests/test-sprintf-posix.c: Likewise.
49376         * tests/test-vasprintf-posix.c: Likewise.
49377         * tests/test-vfprintf-posix.c: Likewise.
49378         * tests/test-vprintf-posix.c: Likewise.
49379         * tests/test-vsnprintf-posix.c: Likewise.
49380         * tests/test-vsprintf-posix.c: Likewise.
49381
49382 2009-01-03  Jim Meyering  <meyering@redhat.com>
49383
49384         gnulib-tool: fix sed-based filtering
49385         * gnulib-tool (func_filter_filelist): Remove extra backslash
49386         in sed_fff_filter definition.
49387
49388 2009-01-02  Jim Meyering  <meyering@redhat.com>
49389
49390         strftime: avoid compilation failure on Solaris 2.6
49391         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49392         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49393         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49394         be available.  Reported by Tom G. Christensen.  Details in
49395         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49396
49397 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49398             Bruno Haible  <bruno@clisp.org>
49399
49400         Speed up gnulib-tool by doing more string processing through shell
49401         built-ins.
49402         * gnulib-tool (fast_func_append): New variable.
49403         (func_remove_prefix, func_remove_suffix): New functions.
49404         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49405         (func_filter_filelist): New function.
49406         (func_get_dependencies): Use func_remove_suffix instead of sed.
49407         (func_get_automake_snippet): Use func_filter_filelist instead of a
49408         subshell and sed invocation.
49409
49410 2009-01-01  Bruno Haible  <bruno@clisp.org>
49411
49412         Fix a security bug.
49413         * gnulib-tool (func_import, import, update): Don't allow the characters
49414         '"', '$', '`', '\' in macro arguments that become part of commands that
49415         are evaluated.
49416
49417 2009-01-01  Bruno Haible  <bruno@clisp.org>
49418
49419         * gnulib-tool (func_reset_sigpipe): Add more comments.
49420
49421 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49422
49423         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49424         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49425         already know the answer.
49426
49427 2009-01-01  Jim Meyering  <meyering@redhat.com>
49428
49429         * lib/version-etc.c (version_etc_va): Update copyright year.
49430
49431 2008-12-30  Bruno Haible  <bruno@clisp.org>
49432
49433         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49434         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49435         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49436
49437 2008-12-29  Eric Blake  <ebb9@byu.net>
49438
49439         multiarch: avoid autoconf AC_REQUIRE bug
49440         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49441         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49442         2.63 and older.
49443         Reported by Bruno Haible, and analyzed in
49444         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49445
49446 2008-12-29  Bruno Haible  <bruno@clisp.org>
49447
49448         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49449         files in subdirectories correctly.
49450         Reported by Ralf Wildenhues.
49451
49452 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49453
49454         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49455         rather than 'join FILE -', for Solaris join.
49456
49457 2008-12-29  Bruno Haible  <bruno@clisp.org>
49458
49459         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49460         quoting.
49461         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49462         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49463         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49464         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49465         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49466         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49467         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49468         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49469         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49470         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49471         * m4/nls.m4 (AM_NLS): Likewise.
49472         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49473         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49474         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49475         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49476         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49477         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49478         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49479         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49480         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49481         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49482         * m4/xsize.m4 (gl_XSIZE): Likewise.
49483         Suggested by Jim Meyering.
49484
49485 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49486
49487         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49488         * lib/parse-duration.c: use a switch instead of cascading if's.
49489
49490 2008-12-29  Eric Blake  <ebb9@byu.net>
49491
49492         wchar.h: supply WEOF on Irix 5.3
49493         * lib/wchar.in.h (wint_t): Also supply WEOF.
49494         * lib/wctype.in.h (wint_t): Likewise.
49495         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49496         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49497         Reported by Tom G. Christensen.
49498
49499 2008-12-26  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49502         i486, i586, i686.
49503
49504 2008-12-26  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49507
49508 2008-12-26  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49511         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49512         not __STDC_CONSTANT_MACROS.
49513         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49514
49515 2008-12-25  Bruno Haible  <bruno@clisp.org>
49516
49517         Add support for universal builds to vasnprintf.
49518         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49519         universal builds, guess no.
49520         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49521         * modules/vasprintf-posix (Depends-on): Likewise.
49522         * modules/fprintf-posix (Depends-on): Likewise.
49523         * modules/vfprintf-posix (Depends-on): Likewise.
49524         * modules/snprintf-posix (Depends-on): Likewise.
49525         * modules/vsnprintf-posix (Depends-on): Likewise.
49526         * modules/sprintf-posix (Depends-on): Likewise.
49527         * modules/vsprintf-posix (Depends-on): Likewise.
49528         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49535
49536         Add support for universal builds to <inttypes.h>.
49537         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49538         _SCNu64_PREFIX): In Apple
49539         universal builds, define directly, using _LP64.
49540         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49541         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49542         * modules/inttypes (Depends-on): Add multiarch.
49543         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49544
49545         Add support for universal builds to <stdint.h>.
49546         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49547         universal builds, define directly, using _LP64.
49548         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49549         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49550         and size_t.
49551         * modules/stdint (Depends-on): Add multiarch.
49552         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49553
49554         New module 'multiarch'.
49555         * modules/multiarch: New file.
49556         * m4/multiarch.m4: New file.
49557
49558 2008-12-25  Bruno Haible  <bruno@clisp.org>
49559
49560         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49561
49562 2008-12-25  Bruno Haible  <bruno@clisp.org>
49563
49564         * modules/btowc (License): Relicense under LGPLv2+.
49565         * modules/mbsinit (License): Likewise.
49566         * modules/mbrtowc (License): Likewise.
49567         * modules/wcrtomb (License): Likewise.
49568         * modules/streq (License): Likewise.
49569         Reported by David Lutterkort <lutter@redhat.com>.
49570
49571 2008-12-23  Bruno Haible  <bruno@clisp.org>
49572
49573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49574
49575 2008-12-23  Bruno Haible  <bruno@clisp.org>
49576
49577         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49578         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49579         GETADDRINFO_LIB, not in LIBS.
49580         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49581         * modules/canon-host (Link): Likewise.
49582         * NEWS: Mention the change.
49583         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49584         GETADDRINFO_LIB.
49585
49586 2008-12-22  Bruno Haible  <bruno@clisp.org>
49587
49588         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49589         * doc/posix-functions/iswalpha_l.texi: Likewise.
49590         * doc/posix-functions/iswblank_l.texi: Likewise.
49591         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49592         * doc/posix-functions/iswctype_l.texi: Likewise.
49593         * doc/posix-functions/iswdigit_l.texi: Likewise.
49594         * doc/posix-functions/iswgraph_l.texi: Likewise.
49595         * doc/posix-functions/iswlower_l.texi: Likewise.
49596         * doc/posix-functions/iswprint_l.texi: Likewise.
49597         * doc/posix-functions/iswpunct_l.texi: Likewise.
49598         * doc/posix-functions/iswspace_l.texi: Likewise.
49599         * doc/posix-functions/iswupper_l.texi: Likewise.
49600         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49601         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49602         * doc/posix-functions/open_wmemstream.texi: Likewise.
49603         * doc/posix-functions/swscanf.texi: Likewise.
49604         * doc/posix-functions/towctrans_l.texi: Likewise.
49605         * doc/posix-functions/towlower.texi: Likewise.
49606         * doc/posix-functions/towlower_l.texi: Likewise.
49607         * doc/posix-functions/towupper.texi: Likewise.
49608         * doc/posix-functions/towupper_l.texi: Likewise.
49609         * doc/posix-functions/vfwprintf.texi: Likewise.
49610         * doc/posix-functions/vfwscanf.texi: Likewise.
49611         * doc/posix-functions/vswscanf.texi: Likewise.
49612         * doc/posix-functions/vwprintf.texi: Likewise.
49613         * doc/posix-functions/vwscanf.texi: Likewise.
49614         * doc/posix-functions/wcpcpy.texi: Likewise.
49615         * doc/posix-functions/wcpncpy.texi: Likewise.
49616         * doc/posix-functions/wcscasecmp.texi: Likewise.
49617         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49618         * doc/posix-functions/wcscoll_l.texi: Likewise.
49619         * doc/posix-functions/wcsdup.texi: Likewise.
49620         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49621         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49622         * doc/posix-functions/wcsnlen.texi: Likewise.
49623         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49624         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49625         * doc/posix-functions/wctrans_l.texi: Likewise.
49626         * doc/posix-functions/wctype_l.texi: Likewise.
49627         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49628         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49629         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49630         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49631         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49632         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49633         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49634         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49635         * doc/glibc-functions/wcschrnul.texi: Likewise.
49636         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49637         * doc/glibc-functions/wcstod_l.texi: Likewise.
49638         * doc/glibc-functions/wcstof_l.texi: Likewise.
49639         * doc/glibc-functions/wcstol_l.texi: Likewise.
49640         * doc/glibc-functions/wcstold_l.texi: Likewise.
49641         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49642         * doc/glibc-functions/wcstoq.texi: Likewise.
49643         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49644         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49645         * doc/glibc-functions/wcstouq.texi: Likewise.
49646         * doc/glibc-functions/wmempcpy.texi: Likewise.
49647
49648 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49649             Eric Blake  <ebb9@byu.net>
49650             Paolo Bonzini  <bonzini@gnu.org>
49651             Bruno Haible  <bruno@clisp.org>
49652
49653         Make c-stack work on Haiku.
49654         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49655         (c_stack_action): Use SA_ONSTACK flag.
49656
49657 2008-12-22  Bruno Haible  <bruno@clisp.org>
49658
49659         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49660
49661 2008-12-22  Bruno Haible  <bruno@clisp.org>
49662
49663         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49664         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49665         being overridden.
49666         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49667         New macros.
49668         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49670         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49671         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49672
49673 2008-12-22  Bruno Haible  <bruno@clisp.org>
49674
49675         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49676         from test code.
49677
49678 2008-12-22  Eric Blake  <ebb9@byu.net>
49679
49680         Avoid gcc warnings on cygwin.
49681         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49682         Avoid unused variable.
49683         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49684         Likewise.
49685
49686 2008-12-22  Bruno Haible  <bruno@clisp.org>
49687
49688         Remove HAVE_MBRTOWC conditionals.
49689         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49690         (mbscasecmp): Assume mbrtowc function.
49691         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49692         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49693         * lib/mbschr.c: Include mbuiter.h unconditionally.
49694         (mbschr): Assume mbrtowc function.
49695         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49696         (mbscspn): Assume mbrtowc function.
49697         * lib/mbslen.c: Include mbuiter.h unconditionally.
49698         (mbslen): Assume mbrtowc function.
49699         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49700         (mbsncasecmp): Assume mbrtowc function.
49701         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49702         (mbsnlen): Assume mbrtowc function.
49703         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49704         (mbspbrk): Assume mbrtowc function.
49705         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49706         (mbspcasecmp): Assume mbrtowc function.
49707         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49708         (mbsrchr): Assume mbrtowc function.
49709         * lib/mbssep.c: Include mbuiter.h unconditionally.
49710         (mbssep): Assume mbrtowc function.
49711         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49712         (mbsspn): Assume mbrtowc function.
49713         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49714         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49715         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49716         (mbstok_r): Assume mbrtowc function.
49717         * lib/propername.c: Include mbuiter.h unconditionally.
49718         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49719         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49720         (trim2): Assume mbrtowc function.
49721         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49722         (mbsnwidth): Assume mbrtowc function.
49723         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49724         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49725         fallback definitions.
49726         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49727
49728 2008-12-22  Bruno Haible  <bruno@clisp.org>
49729
49730         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49731
49732 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49733
49734         * modules/regex: Request emulations for the mb*/wc* functions we need.
49735         * m4/regex.m4: Don't look for those functions here.
49736         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49737
49738 2008-12-22  Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49741
49742 2008-12-21  Bruno Haible  <bruno@clisp.org>
49743
49744         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49745         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49746         (Include): Remove conditionalization.
49747         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49748         (Include): Remove conditionalization.
49749         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49750         (Include): Remove conditionalization.
49751         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49752         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49753         * NEWS: Mention the change.
49754         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49755         via Sergey Poznyakoff <gray@gnu.org.ua>.
49756
49757 2008-12-21  Bruno Haible  <bruno@clisp.org>
49758
49759         * MODULES.html.sh (Extended multibyte and wide character utilities
49760         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49761         wcrtomb, wcsrtombs.
49762         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49763         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49764         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49765         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49766
49767 2008-12-21  Bruno Haible  <bruno@clisp.org>
49768
49769         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49770
49771 2008-12-21  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/wcsnrtombs-tests: New file.
49774         * tests/test-wcsnrtombs1.sh: New file.
49775         * tests/test-wcsnrtombs2.sh: New file.
49776         * tests/test-wcsnrtombs3.sh: New file.
49777         * tests/test-wcsnrtombs4.sh: New file.
49778         * tests/test-wcsnrtombs.c: New file.
49779
49780         New module 'wcsnrtombs'.
49781         * lib/wchar.in.h (wcsnrtombs): New declaration.
49782         * lib/wcsnrtombs.c: New file.
49783         * lib/wcsrtombs-state.c: New file.
49784         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49785         (internal_state): Remove variable.
49786         * m4/wcsnrtombs.m4: New file.
49787         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49788         compilation units.
49789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49790         HAVE_WCSNRTOMBS.
49791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49792         HAVE_WCSNRTOMBS.
49793         * modules/wcsnrtombs: New file.
49794         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49795         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49796
49797 2008-12-21  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/wcsrtombs-tests: New file.
49800         * tests/test-wcsrtombs1.sh: New file.
49801         * tests/test-wcsrtombs2.sh: New file.
49802         * tests/test-wcsrtombs3.sh: New file.
49803         * tests/test-wcsrtombs4.sh: New file.
49804         * tests/test-wcsrtombs.c: New file.
49805
49806         New module 'wcsrtombs'.
49807         * lib/wchar.in.h (wcsrtombs): New declaration.
49808         * lib/wcsrtombs.c: New file.
49809         * m4/wcsrtombs.m4: New file.
49810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49811         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49813         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49814         * modules/wcsrtombs: New file.
49815         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49816         bugs.
49817
49818 2008-12-21  Bruno Haible  <bruno@clisp.org>
49819
49820         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49821         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49823         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49824         if not correct.
49825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49826         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49827         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49828         m4/locale-zh.m4, m4/codeset.m4.
49829         * doc/posix-functions/wcrtomb.texi: Document the bug.
49830
49831 2008-12-21  Bruno Haible  <bruno@clisp.org>
49832
49833         Work around a btowc() bug on IRIX 6.5.
49834         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49835         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49836         REPLACE_WTOBC if not.
49837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49838         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49839         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49840
49841 2008-12-21  Bruno Haible  <bruno@clisp.org>
49842
49843         * modules/wcrtomb-tests: New file.
49844         * tests/test-wcrtomb.sh: New file.
49845         * tests/test-wcrtomb.c: New file.
49846
49847         New module 'wcrtomb'.
49848         * lib/wchar.in.h (wcrtomb): New declaration.
49849         * lib/wcrtomb.c: New file.
49850         * m4/wcrtomb.m4: New file.
49851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49852         HAVE_WCRTOMB.
49853         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49854         HAVE_WCRTOMB.
49855         * modules/wcrtomb: New file.
49856         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49857
49858 2008-12-21  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49861         * modules/mbsrtowcs (Files): Likewise.
49862         * modules/wctob (Files): Likewise.
49863         * modules/c-strcase-tests (Files): Likewise.
49864         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49865         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49866         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49867         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49868         * modules/vasnprintf-posix-tests (Files): Likewise.
49869
49870 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49871
49872         gitlog-to-changelog: pass all command-line arguments to git-log
49873         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49874         it is sometimes convenient to filter the commits in various ways.
49875         gitlog-to-changelog only allows --since to specify a start date,
49876         but git-log itself supports many other filtering mechanisms.
49877         At the moment, I want to filter by branch name.  Rather than
49878         adding a --branch option to gitlog-to-changelog, it seems more
49879         flexible to simply pass all options directly to git-log and let
49880         git do the work.  Notice that this effectively makes --since a
49881         redundant option for gitlog-to-changelog, but removing it would
49882         require current usage to change since calls would then require
49883         an additional '--'.
49884
49885 2008-12-21  Bruno Haible  <bruno@clisp.org>
49886
49887         * modules/mbsnrtowcs-tests: New file.
49888         * tests/test-mbsnrtowcs1.sh: New file.
49889         * tests/test-mbsnrtowcs2.sh: New file.
49890         * tests/test-mbsnrtowcs3.sh: New file.
49891         * tests/test-mbsnrtowcs4.sh: New file.
49892         * tests/test-mbsnrtowcs.c: New file.
49893
49894         New module 'mbsnrtowcs'.
49895         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49896         * lib/mbsnrtowcs.c: New file.
49897         * lib/mbsrtowcs-state.c: New file.
49898         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49899         (internal_state): Remove variable.
49900         * m4/mbsnrtowcs.m4: New file.
49901         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49902         compilation units.
49903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49904         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49905         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49906         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49907         * modules/mbsnrtowcs: New file.
49908         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49909         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49910         portability problem.
49911
49912 2008-12-21  Bruno Haible  <bruno@clisp.org>
49913
49914         Work around mbsrtowcs bug.
49915         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49916         (gl_FUNC_MBSRTOWCS): Invoke it.
49917         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49918         m4/locale-zh.m4.
49919         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49920
49921 2008-12-21  Bruno Haible  <bruno@clisp.org>
49922
49923         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49924
49925 2008-12-21  Bruno Haible  <bruno@clisp.org>
49926
49927         Update doc for AIX.
49928         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49929         16-bit wchar_t type.
49930         * doc/posix-functions/btowc.texi: Likewise.
49931         * doc/posix-functions/fgetwc.texi: Likewise.
49932         * doc/posix-functions/fgetws.texi: Likewise.
49933         * doc/posix-functions/fputwc.texi: Likewise.
49934         * doc/posix-functions/fputws.texi: Likewise.
49935         * doc/posix-functions/fwide.texi: Likewise.
49936         * doc/posix-functions/fwprintf.texi: Likewise.
49937         * doc/posix-functions/fwscanf.texi: Likewise.
49938         * doc/posix-functions/getwchar.texi: Likewise.
49939         * doc/posix-functions/getwc.texi: Likewise.
49940         * doc/posix-functions/iswalnum.texi: Likewise.
49941         * doc/posix-functions/iswalpha.texi: Likewise.
49942         * doc/posix-functions/iswblank.texi: Likewise.
49943         * doc/posix-functions/iswcntrl.texi: Likewise.
49944         * doc/posix-functions/iswctype.texi: Likewise.
49945         * doc/posix-functions/iswdigit.texi: Likewise.
49946         * doc/posix-functions/iswgraph.texi: Likewise.
49947         * doc/posix-functions/iswlower.texi: Likewise.
49948         * doc/posix-functions/iswprint.texi: Likewise.
49949         * doc/posix-functions/iswpunct.texi: Likewise.
49950         * doc/posix-functions/iswspace.texi: Likewise.
49951         * doc/posix-functions/iswupper.texi: Likewise.
49952         * doc/posix-functions/iswxdigit.texi: Likewise.
49953         * doc/posix-functions/mbrtowc.texi: Likewise.
49954         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49955         * doc/posix-functions/mbstowcs.texi: Likewise.
49956         * doc/posix-functions/mbtowc.texi: Likewise.
49957         * doc/posix-functions/putwchar.texi: Likewise.
49958         * doc/posix-functions/putwc.texi: Likewise.
49959         * doc/posix-functions/swprintf.texi: Likewise.
49960         * doc/posix-functions/tolower.texi: Likewise.
49961         * doc/posix-functions/toupper.texi: Likewise.
49962         * doc/posix-functions/towctrans.texi: Likewise.
49963         * doc/posix-functions/ungetwc.texi: Likewise.
49964         * doc/posix-functions/vswprintf.texi: Likewise.
49965         * doc/posix-functions/wcrtomb.texi: Likewise.
49966         * doc/posix-functions/wcscat.texi: Likewise.
49967         * doc/posix-functions/wcschr.texi: Likewise.
49968         * doc/posix-functions/wcscmp.texi: Likewise.
49969         * doc/posix-functions/wcscoll.texi: Likewise.
49970         * doc/posix-functions/wcscpy.texi: Likewise.
49971         * doc/posix-functions/wcscspn.texi: Likewise.
49972         * doc/posix-functions/wcsftime.texi: Likewise.
49973         * doc/posix-functions/wcslen.texi: Likewise.
49974         * doc/posix-functions/wcsncat.texi: Likewise.
49975         * doc/posix-functions/wcsncmp.texi: Likewise.
49976         * doc/posix-functions/wcsncpy.texi: Likewise.
49977         * doc/posix-functions/wcspbrk.texi: Likewise.
49978         * doc/posix-functions/wcsrchr.texi: Likewise.
49979         * doc/posix-functions/wcsrtombs.texi: Likewise.
49980         * doc/posix-functions/wcsspn.texi: Likewise.
49981         * doc/posix-functions/wcsstr.texi: Likewise.
49982         * doc/posix-functions/wcstod.texi: Likewise.
49983         * doc/posix-functions/wcstof.texi: Likewise.
49984         * doc/posix-functions/wcstoimax.texi: Likewise.
49985         * doc/posix-functions/wcstok.texi: Likewise.
49986         * doc/posix-functions/wcstold.texi: Likewise.
49987         * doc/posix-functions/wcstoll.texi: Likewise.
49988         * doc/posix-functions/wcstol.texi: Likewise.
49989         * doc/posix-functions/wcstombs.texi: Likewise.
49990         * doc/posix-functions/wcstoull.texi: Likewise.
49991         * doc/posix-functions/wcstoul.texi: Likewise.
49992         * doc/posix-functions/wcstoumax.texi: Likewise.
49993         * doc/posix-functions/wcswidth.texi: Likewise.
49994         * doc/posix-functions/wcsxfrm.texi: Likewise.
49995         * doc/posix-functions/wctob.texi: Likewise.
49996         * doc/posix-functions/wctomb.texi: Likewise.
49997         * doc/posix-functions/wctrans.texi: Likewise.
49998         * doc/posix-functions/wctype.texi: Likewise.
49999         * doc/posix-functions/wcwidth.texi: Likewise.
50000         * doc/posix-functions/wmemchr.texi: Likewise.
50001         * doc/posix-functions/wmemcmp.texi: Likewise.
50002         * doc/posix-functions/wmemcpy.texi: Likewise.
50003         * doc/posix-functions/wmemmove.texi: Likewise.
50004         * doc/posix-functions/wmemset.texi: Likewise.
50005         * doc/posix-functions/wprintf.texi: Likewise.
50006         * doc/posix-functions/wscanf.texi: Likewise.
50007
50008 2008-12-21  Bruno Haible  <bruno@clisp.org>
50009
50010         Update doc for HP-UX 11.11.
50011         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50012         in HP-UX version 11.00, not in all versions of HP-UX 11.
50013         * doc/posix-functions/fwide.texi: Likewise.
50014         * doc/posix-functions/fwprintf.texi: Likewise.
50015         * doc/posix-functions/fwscanf.texi: Likewise.
50016         * doc/posix-functions/inet_ntop.texi: Likewise.
50017         * doc/posix-functions/inet_pton.texi: Likewise.
50018         * doc/posix-functions/mbrlen.texi: Likewise.
50019         * doc/posix-functions/mbrtowc.texi: Likewise.
50020         * doc/posix-functions/mbsinit.texi: Likewise.
50021         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50022         * doc/posix-functions/swprintf.texi: Likewise.
50023         * doc/posix-functions/swscanf.texi: Likewise.
50024         * doc/posix-functions/towctrans.texi: Likewise.
50025         * doc/posix-functions/vfwprintf.texi: Likewise.
50026         * doc/posix-functions/vswprintf.texi: Likewise.
50027         * doc/posix-functions/vwprintf.texi: Likewise.
50028         * doc/posix-functions/wcrtomb.texi: Likewise.
50029         * doc/posix-functions/wcsrtombs.texi: Likewise.
50030         * doc/posix-functions/wcsstr.texi: Likewise.
50031         * doc/posix-functions/wctob.texi: Likewise.
50032         * doc/posix-functions/wctrans.texi: Likewise.
50033         * doc/posix-functions/wmemchr.texi: Likewise.
50034         * doc/posix-functions/wmemcmp.texi: Likewise.
50035         * doc/posix-functions/wmemcpy.texi: Likewise.
50036         * doc/posix-functions/wmemmove.texi: Likewise.
50037         * doc/posix-functions/wmemset.texi: Likewise.
50038         * doc/posix-functions/wprintf.texi: Likewise.
50039         * doc/posix-functions/wscanf.texi: Likewise.
50040
50041 2008-12-21  Bruno Haible  <bruno@clisp.org>
50042
50043         Work around a portability problem.
50044         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50045         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50046
50047 2008-12-20  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50050         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50051         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50053         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50054
50055         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50056         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50057         set.
50058         (GNULIB_defined_mbstate_t): New macro.
50059         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50060         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50061         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50062         reuses the system's mbrtowc function but works around the bugs.
50063         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50064         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50065         macros.
50066         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50067         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50068         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50069         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50070         REPLACE_MBSINIT if mbsinit needs to be overridden.
50071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50072         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50073         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50074         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50075         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50076         m4/locale-zh.m4.
50077         (Depends): Add mbsinit.
50078         * modules/mbsinit (Depends): Add mbrtowc.
50079         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50080
50081 2008-12-20  Bruno Haible  <bruno@clisp.org>
50082
50083         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50084         so that there are no conversion errors on AIX.
50085         * tests/test-mbsrtowcs.c (main): LIkewise.
50086
50087 2008-12-20  Bruno Haible  <bruno@clisp.org>
50088
50089         Work around wctob bug on Solaris <= 9.
50090         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50091         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50093         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50094         * modules/wctob (Files): Add m4/locale-fr.m4.
50095         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50096
50097 2008-12-20  Bruno Haible  <bruno@clisp.org>
50098
50099         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50100         /dev/null.
50101         * tests/test-select-in.sh: Likewise.
50102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50103
50104 2008-12-20  Bruno Haible  <bruno@clisp.org>
50105
50106         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50107         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50108         Cygwin 1.5.x.
50109
50110 2008-12-20  Bruno Haible  <bruno@clisp.org>
50111
50112         Ensure mbstate_t is defined on HP-UX 11.11.
50113         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50114         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50115         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50116         AC_USE_SYSTEM_EXTENSIONS.
50117         * modules/fnmatch (Depends-on): Add extensions.
50118         * modules/mbrlen (Depends-on): Likewise.
50119         * modules/mbrtowc (Depends-on): Likewise.
50120         * modules/mbsinit (Depends-on): Likewise.
50121         * modules/mbsrtowcs (Depends-on): Likewise.
50122         * modules/mbswidth (Depends-on): Likewise.
50123         * modules/quotearg (Depends-on): Likewise.
50124         * modules/strftime (Depends-on): Likewise.
50125
50126 2008-12-20  Bruno Haible  <bruno@clisp.org>
50127
50128         Ensure wctob is declared on IRIX 6.5.
50129         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50130         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50131         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50133         of HAVE_WCTOB.
50134         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50135         HAVE_WCTOB.
50136         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50137
50138 2008-12-19  Bruno Haible  <bruno@clisp.org>
50139
50140         * modules/mbsrtowcs-tests: New file.
50141         * tests/test-mbsrtowcs1.sh: New file.
50142         * tests/test-mbsrtowcs2.sh: New file.
50143         * tests/test-mbsrtowcs3.sh: New file.
50144         * tests/test-mbsrtowcs4.sh: New file.
50145         * tests/test-mbsrtowcs.c: New file.
50146
50147         New module 'mbsrtowcs'.
50148         * lib/wchar.in.h (mbsrtowcs): New declaration.
50149         * lib/mbsrtowcs.c: New file.
50150         * m4/mbsrtowcs.m4: New file.
50151         * modules/mbsrtowcs: New file.
50152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50153         HAVE_MBSRTOWCS.
50154         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50155         HAVE_MBSRTOWCS.
50156         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50157
50158 2008-12-19  Bruno Haible  <bruno@clisp.org>
50159
50160         New module 'mbrlen'.
50161         * lib/wchar.in.h (mbrlen): New declaration.
50162         * lib/mbrlen.c: New file.
50163         * m4/mbrlen.m4: New file.
50164         * modules/mbrlen: New file.
50165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50166         HAVE_MBRLEN.
50167         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50168         HAVE_MBRLEN.
50169         * doc/posix-functions/mbrlen.texi: Document the new module.
50170
50171 2008-12-19  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50174         * modules/mbrtowc (Depends-on): Add verify.
50175         Suggested by Paul Eggert.
50176
50177 2008-12-18  Bruno Haible  <bruno@clisp.org>
50178
50179         * modules/mbsinit-tests: New file.
50180         * tests/test-mbsinit.sh: New file.
50181         * tests/test-mbsinit.c: New file.
50182
50183 2008-12-18  Bruno Haible  <bruno@clisp.org>
50184
50185         * modules/mbrtowc-tests: New file.
50186         * tests/test-mbrtowc1.sh: New file.
50187         * tests/test-mbrtowc2.sh: New file.
50188         * tests/test-mbrtowc3.sh: New file.
50189         * tests/test-mbrtowc4.sh: New file.
50190         * tests/test-mbrtowc.c: New file.
50191
50192         New module 'mbrtowc'.
50193         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50194         mbsinit and mbrtowc.
50195         (mbrtowc): New declaration.
50196         * lib/mbrtowc.c: New file.
50197         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50198         * modules/mbrtowc: New file.
50199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50200         HAVE_MBRTOWC.
50201         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50202         HAVE_MBRTOWC.
50203         * doc/posix-functions/mbrtowc.texi: Document the new module.
50204
50205 2008-12-18  Bruno Haible  <bruno@clisp.org>
50206
50207         New module 'wctob'.
50208         * lib/wchar.in.h (wctob): New declaration.
50209         * lib/wctob.c: New file.
50210         * m4/wctob.m4: New file.
50211         * modules/wctob: New file.
50212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50213         HAVE_WCTOB.
50214         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50215         * doc/posix-functions/wctob.texi: Document the new module.
50216
50217 2008-12-18  Bruno Haible  <bruno@clisp.org>
50218
50219         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50220         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50221
50222 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50223
50224         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50225         G. Christensen" <tgc@jupiterrise.com>.
50226
50227         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50228         G. Christensen" <tgc@jupiterrise.com>.
50229
50230         * lib/flock.c: Need to include string.h.  Reported by "Tom
50231         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50232         <ebb9@byu.net>.
50233
50234 2008-12-18  Bruno Haible  <bruno@clisp.org>
50235
50236         * m4/locale-ja.m4: New file, from GNU gettext.
50237
50238 2008-12-17  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50241         Suggested by Eric Blake.
50242
50243 2008-12-17  Bruno Haible  <bruno@clisp.org>
50244
50245         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50246
50247 2008-12-17  Bruno Haible  <bruno@clisp.org>
50248
50249         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50250         * modules/mbsinit (Depends-on): Add verify.
50251         Suggested by Paul Eggert.
50252
50253 2008-12-17  Bruno Haible  <bruno@clisp.org>
50254
50255         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50256         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50257         gl_FUNC_MBRTOWC.
50258         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50259         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50260         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50261         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50262         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50263         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50264         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50265         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50266         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50267         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50268         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50269         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50270         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50271         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50272         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50273         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50274         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50275         * modules/trim (configure.ac): Likewise.
50276
50277 2008-12-17  Bruno Haible  <bruno@clisp.org>
50278
50279         * modules/btowc-tests: New file.
50280         * tests/test-btowc1.sh: New file.
50281         * tests/test-btowc2.sh: New file.
50282         * tests/test-btowc.c: New file.
50283
50284         New module 'btowc'.
50285         * lib/wchar.in.h (btowc): New declaration.
50286         * lib/btowc.c: New file.
50287         * m4/btowc.m4: New file.
50288         * modules/btowc: New file.
50289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50290         HAVE_BTOWC.
50291         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50292         * doc/posix-functions/btowc.texi: Document the new module.
50293
50294 2008-12-17  Bruno Haible  <bruno@clisp.org>
50295
50296         New module 'mbsinit'.
50297         * lib/wchar.in.h (mbsinit): New declaration.
50298         * lib/mbsinit.c: New file.
50299         * m4/mbsinit.m4: New file.
50300         * modules/mbsinit: New file.
50301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50302         HAVE_MBSINIT.
50303         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50304         HAVE_MBSINIT.
50305         * doc/posix-functions/mbsinit.texi: Document the new module.
50306
50307 2008-12-16  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/unistd.in.h: Add comment.
50310         * tests/test-environ.c: Don't include <stdlib.h>.
50311
50312 2008-12-16  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/parse-duration.h (parse_duration): Document return value
50315         convention.
50316         * lib/parse-duration.c: Include specification header first. Add
50317         comments.
50318         (_): Remove macro.
50319         (parse_year_month_day, parse_hour_minute_second): Move side effects
50320         outside of strchr call.
50321         (parse_non_iso8601): Move side effects outside of isspace call.
50322         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50323         call.
50324
50325 2008-12-16  Bruno Haible  <bruno@clisp.org>
50326
50327         * tests/test-parse-duration.sh: Produce no output when the test
50328         succeeds.
50329
50330 2008-12-16  Bruno Haible  <bruno@clisp.org>
50331
50332         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50333         expressions.
50334
50335 2008-12-15  Bruno Haible  <bruno@clisp.org>
50336
50337         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50338         * doc/glibc-functions/flistxattr.texi: Likewise.
50339         * doc/glibc-functions/fopencookie.texi: Likewise.
50340         * doc/glibc-functions/fremovexattr.texi: Likewise.
50341         * doc/glibc-functions/fsetxattr.texi: Likewise.
50342         * doc/glibc-functions/getxattr.texi: Likewise.
50343         * doc/glibc-functions/lgetxattr.texi: Likewise.
50344         * doc/glibc-functions/listxattr.texi: Likewise.
50345         * doc/glibc-functions/llistxattr.texi: Likewise.
50346         * doc/glibc-functions/lremovexattr.texi: Likewise.
50347         * doc/glibc-functions/lsetxattr.texi: Likewise.
50348         * doc/glibc-functions/removexattr.texi: Likewise.
50349         * doc/glibc-functions/setxattr.texi: Likewise.
50350         * doc/posix-functions/open_memstream.texi: Likewise.
50351
50352 2008-12-15  Eric Blake  <ebb9@byu.net>
50353
50354         Update doc for cygwin 1.7.
50355         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50356         functions.
50357         * doc/posix-functions/fchmodat.texi: Likewise.
50358         * doc/posix-functions/fchownat.texi: Likewise.
50359         * doc/posix-functions/fdopendir.texi: Likewise.
50360         * doc/posix-functions/fmemopen.texi: Likewise.
50361         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50362         * doc/posix-functions/fstatat.texi: Likewise.
50363         * doc/posix-functions/futimens.texi: Likewise.
50364         * doc/posix-functions/gai_strerror.texi: Likewise.
50365         * doc/posix-functions/getaddrinfo.texi: Likewise.
50366         * doc/posix-functions/getnameinfo.texi: Likewise.
50367         * doc/posix-functions/if_freenameindex.texi: Likewise.
50368         * doc/posix-functions/if_indextoname.texi: Likewise.
50369         * doc/posix-functions/if_nameindex.texi: Likewise.
50370         * doc/posix-functions/if_nametoindex.texi: Likewise.
50371         * doc/posix-functions/insque.texi: Likewise.
50372         * doc/posix-functions/linkat.texi: Likewise.
50373         * doc/posix-functions/llrint.texi: Likewise.
50374         * doc/posix-functions/llrintf.texi: Likewise.
50375         * doc/posix-functions/llrintl.texi: Likewise.
50376         * doc/posix-functions/lockf.texi: Likewise.
50377         * doc/posix-functions/lrintl.texi: Likewise.
50378         * doc/posix-functions/mkdirat.texi: Likewise.
50379         * doc/posix-functions/mkfifoat.texi: Likewise.
50380         * doc/posix-functions/mknodat.texi: Likewise.
50381         * doc/posix-functions/mq_close.texi: Likewise.
50382         * doc/posix-functions/mq_getattr.texi: Likewise.
50383         * doc/posix-functions/mq_notify.texi: Likewise.
50384         * doc/posix-functions/mq_open.texi: Likewise.
50385         * doc/posix-functions/mq_receive.texi: Likewise.
50386         * doc/posix-functions/mq_send.texi: Likewise.
50387         * doc/posix-functions/mq_setattr.texi: Likewise.
50388         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50389         * doc/posix-functions/mq_timedsend.texi: Likewise.
50390         * doc/posix-functions/mq_unlink.texi: Likewise.
50391         * doc/posix-functions/open_memstream.texi: Likewise.
50392         * doc/posix-functions/openat.texi: Likewise.
50393         * doc/posix-functions/posix_fadvise.texi: Likewise.
50394         * doc/posix-functions/posix_fallocate.texi: Likewise.
50395         * doc/posix-functions/posix_madvise.texi: Likewise.
50396         * doc/posix-functions/posix_memalign.texi: Likewise.
50397         * doc/posix-functions/posix_openpt.texi: Likewise.
50398         * doc/posix-functions/readlinkat.texi: Likewise.
50399         * doc/posix-functions/remque.texi: Likewise.
50400         * doc/posix-functions/renameat.texi: Likewise.
50401         * doc/posix-functions/rintl.texi: Likewise.
50402         * doc/posix-functions/sem_unlink.texi: Likewise.
50403         * doc/posix-functions/shm_open.texi: Likewise.
50404         * doc/posix-functions/shm_unlink.texi: Likewise.
50405         * doc/posix-functions/signgam.texi: Likewise.
50406         * doc/posix-functions/sigset.texi: Likewise.
50407         * doc/posix-functions/stpcpy.texi: Likewise.
50408         * doc/posix-functions/stpncpy.texi: Likewise.
50409         * doc/posix-functions/strerror.texi: Likewise.
50410         * doc/posix-functions/strtod.texi: Likewise.
50411         * doc/posix-functions/symlinkat.texi: Likewise.
50412         * doc/posix-functions/unlinkat.texi: Likewise.
50413         * doc/posix-functions/utimensat.texi: Likewise.
50414         * doc/glibc-functions/bindresvport.texi: Likewise.
50415         * doc/glibc-functions/dn_expand.texi: Likewise.
50416         * doc/glibc-functions/exp10.texi: Likewise.
50417         * doc/glibc-functions/exp10f.texi: Likewise.
50418         * doc/glibc-functions/fgetxattr.texi: Likewise.
50419         * doc/glibc-functions/flistxattr.texi: Likewise.
50420         * doc/glibc-functions/fopencookie.texi: Likewise.
50421         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50422         * doc/glibc-functions/fremovexattr.texi: Likewise.
50423         * doc/glibc-functions/fsetxattr.texi: Likewise.
50424         * doc/glibc-functions/getifaddrs.texi: Likewise.
50425         * doc/glibc-functions/getxattr.texi: Likewise.
50426         * doc/glibc-functions/lgetxattr.texi: Likewise.
50427         * doc/glibc-functions/listxattr.texi: Likewise.
50428         * doc/glibc-functions/llistxattr.texi: Likewise.
50429         * doc/glibc-functions/lremovexattr.texi: Likewise.
50430         * doc/glibc-functions/lsetxattr.texi: Likewise.
50431         * doc/glibc-functions/pow10.texi: Likewise.
50432         * doc/glibc-functions/pow10f.texi: Likewise.
50433         * doc/glibc-functions/rcmd_af.texi: Likewise.
50434         * doc/glibc-functions/removexattr.texi: Likewise.
50435         * doc/glibc-functions/res_init.texi: Likewise.
50436         * doc/glibc-functions/res_mkquery.texi: Likewise.
50437         * doc/glibc-functions/res_query.texi: Likewise.
50438         * doc/glibc-functions/res_querydomain.texi: Likewise.
50439         * doc/glibc-functions/res_send.texi: Likewise.
50440         * doc/glibc-functions/rresvport_af.texi: Likewise.
50441         * doc/glibc-functions/setxattr.texi: Likewise.
50442         * doc/glibc-functions/strcasestr.texi: Likewise.
50443
50444 2008-12-15  Bruno Haible  <bruno@clisp.org>
50445
50446         Fix compilation error on OSF/1 4.0.
50447         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50448         <sys/time.h>, simply delegate to the system header.
50449         Reported by Daniel Richard G. <oss@teragram.com>.
50450
50451 2008-12-15  Bruno Haible  <bruno@clisp.org>
50452
50453         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50454         * doc/posix-functions/fchmodat.texi: Likewise.
50455         * doc/posix-functions/fchownat.texi: Likewise.
50456         * doc/posix-functions/fdopendir.texi: Likewise.
50457         * doc/posix-functions/fstatat.texi: Likewise.
50458         * doc/posix-functions/mkdirat.texi: Likewise.
50459         * doc/posix-functions/unlinkat.texi: Likewise.
50460
50461 2008-12-14  Bruno Haible  <bruno@clisp.org>
50462
50463         Update doc for POSIX:2008.
50464         * doc/posix-functions/faccessat.texi: New file.
50465         * doc/posix-functions/fchmodat.texi: New file.
50466         * doc/posix-functions/fchownat.texi: New file.
50467         * doc/posix-functions/fdopendir.texi: New file.
50468         * doc/posix-functions/fstatat.texi: New file.
50469         * doc/posix-functions/futimens.texi: New file.
50470         * doc/posix-functions/linkat.texi: New file.
50471         * doc/posix-functions/mkdirat.texi: New file.
50472         * doc/posix-functions/mkfifoat.texi: New file.
50473         * doc/posix-functions/mknodat.texi: New file.
50474         * doc/posix-functions/open_wmemstream.texi: New file.
50475         * doc/posix-functions/openat.texi: New file.
50476         * doc/posix-functions/psiginfo.texi: New file.
50477         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50478         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50479         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50480         * doc/posix-functions/readlinkat.texi: New file.
50481         * doc/posix-functions/renameat.texi: New file.
50482         * doc/posix-functions/strerror_l.texi: New file.
50483         * doc/posix-functions/symlinkat.texi: New file.
50484         * doc/posix-functions/unlinkat.texi: New file.
50485         * doc/posix-functions/utimensat.texi: New file.
50486         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50487
50488 2008-12-14  Bruno Haible  <bruno@clisp.org>
50489
50490         Update doc for POSIX:2008.
50491         * doc/posix-functions/alphasort.texi: Renamed from
50492         doc/glibc-functions/alphasort.texi.
50493         * doc/posix-functions/dirfd.texi: Renamed from
50494         doc/glibc-functions/dirfd.texi.
50495         * doc/posix-functions/dprintf.texi: Renamed from
50496         doc/glibc-functions/dprintf.texi.
50497         * doc/posix-functions/duplocale.texi: Renamed from
50498         doc/glibc-functions/duplocale.texi.
50499         * doc/posix-functions/fexecve.texi: Renamed from
50500         doc/glibc-functions/fexecve.texi.
50501         * doc/posix-functions/fmemopen.texi: Renamed from
50502         doc/glibc-functions/fmemopen.texi.
50503         * doc/posix-functions/freelocale.texi: Renamed from
50504         doc/glibc-functions/freelocale.texi.
50505         * doc/posix-functions/getdate_err.texi: Renamed from
50506         doc/glibc-functions/getdate_err.texi.
50507         * doc/posix-functions/isalnum_l.texi: Renamed from
50508         doc/glibc-functions/isalnum_l.texi.
50509         * doc/posix-functions/isalpha_l.texi: Renamed from
50510         doc/glibc-functions/isalpha_l.texi.
50511         * doc/posix-functions/isblank_l.texi: Renamed from
50512         doc/glibc-functions/isblank_l.texi.
50513         * doc/posix-functions/iscntrl_l.texi: Renamed from
50514         doc/glibc-functions/iscntrl_l.texi.
50515         * doc/posix-functions/isdigit_l.texi: Renamed from
50516         doc/glibc-functions/isdigit_l.texi.
50517         * doc/posix-functions/isgraph_l.texi: Renamed from
50518         doc/glibc-functions/isgraph_l.texi.
50519         * doc/posix-functions/islower_l.texi: Renamed from
50520         doc/glibc-functions/islower_l.texi.
50521         * doc/posix-functions/isprint_l.texi: Renamed from
50522         doc/glibc-functions/isprint_l.texi.
50523         * doc/posix-functions/ispunct_l.texi: Renamed from
50524         doc/glibc-functions/ispunct_l.texi.
50525         * doc/posix-functions/isspace_l.texi: Renamed from
50526         doc/glibc-functions/isspace_l.texi.
50527         * doc/posix-functions/isupper_l.texi: Renamed from
50528         doc/glibc-functions/isupper_l.texi.
50529         * doc/posix-functions/iswalnum_l.texi: Renamed from
50530         doc/glibc-functions/iswalnum_l.texi.
50531         * doc/posix-functions/iswalpha_l.texi: Renamed from
50532         doc/glibc-functions/iswalpha_l.texi.
50533         * doc/posix-functions/iswblank_l.texi: Renamed from
50534         doc/glibc-functions/iswblank_l.texi.
50535         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50536         doc/glibc-functions/iswcntrl_l.texi.
50537         * doc/posix-functions/iswctype_l.texi: Renamed from
50538         doc/glibc-functions/iswctype_l.texi.
50539         * doc/posix-functions/iswdigit_l.texi: Renamed from
50540         doc/glibc-functions/iswdigit_l.texi.
50541         * doc/posix-functions/iswgraph_l.texi: Renamed from
50542         doc/glibc-functions/iswgraph_l.texi.
50543         * doc/posix-functions/iswlower_l.texi: Renamed from
50544         doc/glibc-functions/iswlower_l.texi.
50545         * doc/posix-functions/iswprint_l.texi: Renamed from
50546         doc/glibc-functions/iswprint_l.texi.
50547         * doc/posix-functions/iswpunct_l.texi: Renamed from
50548         doc/glibc-functions/iswpunct_l.texi.
50549         * doc/posix-functions/iswspace_l.texi: Renamed from
50550         doc/glibc-functions/iswspace_l.texi.
50551         * doc/posix-functions/iswupper_l.texi: Renamed from
50552         doc/glibc-functions/iswupper_l.texi.
50553         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50554         doc/glibc-functions/iswxdigit_l.texi.
50555         * doc/posix-functions/isxdigit_l.texi: Renamed from
50556         doc/glibc-functions/isxdigit_l.texi.
50557         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50558         doc/glibc-functions/mbsnrtowcs.texi.
50559         * doc/posix-functions/mkdtemp.texi: Renamed from
50560         doc/glibc-functions/mkdtemp.texi.
50561         * doc/posix-functions/newlocale.texi: Renamed from
50562         doc/glibc-functions/newlocale.texi.
50563         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50564         doc/glibc-functions/nl_langinfo_l.texi.
50565         * doc/posix-functions/open_memstream.texi: Renamed from
50566         doc/glibc-functions/open_memstream.texi.
50567         * doc/posix-functions/opterr.texi: Renamed from
50568         doc/glibc-functions/opterr.texi.
50569         * doc/posix-functions/optind.texi: Renamed from
50570         doc/glibc-functions/optind.texi.
50571         * doc/posix-functions/optopt.texi: Renamed from
50572         doc/glibc-functions/optopt.texi.
50573         * doc/posix-functions/psignal.texi: Renamed from
50574         doc/glibc-functions/psignal.texi.
50575         * doc/posix-functions/scandir.texi: Renamed from
50576         doc/glibc-functions/scandir.texi.
50577         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50578         doc/glibc-functions/sched_get_priority_min.texi.
50579         * doc/posix-functions/signgam.texi: Renamed from
50580         doc/glibc-functions/signgam.texi.
50581         * doc/posix-functions/stpcpy.texi: Renamed from
50582         doc/glibc-functions/stpcpy.texi.
50583         * doc/posix-functions/stpncpy.texi: Renamed from
50584         doc/glibc-functions/stpncpy.texi.
50585         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50586         doc/glibc-functions/strcasecmp_l.texi.
50587         * doc/posix-functions/strcoll_l.texi: Renamed from
50588         doc/glibc-functions/strcoll_l.texi.
50589         * doc/posix-functions/strfmon_l.texi: Renamed from
50590         doc/glibc-functions/strfmon_l.texi.
50591         * doc/posix-functions/strftime_l.texi: Renamed from
50592         doc/glibc-functions/strftime_l.texi.
50593         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50594         doc/glibc-functions/strncasecmp_l.texi.
50595         * doc/posix-functions/strndup.texi: Renamed from
50596         doc/glibc-functions/strndup.texi.
50597         * doc/posix-functions/strnlen.texi: Renamed from
50598         doc/glibc-functions/strnlen.texi.
50599         * doc/posix-functions/strsignal.texi: Renamed from
50600         doc/glibc-functions/strsignal.texi.
50601         * doc/posix-functions/strxfrm_l.texi: Renamed from
50602         doc/glibc-functions/strxfrm_l.texi.
50603         * doc/posix-functions/timer_gettime.texi: Renamed from
50604         doc/glibc-functions/timer_gettime.texi.
50605         * doc/posix-functions/tolower_l.texi: Renamed from
50606         doc/glibc-functions/tolower_l.texi.
50607         * doc/posix-functions/toupper_l.texi: Renamed from
50608         doc/glibc-functions/toupper_l.texi.
50609         * doc/posix-functions/towctrans_l.texi: Renamed from
50610         doc/glibc-functions/towctrans_l.texi.
50611         * doc/posix-functions/towlower_l.texi: Renamed from
50612         doc/glibc-functions/towlower_l.texi.
50613         * doc/posix-functions/towupper_l.texi: Renamed from
50614         doc/glibc-functions/towupper_l.texi.
50615         * doc/posix-functions/uselocale.texi: Renamed from
50616         doc/glibc-functions/uselocale.texi.
50617         * doc/posix-functions/vdprintf.texi: Renamed from
50618         doc/glibc-functions/vdprintf.texi.
50619         * doc/posix-functions/wcpcpy.texi:
50620         Renamed from doc/glibc-functions/wcpcpy.texi.
50621         * doc/posix-functions/wcpncpy.texi: Renamed from
50622         doc/glibc-functions/wcpncpy.texi.
50623         * doc/posix-functions/wcscasecmp.texi: Renamed from
50624         doc/glibc-functions/wcscasecmp.texi.
50625         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50626         doc/glibc-functions/wcscasecmp_l.texi.
50627         * doc/posix-functions/wcscoll_l.texi: Renamed from
50628         doc/glibc-functions/wcscoll_l.texi.
50629         * doc/posix-functions/wcsdup.texi: Renamed from
50630         doc/glibc-functions/wcsdup.texi.
50631         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50632         doc/glibc-functions/wcsncasecmp.texi.
50633         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50634         doc/glibc-functions/wcsncasecmp_l.texi.
50635         * doc/posix-functions/wcsnlen.texi: Renamed from
50636         doc/glibc-functions/wcsnlen.texi.
50637         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50638         doc/glibc-functions/wcsnrtombs.texi.
50639         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50640         doc/glibc-functions/wcsxfrm_l.texi.
50641         * doc/posix-functions/wctrans_l.texi: Renamed from
50642         doc/glibc-functions/wctrans_l.texi.
50643         * doc/posix-functions/wctype_l.texi: Renamed from
50644         doc/glibc-functions/wctype_l.texi.
50645         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50646         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50647         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50648         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50649         these subsections.
50650         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50651         Remove sections.
50652
50653 2008-12-14  Bruno Haible  <bruno@clisp.org>
50654
50655         Update doc for POSIX:2008.
50656         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50657
50658 2008-12-14  Bruno Haible  <bruno@clisp.org>
50659
50660         Update doc for POSIX:2008.
50661         * doc/pastposix-functions/bcmp.texi: Renamed from
50662         doc/posix-functions/bcmp.texi.
50663         * doc/pastposix-functions/bcopy.texi: Renamed from
50664         doc/posix-functions/bcopy.texi.
50665         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50666         doc/posix-functions/bsd_signal.texi.
50667         * doc/pastposix-functions/bzero.texi: Renamed from
50668         doc/posix-functions/bzero.texi.
50669         * doc/pastposix-functions/ecvt.texi: Renamed from
50670         doc/posix-functions/ecvt.texi.
50671         * doc/pastposix-functions/fcvt.texi: Renamed from
50672         doc/posix-functions/fcvt.texi.
50673         * doc/pastposix-functions/ftime.texi: Renamed from
50674         doc/posix-functions/ftime.texi.
50675         * doc/pastposix-functions/gcvt.texi: Renamed from
50676         doc/posix-functions/gcvt.texi.
50677         * doc/pastposix-functions/getcontext.texi: Renamed from
50678         doc/posix-functions/getcontext.texi.
50679         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50680         doc/posix-functions/gethostbyaddr.texi.
50681         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50682         doc/posix-functions/gethostbyname.texi.
50683         * doc/pastposix-functions/getwd.texi: Renamed from
50684         doc/posix-functions/getwd.texi.
50685         * doc/pastposix-functions/h_errno.texi: Renamed from
50686         doc/posix-functions/h_errno.texi.
50687         * doc/pastposix-functions/index.texi: Renamed from
50688         doc/posix-functions/index.texi.
50689         * doc/pastposix-functions/makecontext.texi: Renamed from
50690         doc/posix-functions/makecontext.texi.
50691         * doc/pastposix-functions/mktemp.texi: Renamed from
50692         doc/posix-functions/mktemp.texi.
50693         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50694         doc/posix-functions/pthread_attr_getstackaddr.texi.
50695         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50696         doc/posix-functions/pthread_attr_setstackaddr.texi.
50697         * doc/pastposix-functions/rindex.texi: Renamed from
50698         doc/posix-functions/rindex.texi.
50699         * doc/pastposix-functions/scalb.texi: Renamed from
50700         doc/posix-functions/scalb.texi.
50701         * doc/pastposix-functions/setcontext.texi: Renamed from
50702         doc/posix-functions/setcontext.texi.
50703         * doc/pastposix-functions/swapcontext.texi: Renamed from
50704         doc/posix-functions/swapcontext.texi.
50705         * doc/pastposix-functions/ualarm.texi: Renamed from
50706         doc/posix-functions/ualarm.texi.
50707         * doc/pastposix-functions/usleep.texi: Renamed from
50708         doc/posix-functions/usleep.texi.
50709         * doc/pastposix-functions/vfork.texi: Renamed from
50710         doc/posix-functions/vfork.texi.
50711         * doc/pastposix-functions/wcswcs.texi: Renamed from
50712         doc/posix-functions/wcswcs.texi.
50713         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50714         (Function Substitutes): Update.
50715
50716 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50717
50718         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50719         m4/strerror.m4.
50720
50721 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50722             Bruno Haible  <bruno@clisp.org>
50723
50724         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50725
50726 2008-12-13  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/strtoull (Depends-on): Remove unistd.
50729
50730 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50731
50732         * modules/strtoull (Depends-on): Add stdlib.
50733
50734 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50735
50736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50737
50738 2008-12-10  Jim Meyering  <meyering@redhat.com>
50739
50740         gl_ASSERT: don't say assertions are disabled when they're not
50741         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50742         "checking whether to enable assertions... no", when they are in
50743         fact enabled.  This is solely a bug in the output of configure.
50744         In spite of saying "no", NDEBUG was not defined in that case.
50745         Also, as noted by Eric Blake, leave assertions enabled upon
50746         --enable-assert=INVALID.
50747
50748 2008-12-10  Bruno Haible  <bruno@clisp.org>
50749
50750         Change MODULES.html to refer to POSIX:2008 where possible.
50751         * MODULES.html.sh (POSIX2008_URL): New variable.
50752         (posix_headers): Remove sys/timeb, ucontext.
50753         (posix2001_headers): New variable.
50754         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50755         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50756         index, makecontext, mktemp, pthread_attr_getstackaddr,
50757         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50758         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50759         (posix2001_functions): New variable.
50760         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50761         otherwise.
50762
50763 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50764
50765         add missing include to parse-duration.c
50766         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50767         * modules/parse-duration (Depends-on): Add xalloc.
50768
50769         fix sed script reading maint.mk
50770         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50771         (syntax-check-rules): Use it.
50772
50773 2008-12-09  Bruno Haible  <bruno@clisp.org>
50774
50775         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50776         MacOS X 10.4/PowerPC.
50777         Reported by Simon Josefsson.
50778
50779 2008-12-08  Jim Meyering  <meyering@redhat.com>
50780
50781         work around mingw's lack of some S_IF definitions
50782         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50783         Reported by Simon Josefsson.
50784
50785 2008-12-08  Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50788         applied to variables. Needed on MacOS X 10.4/PowerPC.
50789         Reported by Simon Josefsson.
50790
50791 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50792         and Eric Blake  <ebb9@byu.net>
50793
50794         assert: honor --enable-assert
50795         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50796         order to honor --enable-assert, rather than treating it as a
50797         synonym for --disable-assert.
50798
50799 2008-12-08  Jim Meyering  <meyering@redhat.com>
50800
50801         * lib/posixtm.c: Remove now-useless declaration of mktime.
50802
50803         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50804
50805 2008-12-07  Bruno Haible  <bruno@clisp.org>
50806
50807         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50808         test_once): Mark functions as static.
50809         * tests/test-tls.c (test_tls): Likewise.
50810
50811 2008-12-07  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50814         iconv_register_autodetect.
50815
50816 2008-12-07  Jim Meyering  <meyering@redhat.com>
50817
50818         posixtm.c: avoid a warning
50819         * lib/posixtm.c (posixtime): Don't initialize tm0.
50820         It's no longer needed to placate gcc4's -Wuninitialized,
50821         and the attempt to placate would elicit a new warning.
50822
50823         unicodeio.c: mark unused parameters
50824         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50825         (fallback_failure_callback): Likewise.
50826
50827 2008-12-07  Bruno Haible  <bruno@clisp.org>
50828
50829         * gnulib-tool (func_create_testdir): When building the tests
50830         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50831         Reported by Simon Josefsson.
50832
50833 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50834
50835         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50836
50837 2008-12-06  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50840         Suggested by Eric Blake.
50841
50842 2008-12-06  Bruno Haible  <bruno@clisp.org>
50843
50844         Fix a c-stack test failure on MacOS X.
50845         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50846         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50847         handler for SIGBUS as well.
50848         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50849         install a signal handler for SIGBUS as well.
50850         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50851
50852 2008-12-06  Bruno Haible  <bruno@clisp.org>
50853
50854         Advocacy documentation.
50855         * doc/gnulib-intro.texi (Benefits): New section.
50856         * doc/gnulib.texi: Update.
50857
50858 2008-12-06  Bruno Haible  <bruno@clisp.org>
50859
50860         Document the 'manywarnings' module.
50861         * doc/manywarnings.texi: New file.
50862         * doc/gnulib.texi: Include it.
50863
50864 2008-12-05  Eric Blake  <ebb9@byu.net>
50865
50866         tests: silence some gcc warnings
50867         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50868         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50869         type mismatches.
50870
50871 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50872             Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50875
50876 2008-11-29  Jim Meyering  <meyering@redhat.com>
50877
50878         unicodeio.c: mark unused parameters
50879         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50880         (fallback_failure_callback): Likewise.
50881
50882         fts: fix a thinko
50883         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50884         (set_stat_type): Return S_IF*-valued "type" directly.
50885         Prompted by James Youngman's spotting a related bug.
50886         Confirmed by further testing through find.
50887
50888         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50889         * lib/fts.c (D_TYPE): Define.
50890         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50891         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50892         (s_ifmt_shift_bits): New function.
50893         (set_stat_type): New function.
50894         (fts_build): When not calling fts_stat, call set_stat_type
50895         to propagate dirent.d_type info to fts_read caller.
50896         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50897         fts_statp->st_mode type information may be valid.
50898
50899 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50900
50901         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50902         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50903         <sds@gnu.org>.
50904
50905 2008-11-20  Bruno Haible  <bruno@clisp.org>
50906
50907         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50908         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50909         INCLUDE_NEXT.
50910         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50911         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50912         * modules/math (Makefile.am): Substitute
50913         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50914         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50915
50916 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50917             Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/stdint.in.h: Define all type macros so that their expansion is
50920         a single typedef'ed token. Fixes a compilation failure in Boost which
50921         does "using ::int8_t;".
50922
50923 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50924
50925         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50926         gl_MANYWARN_ALL_GCC.
50927         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50928         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50929         * modules/manywarnings: New file.
50930         * MODULES.html.sh: Mention manywarnings module.
50931
50932 2008-11-18  Bruno Haible  <bruno@clisp.org>
50933
50934         * doc/gnulib-tool.texi (Unit tests): New section.
50935
50936 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50937
50938         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50939         paths like 'lib/po/foo.po'.
50940
50941 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50942
50943         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50944         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50945
50946 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50947
50948         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50949         parameter works.
50950
50951 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50952
50953         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50954
50955 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50956
50957         * modules/parse-duration-tests: New file.
50958         * tests/test-parse-duration.sh: New file.
50959         * tests/test-parse-duration.c: New file.
50960
50961         New module 'parse-duration'.
50962         * lib/parse-duration.h: New file.
50963         * lib/parse-duration.c: New file.
50964         * modules/parse-duration: New file.
50965
50966 2008-11-17  Bruno Haible  <bruno@clisp.org>
50967
50968         * tests/test-select-out.sh: Comment out the first pipe test.
50969         Reported by Simon Josefsson.
50970
50971 2008-11-17  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50974         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50975         gl_HOSTENT.
50976
50977 2008-11-17  Bruno Haible  <bruno@clisp.org>
50978
50979         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50980         -lnetwork and -lnet. Needed for Haiku and BeOS.
50981
50982 2008-11-16  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50985
50986 2008-11-16  Bruno Haible  <bruno@clisp.org>
50987
50988         Avoid test failure on Haiku.
50989         * tests/test-fsync.c: Include <errno.h>.
50990         (main): Don't require that fsync (0) fails.
50991
50992 2008-11-15  Bruno Haible  <bruno@clisp.org>
50993
50994         New module 'hostent'.
50995         * modules/hostent: New file.
50996         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50997
50998 2008-11-15  Bruno Haible  <bruno@clisp.org>
50999
51000         New module 'servent'.
51001         * modules/servent: New file.
51002         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51003
51004 2008-11-15  Bruno Haible  <bruno@clisp.org>
51005
51006         Avoid generating same test program with two different rules.
51007         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51008         test-frexp to test-frexp-nolibm.
51009         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51010         test-frexpl to test-frexpl-nolibm.
51011
51012 2008-11-15  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51015         $(FREXPL_LIBM).
51016
51017 2008-11-15  Bruno Haible  <bruno@clisp.org>
51018
51019         * lib/netdb.in.h: Activate the definitions also when the system's
51020         <netdb.h> has 'struct addrinfo'.
51021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51022         EAI_OVERFLOW or AI_NUMERICSERV.
51023         * doc/posix-headers/netdb.texi: Document the problem.
51024
51025 2008-11-15  Bruno Haible  <bruno@clisp.org>
51026
51027         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51028
51029         Make the 'sched' module work on platforms where <sched.h> exists but
51030         is incomplete (such as Haiku).
51031         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51032         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51033         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51034         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51035         HAVE_STRUCT_SCHED_PARAM.
51036         * modules/sched (Depends-on): Add include_next.
51037         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51038         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51039         * doc/posix-headers/sched.texi: Document the issue.
51040
51041 2008-11-13  Jim Meyering  <meyering@redhat.com>
51042
51043         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51044         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51045         test would fail due to the difference in the Report bugs to ...
51046         line.  The expected address is empty, "<>", while the actual
51047         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51048
51049 2008-11-12  Bruno Haible  <bruno@clisp.org>
51050
51051         lstat: don't compile lstat.c on systems lacking lstat
51052         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51053         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51054         Reported by Daniel P. Berrange via Jim Meyering.
51055
51056 2008-11-12  Jim Meyering  <meyering@redhat.com>
51057
51058         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51059
51060 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51061
51062         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51063         instead.
51064
51065 2008-11-12  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/unicodeio.c: Include unistr.h.
51068         (utf8_wctomb): Remove function.
51069         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51070
51071 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51072
51073         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51074         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51075         <bruno@clisp.org>.
51076         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51077
51078 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51079
51080         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51081         * doc/gnulib.texi: Add section for warnings.
51082
51083 2008-11-11  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/sockets.h: Add a comment.
51086
51087 2008-11-11  Karl Berry  <karl@gnu.org>
51088
51089         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51090
51091 2008-11-11  Eric Blake  <ebb9@byu.net>
51092
51093         fdl.texi: avoid git symlinks
51094         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51095
51096 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51097
51098         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51099
51100 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51101
51102         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51103         (gl_WARN_ADD): Substitute $2 if literal.
51104
51105 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51106
51107         * m4/warning.m4: Remove.
51108
51109 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51110
51111         * m4/warnings.m4: Almost complete rewrite. :-)
51112
51113 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51114
51115         * modules/warnings: New module.
51116         * m4/warnings.m4: New file.
51117         * MODULES.html.sh: Mention warnings module.
51118         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51119         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51120
51121 2008-11-10  Eric Blake  <ebb9@byu.net>
51122
51123         fdl.texi: make a symlink to the latest version
51124         * doc/standards.texi: Revert today's earlier change.
51125         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51126         * doc/fdl.texi: ...and replace this with a symlink to the newer
51127         fdl-1.3.texi.
51128
51129 2008-11-10  Bruno Haible  <bruno@clisp.org>
51130
51131         * tests/test-select-fd.c (main): Accept the result file name as fourth
51132         argument.
51133         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51134         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51135
51136 2008-11-10  Bruno Haible  <bruno@clisp.org>
51137
51138         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51139         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51140         as autoconf-substituted macros.
51141         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51143         gl_NETDB_H_DEFAULTS. Set these variables.
51144         * modules/netdb (Makefile.am): Substitute these variables.
51145
51146 2008-11-10  Eric Blake  <ebb9@byu.net>
51147
51148         standards.texi: include correct file for FDL 1.3
51149         * doc/standards.texi (GNU Free Documentation License): Change
51150         include file to pull in FDL 1.3, not 1.2.
51151
51152         fdl.texi: revert accidental change to license
51153         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51154
51155 2008-11-10  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51158         cross-compiling guesses also when the native compile gives no result.
51159
51160 2008-11-10  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/spawni.c (__spawni): Force variable into the stack.
51163
51164 2008-11-10  Bruno Haible  <bruno@clisp.org>
51165
51166         Add support for Haiku.
51167         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51168         glibc and BeOS, but also on Haiku.
51169         * lib/fpurge.c (fpurge): Likewise.
51170         * lib/freadable.c (freadable): Likewise.
51171         * lib/freadahead.c (freadahead): Likewise.
51172         * lib/freading.c (freading): Likewise.
51173         * lib/freadptr.c (freadptr): Likewise.
51174         * lib/freadseek.c (freadptrinc): Likewise.
51175         * lib/fseeko.c (rpl_fseeko): Likewise.
51176         * lib/fseterr.c (fseterr): Likewise.
51177         * lib/fwritable.c (fwritable): Likewise.
51178         * lib/fwriting.c (fwriting): Likewise.
51179         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51180
51181 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51182
51183         * lib/config.charset: Treat Haiku like BeOS.
51184
51185 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51186
51187         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51188         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51189
51190 2008-11-08  Bruno Haible  <bruno@clisp.org>
51191
51192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51193         AC_CACHE_CHECK.
51194
51195 2008-11-08  Bruno Haible  <bruno@clisp.org>
51196
51197         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51198
51199 2008-11-08  Bruno Haible  <bruno@clisp.org>
51200
51201         * tests/test-select-fd.c: New file.
51202         * tests/test-select-in.sh: New file.
51203         * tests/test-select-out.sh: New file.
51204         * tests/test-select-stdin.c: New file.
51205         * modules/select-tests (Files): Add the new files.
51206         (Depends-on): Add gettimeofday.
51207         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51208         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51209         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51210
51211 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51212             Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51215
51216 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51217
51218         * build-aux/pmccabe2html: Added support for C++ source files.
51219
51220 2008-11-05  Ben Pfaff  <blp@gnu.org>
51221
51222         Fix lib/close.c build on Windows.
51223         * modules/close (Files): Add lib/w32sock.h.
51224
51225 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51226
51227         Accept Bison's NEWS format.
51228         * build-aux/announce-gen (print_news_deltas): Tweak
51229         $re_prefix.
51230
51231 2008-11-04  Bruno Haible  <bruno@clisp.org>
51232
51233         * modules/random_r (Maintainer): Add glibc.
51234
51235 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51236
51237         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51238         by karl@freefriends.org (Karl Berry).
51239         * doc/alloca.texi: Likewise.
51240         * doc/c-ctype.texi: Likewise.
51241         * doc/c-strcase.texi: Likewise.
51242         * doc/c-strcaseeq.texi: Likewise.
51243         * doc/c-strcasestr.texi: Likewise.
51244         * doc/c-strstr.texi: Likewise.
51245         * doc/c-strtod.texi: Likewise.
51246         * doc/c-strtold.texi: Likewise.
51247         * doc/ctime.texi: Likewise.
51248         * doc/error.texi: Likewise.
51249         * doc/fdl.texi: Likewise.
51250         * doc/gcd.texi: Likewise.
51251         * doc/getdate.texi: Likewise.
51252         * doc/gnulib-intro.texi: Likewise.
51253         * doc/gnulib-tool.texi: Likewise.
51254         * doc/gnulib.texi: Likewise.
51255         * doc/inet_ntoa.texi: Likewise.
51256         * doc/maintain.texi: Likewise.
51257         * doc/make-stds.texi: Likewise.
51258         * doc/quote.texi: Likewise.
51259         * doc/regexprops-generic.texi: Likewise.
51260         * doc/standards.texi: Likewise.
51261         * doc/verify.texi: Likewise.
51262         * doc/visibility.texi: Likewise.
51263         * doc/gnulib.texi (GNU Free Documentation License): Include
51264         fdl-1.3.texi instead of fdl.texi.
51265
51266 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51267
51268         * doc/fdl-1.3.texi: New file, from
51269         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51270         * modules/fdl-1.3: Add.
51271         * MODULES.html.sh: Add fdl-1.3.
51272
51273 2008-11-03  Bruno Haible  <bruno@clisp.org>
51274
51275         Make determination of absolute name of header file work with AIX xlc.
51276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51277         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51278         preprocessing.
51279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51280         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51281
51282 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51283
51284         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51285         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51286         <ludo@gnu.org>.
51287
51288 2008-11-02  Bruno Haible  <bruno@clisp.org>
51289
51290         Mark 'strpbrk' obsolete.
51291         * modules/strpbrk (Status, Notice): New sections.
51292         * modules/strtok_r (Depends-on): Add strpbrk.
51293
51294 2008-11-02  Bruno Haible  <bruno@clisp.org>
51295
51296         Mark 'strdup' obsolete.
51297         * modules/strdup (Status, Notice): New sections.
51298         * modules/findprog (Depends-on): Add strdup.
51299         * modules/getaddrinfo (Depends-on): Likewise.
51300         * modules/localename (Depends-on): Likewise.
51301         * modules/relocatable-lib (Depends-on): Likewise.
51302         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51303         * modules/relocatable-prog (Depends-on): Likewise.
51304         * modules/trim (Depends-on): Likewise.
51305         * modules/unictype/gen-ctype (Depends-on): Likewise.
51306         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51307
51308 2008-11-02  Bruno Haible  <bruno@clisp.org>
51309
51310         Mark 'strcspn' obsolete.
51311         * modules/strcspn (Status, Notice): New sections.
51312
51313 2008-11-02  Bruno Haible  <bruno@clisp.org>
51314
51315         Mark 'rmdir' obsolete.
51316         * modules/rmdir (Status, Notice): New sections.
51317         * modules/clean-temp (Depends-on): Add rmdir.
51318         * modules/openat (Depends-on): Likewise.
51319
51320 2008-11-02  Bruno Haible  <bruno@clisp.org>
51321
51322         Mark 'raise' obsolete.
51323         * modules/raise (Status, Notice): New sections.
51324         (Include): Specify <signal.h>.
51325         * modules/stdio (Depends-on): Add raise.
51326         * modules/write (Depends-on): Likewise.
51327
51328 2008-11-02  Bruno Haible  <bruno@clisp.org>
51329
51330         Mark 'memset' obsolete.
51331         * modules/memset (Status, Notice): New sections.
51332
51333 2008-11-02  Bruno Haible  <bruno@clisp.org>
51334
51335         Mark 'memmove' obsolete.
51336         * modules/memmove (Status, Notice): New sections.
51337         * modules/argp (Depends-on): Add memmove.
51338         * modules/argz (Depends-on): Likewise.
51339         * modules/canonicalize (Depends-on): Likewise.
51340         * modules/canonicalize-lgpl (Depends-on): Likewise.
51341         * modules/fts (Depends-on): Likewise.
51342         * modules/getcwd (Depends-on): Likewise.
51343         * modules/human (Depends-on): Likewise.
51344         * modules/regex (Depends-on): Likewise.
51345         * modules/striconveh (Depends-on): Likewise.
51346         * modules/trim (Depends-on): Likewise.
51347         * modules/unistr/u8-move (Depends-on): Likewise.
51348         * modules/unistr/u16-move (Depends-on): Likewise.
51349         * modules/unistr/u32-move (Depends-on): Likewise.
51350
51351 2008-11-02  Bruno Haible  <bruno@clisp.org>
51352
51353         Mark 'memcpy' obsolete.
51354         * modules/memcpy (Status, Notice): New sections.
51355
51356 2008-11-02  Bruno Haible  <bruno@clisp.org>
51357
51358         Mark 'memcmp' obsolete.
51359         * modules/memcmp (Status, Notice): New sections.
51360         * modules/argmatch (Depends-on): Add memchr.
51361         * modules/backupfile (Depends-on): Likewise.
51362         * modules/c-strcasestr (Depends-on): Likewise.
51363         * modules/crypto/des (Depends-on): Likewise.
51364         * modules/csharpcomp (Depends-on): Likewise.
51365         * modules/fnmatch (Depends-on): Likewise.
51366         * modules/git-merge-changelog (Depends-on): Likewise.
51367         * modules/isnand (Depends-on): Likewise.
51368         * modules/isnand-nolibm (Depends-on): Likewise.
51369         * modules/isnanf (Depends-on): Likewise.
51370         * modules/isnanf-nolibm (Depends-on): Likewise.
51371         * modules/isnanl (Depends-on): Likewise.
51372         * modules/isnanl-nolibm (Depends-on): Likewise.
51373         * modules/mbchar (Depends-on): Likewise.
51374         * modules/memcoll (Depends-on): Likewise.
51375         * modules/quotearg (Depends-on): Likewise.
51376         * modules/regex (Depends-on): Likewise.
51377         * modules/relocatable-prog (Depends-on): Likewise.
51378         * modules/same (Depends-on): Likewise.
51379         * modules/signbit (Depends-on): Likewise.
51380         * modules/strcasestr-simple (Depends-on): Likewise.
51381         * modules/unictype/gen-ctype (Depends-on): Likewise.
51382         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51383         * modules/uniname/uniname (Depends-on): Likewise.
51384         * modules/unistr/u8-cmp (Depends-on): Likewise.
51385
51386 2008-11-02  Bruno Haible  <bruno@clisp.org>
51387
51388         Mark 'memchr' obsolete.
51389         * modules/memchr (Status, Notice): New sections.
51390         * modules/argp (Depends-on): Add memchr.
51391         * modules/base64 (Depends-on): Likewise.
51392         * modules/c-strcasestr (Depends-on): Likewise.
51393         * modules/chdir-long (Depends-on): Likewise.
51394         * modules/fnmatch (Depends-on): Likewise.
51395         * modules/getsubopt (Depends-on): Likewise.
51396         * modules/git-merge-changelog (Depends-on): Likewise.
51397         * modules/glob (Depends-on): Likewise.
51398         * modules/strcasestr-simple (Depends-on): Likewise.
51399         * modules/strnlen (Depends-on): Likewise.
51400
51401 2008-11-02  Bruno Haible  <bruno@clisp.org>
51402
51403         Mark 'atexit' obsolete.
51404         * modules/atexit (Status, Notice): New sections.
51405         * modules/chdir-long (Depends-on): Add atexit.
51406         * modules/wait-process (Depends-on): Likewise.
51407
51408 2008-11-02  Bruno Haible  <bruno@clisp.org>
51409
51410         * gnulib-tool: New option --with-obsolete.
51411         (func_usage): Document it.
51412         (func_modules_transitive_closure): Drop obsolete dependencies if
51413         incobsolete is not true.
51414         (func_import): Read and save the incobsolete variable to the cache.
51415
51416 2008-11-02  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51419         * gnulib-tool: New option --extract-status.
51420         (func_usage): Document it.
51421         (sed_extract_prog): Recognize it.
51422         (func_get_status): New function.
51423
51424 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51425
51426         * modules/sockets (License): Change from LGPL to LGPLv2+.
51427
51428 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51429
51430         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51431
51432 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51433
51434         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51435         Mention times and sys_times.
51436         * modules/sys_times, modules/sys_times-tests: New modules.
51437         * modules/times, modules/times-tests: Likewise
51438         * m4/sys_times_h.m4: New file.
51439         * lib/sys_times.in.h: Likewise
51440         * lib/times.c: Likewise.
51441         * tests/test-sys_times.c: Likewise.
51442         * tests/test-times.c: Likewise.
51443         * doc/posix-headers/sys_times.texi: Update.
51444         * doc/posix-functions/times.texi: Update.
51445
51446 2008-10-28  Jim Meyering  <meyering@redhat.com>
51447
51448         * modules/tempname (Depends-on): Add lstat.
51449
51450         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51451
51452 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51453
51454         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51455         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51456         using idiom used elsewhere in gnulib.
51457
51458 2008-10-27  Jim Meyering  <meyering@redhat.com>
51459
51460         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51461
51462 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51463
51464         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51465         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51466         programs.
51467         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51468
51469 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51470
51471         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51472
51473 2008-10-27  Bruno Haible  <bruno@clisp.org>
51474
51475         * tests/test-lstat.c: Include <stdio.h>.
51476
51477 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51478
51479         * modules/lstat-tests: New module.
51480         * tests/test-lstat.c: New file.
51481
51482 2008-10-26  Jim Meyering  <meyering@redhat.com>
51483
51484         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51485
51486 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51487             Bruno Haible  <bruno@clisp.org>
51488
51489         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51490         * modules/configmake (Include): Add a note that the include must come
51491         after all system headers.
51492         * lib/javaversion.c: Include configmake.h after all other includes.
51493
51494 2008-10-26  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51497         HAVE_STRUCT_RANDOM_DATA to 1.
51498         (gl_STDLIB_H): Simplify.
51499
51500 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51501
51502         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51503         substitute HAVE_STRUCT_RANDOM_DATA.
51504         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51505         random_data.
51506         * modules/stdlib (Makefile.am): Substitute
51507         HAVE_STRUCT_RANDOM_DATA.
51508
51509 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51510
51511         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51512         * doc/gnulib-intro.texi (Copyright): Likewise.
51513
51514 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51515
51516         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51517         findings.
51518
51519 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51520             Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/unistd.in.h: Include <winsock2.h>.
51523         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51524         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51525         Provide dummy declarations.
51526         (gethostname): Override.
51527         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51528         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51529         gl_PREREQ_SYS_H_WINSOCK2.
51530         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51531         * doc/posix-functions/gethostname.texi: More details.
51532
51533 2008-10-25  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51536         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51537         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51538
51539         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51540         here ...
51541         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51542         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51543         gl_UNISTD_H_DEFAULTS.
51544
51545 2008-10-25  Eric Blake  <ebb9@byu.net>
51546
51547         signbit: avoid spurious compiler failure
51548         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51549         declarations inside function.
51550
51551 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51552             Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51555         * modules/random_r (Depends-on): Add stdint.
51556
51557 2008-10-24  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51560         Eggert.
51561         * modules/strerror (License): Likewise.
51562
51563 2008-10-24  Jim Meyering  <meyering@redhat.com>
51564
51565         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51566         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51567
51568 2008-10-24  Eric Blake  <ebb9@byu.net>
51569
51570         getgroups: fix compilation when getgroups is available
51571         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51572         but with <config.h> override of getgroups disabled.
51573
51574 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51575
51576         * doc/gnulib.texi (Header files): Add note about C++ problems.
51577         Explained by Bruno Haible <bruno@clisp.org>.
51578
51579 2008-10-23  Bruno Haible  <bruno@clisp.org>
51580
51581         Define a dummy SA_NODEFER macro on Interix.
51582         * lib/signal.in.h (SA_NODEFER): Define fallback.
51583         Reported by Aleksey Cheusov <cheusov@tut.by> via
51584         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51585
51586 2008-10-23  Bruno Haible  <bruno@clisp.org>
51587
51588         * modules/freadahead (License): Change to LGPLv2+.
51589         Suggested by Simon Josefsson.
51590
51591 2008-10-23  Jim Meyering  <meyering@redhat.com>
51592
51593         random_r: new module
51594         * modules/random_r: New file.
51595         * m4/random_r.m4: New file.
51596         * lib/random_r.c: New file, from glibc.
51597         * modules/random_r-tests: New file.
51598         * tests/test-random_r.c: New file.
51599         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51600          Declare.
51601         (RAND_MAX): Define.
51602         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51603         * modules/stdlib: Substitute them, too.
51604         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51605         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51606         * doc/glibc-functions/random_r.texi: Likewise.
51607         * doc/glibc-functions/setstate_r.texi: Likewise.
51608         * doc/glibc-functions/srandom_r.texi: Likewise.
51609         * config/srclist.txt: Mention it.
51610
51611 2008-10-23  David Lutterkort  <lutter@redhat.com>
51612
51613         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51614         link requirement
51615
51616 2008-10-23  Jim Meyering  <meyering@redhat.com>
51617
51618         selinux-h: mark parameters of stub functions as intentionally unused
51619         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51620         * lib/se-context.in.h: Likewise.
51621
51622 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51623
51624         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51625
51626 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51627
51628         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51629
51630 2008-10-22  Eric Blake  <ebb9@byu.net>
51631
51632         glthread/thread: avoid compiler warning
51633         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51634         Add unreachable abort to silence compiler.
51635
51636 2008-10-22  Eric Blake  <ebb9@byu.net>
51637
51638         netdb: also supply struct addrinfo for cygwin 1.5.x
51639         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51640         older cygwin.
51641         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51642         cygwin.
51643         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51644
51645 2008-10-22  Bruno Haible  <bruno@clisp.org>
51646
51647         * users.txt: Update entry about pspp.
51648
51649 2008-10-21  Bruno Haible  <bruno@clisp.org>
51650
51651         Simplification.
51652         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51653         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51654
51655         Simplification.
51656         * lib/ioctl.c (ioctl): Don't undefine.
51657         * lib/socket.c (socket): Don't undefine.
51658
51659         Remove unused module indicator macros.
51660         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51661         GNULIB_$1 as a C macro.
51662
51663         * doc/posix-functions/close.texi: Undo last change.
51664         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51665         Windows platforms.
51666
51667 2008-10-21  Bruno Haible  <bruno@clisp.org>
51668
51669         Add gethostname() declaration to <unistd.h>.
51670         * lib/unistd.in.h (gethostname): New declaration.
51671         * lib/gethostname.c: Include <unistd.h>.
51672         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51673         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51675         and HAVE_GETHOSTNAME.
51676         * modules/gethostname (Depends-on): Add unistd.
51677         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51678         (Include): Specify <unistd.h>.
51679         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51680         HAVE_GETHOSTNAME.
51681         * tests/test-gethostname.c: Include <unistd.h> first.
51682
51683 2008-10-21  Bruno Haible  <bruno@clisp.org>
51684
51685         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51686         * modules/select-tests (Depends-on): Likewise.
51687         Reported by Simon Josefsson.
51688
51689 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51690
51691         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51692         * lib/accept.c: New file, based on winsock.c.
51693         * lib/bind.c: New file, based on winsock.c.
51694         * lib/connect.c: New file, based on winsock.c.
51695         * lib/getpeername.c: New file, based on winsock.c.
51696         * lib/getsockname.c: New file, based on winsock.c.
51697         * lib/getsockopt.c: New file, based on winsock.c.
51698         * lib/ioctl.c: New file, based on winsock.c.
51699         * lib/listen.c: New file, based on winsock.c.
51700         * lib/recv.c: New file, based on winsock.c.
51701         * lib/recvfrom.c: New file, based on winsock.c.
51702         * lib/send.c: New file, based on winsock.c.
51703         * lib/sendto.c: New file, based on winsock.c.
51704         * lib/setsockopt.c: New file, based on winsock.c.
51705         * lib/shutdown.c: New file, based on winsock.c.
51706         * lib/socket.c: New file, based on winsock.c.
51707         * lib/w32sock.h: New file, based on winsock.c.
51708         * lib/winsock.c: Remove file.
51709         * modules/accept: Likewise.
51710         * modules/bind: Likewise.
51711         * modules/connect: Likewise.
51712         * modules/getpeername: Likewise.
51713         * modules/getsockname: Likewise.
51714         * modules/getsockopt: Likewise.
51715         * modules/ioctl: Likewise.
51716         * modules/listen: Likewise.
51717         * modules/recv: Likewise.
51718         * modules/recvfrom: Likewise.
51719         * modules/send: Likewise.
51720         * modules/sendto: Likewise.
51721         * modules/setsockopt: Likewise.
51722         * modules/shutdown: Likewise.
51723         * modules/socket: Use socket.c instead of winsock.c.
51724         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51725         * doc/posix-functions/accept.texi: Doc fix.
51726         * doc/posix-functions/bind.texi: Doc fix.
51727         * doc/posix-functions/close.texi: Doc fix.
51728         * doc/posix-functions/connect.texi: Doc fix.
51729         * doc/posix-functions/getpeername.texi: Doc fix.
51730         * doc/posix-functions/getsockname.texi: Doc fix.
51731         * doc/posix-functions/getsockopt.texi: Doc fix.
51732         * doc/posix-functions/ioctl.texi: Doc fix.
51733         * doc/posix-functions/listen.texi: Doc fix.
51734         * doc/posix-functions/recv.texi: Doc fix.
51735         * doc/posix-functions/recvfrom.texi: Doc fix.
51736         * doc/posix-functions/send.texi: Doc fix.
51737         * doc/posix-functions/sendto.texi: Doc fix.
51738         * doc/posix-functions/setsockopt.texi: Doc fix.
51739         * doc/posix-functions/shutdown.texi: Doc fix.
51740         * doc/posix-functions/socket.texi: Doc fix.
51741
51742 2008-10-20  Bruno Haible  <bruno@clisp.org>
51743
51744         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51745         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51746         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51747         as an alias for SIGABRT.
51748         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51749         (sigaction): Map it to SIGABRT.
51750         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51751
51752 2008-10-20  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/fts.c: Don't include lstat.h.
51755         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51756
51757         Move the lstat() declaration to <sys/stat.h>.
51758         * lib/lstat.h: Remove file.
51759         * lib/sys_stat.in.h: Add special invocation convention.
51760         (lstat): New declaration.
51761         * lib/lstat.c (orig_lstat): New function.
51762         (rpl_lstat): Use orig_lstat instead of lstat.
51763         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51764         AC_C_INLINE. Set REPLACE_LSTAT.
51765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51766         and REPLACE_LSTAT.
51767         * modules/lstat (Files): Remove lib/lstat.h.
51768         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51769         (Include): Specify <sys/stat.h> instead of lstat.h.
51770         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51771         REPLACE_LSTAT.
51772         * NEWS: Mention the change.
51773
51774 2008-10-20  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/posix_spawn-tests: New file.
51777         * tests/test-posix_spawn3.c: New file.
51778
51779 2008-10-20  Bruno Haible  <bruno@clisp.org>
51780
51781         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51782         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51783         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51784         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51785         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51786
51787 2008-10-20  Bruno Haible  <bruno@clisp.org>
51788
51789         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51790         of posix_spawn on AIX 5.3.
51791
51792 2008-10-20  Bruno Haible  <bruno@clisp.org>
51793
51794         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51795
51796 2008-10-20  Bruno Haible  <bruno@clisp.org>
51797
51798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51799         of AC_LANG_PROGRAM.
51800
51801 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51802
51803         * lib/netdb.in.h: Don't define GNU specific constants until they
51804         are supported or needed.  Reported by Bruno Haible
51805         <bruno@clisp.org>.
51806
51807 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51808
51809         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51810
51811 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51812
51813         * lib/getaddrinfo.h: Remove file.
51814         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51815         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51816         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51817         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51818         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51819         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51820         * tests/test-getaddrinfo.c: Likewise.
51821         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51822         * NEWS: Mention change.
51823
51824 2008-10-19  Bruno Haible  <bruno@clisp.org>
51825
51826         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51827
51828 2008-10-19  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/wait-process.c: Include simply <sys/wait.h>.
51831         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51832         WIFSTOPPED): Remove fallback definitions.
51833         * modules/wait-process (Depends-on): Add sys_wait.
51834
51835         New module 'sys_wait'.
51836         * modules/sys_wait: New file.
51837         * lib/sys_wait.in.h: New file, partially copied from
51838         lib/wait-process.c.
51839         * m4/sys_wait_h.m4: New file.
51840         * doc/posix-headers/sys_wait.texi: Mention the new module.
51841
51842 2008-10-19  Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51845
51846 2008-10-19  Bruno Haible  <bruno@clisp.org>
51847
51848         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51849         * lib/wait-process.c (WAIT_T): Remove type.
51850         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51851         (wait_subprocess): Update.
51852
51853 2008-10-19  Bruno Haible  <bruno@clisp.org>
51854
51855         New module 'atoll'.
51856         * modules/atoll: New file.
51857         * lib/stdlib.in.h (atoll): New declaration.
51858         * lib/atoll.c: New file, from glibc with modifications.
51859         * m4/atoll.m4: New file.
51860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51861         HAVE_ATOLL.
51862         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51863         * doc/posix-functions/atoll.texi: Mention the new module.
51864
51865 2008-10-19  Bruno Haible  <bruno@clisp.org>
51866
51867         Add strtoull() declaration to <stdlib.h>.
51868         * lib/stdlib.in.h (strtoull): New declaration.
51869         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51870         Set HAVE_STRTOULL.
51871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51872         HAVE_STRTOULL.
51873         * modules/strtoull (Depends-on): Add stdlib.
51874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51875         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51876         HAVE_STRTOULL.
51877
51878 2008-10-19  Bruno Haible  <bruno@clisp.org>
51879
51880         Add strtoll() declaration to <stdlib.h>.
51881         * lib/stdlib.in.h (strtoll): New declaration.
51882         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51883         Set HAVE_STRTOLL.
51884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51885         HAVE_STRTOLL.
51886         * modules/strtoll (Depends-on): Add stdlib.
51887         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51888         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51889
51890 2008-10-19  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/bcopy (Depends-on): Add strings.
51893         (Include): Specify <strings.h>.
51894
51895 2008-10-19  Bruno Haible  <bruno@clisp.org>
51896
51897         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51898
51899 2008-10-19  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51902         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51903         mingw.
51904
51905 2008-10-19  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/atanl.c: Don't include isnanl.h.
51908         * lib/cosl.c: Likewise.
51909         * lib/ldexpl.c: Likewise.
51910         * lib/logl.c: Likewise.
51911         * lib/sinl.c: Likewise.
51912         * lib/sqrtl.c: Likewise.
51913         * lib/tanl.c: Likewise.
51914
51915         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51916         * lib/isnanf.h: Remove file.
51917         * lib/isnand.h: Remove file.
51918         * lib/isnanl.h: Remove file.
51919         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51920         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51921         macros.
51922         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51923         HAVE_ISNANF, don't define it as a C macro.
51924         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51925         HAVE_ISNAND, don't define it as a C macro.
51926         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51927         HAVE_ISNANL, don't define it as a C macro.
51928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51929         HAVE_ISNAN[FDL].
51930         * modules/isnanf (Files): Remove lib/isnanf.h.
51931         (Depends-on): Add math.
51932         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51933         (Include): Specify <math.h> instead of isnanf.h.
51934         * modules/isnand (Files): Remove lib/isnand.h.
51935         (Depends-on): Add math.
51936         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51937         (Include): Specify <math.h> instead of isnand.h.
51938         * modules/isnanl (Files): Remove lib/isnanl.h.
51939         (Depends-on): Add math.
51940         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51941         (Include): Specify <math.h> instead of isnanl.h.
51942         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51943         HAVE_ISNAN[FDL].
51944         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51945         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51946         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51947         * NEWS: Mention the change.
51948
51949 2008-10-18  Bruno Haible  <bruno@clisp.org>
51950
51951         Add getusershell(), setusershell(), endusershell() declarations to
51952         <unistd.h>.
51953         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51954         declarations.
51955         * lib/getusershell.c: Include unistd.h.
51956         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51957         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51958         HAVE_GETUSERSHELL.
51959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51960         and HAVE_GETUSERSHELL.
51961         * modules/getusershell (Depends-on): Add unistd, extensions.
51962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51963         (Include): Specify <unistd.h>.
51964         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51965         HAVE_GETUSERSHELL.
51966
51967 2008-10-18  Bruno Haible  <bruno@clisp.org>
51968
51969         Add a getloadavg() declaration to <stdlib.h>.
51970         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51971         getloadavg declaration.
51972         (getloadavg): New declaration.
51973         * lib/getloadavg.c: Include <stdlib.h> first.
51974         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51975         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51976         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51978         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51979         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51981         (Include): Specify <stdlib.h>.
51982         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51983         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51984
51985 2008-10-18  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/dirchownmod.c: Don't include lchmod.h.
51988
51989         Move the lchmod() declaration to <sys/stat.h>.
51990         * lib/lchmod.h: Remove file.
51991         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51992         (lchmod): New declaration, moved here from lib/lchown.h.
51993         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51994         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51996         and HAVE_LCHMOD.
51997         * modules/lchmod (Files): Remove lib/lchmod.h.
51998         (Depends-on): Add sys_stat, extensions.
51999         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52000         (Include): Specify <sys/stat.h> instead of lchmod.h.
52001         * modules/sys_stat (Depends-on): Add link-warning.
52002         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52003         definition of GL_LINK_WARNING.
52004         * NEWS: Mention the change.
52005
52006 2008-10-18  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/fchdir.c: Don't include dirfd.h.
52009         * lib/fts.c: Likewise.
52010         * lib/getcwd.c: Likewise.
52011         * lib/glob.c: Likewise.
52012
52013         Move the dirfd() declaration to <dirent.h>.
52014         * lib/dirfd.h: Remove file.
52015         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52016         (dirfd): New declaration.
52017         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52018         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52019         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52020         HAVE_DECL_DIRFD.
52021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52022         HAVE_DECL_DIRFD.
52023         * modules/dirfd (Files): Remove lib/dirfd.h.
52024         (Depends-on): Add dirent, extensions.
52025         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52026         (Include): Specify <dirent.h> instead of dirfd.h.
52027         * modules/dirent (Depends-on): Add link-warning.
52028         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52029         definition of GL_LINK_WARNING.
52030         * NEWS: Mention the change.
52031
52032 2008-10-18  Bruno Haible  <bruno@clisp.org>
52033
52034         Move the euidaccess() declaration to <unistd.h>.
52035         * lib/euidaccess.h: Remove file.
52036         * lib/unistd.in.h (euidaccess): New declaration.
52037         * lib/euidaccess.c: Don't include euidaccess.h.
52038         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52039         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52041         and HAVE_EUIDACCESS.
52042         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52043         (Depends-on): Add unistd.
52044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52045         (Include): Specify <unistd.h> instead of euidaccess.h.
52046         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52047         HAVE_EUIDACCESS.
52048         * NEWS: Mention the change.
52049
52050 2008-10-18  Bruno Haible  <bruno@clisp.org>
52051
52052         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52053
52054         Move the getdomainname() declaration to <unistd.h>.
52055         * lib/getdomainname.h: Remove file.
52056         * lib/unistd.in.h (getdomainname): New declaration.
52057         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52058         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52059         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52060         HAVE_GETDOMAINNAME.
52061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52062         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52063         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52064         (Depends-on): Add unistd, extensions.
52065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52066         (Includes): Specify <unistd.h> instead of getdomainname.h.
52067         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52068         HAVE_GETDOMAINNAME.
52069         * NEWS: Mention the change.
52070
52071 2008-10-18  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/dirent: New file.
52074         * m4/dirent_h.m4: New file.
52075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52076         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52077         * modules/fchdir (Files): Remove lib/dirent.in.h.
52078         (Depends-on): Add dirent.
52079         (Makefile.am): Move rules to modules/dirent.
52080         * doc/posix-headers/dirent.texi: Mention the new module.
52081
52082 2008-10-18  Bruno Haible  <bruno@clisp.org>
52083
52084         Avoid -Wunused-parameter warnings in public gnulib header files.
52085         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52086         macro.
52087         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52088
52089 2008-10-18  Bruno Haible  <bruno@clisp.org>
52090
52091         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52092         * doc/glibc-functions/error.texi: Mention the module 'error'.
52093         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52094         * doc/glibc-functions/getdomainname.texi: Mention the module
52095         'getdomainname'.
52096         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52097         * doc/glibc-functions/getpagesize.texi: Mention the module
52098         'getpagesize'.
52099         * doc/glibc-functions/getusershell.texi: Mention the module
52100         'getusershell'.
52101         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52102         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52103         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52104         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52105         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52106         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52107         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52108         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52109         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52110         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52111         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52112         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52113         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52114         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52115
52116 2008-10-17  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52119         HP-UX and IRIX, use -0.0L.
52120         * tests/test-ceill.c (minus_zero): Likewise.
52121         * tests/test-floorl.c (minus_zero): Likewise.
52122         * tests/test-frexpl.c (minus_zero): Likewise.
52123         * tests/test-isnan.c (minus_zerol): Likewise.
52124         * tests/test-isnanl.h (minus_zero): Likewise.
52125         * tests/test-ldexpl.c (minus_zero): Likewise.
52126         * tests/test-roundl.c (minus_zero): Likewise.
52127         * tests/test-signbit.c (minus_zerol): Likewise.
52128         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52129         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52130         * tests/test-truncl.c (minus_zero): Likewise.
52131         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52132         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52133         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52134         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52135
52136 2008-10-17  Bruno Haible  <bruno@clisp.org>
52137
52138         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52139         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52140         that it gets activated only for gcc >= 3.0.
52141         * lib/dirent.in.h: Likewise.
52142         * lib/errno.in.h: Likewise.
52143         * lib/fcntl.in.h: Likewise.
52144         * lib/float.in.h: Likewise.
52145         * lib/iconv.in.h: Likewise.
52146         * lib/inttypes.in.h: Likewise.
52147         * lib/locale.in.h: Likewise.
52148         * lib/math.in.h: Likewise.
52149         * lib/netdb.in.h: Likewise.
52150         * lib/netinet_in.in.h: Likewise.
52151         * lib/search.in.h: Likewise.
52152         * lib/signal.in.h: Likewise.
52153         * lib/spawn.in.h: Likewise.
52154         * lib/stdarg.in.h: Likewise.
52155         * lib/stdint.in.h: Likewise.
52156         * lib/stdio.in.h: Likewise.
52157         * lib/stdlib.in.h: Likewise.
52158         * lib/string.in.h: Likewise.
52159         * lib/strings.in.h: Likewise.
52160         * lib/sys_file.in.h: Likewise.
52161         * lib/sys_ioctl.in.h: Likewise.
52162         * lib/sys_select.in.h: Likewise.
52163         * lib/sys_socket.in.h: Likewise.
52164         * lib/sys_stat.in.h: Likewise.
52165         * lib/sys_time.in.h: Likewise.
52166         * lib/sysexits.in.h: Likewise.
52167         * lib/time.in.h: Likewise.
52168         * lib/unistd.in.h: Likewise.
52169         * lib/wchar.in.h: Likewise.
52170         * lib/wctype.in.h: Likewise.
52171         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52172
52173 2008-10-17  Jim Meyering  <meyering@redhat.com>
52174
52175         ignore-value: don't depend on inline module
52176         * modules/ignore-value (Depends-on): Remove 'inline'.
52177         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52178         Suggestion from Bruno Haible.
52179
52180 2008-10-17  Bruno Haible  <bruno@clisp.org>
52181
52182         New implementation of condition variables for Win32.
52183         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52184         (gl_linked_waitqueue_t): New type.
52185         (gl_cond_t): Use it.
52186         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52187         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52188         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52189         (glthread_cond_init_func, glthread_cond_wait_func,
52190         glthread_cond_timedwait_func, glthread_cond_signal_func,
52191         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52192         Reimplemented on the basis of gl_linked_waitqueue_t.
52193         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52194         gl_waitqueue_t.
52195         (gl_rwlock_t): Update.
52196         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52197
52198 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52199
52200         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52201         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52202
52203 2008-10-17  Jim Meyering  <meyering@redhat.com>
52204
52205         ignore-value: new module
52206         * modules/ignore-value: New file.
52207         * lib/ignore-value.h: New file.
52208         * MODULES.html.sh (Compiler warning management): New section,
52209         just for this module.  More to come.
52210
52211 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52214         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52215         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52216
52217 2008-10-16  Jim Meyering  <meyering@redhat.com>
52218
52219         openat-die.c: avoid 'no previous prototype' warning
52220         * lib/openat-die.c: Include "openat.h".
52221         Reported by Reuben Thomas <rrt@sc3d.org>.
52222
52223 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52224
52225         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52226         * lib/netdb.in.h: Fix typo.
52227         Reported by Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/netdb.in.h: Include sys/socket.h for platforms without
52230         netdb.h, to get structures like hostent on MinGW.
52231         * modules/netdb (Depends-on): Add sys_socket.
52232
52233 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52234
52235         * modules/netdb, modules/netdb-tests: New file.
52236         * m4/netdb_h.m4: New file.
52237         * lib/netdb.in.h: Add, currently just an empty file pending
52238         definitions.
52239         * tests/test-netdb.c: New file.
52240         * doc/posix-headers/netdb.texi: Mention that we replace it if
52241         needed.
52242         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52243         netdb.
52244
52245 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52246
52247         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52248         with code.
52249
52250 2008-10-13  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/glthread/cond.c (glthread_cond_wait_func,
52253         glthread_cond_timedwait_func): Add a comment.
52254
52255 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52256
52257         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52258         * tests/test-select.c: Likewise,
52259
52260 2008-10-13  Bruno Haible  <bruno@clisp.org>
52261
52262         * lib/glthread/cond.c (glthread_cond_wait_func,
52263         glthread_cond_timedwait_func): Fix variable name.
52264         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52265
52266 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52267
52268         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52270         struct sockaddr.sa_len.
52271         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52272
52273 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52274
52275         * build-aux/pmccabe2html: Add css and css_url parameters.
52276
52277 2008-10-12  Bruno Haible  <bruno@clisp.org>
52278
52279         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52280         calling aclx_get.
52281         Reported by Rainer Tammer <tammer@tammer.net>.
52282
52283 2008-10-12  Bruno Haible  <bruno@clisp.org>
52284
52285         Use msvcrt aware primitives for creation/termination of Win32 threads.
52286         * lib/glthread/thread.c: Include <process.h>.
52287         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52288         (wrapper_func): Update signature.
52289         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52290
52291 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52292             Bruno Haible  <bruno@clisp.org>
52293
52294         Provide a Win32 implementation of the 'cond' module.
52295         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52296         * lib/glthread/cond.c (glthread_cond_init_func,
52297         glthread_cond_wait_func, glthread_cond_timedwait_func,
52298         glthread_cond_signal_func, glthread_cond_broadcast_func,
52299         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52300         * modules/cond (Dependencies): Add gettimeofday.
52301
52302 2008-10-11  Bruno Haible  <bruno@clisp.org>
52303
52304         Make sleep work on older versions of mingw.
52305         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52306         only whether it exists.
52307         * doc/posix-functions/sleep.texi: Mention the problem with older
52308         versions of mingw.
52309
52310 2008-10-11  Bruno Haible  <bruno@clisp.org>
52311
52312         New module 'shutdown'.
52313         * modules/shutdown: New file.
52314         * lib/sys_socket.in.h (shutdown): New declaration.
52315         * lib/winsock.c (shutdown): New function.
52316         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52317         GNULIB_SHUTDOWN.
52318         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52319         * doc/posix-functions/shutdown.texi: Document the new module.
52320
52321 2008-10-11  Jim Meyering  <meyering@redhat.com>
52322
52323         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52324
52325 2008-10-11  Bruno Haible  <bruno@clisp.org>
52326
52327         New module 'fclose'.
52328         * modules/fclose: New file.
52329         * lib/stdio.in.h (fclose): New declaration.
52330         * lib/fclose.c: New file.
52331         * m4/fclose.m4: New file.
52332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52333         REPLACE_FCLOSE.
52334         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52335         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52336         REPLACE_FCLOSE.
52337         * modules/close (Depends-on): fclose.
52338         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52339
52340 2008-10-11  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52343         set errno and don't call _close.
52344
52345 2008-10-10  Bruno Haible  <bruno@clisp.org>
52346
52347         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52348         ACL, not afterwards. Fixes test failure on Cygwin.
52349
52350 2008-10-09  Ben Pfaff  <blp@gnu.org>
52351
52352         * build-aux/announce-gen: Fix gnulib version related part of usage
52353         message.  Die with a useful error message if no tarballs are
52354         found.
52355
52356 2008-10-10  Jim Meyering  <meyering@redhat.com>
52357
52358         bootstrap: use git's --depth=N option only if it's supported
52359         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52360         recognize the --depth option.  Reported by Pádraig Brady.
52361
52362 2008-10-09  Bruno Haible  <bruno@clisp.org>
52363
52364         New module 'ioctl'.
52365         * modules/ioctl: New file.
52366         * lib/sys_socket.in.h (ioctl): Remove declaration.
52367         * lib/winsock.c: Include <sys/ioctl.h>.
52368         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52369         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52370         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52371         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52372         * doc/posix-functions/ioctl.texi: Mention the new module.
52373
52374 2008-10-09  Bruno Haible  <bruno@clisp.org>
52375
52376         New module 'sys_ioctl'.
52377         * lib/sys_ioctl.in.h: New file.
52378         * m4/sys_ioctl_h.m4: New file.
52379         * modules/sys_ioctl: New file.
52380         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52381
52382 2008-10-09  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52385         * lib/winsock.c: Include <stdarg.h>.
52386         (rpl_ioctl): Change to second argument 'int' and then varargs.
52387
52388 2008-10-09  Bruno Haible  <bruno@clisp.org>
52389
52390         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52391         when the sys_socket module is present and the system has <winsock2.h>.
52392
52393 2008-10-09  Bruno Haible  <bruno@clisp.org>
52394
52395         * doc/posix-functions/close.texi: Mention module 'close' instead of
52396         module 'sys_socket'.
52397
52398 2008-10-09  Bruno Haible  <bruno@clisp.org>
52399
52400         * doc/glibc-headers/sys_ioctl.texi: New file.
52401         * doc/gnulib.texi: Include it.
52402
52403 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52404             Bruno Haible  <bruno@clisp.org>
52405
52406         Combine the two replacements of 'close'.
52407         * lib/sys_socket.in.h (close): Define to a reminder to include
52408         <unistd.h>.
52409         (_gl_close_fd_maybe_socket): New declaration.
52410         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52411         * lib/winsock.c (close): Remove undefinition.
52412         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52413         needed for the gnulib module 'close'.
52414         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52415         define to an error symbol or to a warning, if suitable.
52416         * lib/close.c: Include <sys/socket.h>.
52417         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52418         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52419         UNISTD_H_HAVE_WINSOCK2_H.
52420         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52422         UNISTD_H_HAVE_WINSOCK2_H.
52423         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52424         (configure.ac): Set a module indicator.
52425         (Makefile.am): Substitute GNULIB_CLOSE.
52426         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52427         * modules/poll-tests (Depends-on): Add close.
52428         * modules/select-tests (Depends-on): Likewise.
52429
52430 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52431             Bruno Haible  <bruno@clisp.org>
52432
52433         New module 'close'.
52434         * modules/close: New file.
52435         * lib/unistd.in.h (close): Move declaration out of the
52436         FCHDIR_REPLACEMENT scope.
52437         (_gl_unregister_fd): New declaration.
52438         * lib/close.c: New file.
52439         * lib/fchdir.c (rpl_close): Remove function.
52440         * m4/close.m4: New file.
52441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52442         close.
52443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52444         REPLACE_CLOSE.
52445         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52446         REPLACE_CLOSE.
52447         * modules/fchdir (Depends-on): Add close.
52448
52449 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52450             Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/fcntl.in.h (open): Simplify conditionals.
52453         (_gl_register_fd): New declaration.
52454         * lib/fchdir.c (rpl_open): Remove function.
52455         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52456         also.
52457         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52459         open.
52460
52461 2008-10-09  Jim Meyering  <meyering@redhat.com>
52462
52463         GNUmakefile: use the more name-space-friendly "_version"
52464         * top/GNUmakefile (_dummy): Update.
52465         (_version): Rename from "version".
52466
52467 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52468             Bruno Haible  <bruno@clisp.org>
52469
52470         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52471         rpl_close.
52472         (_gl_register_fd): New function, extracted from rpl_open.
52473         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52474         (rpl_open, rpl_opendir): Use _gl_register_fd.
52475
52476 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52477
52478         Fix organization of 'open' replacement.
52479         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52480         (gl_FUNC_OPEN): Use it.
52481         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52482
52483 2008-10-08  Bruno Haible  <bruno@clisp.org>
52484
52485         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52486
52487 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52488
52489         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52490         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52491         listen).
52492
52493 2008-10-08  Eric Blake  <ebb9@byu.net>
52494
52495         GNUmakefile: add 'make version' target
52496         * top/GNUmakefile (_curr-ver): Split version update rules...
52497         (version): ...into a target.
52498
52499 2008-10-07  Bruno Haible  <bruno@clisp.org>
52500
52501         Use a more portable replacement expression for -0.0L.
52502         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52503         instead of -0.0L. Fix m4 quotation.
52504
52505         * tests/test-signbit.c: Include <float.h>.
52506         (minus_zero): New variable.
52507         (test_signbitl): Use minus_zero instead of -zero.
52508         * modules/signbit-tests (Depends-on): Add float.
52509
52510         * tests/test-ceill.c: Include <float.h>.
52511         (zero): Remove variable.
52512         (minus_zero): New variable.
52513         (main): Use minus_zero instead of -zero.
52514         * modules/ceill-tests (Depends-on): Add float.
52515
52516         * tests/test-floorl.c: Include <float.h>.
52517         (zero): Remove variable.
52518         (minus_zero): New variable.
52519         (main): Use minus_zero instead of -zero.
52520         * modules/floorl-tests (Depends-on): Add float.
52521
52522         * tests/test-roundl.c: Include <float.h>.
52523         (zero): Remove variable.
52524         (minus_zero): New variable.
52525         (main): Use minus_zero instead of -zero.
52526         * modules/roundl-tests (Depends-on): Add float.
52527
52528         * tests/test-truncl.c: Include <float.h>.
52529         (zero): Remove variable.
52530         (minus_zero): New variable.
52531         (main): Use minus_zero instead of -zero.
52532         * modules/truncl-tests (Depends-on): Add float.
52533
52534         * tests/test-frexpl.c (zero): Remove variable.
52535         (minus_zero): New variable.
52536         (main): Use minus_zero instead of -zero.
52537         * modules/frexpl-tests (Depends-on): Add float.
52538
52539         * tests/test-isnan.c (zerol): Remove variable.
52540         (minus_zerol): New variable.
52541         (test_long_double): Use minus_zerol instead of -zerol.
52542         * modules/isnan-tests (Depends-on): Add float.
52543
52544         * tests/test-isnanl.h (zero): Remove variable.
52545         (minus_zero): New variable.
52546         (main): Use minus_zero instead of -zero.
52547         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52548         * modules/isnanl-tests (Depends-on): Add float.
52549
52550         * tests/test-ldexpl.c (zero): Remove variable.
52551         (minus_zero): New variable.
52552         (main): Use minus_zero instead of -zero.
52553         * modules/ldexpl-tests (Depends-on): Add float.
52554
52555         * tests/test-snprintf-posix.h (zerol): Remove variable.
52556         (minus_zerol): New variable.
52557         (test_function): Use minus_zerol instead of -zerol.
52558         * modules/snprintf-posix-tests (Depends-on): Add float.
52559         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52560
52561         * tests/test-sprintf-posix.h (zerol): Remove variable.
52562         (minus_zerol): New variable.
52563         (test_function): Use minus_zerol instead of -zerol.
52564         * modules/sprintf-posix-tests (Depends-on): Add float.
52565         * modules/vsprintf-posix-tests (Depends-on): Add float.
52566
52567         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52568         (minus_zerol): New variable.
52569         (test_function): Use minus_zerol instead of -zerol.
52570         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52571
52572         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52573         (minus_zerol): New variable.
52574         (test_function): Use minus_zerol instead of -zerol.
52575         * modules/vasprintf-posix-tests (Depends-on): Add float.
52576
52577 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52578
52579         * MODULES.html.sh (Support for building documentation): Mention
52580         pmccabe2html.  Sort entries.
52581
52582         Add pmccabe2html module, from gnupdf.
52583         * build-aux/pmccabe.css: New file.
52584         * build-aux/pmccabe2html: New file.
52585         * m4/pmccabe2html.m4: New file.
52586         * modules/pmccabe2html: New file.
52587
52588 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52589
52590         flock: new module
52591         * MODULES.html.sh: Add to list of modules.
52592         * lib/flock.c: flock implementation for Windows and Unix systems
52593         which have fcntl.
52594         * doc/glibc-functions/flock.texi: Update documentation.
52595         * lib/sys_file.in.h: <sys/file.h> header file.
52596         * m4/flock.m4: M4 macros.
52597         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52598         * modules/flock: flock module.
52599         * modules/flock-tests: flock tests module.
52600         * modules/sys_file: sys/file.h module.
52601         * tests/test-flock.c: test suite for flock.
52602
52603 2008-10-06  Jim Meyering  <meyering@redhat.com>
52604
52605         bootstrap: check for LT_INIT more portably still ;-)
52606         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52607         Spotted by Bruno Haible.
52608
52609 2008-10-06  Eric Blake  <ebb9@byu.net>
52610
52611         test-signbit: avoid tripping Irix cc bug on -0.0L
52612         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52613         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52614         entire testsuite consistent and avoids an Irix 6.2 bug.
52615
52616 2008-10-05  Bruno Haible  <bruno@clisp.org>
52617             Jim Meyering  <jim@meyering.net>
52618
52619         Add an option for ignoring EPIPE during close_stdout.
52620         * lib/closeout.h: Include <stdbool.h>.
52621         (close_stdout_set_ignore_EPIPE): New declaration.
52622         * lib/closeout.c: Include <stdbool.h>.
52623         (ignore_EPIPE): New variable.
52624         (close_stdout_set_ignore_EPIPE): New function.
52625         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52626         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52627         failure.
52628         * modules/closeout (Depends-on): Add stdbool.
52629
52630 2008-10-05  Bruno Haible  <bruno@clisp.org>
52631
52632         * modules/accept: New file.
52633         * modules/bind: New file.
52634         * modules/connect: New file.
52635         * modules/getpeername: New file.
52636         * modules/getsockname: New file.
52637         * modules/getsockopt: New file.
52638         * modules/listen: New file.
52639         * modules/recv: New file.
52640         * modules/recvfrom: New file.
52641         * modules/send: New file.
52642         * modules/sendto: New file.
52643         * modules/setsockopt: New file.
52644         * modules/socket: New file.
52645         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52646         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52647         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52648         the particular module is requested. Add a link warning when the
52649         particular module is not requested.
52650         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52651         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52652         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52653         the particular module is requested.
52654         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52655         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52656         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52657         * modules/sys_socket (Depends-on): Add link-warning.
52658         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52659         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52660         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52661         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52662         GL_LINK_WARNING.
52663         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52664         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52665         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52666         * doc/posix-functions/getpeername.texi: Mention the new module
52667         'getpeername'.
52668         * doc/posix-functions/getsockname.texi: Mention the new module
52669         'getsockname'.
52670         * doc/posix-functions/getsockopt.texi: Mention the new module
52671         'getsockopt'.
52672         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52673         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52674         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52675         * doc/posix-functions/send.texi: Mention the new module 'send'.
52676         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52677         * doc/posix-functions/setsockopt.texi: Mention the new module
52678         'setsockopt'.
52679         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52680         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52681         listen, connect, accept.
52682         * modules/select-tests (Depends-on): Likewise.
52683
52684 2008-10-05  Bruno Haible  <bruno@clisp.org>
52685
52686         * lib/winsock.c (strerror): Remove unused #undef.
52687         (rpl_close): Remove unused local variable.
52688
52689         * modules/sys_socket (Depends-on); Add errno.
52690
52691 2008-10-05  Bruno Haible  <bruno@clisp.org>
52692
52693         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52694         (select): Add a link warning when the 'select' module is not used.
52695         * modules/sys_select (Depends-on): Add link-warning.
52696         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52697         Suggested by Paolo Bonzini.
52698
52699 2008-10-05  Jim Meyering  <meyering@redhat.com>
52700
52701         bootstrap: check for LT_INIT more portably
52702         * build-aux/bootstrap: Avoid using grep -E, since it's not
52703         portable enough.  Suggestion from Bruno Haible.
52704
52705 2008-10-05  Bruno Haible  <bruno@clisp.org>
52706
52707         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52708         as being fixed by gnulib.
52709
52710 2008-10-05  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/select-tests: New file, mostly copied from
52713         modules/sys_select-tests.
52714         * tests/test-select.c: New file, mostly copied from
52715         tests/test-sys_select.c.
52716         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52717         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52718         (Makefile.am): Remove test_sys_select_LDADD.
52719
52720         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52721         to an undefined symbol, for an error message.
52722         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52723         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52724         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52725         winsock-select.c here.
52726         * modules/sys_select (Files): Remove lib/winsock-select.c.
52727         (Depends-on): Remove alloca.
52728         (Makefile.am): Substitute GNULIB_SELECT.
52729         * modules/select: New file.
52730         * doc/posix-functions/select.texi: Update.
52731
52732 2008-10-05  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52735         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52736         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52737         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52738         getdtablesize.
52739         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52740         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52741
52742 2008-10-05  Bruno Haible  <bruno@clisp.org>
52743
52744         * modules/getdtablesize-tests: New file.
52745         * tests/test-getdtablesize.c: New file.
52746
52747         New module 'getdtablesize'.
52748         * lib/unistd.in.h (getdtablesize): New declaration.
52749         * lib/getdtablesize.c: New file.
52750         * m4/getdtablesize.m4: New file.
52751         * modules/getdtablesize: New file.
52752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52753         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52754         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52755         HAVE_GETDTABLESIZE.
52756         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52757
52758 2008-10-05  Bruno Haible  <bruno@clisp.org>
52759
52760         * modules/sched (Makefile.am): Fix typo.
52761         Reported by Simon Josefsson.
52762
52763 2008-10-05  Jim Meyering  <meyering@redhat.com>
52764
52765         bootstrap: check for LT_INIT, too
52766         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52767         are deprecated.  Suggestion from Ralf Wildenhues.
52768
52769 2008-10-05  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52772         overriding them by ours.
52773         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52774
52775 2008-10-05  Jim Meyering  <meyering@redhat.com>
52776
52777         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52778         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52779         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52780
52781 2008-10-04  Bruno Haible  <bruno@clisp.org>
52782
52783         * modules/dup2 (License): Change to LGPLv2+.
52784         * modules/sleep (License): Likewise.
52785         * modules/perror (License): Likewise.
52786         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52787         Blake.
52788         * modules/signal (License): Likewise.
52789         * modules/sigprocmask (License): Likewise.
52790         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52791         Meyering.
52792
52793 2008-10-04  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52796         Reported by Rainer Tammer <tammer@tammer.net>.
52797
52798 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52799             Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52802         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52803         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52804
52805 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52806
52807         filevercmp: new module
52808         * lib/filevercmp.h: New function filevercmp comparing version strings.
52809         * lib/filevercmp.c: Implementation of filevercmp function.
52810         * modules/filevercmp: Module metadata.
52811         * tests/test-filevercmp.c: Unit test for new module.
52812         * modules/filevercmp-tests: Unit test metadata.
52813         * MODULES.html.sh: Add filevercmp module.
52814
52815 2008-10-03  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/c-ctype.h: Add comment.
52818         Reported by Jim Meyering.
52819
52820 2008-10-02  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52823
52824 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52825
52826         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52827         name of bootstrap.conf accordingly.
52828
52829 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52830
52831         * build-aux/bootstrap: Install git-merge-changelog configuration
52832         items into .gitconfig if needed.
52833
52834 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52835
52836         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52837         git repository, and initialize/update it accordingly.
52838
52839 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52840
52841         * modules/fsync-tests: New file.
52842         * tests/test-fsync.c: New file.
52843
52844         New module 'fsync'.
52845         * lib/fsync.c: New file.
52846         * m4/fsync.m4: New file.
52847         * modules/fsync: New file.
52848         * lib/unistd.in.h (fsync): New declaration.
52849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52850         GNULIB_FSYNC and HAVE_FSYNC.
52851         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52852         * MODULES.html.sh (posix_functions): Add fsync.
52853         * doc/posix-functions/fsync.texi: Mention the new module.
52854
52855 2008-10-02  Jim Meyering  <meyering@redhat.com>
52856
52857         fts.c: sync with similar code from coreutils' remove.c
52858         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52859         Guard also with "#if defined __linux__", since for now at least,
52860         this code is Linux-kernel-specific.
52861
52862 2008-10-02  Jim Meyering  <meyering@redhat.com>
52863
52864         fts: bug fixes
52865         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52866         Include <sys/vfs.h>, not <sys/statfs.h>.
52867
52868         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52869         Include <sys/vfs.h>, not <sys/statfs.h>.
52870
52871 2008-10-01  Bruno Haible  <bruno@clisp.org>
52872
52873         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52875         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52876         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52877         * doc/posix-functions/posix_spawnp.texi: Likewise.
52878         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52879         whether posix_spawn actually works.
52880         * m4/pipe.m4 (gl_PIPE): Likewise.
52881         * modules/execute (Files): Add m4/posix_spawn.m4.
52882         * modules/pipe (Files): Add m4/posix_spawn.m4.
52883         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52884
52885 2008-10-01  Jim Meyering  <meyering@redhat.com>
52886
52887         remove trailing spaces
52888         * NEWS: Likewise.
52889         * lib/poll.c (poll): Likewise.
52890         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52891         * lib/winsock.c (rpl_close): Likewise.
52892         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52893         * modules/yield: Likewise.
52894         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52895         * tests/test-sys_select.c (connect_to_socket): Likewise.
52896
52897         fts.c: adjust a new interface to be more generally useful
52898         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52899         (fts_build): Adjust caller.
52900
52901 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52902
52903         * modules/cond-tests: New file.
52904         * tests/test-cond.c: New file.
52905
52906 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52907             Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/cond (Dependencies): Add errno, time.
52910         * lib/glthread/cond.h: Include <time.h>.
52911         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52912         across platforms.
52913
52914 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52915             Bruno Haible  <bruno@clisp.org>
52916
52917         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52918
52919 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52920             Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/tls-tests (Depends-on): Add thread, yield.
52923         (configure.ac): Remove all checks.
52924         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52925         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52926         gl_thread_self): Remove definitions. Include glthread/thread.h and
52927         glthread/yield.h instead.
52928         (test_tls): Pass an additional NULL argument to gl_thread_join.
52929
52930 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52931             Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/lock-tests (Depends-on): Add thread, yield.
52934         (configure.ac): Remove all checks.
52935         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52936         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52937         gl_thread_self): Remove definitions. Include glthread/thread.h and
52938         glthread/yield.h instead.
52939         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52940         additional NULL argument to gl_thread_join.
52941
52942 2008-09-30  Bruno Haible  <bruno@clisp.org>
52943
52944         Fix the Win32 implementation of the 'thread' module.
52945         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52946         pointer type.
52947         (gl_thread_self): Invoke gl_thread_self_func.
52948         (gl_thread_self_func): New declaration.
52949         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52950         (do_init_self_key, init_self_key): New functions.
52951         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52952         Remove some fields.
52953         (running_threads, running_lock): Remove variables.
52954         (get_current_thread_handle): New function.
52955         (gl_thread_self_func, wrapper_func, glthread_create_func,
52956         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52957         simplified.
52958
52959 2008-09-30  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52962         files.
52963
52964 2008-09-30  Jim Meyering  <meyering@redhat.com>
52965
52966         fts.m4: correct the test for statfs.f_type
52967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52968         when checking for statfs.f_type.
52969
52970 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52971
52972         tests: avoid some compiler warnings
52973         * tests/test-memchr.c (main): Pass NULL indirectly.
52974         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52975
52976 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52977
52978         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52979         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52980         exactly specified dayshifts.
52981         (dayshift): New rule.
52982         (rel): Add dayshift.
52983         (relative_time_table) [tomorrow, yesterday, today, now]:
52984         Use tDAY_SHIFT in place of tDAY_UNIT.
52985         * tests/test-getdate.c: Add tests for now-disallowed countable
52986         dayshifts, e.g., "4 yesterday ago".
52987
52988 2008-09-29  Bruno Haible  <bruno@clisp.org>
52989
52990         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52991         * tests/test-posix_spawn1.in.sh: Renamed from
52992         tests/test-posix_spawn.in.sh.
52993         * tests/test-posix_spawn2.c: New file.
52994         * tests/test-posix_spawn2.in.sh: New file.
52995         * modules/posix_spawnp-tests (Files): Update.
52996         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52997
52998 2008-09-29  Bruno Haible  <bruno@clisp.org>
52999
53000         Propagate effects of putenv/setenv/unsetenv to child processes.
53001         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53002         * lib/pipe.c (create_pipe): Likewise.
53003
53004 2008-09-29  Bruno Haible  <bruno@clisp.org>
53005
53006         Enable use of shell scripts as executables in mingw.
53007         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53008         run the program as a shell script.
53009         * lib/pipe.c (create_pipe): Likewise.
53010         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53011         resulting array.
53012
53013 2008-09-29  Eric Blake  <ebb9@byu.net>
53014
53015         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53016
53017 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53018
53019         * doc/posix-functions/accept.texi: Update mingw problems.
53020         * doc/posix-functions/bind.texi: Update mingw problems.
53021         * doc/posix-functions/close.texi: Update mingw problems.
53022         * doc/posix-functions/connect.texi: Update mingw problems.
53023         * doc/posix-functions/getpeername.texi: Update mingw problems.
53024         * doc/posix-functions/getsockname.texi: Update mingw problems.
53025         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53026         * doc/posix-functions/ioctl.texi: Update mingw problems.
53027         * doc/posix-functions/listen.texi: Update mingw problems.
53028         * doc/posix-functions/recv.texi: Update mingw problems.
53029         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53030         * doc/posix-functions/select.texi: Update mingw problems.
53031         * doc/posix-functions/send.texi: Update mingw problems.
53032         * doc/posix-functions/sendto.texi: Update mingw problems.
53033         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53034         * doc/posix-functions/socket.texi: Update mingw problems.
53035
53036 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53037             Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/sys_select.in.h: Include sys/time.h.
53040         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53041         * modules/sys_select: Depend on sys_time.
53042         * tests/test-sys_select.c: Test that sys/select.h defines struct
53043         timeval fully.
53044
53045 2008-09-29  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53048         * lib/sys_select.in.h: Likewise.
53049
53050 2008-09-29  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53053
53054 2008-09-29  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53057         Set LIBSOCKET instead of augmenting LIBS.
53058         * modules/sockets (Link): New section.
53059         * modules/sockets-tests (test_sockets_LDADD): New variable.
53060         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53061         * modules/poll-tests (test_poll_LDADD): New variable.
53062         * NEWS: Document the change.
53063
53064 2008-09-29  Bruno Haible  <bruno@clisp.org>
53065
53066         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53067         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53068         ARPA_INET_H directly.
53069         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53070
53071 2008-09-28  Bruno Haible  <bruno@clisp.org>
53072
53073         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53074         from gl_HEADER_SYS_SOCKET.
53075         (gl_HEADER_SYS_SOCKET): Invoke it.
53076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53077
53078 2008-09-28  Bruno Haible  <bruno@clisp.org>
53079
53080         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53081         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53082         Needed on OSF/1 4.0.
53083
53084 2008-09-28  Bruno Haible  <bruno@clisp.org>
53085
53086         Override open more carefully.
53087         * lib/open.c (orig_open): New function.
53088         (rpl_open): Use orig_open instead of open.
53089         * lib/fcntl.in.h: Add special invocation convention.
53090         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53091         (gl_FUNC_OPEN): Invoke it.
53092
53093         Override freopen more carefully.
53094         * lib/freopen.c (orig_freopen): New function.
53095         (rpl_freopen): Use orig_freopen instead of freopen.
53096         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53097         (gl_FUNC_FREOPEN): Invoke it.
53098
53099         Override fopen more carefully.
53100         * lib/fopen.c (orig_fopen): New function.
53101         (rpl_fopen): Use orig_fopen instead of fopen.
53102         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53103         (gl_FUNC_FOPEN): Invoke it.
53104         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53105
53106 2008-09-28  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53109         SIGPIPE.
53110
53111 2008-09-28  Bruno Haible  <bruno@clisp.org>
53112
53113         * tests/test-sigaction.c (handler, main): Disable the check whether
53114         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53115         glibc systems with LinuxThreads.
53116
53117 2008-09-28  Bruno Haible  <bruno@clisp.org>
53118
53119         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53120
53121         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53122         with AIX xlc.
53123         * lib/fcntl.in.h (open): Likewise.
53124         Reported by Rainer Tammer <tammer@tammer.net>.
53125
53126 2008-09-28  Bruno Haible  <bruno@clisp.org>
53127
53128         * modules/posix_spawnp-tests: New file.
53129         * tests/test-posix_spawn.c: New file.
53130         * tests/test-posix_spawn.in.sh: New file.
53131
53132         New module 'posix_spawnp'.
53133         * modules/posix_spawnp: New file.
53134         * lib/spawnp.c: New file, from GNU libc with modifications.
53135         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53136
53137         New module 'posix_spawn'.
53138         * modules/posix_spawn: New file.
53139         * lib/spawn.c: New file, from GNU libc with modifications.
53140         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53141
53142         New module 'posix_spawnattr_destroy'.
53143         * modules/posix_spawnattr_destroy: New file.
53144         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53145         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53146         module.
53147
53148         New module 'posix_spawnattr_setsigmask'.
53149         * modules/posix_spawnattr_setsigmask: New file.
53150         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53151         modifications.
53152         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53153         new module.
53154
53155         New module 'posix_spawnattr_getsigmask'.
53156         * modules/posix_spawnattr_getsigmask: New file.
53157         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53158         modifications.
53159         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53160         new module.
53161
53162         New module 'posix_spawnattr_setsigdefault'.
53163         * modules/posix_spawnattr_setsigdefault: New file.
53164         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53165         modifications.
53166         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53167         new module.
53168
53169         New module 'posix_spawnattr_getsigdefault'.
53170         * modules/posix_spawnattr_getsigdefault: New file.
53171         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53172         modifications.
53173         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53174         new module.
53175
53176         New module 'posix_spawnattr_setschedpolicy'.
53177         * modules/posix_spawnattr_setschedpolicy: New file.
53178         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53179         modifications.
53180         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53181         new module.
53182
53183         New module 'posix_spawnattr_getschedpolicy'.
53184         * modules/posix_spawnattr_getschedpolicy: New file.
53185         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53186         modifications.
53187         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53188         new module.
53189
53190         New module 'posix_spawnattr_setschedparam'.
53191         * modules/posix_spawnattr_setschedparam: New file.
53192         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53193         modifications.
53194         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53195         new module.
53196
53197         New module 'posix_spawnattr_getschedparam'.
53198         * modules/posix_spawnattr_getschedparam: New file.
53199         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53200         modifications.
53201         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53202         new module.
53203
53204         New module 'posix_spawnattr_setpgroup'.
53205         * modules/posix_spawnattr_setpgroup: New file.
53206         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53207         modifications.
53208         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53209         module.
53210
53211         New module 'posix_spawnattr_getpgroup'.
53212         * modules/posix_spawnattr_getpgroup: New file.
53213         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53214         modifications.
53215         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53216         module.
53217
53218         New module 'posix_spawnattr_setflags'.
53219         * modules/posix_spawnattr_setflags: New file.
53220         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53221         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53222         module.
53223
53224         New module 'posix_spawnattr_getflags'.
53225         * modules/posix_spawnattr_getflags: New file.
53226         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53227         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53228         module.
53229
53230         New module 'posix_spawnattr_init'.
53231         * modules/posix_spawnattr_init: New file.
53232         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53233         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53234         module.
53235
53236         New module 'posix_spawn_file_actions_destroy'.
53237         * modules/posix_spawn_file_actions_destroy: New file.
53238         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53239         modifications.
53240         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53241         the new module.
53242
53243         New module 'posix_spawn_file_actions_addopen'.
53244         * modules/posix_spawn_file_actions_addopen: New file.
53245         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53246         modifications.
53247         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53248         the new module.
53249
53250         New module 'posix_spawn_file_actions_adddup2'.
53251         * modules/posix_spawn_file_actions_adddup2: New file.
53252         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53253         modifications.
53254         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53255         the new module.
53256
53257         New module 'posix_spawn_file_actions_addclose'.
53258         * modules/posix_spawn_file_actions_addclose: New file.
53259         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53260         modifications.
53261         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53262         the new module.
53263
53264         New module 'posix_spawn_file_actions_init'.
53265         * modules/posix_spawn_file_actions_init: New file.
53266         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53267         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53268         new module.
53269
53270         New module 'posix_spawn-internal'.
53271         * modules/posix_spawn-internal: New file.
53272         * lib/spawn_int.h: New file, from GNU libc with modifications.
53273         * lib/spawni.c: New file, from GNU libc with modifications.
53274         * m4/posix_spawn.m4: New file.
53275
53276         New module 'spawn'.
53277         * modules/spawn: New file.
53278         * lib/spawn.in.h: New file, from GNU libc with modifications.
53279         * m4/spawn_h.m4: New file.
53280         * doc/posix-headers/spawn.texi: Mention the new module.
53281
53282 2008-09-28  Bruno Haible  <bruno@clisp.org>
53283
53284         * modules/sched-tests: New file.
53285         * tests/test-sched.c: New file.
53286
53287         New module 'sched'.
53288         * modules/sched: New file.
53289         * lib/sched.in.h: New file.
53290         * m4/sched_h.m4: New file.
53291         * doc/posix-headers/sched.texi: Mention the new module.
53292
53293 2008-09-27  Eric Blake  <ebb9@byu.net>
53294
53295         Fix previous patch, and tweak references to $0.
53296         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53297         (func_version, func_gnulib_dir): Don't call this program
53298         gnulib-tool.
53299         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53300         with using $0 in function.
53301         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53302         (func_fatal_error): Reuse the name the user invoked us with.
53303
53304 2008-09-27  Bruno Haible  <bruno@clisp.org>
53305
53306         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53307         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53308         (gl_ICONV_H): Not here.
53309         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53310         instead of assigning ICONV_H directly.
53311
53312         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53314         WCHAR_H directly.
53315
53316 2008-09-27  Bruno Haible  <bruno@clisp.org>
53317
53318         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53319         * modules/arpa_inet (Depends-on): Add link-warning.
53320         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53321         * modules/unistd (Makefile.am): Likewise.
53322
53323 2008-09-26  Bruno Haible  <bruno@clisp.org>
53324
53325         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53326         variables.
53327         (func_version): Essentially copied from gnulib-tool.
53328         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53329         func_readlink): Copied from gnulib-tool.
53330
53331 2008-09-26  Bruno Haible  <bruno@clisp.org>
53332
53333         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53334         invoking git-version-gen.
53335
53336 2008-09-26  Bruno Haible  <bruno@clisp.org>
53337
53338         * posix-modules: Update to directory names changed on 2008-01-19.
53339         Remove commas in output before splitting into words. No more need to
53340         avoid 'ftruncate' since 2007-02-19.
53341
53342 2008-09-26  Bruno Haible  <bruno@clisp.org>
53343
53344         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53345
53346 2008-09-26  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53349         * modules/fwriteerror (Depends-on): Add errno.
53350
53351 2008-09-26  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53354         * tests/test-vc-list-files-cvs.sh: Likewise.
53355
53356 2008-09-26  Bruno Haible  <bruno@clisp.org>
53357
53358         * doc/posix-headers/sys_resource.texi: Reorder items.
53359
53360 2008-09-26  Jim Meyering  <meyering@redhat.com>
53361
53362         fts: tweak inode comparison function
53363         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53364         inode numbers, as documented.
53365
53366         fts: sort dirent entries on inode number before traversing
53367         This avoids a quadratic, seek-related performance penalty when
53368         operating on a directory containing many entries (measurable at 10k;
53369         3.5 hours at 2 million entries with a cold cache) on certain types
53370         of file systems, including ext3 and ext4, but not tmpfs.
53371         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53372         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53373         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53374         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53375         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53376         (fts_build): Set the stat.st_ino member from D_INO.
53377         If it is likely to be useful, sort dirent entries on inode number.
53378
53379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53380         and the struct statfs.f_type member.
53381         * modules/fts (Depends-on): Add d-ino.
53382
53383 2008-09-26  Bruno Haible  <bruno@clisp.org>
53384
53385         * modules/sigpipe-die (Depends-on): Add sigpipe.
53386
53387         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53388         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53389         and GNULIB_STDIO_H_SIGPIPE are set.
53390         * lib/stdio-write.c: New file.
53391         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53392         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53393         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53394         REPLACE_STDIO_WRITE_FUNCS.
53395         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53396         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53397         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53398         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53399         * modules/stdio (Files): Add lib/stdio-write.c.
53400         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53401         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53402         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53403         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53404         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53405         REPLACE_FPRINTF_POSIX.
53406         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53407         REPLACE_PRINTF_POSIX.
53408         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53409         REPLACE_VFPRINTF_POSIX.
53410         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53411         REPLACE_VPRINTF_POSIX.
53412         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53413         SIGPIPE issue.
53414         * doc/posix-functions/fputc.texi: Likewise.
53415         * doc/posix-functions/fputs.texi: Likewise.
53416         * doc/posix-functions/fwrite.texi: Likewise.
53417         * doc/posix-functions/printf.texi: Likewise.
53418         * doc/posix-functions/putc.texi: Likewise.
53419         * doc/posix-functions/putchar.texi: Likewise.
53420         * doc/posix-functions/puts.texi: Likewise.
53421         * doc/posix-functions/vfprintf.texi: Likewise.
53422         * doc/posix-functions/vprintf.texi: Likewise.
53423
53424         * modules/safe-write (Depends-on): Add write.
53425
53426         * modules/sigpipe-tests: New file.
53427         * tests/test-sigpipe.c: New file.
53428         * tests/test-sigpipe.sh: New file.
53429
53430         * modules/write: New file.
53431         * lib/unistd.in.h: Include <sys/types.h>.
53432         (write): New declaration.
53433         * lib/write.c: New file.
53434         * m4/write.m4: New file.
53435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53436         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53437         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53438         GNULIB_WRITE, REPLACE_WRITE.
53439         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53440         and the SIGPIPE issue.
53441
53442         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53443         (raise): New declaration.
53444         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53445         (ext_signal): New function.
53446         (rpl_raise): New function.
53447         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53448         GNULIB_SIGNAL_H_SIGPIPE.
53449         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53450         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53451
53452         * modules/sigpipe: New file.
53453         * m4/sigpipe.m4: New file.
53454
53455 2008-09-25  Derek Price  <derek@ximbiot.com>
53456             Bruno Haible  <bruno@clisp.org>
53457
53458         * gnulib-tool (func_import): Report all license incompatibilities, not
53459         just the first one.
53460
53461 2008-09-25  Bruno Haible  <bruno@clisp.org>
53462
53463         * gnulib-tool (func_import): When computing the edits, consider not
53464         only the Makefile.ams that exist but also those that will be generated.
53465
53466 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53467
53468         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53469         fixes gnulib-tool --test warning about duplicate dependency.
53470
53471 2008-09-25  Bruno Haible  <bruno@clisp.org>
53472
53473         * gnulib-tool: Don't ask the user to perform edits in the generated
53474         Makefile.ams.
53475         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53476         apply to the Makefile.am being generated.
53477         (func_emit_tests_Makefile_am): Execute edits that apply to the
53478         Makefile.am being generated.
53479         (func_import): Setup list of Makefile.am edits before emitting the
53480         Makefile.ams, not at the end.
53481         (func_create_testdir): Update.
53482         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53483
53484 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53485
53486         * gnulib-tool (func_import): Store the --tests-base option in the
53487         comment in gnulib-cache.m4.
53488
53489 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53490
53491         * NEWS: Document increased portability that sys_select now provides.
53492
53493         * lib/sys_select.in.h: Install select wrapper.
53494         * lib/sys_socket.in.h: Use more descriptive name when there is no
53495         select wrapper.
53496         * lib/winsock-select.c: New.
53497         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53498         Require gl_HEADER_SYS_SOCKET.
53499         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53500         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53501         * tests/test-sys_select.c: Add functional tests.
53502
53503 2008-09-24  Eric Blake  <ebb9@byu.net>
53504
53505         open, fopen: close fd leak in last patch
53506         * lib/open.c (rpl_open): Close fd before returning error.
53507         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53508         * doc/posix-functions/open.texi (open): Document that Irix also
53509         has the bug.
53510         * doc/posix-functions/fopen.texi (fopen): Likewise.
53511         Reported by Paolo Bonzini.
53512
53513 2008-09-24  Bruno Haible  <bruno@clisp.org>
53514
53515         Ensure that a filename ending in a slash cannot be used to access a
53516         non-directory.
53517         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53518         to check whether it's really a directory.
53519         * lib/fopen.c: Include fcntl.h, unistd.h.
53520         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53521         and fdopen().
53522         * modules/fopen (Depends-on): Add unistd.
53523         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53524         * tests/test-fopen.c (main): Likewise.
53525         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53526         * doc/posix-functions/fopen.texi: Likewise.
53527         Reported by Eric Blake.
53528
53529 2008-09-23  Eric Blake  <ebb9@byu.net>
53530
53531         c-stack: avoid compiler optimizations when provoking overflow
53532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53533         recursion harder to optimize, to ensure a stack overflow occurs.
53534         * tests/test-c-stack.c (recurse): Likewise.
53535         Borrowed from libsigsegv.
53536
53537         c-stack: work around Irix sigaltstack bug
53538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53539         whether sigaltstack uses wrong end of stack_t (copied in part from
53540         libsigsegv).
53541         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53542         Irix bug, without requiring an over-allocation.
53543         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53544         bug.
53545
53546         fopen: document mingw bug on directories
53547         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53548         not allowing a stream visiting a directory, even though reading
53549         from such a stream is not portable.
53550
53551 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53552
53553         * lib/poll.c: Rewrite.
53554         * modules/poll: Depend on alloca.
53555
53556 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53557
53558         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53559         instead define prototypes for a full set of wrappers.  Ensure
53560         that Cygwin does not use the compatibility code, which is only
53561         for MinGW.
53562         * lib/winsock.c: New.
53563         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53564         * modules/sys_socket: Add lib/winsock.c.
53565
53566         * modules/poll-tests: Add errno and perror.
53567         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53568
53569 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53570
53571         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53572
53573 2008-09-23  Bruno Haible  <bruno@clisp.org>
53574
53575         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53576         * doc/glibc-functions/*: Likewise.
53577
53578 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53579
53580         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53581         success.
53582
53583 2008-09-22  Eric Blake  <ebb9@byu.net>
53584             Bruno Haible  <bruno@clisp.org>
53585
53586         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53587         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53588         supply %A but mishandle pseudo-NaN.
53589         Reported by Simon Josefsson.
53590
53591 2008-09-21  Bruno Haible  <bruno@clisp.org>
53592
53593         * tests/test-lock.c (main): Tweak skip message.
53594         * tests/test-tls.c (main): Likewise.
53595
53596 2008-09-21  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53599         whether 'struct sigaction' has sa_sigaction here...
53600         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53601         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53602
53603 2008-09-21  Bruno Haible  <bruno@clisp.org>
53604
53605         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53606         section.
53607         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53608         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53609         the new section.
53610         (Support for obsolete systems lacking POSIX:2001): New section.
53611         (String handling <string.h>): Move strdup to the new section.
53612         Suggested by Simon Josefsson and Paolo Bonzini.
53613
53614 2008-09-21  Bruno Haible  <bruno@clisp.org>
53615
53616         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53617         exponents in %e and %g results on 'long double'. Needed for mingw's
53618         improved *printf functions.
53619         * tests/test-vasprintf-posix.c (test_function): Likewise.
53620         * tests/test-snprintf-posix.h (test_function): Likewise.
53621         * tests/test-sprintf-posix.h (test_function): Likewise.
53622         Reported by Eric Blake.
53623
53624 2008-09-21  Bruno Haible  <bruno@clisp.org>
53625
53626         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53627         * tests/test-sprintf-posix.h (test_function): Likewise.
53628
53629 2008-09-21  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/getpass (Depends-on): Add strdup-posix.
53632
53633         New module 'strdup-posix'.
53634         * modules/strdup-posix: New file.
53635         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53636         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53638         REPLACE_STRDUP.
53639         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53640         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53642         strdup-posix.
53643
53644         * modules/strdup (Depends-on): Remove malloc-posix.
53645
53646 2008-09-20  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53649         Wildenhues.
53650
53651 2008-09-20  Bruno Haible  <bruno@clisp.org>
53652
53653         Ensure that wint_t gets defined on IRIX 5.3.
53654         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53655         * lib/wctype.in.h (wint_t): Likewise.
53656         (__wctype_wint_t): Remove type.
53657         (isw*): Use wint_t instead of __wctype_wint_t.
53658         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53659         * modules/wchar (Files): Add m4/wint_t.m4.
53660         (Makefile.am): Substitute HAVE_WINT_T.
53661         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53662         * tests/test-wctype.c: Check that wint_t is defined.
53663         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53664         * doc/posix-headers/wctype.texi: Likewise.
53665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53666
53667 2008-09-18  Bruno Haible  <bruno@clisp.org>
53668
53669         * gnulib-tool (func_exit): Update comment.
53670
53671 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53672
53673         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53674         assumes strdup exists and does not depend on strdup to return
53675         ENOMEM on out of memory conditions.
53676
53677 2008-09-18  Bruno Haible  <bruno@clisp.org>
53678
53679         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
53680         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53681         digits for the exponent.
53682
53683 2008-09-18  Jim Meyering  <meyering@redhat.com>
53684             Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/vasnprintf.c (decimal_point_char): Define also if
53687         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53688
53689 2008-09-16  Bruno Haible  <bruno@clisp.org>
53690         and Eric Blake  <ebb9@byu.net>
53691
53692         vasnprintf: support Irix 5.3
53693         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53694         that mishandle long double infinity.
53695         Reported by Tom G. Christensen.
53696
53697 2008-09-16  Bruno Haible  <bruno@clisp.org>
53698
53699         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53700         Solaris 9.
53701         * doc/glibc-functions/alphasort.texi: Likewise.
53702         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53703
53704 2008-09-16  Jim Meyering  <meyering@redhat.com>
53705
53706         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53707         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53708         a umask modification leak out of a subshell.  Otherwise, the
53709         opensolaris /bin/sh would be accepted and thus cause unwarranted
53710         failures in the coreutils test suite.
53711
53712 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53713
53714         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53715         to succeed.
53716
53717 2008-09-16  Jim Meyering  <meyering@redhat.com>
53718
53719         avoid spurious test failure when library is built without ACL support
53720         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53721         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53722         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53723         * tests/test-copy-acl.sh: Likewise.
53724
53725 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53726
53727         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53728         based on character occurrence counts.
53729
53730 2008-09-15  Eric Blake  <ebb9@byu.net>
53731
53732         tests: avoid some compiler warnings
53733         * tests/test-memchr.c (main): Pass NULL indirectly.
53734         * tests/test-closein.c (main): Avoid unused variable.
53735
53736 2008-09-15  Bruno Haible  <bruno@clisp.org>
53737
53738         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53739         are missing on OpenBSD 4.0 individually.
53740         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53741
53742 2008-09-15  Bruno Haible  <bruno@clisp.org>
53743
53744         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53745         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53746         * doc/posix-functions/perror.texi: Likewise.
53747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53748         is missing.
53749         Reported by Eric Blake.
53750
53751         * lib/errno.in.h: Use replacement values >= 2000.
53752         Reported by Eric Blake.
53753
53754 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53755
53756         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53757         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53758         limit.
53759         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53760         compareseq was aborted.
53761
53762 2008-09-14  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53765         yvec_edit_count.
53766         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53767         (fstrcmp_bounded): Simplify result computation accordingly.
53768
53769 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53770
53771         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53772         (fstrcmp): Define in terms of fstrcmp_bounded.
53773         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53774         lower_bound argument.
53775         Return quickly if the result is certainly < lower_bound.
53776         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53777
53778 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53779
53780         * lib/diffseq.h (EARLY_ABORT): New macro.
53781         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53782         evaluates to true.
53783
53784 2008-09-14  Bruno Haible  <bruno@clisp.org>
53785
53786         * modules/perror-tests: New file.
53787         * tests/test-perror.sh: New file.
53788         * tests/test-perror.c: New file.
53789
53790         New module 'perror'.
53791         * lib/stdio.in.h (perror): New declaration.
53792         * lib/perror.c: New file.
53793         * m4/perror.m4: New file.
53794         * modules/perror: New file.
53795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53796         * doc/posix-functions/perror.texi: Mention the perror module.
53797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53798         REPLACE_PERROR.
53799         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53800         REPLACE_PERROR.
53801
53802 2008-09-14  Bruno Haible  <bruno@clisp.org>
53803
53804         * modules/stdio (Makefile.am): Reorder to match the order in
53805         lib/stdio.in.h.
53806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53807
53808 2008-09-13  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53811
53812 2008-09-13  Bruno Haible  <bruno@clisp.org>
53813
53814         Extend strerror to cover the added errno values.
53815         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53816         (rpl_strerror): Provide error messages for the added errno values and
53817         for the WSA* values.
53818         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53819         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53820         strerror.
53821         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53822         * modules/strerror (Depends-on): Add errno.
53823         * doc/posix-functions/strerror.texi: Document the change.
53824         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53825         and EOVERFLOW.
53826
53827 2008-09-13  Bruno Haible  <bruno@clisp.org>
53828
53829         * modules/EOVERFLOW: Remove file.
53830         * m4/eoverflow.m4: Remove file.
53831         * modules/EOVERFLOW-tests: Remove file.
53832         * tests/test-EOVERFLOW.c: Remove file.
53833         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53834         * modules/ftell (Depends-on): Likewise.
53835         * modules/getdelim (Depends-on): Likewise.
53836         * modules/getugroups (Depends-on): Likewise.
53837         * modules/poll (Depends-on): Likewise.
53838         * modules/snprintf (Depends-on): Likewise.
53839         * modules/sprintf-posix (Depends-on): Likewise.
53840         * modules/vasnprintf (Depends-on): Likewise.
53841         * modules/vasprintf (Depends-on): Likewise.
53842         * modules/vfprintf-posix (Depends-on): Likewise.
53843         * modules/vsnprintf (Depends-on): Likewise.
53844         * modules/vsprintf-posix (Depends-on): Likewise.
53845         * modules/xvasprintf (Depends-on): Likewise.
53846         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53847         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53848         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53849         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53850         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53851         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53852         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53853         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53854         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53855         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53856         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53857         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53858         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53859         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53860         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53861         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53862         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53863         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53864         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53865         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53866         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53867         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53868         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53869         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53870         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53872         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53873         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53874         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53875         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53876         * MODULES.html.sh: Remove EOVERFLOW.
53877         * NEWS: Mention the change.
53878
53879 2008-09-13  Bruno Haible  <bruno@clisp.org>
53880
53881         * modules/errno-tests: New file.
53882         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53883
53884         * lib/errno.in.h: New file.
53885         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53886         * modules/errno: New file.
53887         * doc/posix-headers/errno.texi: Update documentation.
53888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53889
53890 2008-09-13  Bruno Haible  <bruno@clisp.org>
53891
53892         * tests/test-poll.c: Use #if for native Windows, rather than testing
53893         __MSVCRT__.
53894
53895 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53896             Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/glob.c: Don't include <pwd.h> on native Windows.
53899         (WINDOWS32): New macro.
53900         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53901
53902 2008-09-13  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53905         (ETIMEDOUT): Remove macro.
53906         (glthread_cond_timedwait_multithreaded): New declaration.
53907         (glthread_cond_timedwait): Use it.
53908         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53909         (glthread_cond_timedwait_multithreaded): New function.
53910
53911 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53912
53913         * modules/poll-tests: Do not check for io.h.
53914         * tests/test-poll.c: Check for __MSVCRT__ instead.
53915
53916 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53917
53918         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53919         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53920         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53921
53922 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53923
53924         * modules/poll-tests: New.
53925         * tests/test-poll.c: New.
53926
53927 2008-09-12  Eric Blake  <ebb9@byu.net>
53928
53929         frexp: test for NetBSD failure on -0.0
53930         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53931         not all, bugs from NetBSD 3.0 have been fixed.
53932         * doc/posix-functions/frexp.texi (frexp): Document bug.
53933         Reported by Thomas Klausner.
53934
53935         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53936         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53937         literal -0.0.
53938         Reported by Jonathan C. Patschke <jp@centtech.com>.
53939
53940 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53941
53942         * lib/glthread/cond.h: Use dummy implementation also if
53943         USE_WIN32_THREADS.
53944
53945 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53946
53947         * modules/fnmatch-posix (License): Change to LGPLv2+.
53948         * modules/fnmatch-gnu (License): Likewise.
53949
53950 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53951
53952         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53953
53954 2008-09-11  Jim Meyering  <meyering@redhat.com>
53955
53956         * users.txt: Add gtk-vnc.
53957
53958 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53959
53960         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53961         rotate amounts.
53962
53963         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53964         required for 16-bit and 8-bit rotates.
53965         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53966         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53967         UINT8_MAX instead of hard-coded constants.
53968         Suggested by Paul Eggert.
53969
53970 2008-09-07  Bruno Haible  <bruno@clisp.org>
53971
53972         * tests/test-striconveh.c (main): Check behaviour when converting from
53973         UTF-7.
53974
53975         Make striconveh work better with stateful encodings.
53976         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53977         that iconv does not increment the inptr when returning -1/EINVAL.
53978
53979 2008-09-07  Bruno Haible  <bruno@clisp.org>
53980
53981         * build-aux/config.rpath: Update according to libtool-2.2.6.
53982         * build-aux/config.libpath: Likewise.
53983
53984 2008-09-06  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53987         * lib/freadptr.c (freadptr): Likewise.
53988         * lib/freadseek.c (freadptrinc): Likewise.
53989         Reported by Simon Josefsson.
53990
53991 2008-09-06  Bruno Haible  <bruno@clisp.org>
53992
53993         * modules/freadptr (License): Change to LGPLv2+.
53994         * modules/freadseek (License): Likewise.
53995         Suggested by Eric Blake.
53996
53997         * modules/memchr2 (License): Change to LGPLv2+.
53998         Approved by Eric Blake.
53999
54000 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54001             Bruno Haible  <bruno@clisp.org>
54002
54003         Make gnulib-tool work with native 'sed' on AIX.
54004         * gnulib-tool (sed_noop): New variable.
54005         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54006         func_add_or_update, func_create_testdir): Use it to initialize sed
54007         script variables.
54008         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54009
54010 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54011             Bruno Haible  <bruno@clisp.org>
54012
54013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54014         also works after #include directives.
54015
54016 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54017
54018         getdate.y: reject an out-of-range timezone value
54019         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54020         the range [-24...+24].  When specified with only one or two digits,
54021         * tests/test-getdate.c: Tests for the fix.
54022         * doc/getdate.texi: Document this change.
54023
54024 2008-09-03  Bruno Haible  <bruno@clisp.org>
54025
54026         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54027
54028 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54029
54030         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54031         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54032         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54033         Blake <ebb9@byu.net>.
54034
54035         * tests/test-bitrotate.c: Add more test vectors.
54036
54037 2008-09-02  Eric Blake  <ebb9@byu.net>
54038
54039         vasnprintf-posix: handle large precision via %.*d
54040         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54041         when handling it ourselves.
54042         * tests/test-vasnprintf-posix.c (test_function): Add test.
54043         * tests/test-snprintf-posix.h (test_function): Likewise.
54044         * tests/test-sprintf-posix.h (test_function): Likewise.
54045         * tests/test-vasprintf-posix.c (test_function): Likewise.
54046         Reported by Alain Guibert.
54047
54048 2008-09-01  Eric Blake  <ebb9@byu.net>
54049
54050         c-stack: make configure-time check more robust
54051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54052         successful sigaction call.
54053         Reported by Tom G. Christensen.
54054
54055 2008-09-01  Bruno Haible  <bruno@clisp.org>
54056
54057         New module 'findprog-lgpl'.
54058         * modules/findprog-lgpl: New file.
54059         * lib/findprog-lgpl.c: New file.
54060         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54061         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54062         to decide whether to use strdup or xstrdup, concatenated_filename or
54063         xconcatenated_filename.
54064
54065 2008-09-01  Bruno Haible  <bruno@clisp.org>
54066
54067         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54068         'xconcat-filename' (GPL).
54069         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54070         (License): Change to LGPLv2+.
54071         * modules/xconcat-filename: New file.
54072         * lib/concat-filename.h (concatenated_filename): Change specification.
54073         (xconcatenated_filename): New declaration.
54074         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54075         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54076         memory situations.
54077         * lib/xconcat-filename.c: New file.
54078         * NEWS: Mention the change.
54079         * lib/findprog.c: Include concat-filename.h, not filename.h.
54080         (find_in_path): Use xconcatenated_filename instead of
54081         concatenated_filename.
54082         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54083         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54084         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54085         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54086         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54087         instead of concatenated_filename.
54088         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54089         (execute_java_class): Use xconcatenated_filename instead of
54090         concatenated_filename.
54091         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54092         * modules/javacomp (Depends-on): Likewise.
54093         * modules/javaexec (Depends-on): Likewise.
54094
54095 2008-09-01  Bruno Haible  <bruno@clisp.org>
54096
54097         Split module 'filename' into 'filename' and 'concat-filename'.
54098         * modules/filename: Keep only lib/filename.h.
54099         (License): Change to LGPLv2+.
54100         * modules/concat-filename: New file, extracted from modules/filename.
54101         * lib/filename.h (concatenated_filename): Remove declaration.
54102         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54103         * lib/concat-filename.c: Include concat-filename.h.
54104         * NEWS: Mention the change.
54105
54106 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54107
54108         * lib/bitrotate.h (rotl8, rotr8): Add.
54109
54110         * modules/bitrotate (configure.ac): Need
54111         AC_REQUIRE([AC_C_INLINE]).
54112         (Description): Mention stdint.h.  Reported by Bruno Haible
54113         <bruno@clisp.org>.
54114
54115         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54116         Paolo Bonzini <bonzini@gnu.org>.
54117
54118 2008-08-31  Bruno Haible  <bruno@clisp.org>
54119
54120         Assume Solaris specific bi-arch conventions on Solaris systems.
54121         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54122         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54123         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54124         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54125         like acl_libdirstem.
54126         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54127         acl_libdirstem.
54128         * NEWS: Mention the change.
54129         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54130
54131 2008-08-31  Jim Meyering  <meyering@redhat.com>
54132
54133         * lib/strftime.h: Add comments describing the two added arguments.
54134
54135         remove duplicate #include directives
54136         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54137         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54138
54139 2008-08-31  Bruno Haible  <bruno@clisp.org>
54140
54141         New module 'sigpipe-die'.
54142         * modules/sigpipe-die: New file.
54143         * lib/sigpipe-die.h: New file.
54144         * lib/sigpipe-die.c: New file.
54145         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54146
54147 2008-08-31  Bruno Haible  <bruno@clisp.org>
54148
54149         Don't override previously installed signal handlers.
54150         * lib/fatal-signal.c (saved_sigactions): New variable.
54151         (uninstall_handlers): Reset the signal to the saved handler, not
54152         to SIG_DFL (except when ignored).
54153         (install_handlers): Save the previous handlers.
54154
54155 2008-08-30  Bruno Haible  <bruno@clisp.org>
54156
54157         * gnulib-tool (func_reset_sigpipe): New function.
54158         (func_get_automake_snippet, func_modules_transitive_closure,
54159         func_import): Invoke it before a join command that reads from stdin,
54160         to avoid "echo: write error: Broken pipe" error messages on stderr.
54161         Reported by Sam Steingold <sds@gnu.org>.
54162
54163 2008-08-30  Bruno Haible  <bruno@clisp.org>
54164
54165         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54166         Code copied from m4/open.m4.
54167         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54168         access and the filename ends in a slash. Code copied from lib/open.c.
54169         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54170         * tests/test-fopen.c (main): Check against bug with trailing slash.
54171
54172 2008-08-29  Bruno Haible  <bruno@clisp.org>
54173
54174         Avoid some "gcc -pedantic" warnings.
54175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54176         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54177         * lib/dirent.in.h: Likewise.
54178         * lib/fcntl.in.h: Likewise.
54179         * lib/float.in.h: Likewise.
54180         * lib/iconv.in.h: Likewise.
54181         * lib/inttypes.in.h: Likewise.
54182         * lib/locale.in.h: Likewise.
54183         * lib/math.in.h: Likewise.
54184         * lib/netinet_in.in.h: Likewise.
54185         * lib/search.in.h: Likewise.
54186         * lib/signal.in.h: Likewise.
54187         * lib/stdarg.in.h: Likewise.
54188         * lib/stdint.in.h: Likewise.
54189         * lib/stdio.in.h: Likewise.
54190         * lib/stdlib.in.h: Likewise.
54191         * lib/string.in.h: Likewise.
54192         * lib/strings.in.h: Likewise.
54193         * lib/sys_select.in.h: Likewise.
54194         * lib/sys_socket.in.h: Likewise.
54195         * lib/sys_stat.in.h: Likewise.
54196         * lib/sys_time.in.h: Likewise.
54197         * lib/sysexits.in.h: Likewise.
54198         * lib/time.in.h: Likewise.
54199         * lib/unistd.in.h: Likewise.
54200         * lib/wchar.in.h: Likewise.
54201         * lib/wctype.in.h: Likewise.
54202         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54203         * modules/fchdir (Makefile.am): Likewise.
54204         * modules/fcntl (Makefile.am): Likewise.
54205         * modules/float (Makefile.am): Likewise.
54206         * modules/iconv_open (Makefile.am): Likewise.
54207         * modules/inttypes (Makefile.am): Likewise.
54208         * modules/locale (Makefile.am): Likewise.
54209         * modules/math (Makefile.am): Likewise.
54210         * modules/netinet_in (Makefile.am): Likewise.
54211         * modules/search (Makefile.am): Likewise.
54212         * modules/signal (Makefile.am): Likewise.
54213         * modules/stdarg (Makefile.am): Likewise.
54214         * modules/stdint (Makefile.am): Likewise.
54215         * modules/stdio (Makefile.am): Likewise.
54216         * modules/stdlib (Makefile.am): Likewise.
54217         * modules/string (Makefile.am): Likewise.
54218         * modules/strings (Makefile.am): Likewise.
54219         * modules/sys_select (Makefile.am): Likewise.
54220         * modules/sys_socket (Makefile.am): Likewise.
54221         * modules/sys_stat (Makefile.am): Likewise.
54222         * modules/sys_time (Makefile.am): Likewise.
54223         * modules/sysexits (Makefile.am): Likewise.
54224         * modules/time (Makefile.am): Likewise.
54225         * modules/unistd (Makefile.am): Likewise.
54226         * modules/wchar (Makefile.am): Likewise.
54227         * modules/wctype (Makefile.am): Likewise.
54228         Reported by Reuben Thomas <rrt@sc3d.org>.
54229
54230 2008-08-29  Bruno Haible  <bruno@clisp.org>
54231
54232         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54233         any more.
54234
54235 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54236
54237         * MODULES.html.sh (Misc): Add bitrotate.
54238
54239         * modules/bitrotate: New file.
54240
54241         * lib/bitrotate.h: New file.
54242
54243         * modules/bitrotate-tests: New file.
54244
54245         * tests/test-bitrotate.c: New file.
54246
54247         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54248         on the bitrotate module.
54249
54250         * lib/arctwo.c: Use new bitrotate module.
54251
54252 2008-08-29  Jim Meyering  <meyering@redhat.com>
54253
54254         bootstrap: merge changes from coreutils
54255         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54256         of copied files.  Remove a kludge, now that this is fixed.
54257         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54258         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54259         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54260
54261 2008-08-29  Bruno Haible  <bruno@clisp.org>
54262
54263         * MODULES.html.sh: Remove --cvs-urls option.
54264
54265 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54266
54267         maint.mk: adjust to file name change
54268         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54269
54270 2008-08-28  Jim Meyering  <meyering@redhat.com>
54271
54272         * modules/getndelim2 (License): Relicense to LGPLv2+.
54273         Approved by Richard Stallman for the version of 1995, and by
54274         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54275
54276 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54277
54278         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54279         dummy if one is not available.  Do not touch them if
54280         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54281         (getc_maybe_unlocked): New.
54282         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54283
54284 2008-08-26  Eric Blake  <ebb9@byu.net>
54285
54286         doc/INSTALL: resync from autoconf
54287         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54288         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54289         moving...
54290         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54291         * INSTALL: Regenerate.
54292         * INSTALL.ISO: New file.
54293         * INSTALL.UTF-8: Likewise.
54294
54295 2008-08-26  Jim Meyering  <meyering@redhat.com>
54296
54297         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54298         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54299         these definitions conditional, so that they may be overridden, too.
54300
54301 2008-08-26  Bruno Haible  <bruno@clisp.org>
54302
54303         Generate INSTALL file variants with prettier quotes.
54304         * doc/Makefile (INSTALL_PRELUDE): New macro.
54305         (INSTALL): Use it.
54306         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54307
54308 2008-08-26  Bruno Haible  <bruno@clisp.org>
54309
54310         Run makeinfo in an English locale.
54311         * doc/Makefile (MAKEINFO): New variable.
54312
54313 2008-08-26  Bruno Haible  <bruno@clisp.org>
54314
54315         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54316         Suggested by Eric Blake.
54317
54318 2008-08-25  Bruno Haible  <bruno@clisp.org>
54319
54320         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54321
54322 2008-08-25  Eric Blake  <ebb9@byu.net>
54323
54324         c-stack: test that stack overflow can be caught
54325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54326         that platform allows handling stack overflow; at least OS/2 EMX
54327         has sigaltstack, but crashes before transferring control to
54328         handler on stack overflow.
54329         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54330         check for HAVE_STACK_OVERFLOW_HANDLING.
54331         Reported by Elbert Pol.
54332
54333 2008-08-25  Bruno Haible  <bruno@clisp.org>
54334
54335         * doc/posix-functions/strftime.texi: Fix description of strftime
54336         module.
54337
54338 2008-08-24  Bruno Haible  <bruno@clisp.org>
54339
54340         * tests/uniwidth/test-uc_width2.c: New file.
54341         * tests/uniwidth/test-uc_width2.sh: New file.
54342         * modules/uniwidth/width-tests (Files): Add the new files.
54343         (TESTS): Add uniwidth/test-uc_width2.sh.
54344         (TESTS_ENVIRONMENT): New variable.
54345         (check_PROGRAMS): Add test-uc_width2.
54346         (test_uc_width2_SOURCES): New variable.
54347
54348         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54349         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54350         not 0x00AB.
54351         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54352
54353 2008-08-22  Eric Blake  <ebb9@byu.net>
54354
54355         test-lock, test-tls: mention why a test is skipped
54356         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54357         skipped.
54358         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54359
54360         count-one-bits: relax license
54361         * modules/count-one-bits (License): Relicense to LGPLv2+.
54362         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54363
54364 2008-08-22  Andreas Schwab  <schwab@suse.de>
54365
54366         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54367         Remove spurious space in assignment.
54368
54369 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54370
54371         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54372         Paul Eggert <eggert@CS.UCLA.EDU>.
54373
54374 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54375
54376         * modules/gettext: Add m4/threadlib.m4.
54377
54378 2008-08-19  Eric Blake  <ebb9@byu.net>
54379
54380         test-c-stack: fix compilation failure on FreeBSD 5.0
54381         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54382         headers before <sys/resource.h>.
54383         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54384         the bug.
54385         Reported by Nelson H. F. Beebe.
54386
54387         strverscmp: migrate from "strverscmp.h" to <string.h>
54388         * modules/string (Makefile.am): Add new hooks.
54389         * modules/strverscmp (Files): Remove strverscmp.h.
54390         (Depends-on): Add string.
54391         (configure.ac): Add indicator.
54392         (Include): Mention new header.
54393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54394         defaults.
54395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54396         results.
54397         * lib/strverscmp.h: Delete.
54398         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54399         * tests/test-strverscmp.c (includes): Adjust client.
54400         * lib/check-version.c (includes): Likewise.
54401         * NEWS: Document the change.
54402
54403         strverscmp: add unit test
54404         * modules/strverscmp-tests: New file.
54405         * tests/test-strverscmp.c: Likewise.
54406
54407 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54408
54409         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54410         regarding Windows crypto stuff, from Mono.
54411
54412 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54413
54414         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54415         if present, for intel RND.  Return error on failures.
54416
54417 2008-08-18  Ben Pfaff  <blp@gnu.org>
54418
54419         gitlog-to-changelog: give better diagnostic for failed pipe-open
54420         * build-aux/gitlog-to-changelog: Improve error message: suggest
54421         that the version of Git may be too old.
54422
54423 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54424
54425         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54426         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54427
54428 2008-08-18  Bruno Haible  <bruno@clisp.org>
54429
54430         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54431         pthread_in_use().
54432
54433 2008-08-18  Bruno Haible  <bruno@clisp.org>
54434
54435         * lib/glthread/threadlib.c: Include <pthread.h>.
54436
54437 2008-08-18  Bruno Haible  <bruno@clisp.org>
54438
54439         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54440         glthread_recursive_lock_* macros.
54441         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54442         Fix syntax error.
54443
54444 2008-08-18  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/glthread/thread.c: Avoid forcing a context switch right after
54447         thread creation.
54448
54449 2008-08-17  Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54452         * lib/glthread/thread.h: Provide Win32 specific implementation.
54453         * modules/thread (Files): Add lib/glthread/thread.c.
54454         (Depends-on): Add lock.
54455         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54456
54457 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54458
54459         New module 'yield'.
54460         * modules/yield: New file.
54461         * lib/glthread/yield.h: New file.
54462         * m4/yield.m4: New file.
54463         * MODULES.html.sh (Multithreading): Add yield.
54464
54465 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54466
54467         New module 'thread'.
54468         * modules/thread: New file.
54469         * lib/glthread/thread.h: New file.
54470         * m4/thread.m4: New file.
54471         * MODULES.html.sh (Multithreading): Add thread.
54472
54473 2008-08-17  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/glthread/lock.h: Include <stdlib.h> always.
54476         * lib/glthread/tls.h: Likewise.
54477         * lib/glthread/cond.h: Likewise.
54478
54479 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54480
54481         New module 'cond'.
54482         * modules/cond: New file.
54483         * lib/glthread/cond.h: New file.
54484         * lib/glthread/cond.c: New file.
54485         * m4/cond.m4: New file.
54486         * MODULES.html.sh (Multithreading): Add cond.
54487
54488 2008-08-16  Eric Blake  <ebb9@byu.net>
54489
54490         c-stack: fix regression on Irix 5.3 from 2008-06-21
54491         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54492         sa_sigaction...
54493         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54494         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54496         * modules/signal (Makefile.am): Use the value.
54497         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54498         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54499         * doc/posix-headers/signal.texi (signal.h): Document this
54500         portability issue.
54501         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54502         Reported by Tom G. Christensen.
54503
54504 2008-08-17  Bruno Haible  <bruno@clisp.org>
54505
54506         New module 'threadlib'.
54507         * modules/threadlib: New file.
54508         * lib/glthread/threadlib.c: New file, extracted from
54509         lib/glthread/lock.c.
54510         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54511         functions.
54512         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54513         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54514         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54515         macros.
54516         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54517         (gl_DISABLE_THREADS): Remove macro.
54518         * modules/lock (Files): Remove build-aux/config.rpath.
54519         (Depends-on): Remove havelib. Add threadlib.
54520         (configure.ac-early): Remove section.
54521         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54522         * modules/tls (Depends-on): Remove lock. Add threadlib.
54523         (Link): New section, copied from threadlib.
54524         * MODULES.html.sh (Multithreading): Add threadlib.
54525
54526 2008-08-14  Bruno Haible  <bruno@clisp.org>
54527
54528         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54529         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54530         glthread_rwlock_unlock, glthread_rwlock_destroy,
54531         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54532         glthread_recursive_lock_destroy): Define as macros always.
54533         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54534         glthread_lock_lock.
54535         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54536         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54537         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54538         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54539         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54540         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54541         (glthread_recursive_lock_lock_func): Renamed from
54542         glthread_recursive_lock_lock.
54543         (glthread_recursive_lock_unlock_func): Renamed from
54544         glthread_recursive_lock_unlock.
54545         (glthread_recursive_lock_destroy_func): Renamed from
54546         glthread_recursive_lock_destroy.
54547
54548 2008-08-14  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/glthread/lock.h: Renamed from lib/lock.h.
54551         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54552         * lib/glthread/tls.h: Renamed from lib/tls.h.
54553         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54554         * lib/fstrcmp.c: Update includes.
54555         * lib/strsignal.c: Update includes.
54556         * modules/lock (Files, Makefile.am): Update.
54557         (Include): Change to "glthread/lock.h".
54558         * modules/tls (Files, Makefile.am): Update.
54559         (Include): Change to "glthread/tls.h".
54560         * tests/test-lock.c: Update includes.
54561         * tests/test-tls.c: Update includes.
54562         * NEWS: Mention the renamed header files.
54563
54564 2008-08-11  Jim Meyering  <meyering@redhat.com>
54565
54566         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54567
54568 2008-08-11  Eric Blake  <ebb9@byu.net>
54569
54570         test-c-stack: avoid C99-ism
54571         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54572         before statement.
54573         Reported by Alain Guibert.
54574
54575 2008-08-10  Jim Meyering  <meyering@redhat.com>
54576
54577         ensure that return value of uinttostr et al are not ignored
54578         * lib/inttostr.h (__GNUC_PREREQ): Define.
54579         (__attribute_warn_unused_result__): Define.
54580         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54581
54582 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54583
54584         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54585         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54586
54587 2008-08-07  Jim Meyering  <meyering@redhat.com>
54588
54589         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54590
54591         * modules/mkstemp (License): Relicense under LGPLv2+.
54592         * modules/tempname (License): Likewise.
54593
54594 2008-08-06  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/poll.c (poll): Further micro-optimization.
54597
54598 2008-08-06  Jim Meyering  <meyering@redhat.com>
54599
54600         inet_pton.c: use locale-independent tolower
54601         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54602         (inet_pton6): Use c_tolower rather than tolower.
54603         * modules/inet_pton (Depends-on): Add c-ctype.
54604
54605 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54606
54607         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54608         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54609
54610 2008-08-06  Jim Meyering  <meyering@redhat.com>
54611
54612         * modules/inet_pton (License): Relicense under LGPLv2+.
54613
54614 2008-08-03  Bruno Haible  <bruno@clisp.org>
54615
54616         Additional non-aborting API for lock and tls.
54617         * lib/lock.h: Include <errno.h>.
54618         (glthread_lock_init): New macro/function.
54619         (gl_lock_init): Define as wrapper around glthread_lock_init.
54620         (glthread_lock_lock): New macro/function.
54621         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54622         (glthread_lock_unlock): New macro/function.
54623         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54624         (glthread_lock_destroy): New macro/function.
54625         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54626         (glthread_rwlock_init): New macro/function.
54627         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54628         (glthread_rwlock_rdlock): New macro/function.
54629         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54630         (glthread_rwlock_wrlock): New macro/function.
54631         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54632         (glthread_rwlock_unlock): New macro/function.
54633         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54634         (glthread_rwlock_destroy): New macro/function.
54635         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54636         (glthread_recursive_lock_init): New macro/function.
54637         (gl_recursive_lock_init): Define as wrapper around
54638         glthread_recursive_lock_init.
54639         (glthread_recursive_lock_lock): New macro/function.
54640         (gl_recursive_lock_lock): Define as wrapper around
54641         glthread_recursive_lock_lock.
54642         (glthread_recursive_lock_unlock): New macro/function.
54643         (gl_recursive_lock_unlock): Define as wrapper around
54644         glthread_recursive_lock_unlock.
54645         (glthread_recursive_lock_destroy): New macro/function.
54646         (gl_recursive_lock_destroy): Define as wrapper around
54647         glthread_recursive_lock_destroy.
54648         (glthread_once): New macro/function.
54649         (gl_once): Define as wrapper around glthread_once.
54650         Update function declarations.
54651         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54652         glthread_rwlock_init. Return error code.
54653         (glthread_rwlock_rdlock_multithreaded): Renamed from
54654         glthread_rwlock_rdlock. Return error code.
54655         (glthread_rwlock_wrlock_multithreaded): Renamed from
54656         glthread_rwlock_wrlock. Return error code.
54657         (glthread_rwlock_unlock_multithreaded): Renamed from
54658         glthread_rwlock_unlock. Return error code.
54659         (glthread_rwlock_destroy_multithreaded): Renamed from
54660         glthread_rwlock_destroy. Return error code.
54661         (glthread_recursive_lock_init_multithreaded): Renamed from
54662         glthread_recursive_lock_init. Return error code.
54663         (glthread_recursive_lock_lock_multithreaded): Renamed from
54664         glthread_recursive_lock_lock. Return error code.
54665         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54666         glthread_recursive_lock_unlock. Return error code.
54667         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54668         glthread_recursive_lock_destroy. Return error code.
54669         (glthread_once_call): Make static.
54670         (glthread_once_multithreaded): Renamed from glthread_once.
54671         * lib/tls.h: Include <errno.h>.
54672         (glthread_tls_key_init): New macro/function.
54673         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54674         (glthread_tls_set): New macro/function.
54675         (gl_tls_set): Define as wrapper around glthread_tls_set.
54676         (glthread_tls_key_destroy): New macro/function.
54677         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54678         Update function declarations.
54679         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54680         glthread_tls_get.
54681         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54682
54683 2008-08-04  Eric Blake  <ebb9@byu.net>
54684
54685         gnumakefile: use space, not TAB, outside of targets
54686         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54687
54688 2008-08-02  Jim Meyering  <meyering@redhat.com>
54689
54690         getdate.y: avoid locale-dependent date parsing failure
54691         In Turkish locales, getdate would fail to recognize keywords
54692         containing a lowercase "i".  The solution is not to rely on
54693         locale-sensitive case-conversion.
54694         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54695         (lookup_word): Use c_toupper in place of toupper.
54696         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54697         Reported by Vefa Bicakci <bicave@superonline.com> in
54698         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54699         * modules/getdate (Depends-on): Add c-ctype.
54700
54701 2008-08-02  Bruno Haible  <bruno@clisp.org>
54702
54703         * gnulib-tool (func_import): When updating or creating a .gitignore
54704         file, prepend each added line with a slash, and ignore leading slashes
54705         from the existing lines.
54706         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54707
54708 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54709
54710         Portability fix for GNU make 3.79.1.
54711         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54712         versions do not understand.
54713
54714 2008-08-01  Bruno Haible  <bruno@clisp.org>
54715
54716         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54717         * tests/test-isnanf.h (zero): New variable.
54718         (main): Avoid literal -0.0f.
54719         * tests/test-isnand.h (zero): New variable.
54720         (main): Avoid literal -0.0.
54721         * tests/test-isnanl.h (zero): New variable.
54722         (main): Avoid literal -0.0L.
54723         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54724         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54725         -0.0, -0.0L.
54726         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54727         (test_signbitd): Avoid literal -0.0.
54728         (test_signbitl): Avoid literal -0.0L.
54729         * tests/test-ceilf1.c (zero): New variable.
54730         (main): Avoid literal -0.0f.
54731         * tests/test-ceill.c (zero): New variable.
54732         (main): Avoid literal -0.0L.
54733         * tests/test-floorf1.c (zero): New variable.
54734         (main): Avoid literal -0.0f.
54735         * tests/test-floorl.c (zero): New variable.
54736         (main): Avoid literal -0.0L.
54737         * tests/test-roundf1.c (zero): New variable.
54738         (main): Avoid literal -0.0f.
54739         * tests/test-round1.c (zero): New variable.
54740         (main): Avoid literal -0.0.
54741         * tests/test-roundl.c (zero): New variable.
54742         (main): Avoid literal -0.0L.
54743         * tests/test-truncf1.c (zero): New variable.
54744         (main): Avoid literal -0.0f.
54745         * tests/test-trunc1.c (zero): New variable.
54746         (main): Avoid literal -0.0.
54747         * tests/test-truncl.c (zero): New variable.
54748         (main): Avoid literal -0.0L.
54749         * tests/test-frexp.c (zero): New variable.
54750         (main): Avoid literal -0.0.
54751         * tests/test-frexpl.c (zero): New variable.
54752         (main): Avoid literal -0.0L.
54753         * tests/test-ldexpl.c (zero): New variable.
54754         (main): Avoid literal -0.0L.
54755         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54756         (zerod, zerol): New variables.
54757         (test_function): Avoid literals -0.0, -0.0L.
54758         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54759         (zerod, zerol): New variables.
54760         (test_function): Avoid literals -0.0, -0.0L.
54761         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54762         (zerod, zerol): New variables.
54763         (test_function): Avoid literals -0.0, -0.0L.
54764         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54765         (zerod, zerol): New variables.
54766         (test_function): Avoid literals -0.0, -0.0L.
54767         * tests/test-strtod.c (zero): New variable.
54768         (main): Avoid literal -0.0.
54769         Reported by Jonathan C. Patschke <jp@centtech.com>.
54770
54771 2008-07-31  Jim Meyering  <meyering@redhat.com>
54772
54773         sha256.h: correct definition of SHA224_DIGEST_SIZE
54774         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54775         Reported by Paulie Pena IV <paulie4@gmail.com>.
54776         Define as 224 / 8, rather than as a literal.
54777         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54778         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54779         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54780
54781 2008-07-31  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54784         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54785         Reported by Jonathan Patschke <jp@centtech.com>.
54786
54787 2008-07-31  Bruno Haible  <bruno@clisp.org>
54788
54789         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54790         Reported by Paolo Bonzini <bonzini@gnu.org>.
54791
54792 2008-07-30  Eric Blake  <ebb9@byu.net>
54793
54794         test-strtod: allow compilation without -lm
54795         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54796         Reported by Dennis Clarke <blastwave@gmail.com>.
54797
54798 2008-07-28  Jim Meyering  <meyering@redhat.com>
54799
54800         bootstrap: work also when there are no .po files in po/
54801         * build-aux/bootstrap (update_po_files): Complete the change
54802         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54803
54804 2008-07-27  Jim Meyering  <meyering@redhat.com>
54805
54806         * users.txt: Add zile.
54807
54808 2008-07-26  Ben Pfaff  <blp@gnu.org>
54809
54810         Add missing dependencies on new m4/exponent[fdl].m4 files.
54811         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54812         * modules/isnand-nolibm: Add m4/exponentd.m4.
54813         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54814         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54815         m4/isnan[fdl].m4, because the macros actually used moved.
54816         Reported by Jim Meyering.
54817
54818 2008-07-14  Ben Pfaff  <blp@gnu.org>
54819
54820         Add isinf module.
54821         * lib/isinf.c: New file.
54822         * lib/math.in.h: Define isinf macro if we have decided to replace
54823         it.
54824         * m4/isinf.m4: New file.
54825         * m4/math_h.m4: Initialize and substitute variables for isinf
54826         module.
54827         * modules/isinf: New file.
54828         * modules/isinf-tests: New file.
54829         * modules/math: Add substitutions for new module.
54830         * tests/test-isinf.c: New file.
54831         * doc/posix-functions/isinf.texi: Mention new module.
54832         * MODULES.html.sh: Mention new module.
54833
54834 2008-07-14  Ben Pfaff  <blp@gnu.org>
54835
54836         Factor out some macros for use by additional modules.
54837         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54838         exponentf.m4.
54839         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54840         exponentd.m4.
54841         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54842         file exponentl.m4.
54843         * m4/exponentf.m4: New file.
54844         * m4/exponentd.m4: New file.
54845         * m4/exponentl.m4: New file.
54846         * modules/isnanf: Use new file m4/exponentf.m4.
54847         * modules/isnand: Use new file m4/exponentd.m4.
54848         * modules/isnanl: Use new file m4/exponentl.m4.
54849
54850 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54851
54852         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54853         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54854         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54855         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54856
54857         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54858         readlink on platforms without PATH_MAX.
54859
54860 2008-07-21  Eric Blake  <ebb9@byu.net>
54861
54862         Warn, not fail, on stale version.
54863         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54864
54865         Don't allow installation with stale devel version number.
54866         * top/GNUmakefile (_is-install-target): New macro.
54867         (_curr-ver): Forbid installation with stale version number.
54868
54869 2008-07-20  Bruno Haible  <bruno@clisp.org>
54870
54871         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54872         TESTS_ENVIRONMENT.
54873         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54874
54875 2008-07-20  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/c-stack.h (c_stack_action): Add documentation.
54878         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54879
54880 2008-07-20  Bruno Haible  <bruno@clisp.org>
54881
54882         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54883         * modules/readlink (License): Likewise.
54884
54885 2008-07-17  Eric Blake  <ebb9@byu.net>
54886
54887         * modules/c-stack (Link): Fix typo.
54888
54889         Make c-stack use libsigsegv, when available.
54890         * modules/c-stack (Depends-on): Add libsigsegv.
54891         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54892         needed.
54893         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54894         (segv_handler, overflow_handler, c_stack_action)
54895         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54896         implementation when libsigsegv is available, but only when using
54897         the library is necessary.
54898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54899         comment, explaining why XSI check fails on Linux.
54900         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54901         * tests/test-c-stack2.sh: Tweak skip message.
54902         * NEWS: Document new link-time requirements.
54903
54904 2008-07-16  Eric Blake  <ebb9@byu.net>
54905
54906         c-stack: Expose false positives when not using libsigsegv.
54907         * modules/c-stack-tests (Files): Expand test.
54908         * tests/test-c-stack.c (main): Add means to conditionally trigger
54909         non-overflow SIGSEGV.
54910         * tests/test-c-stack2.sh: New file.
54911
54912 2008-07-14  Bruno Haible  <bruno@clisp.org>
54913
54914         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54915         Reported by Eric Blake.
54916
54917 2008-07-14  Sam Steingold  <sds@gnu.org>
54918             Bruno Haible  <bruno@clisp.org>
54919
54920         New module libsigsegv.
54921         * modules/libsigsegv: New file.
54922         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54923         modifications.
54924         * MODULES.html.sh (Signal handling): New section.
54925
54926 2008-07-14  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/unictype/ctype-* (Description): Add the word "function".
54929         Improves the resulting doc in MODULES.html.
54930
54931 2008-07-12  Ben Pfaff  <blp@gnu.org>
54932
54933         Add longlong module.
54934         * modules/longlong: New file.
54935
54936 2008-07-12  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54939         to empty.
54940
54941 2008-07-10  Ben Pfaff  <blp@gnu.org>
54942
54943         Add isnan module.
54944         * doc/posix-functions/isnan.texi: Mention new module.
54945         * lib/math.in.h: Define isnan macro if we have decided to replace
54946         it.
54947         * m4/isnan.m4: New file.
54948         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54949         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54950         also.
54951         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54952         redundancy.
54953         * m4/math_h.m4: Initialize and substitute variables for isnan
54954         module.
54955         * modules/isnan: New file.
54956         * modules/isnan-tests: New file.
54957         * modules/math: Add substitutions for new module.
54958         * tests/test-isnan.c: New file.
54959         * MODULES.html.sh: Mention new module.
54960
54961 2008-07-10  Ben Pfaff  <blp@gnu.org>
54962
54963         Add isnanf module.
54964         * lib/isnanf.m4: New file.
54965         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54966         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54967         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54968         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54969         * modules/isnanf: New file.
54970         * modules/isnanf-tests: New file.
54971         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54972         files.
54973         * tests/test-isnanf-nolibm.c: factored most of its contents into
54974         new file tests/test-isnanf.h.
54975         * tests/test-isnanf.h: New file.
54976         * tests/test-isnanf.c: New file.
54977         * MODULES.html.sh: Mention new module.
54978         * doc/glibc-functions/isnanf.texi: Mention new module.
54979
54980 2008-07-10  Ben Pfaff  <blp@gnu.org>
54981
54982         Add isnand module.
54983         * lib/isnand.h: New file.
54984         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54985         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54986         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54987         functionality also.
54988         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54989         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54990         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54991         * modules/isnand: New file.
54992         * modules/isnand-tests: New file.
54993         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54994         files.
54995         * tests/test-isnand-nolibm.c: factored most of its contents into
54996         new file tests/test-isnand.h.
54997         * tests/test-isnand.h: New file.
54998         * tests/test-isnand.c: New file.
54999         * MODULES.html.sh: Mention new module.
55000
55001 2008-07-10  Ben Pfaff  <blp@gnu.org>
55002
55003         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55004         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55005         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55006         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55007         * modules/isnanf-nolibm: Update references to renamed files.
55008         * modules/isnand-nolibm: Likewise.
55009         * modules/isnanf-nolibm-tests: Likewise.
55010         * modules/isnand-nolibm-tests: Likewise.
55011         * lib/frexp.c: Likewise.
55012         * lib/isfinite.c: Likewise.
55013         * lib/signbitd.c: Likewise.
55014         * lib/signbitf.c: Likewise.
55015         * lib/vasnprintf.c: Likewise.
55016         * tests/test-ceilf1.c: Likewise.
55017         * tests/test-ceilf2.c: Likewise.
55018         * tests/test-floorf1.c: Likewise.
55019         * tests/test-floorf2.c: Likewise.
55020         * tests/test-frexp.c: Likewise.
55021         * tests/test-round1.c: Likewise.
55022         * tests/test-round2.c: Likewise.
55023         * tests/test-roundf1.c: Likewise.
55024         * tests/test-strtod.c: Likewise.
55025         * tests/test-trunc1.c: Likewise.
55026         * tests/test-trunc2.c: Likewise.
55027         * tests/test-truncf1.c: Likewise.
55028         * tests/test-truncf2.c: Likewise.
55029         * NEWS: Mention the renamed header files.
55030
55031 2008-07-11  Jim Meyering  <meyering@redhat.com>
55032
55033         vc-list-files: make the last-resort awk code more portable
55034         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55035         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55036         does not support it.
55037
55038 2008-07-10  Eric Blake  <ebb9@byu.net>
55039
55040         Work with tar's bootstrap.
55041         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55042         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55043         an m4 comment.
55044
55045 2008-07-09  Jim Meyering  <meyering@redhat.com>
55046
55047         posix-shell.m4: fix typo that made this test malfunction
55048         * m4/posix-shell.m4: Remove capitalization in variable name.
55049
55050 2008-07-08  Bruno Haible  <bruno@clisp.org>
55051
55052         * m4/onceonly.m4: Update comments.
55053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55054
55055 2008-07-04  Jim Meyering  <meyering@redhat.com>
55056
55057         * users.txt: Add vc-dwim.
55058         (bison, coreutils): Use the gitweb URL.
55059
55060 2008-07-03  Jim Meyering  <meyering@redhat.com>
55061
55062         * users.txt: Add libffcall.  From Sam Steingold.
55063
55064 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55065
55066         getdate.y: do not ignore TZ with relative day, month or year offset
55067         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55068         relative-date-handling, since otherwise, the latter would clobber the
55069         sole output (an updated Start value) of the tz-handling block.
55070         * tests/test-getdate.c: Tests for the fix
55071
55072 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55073
55074         Recognize 'foo_LIBRARIES += libgnu.a'.
55075         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55076         makefile snippet has already specified an installation location,
55077         also using '+='.
55078
55079 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55080
55081         getdate.y: factor out common actions
55082         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55083         Use them in place of open-coded actions.
55084
55085 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55086
55087         Add self-test for getdate module.
55088         * modules/getdate-tests: New file.
55089         * tests/test-getdate.c: New file.
55090
55091 2008-06-29  Bruno Haible  <bruno@clisp.org>
55092
55093         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55094         .gitignore.
55095         Reported by Sylvain Beucler <beuc@beuc.net>.
55096
55097 2008-06-29  Bruno Haible  <bruno@clisp.org>
55098
55099         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55100         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55101
55102 2008-06-29  Bruno Haible  <bruno@clisp.org>
55103
55104         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55105         EXTRA_DIST.
55106         Reported by Sylvain Beucler <beuc@beuc.net>.
55107
55108 2008-06-26  Jim Meyering  <meyering@redhat.com>
55109
55110         make several modules depend on the "open" module
55111         This provides slightly increased consistency when opening-for-write
55112         the name of a non-directory spelled with a trailing slash.
55113         * modules/chdir-safer: Likewise.
55114         * modules/chown: Likewise.
55115         * modules/clean-temp: Likewise.
55116         * modules/copy-file: Likewise.
55117         * modules/fchdir: Likewise.
55118         * modules/fcntl-safer: Likewise.
55119         * modules/pipe: Likewise.
55120         * modules/utime: Likewise.
55121         Prompted by Eric Blake and Bruno Haible.
55122
55123 2008-06-24  Andreas Schwab  <schwab@suse.de>
55124
55125         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55126         literals can be used as initializers for global variables.
55127
55128 2008-06-23  Eric Blake  <ebb9@byu.net>
55129
55130         Make gnulib-cache.m4 easier to diff.
55131         * gnulib-tool (func_import): Allow newlines when reading cached
55132         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55133
55134 2008-06-23  Bruno Haible  <bruno@clisp.org>
55135
55136         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55137         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55138         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55139         m4/signalblocking.m4.
55140         (gl_PREREQ_SIGACTION): Don't invoke it.
55141         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55142         gl_PREREQ_SIG_HANDLER_H.
55143         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55144         Don't check for sigaction here.
55145
55146 2008-06-23  Bruno Haible  <bruno@clisp.org>
55147
55148         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55149         (install_handlers): Don't set the SA_RESETHAND flag.
55150
55151 2008-06-23  Bruno Haible  <bruno@clisp.org>
55152
55153         * m4/sigaction.m4: Comment fixes.
55154         * lib/signal.in.h: Likewise.
55155
55156 2008-06-23  Eric Blake  <ebb9@byu.net>
55157
55158         Fix typo.
55159         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55160
55161         Avoid SA_ namespace.
55162         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55163         Reported by Ralf Wildenhues.
55164
55165         Avoid test failure due to SA_RESTORER.
55166         * tests/test-sigaction.c (SA_MASK): New macro.
55167         (main): Avoid failing due to extension flags being set.
55168         Reported by Jim Meyering.
55169
55170         Revert use of sig-handler.h in sigprocmask.c.
55171         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55172         it requires the existence of struct sigaction.
55173         * lib/sigprocmask.c (handler_t): Restore typedef.
55174         (rpl_signal, old_handlers): Use local type.
55175
55176 2008-06-22  Bruno Haible  <bruno@clisp.org>
55177
55178         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55179         conditionally.
55180         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55181
55182 2008-06-22  Bruno Haible  <bruno@clisp.org>
55183
55184         * doc/posix-functions/siginterrupt.texi: Move note.
55185
55186         * lib/signal.in.h (SA_RESTART): New macro.
55187         * lib/sigaction.c: Update comment.
55188
55189         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55190
55191         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55192         (gl_PREREQ_SIGPROCMASK): Invoke it.
55193         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55194
55195         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55196
55197         * lib/sigprocmask.c: Update a comment.
55198
55199 2008-06-21  Eric Blake  <ebb9@byu.net>
55200
55201         Use sigaction module rather than signal().
55202         * modules/c-stack (Depends-on): Add sigaction.
55203         * modules/fatal-signal (Depends-on): Likewise.
55204         * modules/nanosleep (Depends-on): Likewise.
55205         * modules/sigprocmask (Files): Add sig-handler.h.
55206         * modules/sigaction (Files): Likewise.
55207         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55208         Eggert.
55209         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55210         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55211         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55212         (init_fatal_signals): Likewise.
55213         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55214         (siginterrupt): Delete fallback.
55215         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55216         instead.
55217         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55218         siginterrupt.
55219
55220         New module sigaction, for mingw.
55221         * modules/sigaction: New module...
55222         * modules/sigaction-tests: ...and its test.
55223         * m4/sigaction.m4: New file.
55224         * lib/sigaction.c: Likewise.
55225         * tests/test-sigaction.c: Likewise.
55226         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55227         * modules/signal (Makefile.am): Likewise.
55228         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55229         needed.
55230         * doc/posix-headers/signal.texi (signal.h): Mention provided
55231         types.
55232         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55233         that sigaction is preferable.
55234         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55235         module.
55236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55237         sigaction.
55238
55239         Improve robustness of sigprocmask by overriding signal.
55240         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55241         is in use.
55242         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55243         (SIGKILL, SIGSTOP): Provide fallbacks.
55244         (rpl_signal): Implement.
55245         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55246         signal can be called inside handlers.
55247
55248         Fix nanosleep module on mingw.
55249         * modules/nanosleep (Depends-on): Add sys_select.
55250         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55251
55252         Fix licensing of sigprocmask.
55253         * modules/raise (License): Relicense as LGPL.
55254
55255 2008-06-21  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55258         result if it contains question marks.
55259         Reported by Michael Geng <linux@michaelgeng.de>.
55260
55261 2008-06-19  Bruno Haible  <bruno@clisp.org>
55262
55263         Fix CVS-ism.
55264         * doc/gnulib.texi: Include updated-stamp.texi.
55265         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55266         (updated-stamp.texi): New rule.
55267         (gnulib.info): Depend on it.
55268         * doc/.gitignore: Add updated-stamp.texi.
55269         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55270
55271 2008-06-19  Bruno Haible  <bruno@clisp.org>
55272
55273         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55274         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55275
55276 2008-06-19  Eric Blake  <ebb9@byu.net>
55277
55278         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55279         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55280         Reported by Stepan Kasal.
55281
55282 2008-06-18  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55285         Reported by Eric Blake.
55286
55287 2008-06-18  Eric Blake  <ebb9@byu.net>
55288
55289         Work around cygwin 1.5.25 strsignal bug.
55290         * tests/test-strsignal.c: Allow for const char *.
55291         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55292
55293 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55294
55295         * users.txt: Update URL to article and add author/date
55296         information.
55297
55298 2008-06-17  Bruno Haible  <bruno@clisp.org>
55299
55300         New macro gl_DISABLE_THREADS.
55301         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55302         if the user did not pass --enable-threads or --disable-threads option.
55303         (gl_DISABLE_THREADS): New macro.
55304         Reported by Eric Blake <ebb9@byu.net>.
55305
55306 2008-06-17  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55309         when the macro ignores it.
55310         Based on a patch by Eric Blake <ebb9@byu.net>.
55311
55312 2008-06-17  Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/tls (License): Change to LGPLv2+.
55315         Reported by Eric Blake.
55316
55317 2008-06-17  Eric Blake  <ebb9@byu.net>
55318
55319         Simplify c-stack prerequisites.
55320         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55322         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55323         check.
55324         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55325         <sys/resource.h>.
55326
55327         Move c-stack test into testsuite.
55328         * modules/c-stack-tests: New file.
55329         * lib/c-stack.c [DEBUG]: Move test program...
55330         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55331         fail test if sigaltstack is lacking.
55332         * tests/test-c-stack.sh: New driver file.
55333
55334 2008-06-16  Eric Blake  <ebb9@byu.net>
55335
55336         Use raise module consistently.
55337         * modules/fatal-signal (Depends-on): Add raise.
55338         * modules/sigprocmask (Depends-on): Likewise.
55339         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55340         * lib/sigprocmask.c (sigprocmask): Likewise.
55341         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55342         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55343
55344         Fix compliance bug in sigpending.
55345         * lib/sigprocmask.c (sigpending): Return pending array via
55346         parameter, not return value.
55347
55348 2008-06-14  Eric Blake  <ebb9@byu.net>
55349
55350         Improve obstack-printf test code.
55351         * tests/test-obstack-printf.c (test_function): Fix comment, and
55352         simplify usage of obstack_* in macros.  Add a test for coverage.
55353         Reported by Bruno Haible.
55354
55355 2008-06-14  Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55358         array size as a constant, not as a const variable.
55359         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55360         AC_USE_SYSTEM_EXTENSIONS.
55361         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55362         Test whether the obstack_printf function actually exists.
55363         * modules/obstack-printf (Depends-on): Add extensions.
55364         (Include): Remove obstack.h.
55365         * modules/obstack-printf-posix (Depends-on): Add extensions.
55366         (Include): Remove obstack.h.
55367
55368 2008-06-13  Eric Blake  <ebb9@byu.net>
55369
55370         Add obstack-printf and obstack-printf-posix modules.
55371         * modules/obstack-printf: New file.
55372         * modules/obstack-printf-posix: Likewise.
55373         * MODULES.html.sh (Misc): Mention them.
55374         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55375         Likewise.
55376         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55377         Likewise.
55378         * modules/stdio (Makefile.am): Accomodate new modules.
55379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55380         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55381         Declare.
55382         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55383         functions.
55384         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55385         (gl_REPLACE_OBSTACK_PRINTF): New macros
55386         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55387         * tests/test-obstack-printf.c: New file.
55388         * modules/obstack-printf-tests: Likewise.
55389         * modules/obstack-printf-posix-tests: Likewise.
55390
55391 2008-06-11  Bruno Haible  <bruno@clisp.org>
55392
55393         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55394         * lib/open.c: Include errno.h.
55395         (open): Fail when attempting to write to a file that has a trailing
55396         slash.
55397         * tests/test-open.c (main): Test against trailing slash bug.
55398         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55399
55400 2008-06-10  Bruno Haible  <bruno@clisp.org>
55401
55402         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55403         for $? to work inside the trap command, with various /bin/sh-s.
55404         * tests/test-vc-list-files-cvs.sh: Likewise.
55405
55406 2008-06-10  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/acl-internal.h: Don't include gettext.h here.
55409         * lib/set-mode-acl.c: Include gettext.h here.
55410         * lib/copy-acl.c: Likewise.
55411
55412 2008-06-10  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55415         * lib/wait-process.c (wait_subprocess): Likewise.
55416         * lib/execute.h (execute): Add termsigp argument.
55417         * lib/execute.c (execute): Likewise.
55418         * lib/csharpcomp.c (compile_csharp_using_pnet,
55419         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55420         * lib/csharpexec.c (execute_csharp_using_pnet,
55421         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55422         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55423         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55424         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55425         is_jikes_present): Update.
55426         * lib/javaexec.c (execute_java_class): Update.
55427         * lib/javaversion.c (execute_and_read_line): Update.
55428         * NEWS: Document the changes.
55429         Reported by Eric Blake.
55430
55431 2008-06-10  Eric Blake  <ebb9@byu.net>
55432
55433         Add missing include.
55434         * tests/test-strstr.c (includes): Add <signal.h>.
55435         * tests/test-strcasestr.c (includes): Likewise.
55436         * tests/test-memmem.c (includes): Likewise.
55437
55438 2008-06-10  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/wait-process.c (wait_subprocess): Add an assertion.
55441
55442 2008-06-10  Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55445
55446 2008-06-10  Bruno Haible  <bruno@clisp.org>
55447
55448         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55449         using alarm().
55450         * tests/test-strcasestr.c (main): Likewise.
55451         * tests/test-strstr.c (main): Likewise.
55452
55453 2008-06-09  Bruno Haible  <bruno@clisp.org>
55454
55455         Work around the Solaris 10 ACE ACLs ABI change.
55456         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55457         declare if ACL_NO_TRIVIAL is present.
55458         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55459         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55460         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55461         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55462         define if ACL_NO_TRIVIAL is present.
55463         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55464         and use the current ABI.
55465         (file_has_acl): Use same #if condition as elsewhere.
55466         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55467         in use, and use the current ABI.
55468         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55469         Reported by Jim Meyering.
55470
55471 2008-06-09  Eric Blake  <ebb9@byu.net>
55472
55473         Work around environments that (stupidly) ignore SIGALRM.
55474         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55475         before using alarm().
55476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55478         Reported by Ian Beckwith <ianb@erislabs.net>.
55479
55480         Produce autobuild blurb earlier in log.
55481         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55482
55483 2008-06-09  Jim Meyering  <meyering@redhat.com>
55484         and OndÅ™ej Vašík  <ovasik@redhat.com>
55485
55486         utimens.c: correct kernel bug work-around
55487         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55488         failure, not success, and the kernel bug we're trying to work
55489         around affects not just the utimensat call, but also the fallback
55490         futimens call.
55491         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55492         not success.
55493         [HAVE_FUTIMENS]: Use the same work-around, here.
55494
55495 2008-06-09  Jim Meyering  <meyering@redhat.com>
55496
55497         add more guards around definition of ACE_-related code
55498         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55499         ALLOW and ACE_OWNER are also defined.
55500
55501 2008-06-08  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/acl-internal.h: Add me as co-author.
55504         * lib/file-has-acl.c: Likewise.
55505         * lib/set-mode-acl.c: Likewise.
55506         * lib/copy-acl.c: Likewise.
55507
55508 2008-06-08  Bruno Haible  <bruno@clisp.org>
55509
55510         Add support for AIX ACLs.
55511         * lib/acl-internal.h (acl_nontrivial): New declaration.
55512         * lib/file-has-acl.c (acl_nontrivial): New function.
55513         (file_has_acl): Add implementation using AIX 4 ACL API.
55514         * lib/set-mode-acl.c (qset_acl): Likewise.
55515         * lib/copy-acl.c (qcopy_acl): Likewise.
55516
55517 2008-06-08  Bruno Haible  <bruno@clisp.org>
55518
55519         Add support for HP-UX ACLs.
55520         * lib/acl-internal.h (acl_nontrivial): New declaration.
55521         * lib/file-has-acl.c (acl_nontrivial): New function.
55522         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55523         * lib/set-mode-acl.c (qset_acl): Likewise.
55524         * lib/copy-acl.c (qcopy_acl): Likewise.
55525
55526 2008-06-08  Bruno Haible  <bruno@clisp.org>
55527
55528         Add support for Cygwin ACLs.
55529         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55530         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55531         the chmod_or_fchmod call.
55532         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55533
55534 2008-06-08  Bruno Haible  <bruno@clisp.org>
55535
55536         Fix bug with setuid modes in Solaris 10+ code.
55537         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55538         succeeded, when the mode contains some special bits.
55539
55540 2008-06-08  Bruno Haible  <bruno@clisp.org>
55541
55542         Add support for Solaris 7..10 ACLs.
55543         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55544         declarations.
55545         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55546         functions.
55547         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55548         * lib/set-mode-acl.c (qset_acl): Likewise.
55549         * lib/copy-acl.c (qcopy_acl): Likewise.
55550
55551 2008-06-08  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55554         declaration.
55555         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55556         (acl_access_nontrivial): Remove MacOS X case.
55557         (file_has_acl): Use acl_extended_nontrivial.
55558         * lib/copy-acl.c (qcopy_acl): Likewise.
55559
55560 2008-06-08  Bruno Haible  <bruno@clisp.org>
55561
55562         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55563
55564 2008-06-08  Jim Meyering  <meyering@redhat.com>
55565
55566         * modules/acl (Maintainer): Add Bruno Haible.
55567
55568 2008-06-07  Bruno Haible  <bruno@clisp.org>
55569
55570         Improve support for Tru64 ACLs.
55571         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55572         ACL on OSF/1.
55573
55574 2008-06-07  Bruno Haible  <bruno@clisp.org>
55575
55576         Add support for MacOS X ACLs.
55577         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55578         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55579         * lib/set-mode-acl.c (qset_acl): Likewise.
55580         * lib/copy-acl.c (qcopy_acl): Likewise.
55581
55582 2008-06-07  Bruno Haible  <bruno@clisp.org>
55583
55584         Fix memory leak introduced on 2008-05-22.
55585         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55586         use.
55587
55588 2008-06-07  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55591         to construct an empty ACL.
55592
55593 2008-06-07  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55596         precisely.
55597         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55598
55599 2008-06-07  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55602         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55603
55604 2008-06-07  Bruno Haible  <bruno@clisp.org>
55605
55606         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55607         regardless of POSIX.
55608         * doc/posix-functions/_longjmp.texi: Likewise.
55609         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55610         SystemV platform in this case.
55611
55612 2008-06-06  Eric Blake  <ebb9@byu.net>
55613
55614         Document abort() bugs.
55615         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55616
55617         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55618         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55619         sigsetjmp.
55620         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55621         siglongjmp, but only as a macro.
55622         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55623         is obsolete.
55624         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55625
55626         Tweak documentation to cover cygwin argz bugs.
55627         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55628         argz bug fix; no code change needed since no cygwin releases
55629         occurred between the last fix and the bug being tested.
55630         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55631         module and recently fixed cygwin bugs.
55632         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55633         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55634         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55635         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55636         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55637         Likewise.
55638         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55639         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55640         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55641         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55642         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55643         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55644         Likewise.
55645
55646         Avoid gcc warning on cygwin.
55647         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55648         !ACL_NO_TRIVIAL]: Avoid unused variable.
55649
55650 2008-06-05  Eric Blake  <ebb9@byu.net>
55651
55652         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55653         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55654         git-version-gen fails to come up with a version.
55655         Reported by Simon Josefsson.
55656
55657 2008-06-05  Jim Meyering  <meyering@redhat.com>
55658             Paul Eggert  <eggert@cs.ucla.edu>
55659
55660         utimens.c: work around a probable Linux kernel bug
55661         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55662         appears to be a kernel bug that causes utimensat to return 280
55663         instead of 0, indicating success.
55664
55665 2008-06-04  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55668         2008-06-01 commit.
55669
55670 2008-06-04  Bruno Haible  <bruno@clisp.org>
55671
55672         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55673         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55674         (file_has_acl): Use it. Save errno afterwards.
55675         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55676
55677 2008-06-03  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55680         draft code. Simplify #ifs.
55681         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55682         Put Solaris code after POSIX-draft code. Fix comments regarding
55683         Solaris 10, HP-UX. Mention Cygwin.
55684         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55685
55686 2008-06-03  Eric Blake  <ebb9@byu.net>
55687
55688         Provide fallback for older kernels.
55689         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55690         Provide runtime fallback if kernel lacks support.
55691         Reported by Mike Frysinger.
55692
55693 2008-06-02  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55696         it exists.
55697
55698 2008-06-02  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55701         * lib/copy-acl.c (qcopy_acl): Update comment.
55702
55703 2008-06-02  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55706         like ACL APIs.
55707
55708 2008-06-02  Bruno Haible  <bruno@clisp.org>
55709
55710         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55711         * tests/test-set-mode-acl.sh: Likewise.
55712         * tests/test-copy-acl.sh: Likewise.
55713         * tests/test-copy-file.sh: Likewise.
55714
55715 2008-06-02  Bruno Haible  <bruno@clisp.org>
55716
55717         * tests/test-file-has-acl.sh: Remove unused code.
55718
55719 2008-06-01  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55722         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55723         messages.
55724         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55725
55726 2008-06-01  Bruno Haible  <bruno@clisp.org>
55727
55728         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55729         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55730         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55731         APIs.
55732         * modules/acl-tests (configure.ac): Remove tests now contained in
55733         m4/acl.m4.
55734
55735 2008-06-02  Jim Meyering  <meyering@redhat.com>
55736
55737         announce-gen: use a better key-server host name
55738         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55739         it may be more consistently reliable.  Suggested by Werner Koch
55740         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55741
55742 2008-06-01  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55745         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55746
55747 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55748
55749         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55750
55751 2008-06-01  Bruno Haible  <bruno@clisp.org>
55752
55753         New ACL tests.
55754         * tests/test-file-has-acl.sh: New file.
55755         * tests/test-file-has-acl.c: New file.
55756         * tests/test-set-mode-acl.sh: New file.
55757         * tests/test-set-mode-acl.c: New file.
55758         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55759         * tests/test-copy-acl.c: New file.
55760         * modules/acl-tests: New file, based on modules/copy-file-tests.
55761         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55762         (Depends-on): Add acl-tests.
55763         (configure.ac): Remove checks.
55764         (Makefile.am): Don't create test-sameacls program here any more.
55765
55766 2008-06-01  Bruno Haible  <bruno@clisp.org>
55767
55768         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55769         * tests/test-sameacls.c: Include progname.h.
55770         (main): Invoke set_program_name. Portability fixes for MacOS X,
55771         Solaris, HP-UX.
55772
55773 2008-06-01  Bruno Haible  <bruno@clisp.org>
55774
55775         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55776         function.
55777         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55778
55779 2008-06-01  Bruno Haible  <bruno@clisp.org>
55780
55781         * modules/rpmatch (Depends-on): Add strdup.
55782
55783 2008-06-01  Bruno Haible  <bruno@clisp.org>
55784
55785         * lib/pipe.c: Include unistd-safer.h.
55786         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55787         * modules/pipe (Depends-on): Add unistd-safer.
55788
55789 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55790
55791         * modules/autobuild (configure.ac): Call AB_INIT.
55792
55793 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55794
55795         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55796         Suggested by Bruno Haible <bruno@clisp.org>.
55797
55798 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55799
55800         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55801         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55802         <bruno@clisp.org>.
55803
55804 2008-05-29  Eric Blake  <ebb9@byu.net>
55805
55806         Prefer new POSIX 200x interfaces over futimesat.
55807         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55808         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55809         when available.
55810         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55811
55812 2008-05-28  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/stpcpy (License): Change to LGPLv2+.
55815         Requested by David Lutterkort <dlutter@redhat.com>.
55816
55817 2008-05-27  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55820         current mingw.
55821         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55822
55823 2008-05-27  Bruno Haible  <bruno@clisp.org>
55824
55825         * modules/iconv_open (Link): New section, from module 'iconv'.
55826         * modules/striconv (Link): Likewise.
55827         * modules/striconveh (Link): Likewise.
55828         * modules/xstriconv (Link): Likewise.
55829         * modules/unicodeio (Link): Likewise.
55830         * modules/propername (Link): Likewise.
55831         Reported by Jim Meyering.
55832
55833 2008-05-26  Jim Meyering  <meyering@redhat.com>
55834
55835         sha256: do not artificially restrict buffer length to be < 2^32
55836         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55837         uint32_t to size_t.
55838         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55839         to match.
55840
55841         avoid unaligned access errors, e.g., on sparc
55842         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55843         direct access through a possibly-unaligned uint64* pointer.
55844         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55845         direct access through a possibly-unaligned uint32* pointer.
55846         Prompted by this patch from Tom "spot" Callaway:
55847         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55848
55849         sha512.c: fix typo in comment
55850         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55851
55852 2008-05-25  Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55855         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55856         (Makefile.am): Update lib_SOURCES.
55857
55858 2008-05-25  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55861
55862 2008-05-25  Jim Meyering  <meyering@redhat.com>
55863
55864         useless-if-before-free: freed expr may have white-space differences
55865         * build-aux/useless-if-before-free: Recognize cases in which the
55866         freed expression differs from the tested one in embedded white
55867         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55868         $1 was used, so we can't make any regexp shy.  Improved tests now
55869         detect this.
55870
55871         useless-if-before-free: accept white space in the expression.
55872         * build-aux/useless-if-before-free: For now, any white space
55873         in the expression must be identical in the free argument.
55874
55875         useless-if-before-free: efficiency tweak
55876         * build-aux/useless-if-before-free: Make the expression-matching
55877         regexp "shy".
55878         Make the *outer* regexp shy, not the expr-matching one.
55879
55880         update code-in-comment to accept cast of free arg
55881         * build-aux/useless-if-before-free: Update regexp.
55882
55883 2008-05-25  Bruno Haible  <bruno@clisp.org>
55884
55885         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55886         * modules/copy-file-tests (Files, Makefile.am): Update.
55887         * tests/test-copy-file.c (func_test_copy): Update.
55888
55889 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55890
55891         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55892
55893 2008-05-23  Bruno Haible  <bruno@clisp.org>
55894
55895         Improve support for ACLs on OSF/1.
55896         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55897         Remove fallback for unknown flavors of ACLs.
55898
55899 2008-05-22  Bruno Haible  <bruno@clisp.org>
55900
55901         Add support for ACLs on OSF/1.
55902         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55903         replacements.
55904         (acl_free_text): New macro fallback.
55905         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55906         acl_free.
55907         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55908         acl_free_text function. Require AC_C_INLINE.
55909
55910 2008-05-22  Bruno Haible  <bruno@clisp.org>
55911
55912         Make copy_acl work on MacOS X 10.5.
55913         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55914         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55915         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55916         If MODE_INSIDE_ACL, don't assume that every system has the same text
55917         representation for ACLs as FreeBSD.
55918         * lib/copy-acl.c (copy_acl): Add support for platforms with
55919         !MODE_INSIDE_ACL.
55920         * lib/file-has-acl.c (file_has_acl): Likewise.
55921         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55922         FreeBSD, MacOS X, or IRIX, respectively.
55923
55924 2008-05-22  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/acl.h: Don't include <sys/acl.h>.
55927         (GETACLCNT): Move fallback to lib/acl-internal.h.
55928         * lib/acl-internal.h: Include <sys/acl.h> here.
55929         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55930
55931 2008-05-22  Bruno Haible  <bruno@clisp.org>
55932
55933         Split off copy_acl function to separate file.
55934         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55935         * lib/acl.c (copy_acl): Moved function to separate file.
55936         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55937         * modules/acl (Files): Add lib/copy-acl.c.
55938         (Makefiles.am): Augment lib_SOURCES.
55939
55940 2008-05-22  Bruno Haible  <bruno@clisp.org>
55941
55942         * modules/copy-file-tests: New file.
55943         * tests/test-copy-file.sh: New file.
55944         * tests/test-copy-file.c: New file.
55945         * tests/test-copy-file-sameacls.c: New file.
55946
55947 2008-05-22  Eric Blake  <ebb9@byu.net>
55948
55949         Avoid gcc warning.
55950         * tests/test-memcmp.c (main): Pass NULL indirectly.
55951
55952 2008-05-21  Bruno Haible  <bruno@clisp.org>
55953
55954         Add reference doc about ACLs.
55955         * doc/acl-resources.txt: New file.
55956         * doc/acl-cygwin.txt: New file.
55957
55958 2008-05-21  Bruno Haible  <bruno@clisp.org>
55959
55960         Avoid one more warning from gcc.
55961         * lib/vasnprintf.c (IF_LINT): Update comments.
55962         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55963
55964 2008-05-21  Jim Meyering  <meyering@redhat.com>
55965
55966         avoid a warning from gcc
55967         * lib/vasnprintf.c (IF_LINT): Define.
55968         (scale10_round_decimal_long_double):
55969         Use it to avoid a "may be used uninitialized" warning.
55970         (scale10_round_decimal_double): Likewise.
55971
55972 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55973
55974         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55975         declared.
55976
55977 2008-05-20  Bruno Haible  <bruno@clisp.org>
55978
55979         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55980         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55981
55982 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55983
55984         * modules/memcmp-tests: New file.
55985         * tests/test-memcmp.c: New file.
55986
55987 2008-05-19  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/propername (Notice, configure.ac): Put quoted "..." into
55990         --keyword option.
55991         * lib/propername.h: Update comments accordingly.
55992         Reported by Eric Blake.
55993
55994 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55995
55996         * modules/getpass-gnu (Depends-on): Add fseeko.
55997
55998 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55999
56000         * modules/base64-tests: New file.
56001
56002 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56003
56004         * lib/base64.c (base64_decode_ctx): If a decode context structure
56005         was passed in use it to ignore newlines.  If a context structure
56006         was _not_ passed in, continue to treat newlines as garbage (this
56007         is the historical behavior).  Formerly base64_decode.
56008         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56009         takes a decode context structure.
56010         * lib/base64.h (base64_decode): Macro for four-argument calls.
56011         (base64_decode_alloc): Likewise.
56012         * lib/base64.c (base64_decode_ctx): If a decode context structure
56013         was passed in use it to ignore newlines.  If a context structure
56014         was _not_ passed in, continue to treat newlines as garbage (this
56015         is the historical behavior).  Formerly base64_decode.
56016         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56017         takes a decode context structure.
56018         * lib/base64.h (base64_decode): Macro for four-argument calls.
56019         (base64_decode_alloc): Likewise.
56020
56021 2008-05-19  Jim Meyering  <meyering@redhat.com>
56022
56023         avoid a warning from gcc
56024         * lib/trim.c (IF_LINT): Define.
56025         (trim2): Use it to avoid a "may be used uninitialized" warning.
56026
56027         Fix doc typo.
56028         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56029
56030 2008-05-19  Bruno Haible  <bruno@clisp.org>
56031
56032         * doc/glibc-functions/getpass.texi: Document limits of other
56033         implementations.
56034
56035 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56036             Bruno Haible <bruno@clisp.org>
56037
56038         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56039
56040 2008-05-18  Bruno Haible  <bruno@clisp.org>
56041
56042         * modules/propername: New file, from GNU gettext.
56043         * lib/propername.h: New file, from GNU gettext.
56044         * lib/propername.c: New file, from GNU gettext.
56045         * MODULES.html.sh (Internationalization functions): Add propername.
56046
56047 2008-05-16  Jim Meyering  <meyering@redhat.com>
56048             Bruno Haible  <bruno@clisp.org>
56049
56050         Avoid some warnings from "gcc -Wshadow".
56051         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56052
56053 2008-05-15  Eric Blake  <ebb9@byu.net>
56054
56055         Extend previous patch to cygwin 1.7.0.
56056         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56057         fast implementation in cygwin >= 1.7.0.
56058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56060
56061 2008-05-15  Bruno Haible  <bruno@clisp.org>
56062
56063         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56064         implementation in glibc >= 2.9.
56065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56067
56068 2008-05-15  Bruno Haible  <bruno@clisp.org>
56069
56070         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56071         (Unicode string functions): Add unilbrk/*.
56072         Reported by Karl Berry.
56073
56074 2008-05-15  Eric Blake  <ebb9@byu.net>
56075
56076         Fix violation of <stdbool.h> replacement in regex.
56077         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56078         * lib/regexec.c (re_search_internal): Likewise.
56079         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56080
56081 2008-05-15  Jim Meyering  <meyering@redhat.com>
56082
56083         avoid distracting test output when git or cvs is not found
56084         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56085         * tests/test-vc-list-files-git.sh: Likewise.
56086
56087 2008-05-15  Eric Blake  <ebb9@byu.net>
56088
56089         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56090         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56091         glibc version.
56092         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56093         * doc/posix-functions/strstr.texi (strstr): Likewise.
56094         * lib/str-two-way.h (MAX): Sychronize with glibc.
56095
56096 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56097
56098         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56099         opr.ctx_type.
56100         (calc_first): Initialize constraint field.
56101         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56102         Fix grammar.
56103         (duplicate_node): Merge constraint field for all node types.
56104         (calc_eclosure_iter): Look at constraint field for all node types.
56105         * lib/regex_internal.c (create_cd_newstate): Don't look at
56106         opr.ctx_type.
56107
56108 2008-05-14  Bruno Haible  <bruno@clisp.org>
56109
56110         Help GCC to do better code generation.
56111         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56112         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56113         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56114         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56115         Declare with attribute 'malloc' if supported.
56116
56117 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56118
56119         use "echo STR|wc -c" rather than unportable "expr length STR"
56120         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56121         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56122
56123 2008-05-14  Jim Meyering  <meyering@redhat.com>
56124
56125         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56126         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56127         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56128         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56129         via Collin Lasse.
56130
56131 2008-05-14  Eric Blake  <ebb9@byu.net>
56132
56133         Avoid quadratic growth in gl_LIBSOURCES.
56134         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56135         Suggested by Bruno Haible.
56136
56137         Test xmemdup0.
56138         * modules/xmemdup0-tests: New file.
56139         * tests/test-xmemdup0.c: Likewise.
56140
56141 2008-05-13  Eric Blake  <ebb9@byu.net>
56142
56143         Split xmemdup0 into its own module.
56144         * modules/xmemdup0: New file.
56145         * lib/xmemdup0.h: Likewise.
56146         * lib/xmemdup0.c: Likewise.
56147         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56148         * lib/xalloc.h (xmemdup0): Remove.
56149         * lib/xmalloc.c (xmemdup0): Likewise.
56150
56151 2008-05-13  Eric Blake  <ebb9@byu.net>
56152             Bruno Haible  <bruno@clisp.org>
56153
56154         Reduce number of forks required during autoconf.
56155         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56156         and gl_LIBSOURCES_DIR.
56157         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56158         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56159         m4_syscmd per file.
56160         <m4_foreach_w>: Move...
56161         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56162
56163 2008-05-13  Eric Blake  <ebb9@byu.net>
56164
56165         * gnulib-tool: Fix various comment typos.
56166
56167 2008-05-12  Bruno Haible  <bruno@clisp.org>
56168
56169         Tailor the linebreaking algorithm.
56170         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56171
56172 2008-05-12  Bruno Haible  <bruno@clisp.org>
56173
56174         Update to Unicode 5.0.0.
56175         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56176         LBP_JV, LBP_JT. Redistribute values.
56177         (unilbrk_table): Change size.
56178         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56179         Unicode TR#14 rev. 22.
56180         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56181         LBP_JV, LBP_JT. Redistribute values.
56182         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56183         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56184         Update.
56185         * lib/unilbrk/lbrkprop1.h: Regenerated.
56186         * lib/unilbrk/lbrkprop2.h: Regenerated.
56187         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56188         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56189         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56190         Likewise.
56191         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56192         Likewise.
56193         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56194         result.
56195         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56196         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56197         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56198         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56199         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56200         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56201
56202 2008-05-11  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56205
56206 2008-05-11  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56209         * modules/unilbrk/gen-lbrk: New file.
56210
56211 2008-05-11  Bruno Haible  <bruno@clisp.org>
56212
56213         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56214         * m4/sha512.m4 (gl_SHA512): Likewise.
56215
56216 2008-05-11  Jim Meyering  <meyering@redhat.com>
56217
56218         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56219         * modules/crypto/sha256: New file.
56220         * modules/crypto/sha512: Likewise.
56221         * lib/sha256.c: Likewise.
56222         * lib/sha256.h: Likewise.
56223         * lib/sha512.c: Likewise.
56224         * lib/sha512.h: Likewise.
56225         * lib/u64.h: Likewise.
56226         * m4/sha256.m4: Likewise.
56227         * m4/sha512.m4: Likewise.
56228         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56229
56230 2008-05-10  Bruno Haible  <bruno@clisp.org>
56231
56232         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56233         (Input/Output <stdio.h>): Add xprintf.
56234         (Signal handling <signal.h>): Add strsignal.
56235         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56236         (Core language properties): Add func.
56237         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56238         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56239         strings.
56240         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56241         (Input/output): New section.
56242         (File system functions): Add openat-die, stat-macros.
56243         (Networking functions): Add sockets.
56244         (Unicode string functions): Add unictype/*.
56245         (Support for building libraries and executables): Add gperf.
56246         (Support for building documentation): Add agpl-3.0.
56247         (Misc): Add nocrash.
56248
56249 2008-05-10  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/unictype/gen-ctype: New file.
56252
56253 2008-05-10  Jim Meyering  <meyering@redhat.com>
56254
56255         Make chdir-safer.c more efficient on a system with no symlinks.
56256         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56257         also if ELOOP is zero.  Suggested by Bruno Haible.
56258
56259         Make chdir-safer.c slightly safer.
56260         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56261         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56262
56263         Avoid compile failure on systems without ELOOP (like mingw).
56264         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56265         Reported by Bruno Haible.
56266
56267 2008-05-10  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56270         (is_utf8_encoding): Use a case-insensitive comparison.
56271         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56272         streq.
56273
56274 2008-05-10  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56277         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56278         * lib/unilbrk/ulc-common.h (iconv_string_length,
56279         iconv_string_keeping_offsets): Remove declarations.
56280         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56281         Don't include <iconv.h>, streq.h, xsize.h.
56282         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56283         conversion.
56284         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56285         <iconv.h>, streq.h, xsize.h.
56286         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56287         conversion.
56288         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56289         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56290         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56291         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56292
56293 2008-05-10  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56296         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56297
56298         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56299         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56300
56301         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56302         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56303
56304         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56305         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56306
56307         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56308         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56309
56310         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56311         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56312
56313         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56314         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56315
56316         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56317         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56318
56319 2008-05-10  Bruno Haible  <bruno@clisp.org>
56320
56321         Split up 'linebreak' module.
56322         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56323         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56324         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56325         modifications.
56326         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56327         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56328         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56329         lib/linebreak.c.
56330         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56331         lib/linebreak.c.
56332         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56333         lib/linebreak.c.
56334         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56335         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56336         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56337         lib/linebreak.c.
56338         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56339         lib/linebreak.c.
56340         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56341         lib/linebreak.c.
56342         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56343         lib/linebreak.c.
56344         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56345         lib/linebreak.c.
56346         * modules/unilbrk/base: New file.
56347         * modules/unilbrk/tables: New file.
56348         * modules/unilbrk/u8-possible-linebreaks: New file.
56349         * modules/unilbrk/u16-possible-linebreaks: New file.
56350         * modules/unilbrk/u32-possible-linebreaks: New file.
56351         * modules/unilbrk/ulc-common: New file.
56352         * modules/unilbrk/ulc-possible-linebreaks: New file.
56353         * modules/unilbrk/u8-width-linebreaks: New file.
56354         * modules/unilbrk/u16-width-linebreaks: New file.
56355         * modules/unilbrk/u32-width-linebreaks: New file.
56356         * modules/unilbrk/ulc-width-linebreaks: New file.
56357         * lib/linebreak.h: Remove file.
56358         * lib/linebreak.c: Remove file.
56359         * m4/linebreak.m4: Remove file.
56360         * modules/linebreak: Remove file.
56361         * NEWS: Mention the changes.
56362
56363 2008-05-09  Eric Blake  <ebb9@byu.net>
56364
56365         Add xmemdup0.
56366         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56367         implementation.
56368         * lib/xmalloc.c (xmemdup0): New C implementation.
56369
56370 2008-05-08  Bruno Haible  <bruno@clisp.org>
56371
56372         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56373
56374 2008-05-07  Eric Blake  <ebb9@byu.net>
56375
56376         Support cross-compilation of <wctype.h>.
56377         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56378         AC_CACHE_CHECK.
56379
56380 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56381
56382         * build-aux/vc-list-files: Add support for bzr.
56383
56384 2008-05-03  Jim Meyering  <meyering@redhat.com>
56385
56386         avoid failed assertion with tight malloc
56387         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56388
56389 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56390
56391         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56392         are needed from arpa/inet.h.
56393         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56394         Reported by Bruno Haible.
56395
56396 2008-05-02  Jim Meyering  <meyering@redhat.com>
56397
56398         avoid compilation error on FreeBSD 6
56399         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56400
56401 2008-05-01  Jim Meyering  <meyering@redhat.com>
56402
56403         useless-if-before-free: correct --help's exit status description
56404         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56405         for one or more matches, etc.  Reported by Bruno Haible.
56406
56407         vc-list-files: make the stand-alone gnulib test work
56408         * modules/vc-list-files-tests (configure.ac):
56409         Define and AC_SUBST abs_aux_dir.
56410         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56411         $(abs_top_srcdir) to each script and having each of them
56412         duplicate the work of setting PATH, set PATH here, using
56413         the new variable, abs_aux_dir instead.
56414         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56415         * tests/test-vc-list-files-git.sh: Likewise.
56416         Reported by Bruno Haible.
56417
56418 2008-05-01  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56421         reallocation. Rename 'done' to 'found_delimiter'.
56422
56423 2008-05-01  Jim Meyering  <meyering@redhat.com>
56424
56425         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56426         * build-aux/vc-list-files: Use `...`, not $(...).
56427
56428 2008-04-30  Jim Meyering  <meyering@redhat.com>
56429
56430         add tests for vc-list-files
56431         * modules/vc-list-files-tests: New module.
56432         * tests/test-vc-list-files-cvs.sh: New file.
56433         * tests/test-vc-list-files-git.sh: New file.
56434
56435         avoid a warning from gcc
56436         * lib/getndelim2.c (IF_LINT): Define.
56437         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56438
56439         vc-list-files: work properly with build-aux/cvsu, too
56440         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56441         to all cvs-based clauses.
56442
56443         vc-list-files: work properly in the CVS+awk case, too
56444         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56445
56446         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56447         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56448         take more than one file argument, so .  Add quotes, just in case $dir
56449         ever contains a shell meta-character.  Prompted by Soren Hansen in
56450         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56451
56452 2008-04-29  Eric Blake  <ebb9@byu.net>
56453
56454         Optimize getndelim2 to use block operations when possible.
56455         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56456         freadseek, and memchr2.
56457         * lib/getndelim2.c (getndelim2): Use them for block reads.
56458
56459 2008-04-29  Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56462         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56463         * modules/inet_ntop (Depends-on): Add extensions.
56464         * modules/inet_pton (Depends-on): Likewise.
56465         Reported by Simon Josefsson.
56466
56467 2008-04-29  Jim Meyering  <meyering@redhat.com>
56468
56469         When the is more than one match in a block, match all of them.
56470         * build-aux/useless-if-before-free: Iterate through each block
56471         until there are no more matches.
56472
56473         Fix broken useless-if-before-free script.
56474         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56475         the expression to match cast of argument to free-like function.
56476
56477 2008-04-29  Eric Blake  <ebb9@byu.net>
56478
56479         Use new header.
56480         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56481
56482 2008-04-29  Jim Meyering  <meyering@redhat.com>
56483
56484         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56485         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56486         by gnulib to exist and to declare e.g., inet_ntop.
56487         Don't include "inet_ntop.h", now removed.
56488
56489         * m4/arpa_inet_h.m4: Remove trailing blanks.
56490
56491 2008-04-29  Eric Blake  <ebb9@byu.net>
56492
56493         Silence valgrind on safe reads beyond potential array bounds.
56494         * lib/rawmemchr.valgrind: New file.
56495         * lib/strchrnul.valgrind: Likewise.
56496         * modules/rawmemchr (Files): Distribute new file.
56497         * modules/strchrnul (Files): Likewise.
56498         Suggested by Bruno Haible.
56499
56500 2008-04-29  Bruno Haible  <bruno@clisp.org>
56501
56502         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56503         (inet_ntop, inet_pton): Change portability warning's wording.
56504         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56505         Invoke gl_CHECK_NEXT_HEADERS.
56506         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56507         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56508         set ARPA_INET_H.
56509         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56510         * modules/arpa_inet (Description): No longer only for systems that
56511         lack it.
56512         (Depends-on): Add include_next.
56513         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56514         HAVE_ARPA_INET_H.
56515
56516 2008-04-29  Jim Meyering  <meyering@redhat.com>
56517
56518         * modules/mkdir (License): Re-license as LGPLv2+.
56519
56520 2008-04-29  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/rawmemchr (Maintainer): Set to Eric.
56523         * modules/strchrnul (Maintainer): Likewise.
56524
56525 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56526
56527         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56528         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56529
56530         * modules/arpa_inet (arpa/inet.h): Use them.
56531
56532 2008-04-28  Eric Blake  <ebb9@byu.net>
56533
56534         Test getndelim2.
56535         * modules/getndelim2-tests: New file.
56536         * tests/test-getndelim2.c: Likewise.
56537         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56538         stream.
56539         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56540
56541         * MODULES.html.sh: Document new module.
56542
56543 2008-04-20  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/c-stack.c (die): Use raise.
56546         * modules/c-stack (Depends-on): Add raise.
56547
56548 2008-04-28  Bruno Haible  <bruno@clisp.org>
56549
56550         Expect rpmatch to be declared.
56551         * lib/yesno.c (rpmatch): Remove declaration.
56552
56553         Declare rpmatch.
56554         * lib/stdlib.in.h (rpmatch): New declaration.
56555         * lib/rpmatch.c: Include <stdlib.h> first.
56556         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56557         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56559         HAVE_RPMATCH.
56560         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56562         (Include): Set to <stdlib.h>.
56563         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56564         HAVE_RPMATCH.
56565         * NEWS: Document the change.
56566
56567 2008-04-28  Bruno Haible  <bruno@clisp.org>
56568
56569         Change rpmatch to use nl_langinfo when appropriate.
56570         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56571         (N_): New macro.
56572         (localized_pattern): New function/macro.
56573         (try): Remove match, nomatch arguments. Copy the pattern into safe
56574         memory before caching it.
56575         (rpmatch): Use localized_pattern. Add translator comments.
56576         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56577         Suggested by Eric Blake.
56578         * modules/rpmatch (Depends-on): Add stdbool.
56579
56580 2008-04-28  Eric Blake  <ebb9@byu.net>
56581
56582         Add rawmemchr module, matching glibc.
56583         * modules/string (Makefile.am): New indicator.
56584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56585         * lib/string.in.h (rawmemchr): Declare when appropriate.
56586         * modules/rawmemchr: New file.
56587         * m4/rawmemchr.m4: Likewise.
56588         * lib/rawmemchr.c: Likewise.
56589         * modules/rawmemchr-tests: Likewise.
56590         * tests/test-rawmemchr.c: Likewise.
56591         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56592         module.
56593         * modules/strchrnul (Depends-on): Add rawmemchr.
56594         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56595
56596         Whitespace cleanup.
56597         * tests/test-strchrnul.c: Reindent.
56598         * lib/strchrnul.c: Likewise.
56599
56600         Optimize and test strchrnul.
56601         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56602         * modules/strchrnul-tests: New file.
56603         * tests/test-strchrnul.c: Likewise.
56604
56605         Remove intprops dependency.
56606         * modules/memchr (Depends-on): Remove intprops.
56607         * modules/memrchr (Depends-on): Likewise.
56608         * modules/memchr2 (Depends-on): Likewise.
56609         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56610         * lib/memrchr.c (__memrchr): Likewise.
56611         * lib/memrchr2.c (memchr2): Likewise.
56612         Reported by Simon Josefsson.
56613
56614 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56615
56616         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56617         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56618
56619 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56620
56621         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56622
56623         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56624
56625         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56626
56627         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56628         declarations.
56629         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56630
56631         * m4/inet_pton.m4: Don't check for header files.
56632
56633         * m4/inet_ntop.m4: Don't check for header files.
56634
56635 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56636
56637         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56638         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56639         trigger for cygwin).
56640         Reported by Bruno Haible  <bruno@clisp.org>.
56641
56642 2008-04-28  Bruno Haible  <bruno@clisp.org>
56643
56644         * doc/posix-functions/strdup.texi: Mention mingw problem.
56645
56646 2008-04-27  Bruno Haible  <bruno@clisp.org>
56647
56648         * modules/stat-time-tests (Depends-on): Add sleep.
56649         * tests/test-stat-time.c (force_unlink): New function.
56650         (cleanup): Use it.
56651         (test_mtime): Remove the ctime related tests.
56652         (test_ctime): New function, containing the ctime related tests.
56653         (main): Call test_ctime, except on native Windows platforms.
56654
56655 2008-04-27  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/rpmatch.c (rpmatch): Add some comments.
56658         Reported by James Youngman <jay@gnu.org>.
56659
56660 2008-04-27  Bruno Haible  <bruno@clisp.org>
56661
56662         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56663         quiet NaNs.
56664
56665 2008-04-27  Bruno Haible  <bruno@clisp.org>
56666
56667         Make test-yesno.sh work on mingw.
56668         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56669         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56670         (main): Set stdin to binary mode.
56671         * modules/yesno-tests (Depends-on): Add binary-io.
56672
56673 2008-04-27  Bruno Haible  <bruno@clisp.org>
56674
56675         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56676         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56677         argument that lie outside the IEEE 854 domain.
56678         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56679         (gl_ISFINITE): Use it.
56680         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56681
56682 2008-04-27  Bruno Haible  <bruno@clisp.org>
56683
56684         Allow local renaming in config.h.
56685         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56686
56687 2008-04-27  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/memchr.c (__memchr): Change type of 'i'.
56690         * lib/memchr2.c (memchr2): Likewise.
56691
56692 2008-04-26  Eric Blake  <ebb9@byu.net>
56693         and Bruno Haible  <bruno@clisp.org>
56694
56695         Optimize and test memrchr.
56696         * modules/memrchr (Depends-on): Add intprops.
56697         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56698         * modules/memrchr-tests: New file.
56699         * tests/test-memrchr.c: New file.
56700
56701 2008-04-26  Bruno Haible  <bruno@clisp.org>
56702
56703         Add tentative support for DragonFly BSD.
56704         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56705         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56706         fp.
56707         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56708         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56709         * lib/fpurge.c (fpurge): Likewise.
56710         * lib/freadable.c (freaadable): Likewise.
56711         * lib/freadahead.c (freadahead): Likewise.
56712         * lib/freading.c (freading): Likewise.
56713         * lib/freadptr.c (freadptr): Likewise.
56714         * lib/freadseek.c (freadptrinc): Likewise.
56715         * lib/fseeko.c (fseeko): Likewise.
56716         * lib/fseterr.c (fseterr): Likewise.
56717         * lib/fwritable.c (fwritable): Likewise.
56718         * lib/fwriting.c (fwriting): Likewise.
56719
56720 2008-04-26  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/stdio-impl.h: New file.
56723         * lib/fbufmode.c: Include stdio-impl.h.
56724         (fbufmode): Use fp_, remove redundant #defines.
56725         * lib/fflush.c: Include stdio-impl.h.
56726         (clear_ungetc_buffer): Remove redundant #defines.
56727         * lib/fpurge.c: Include stdio-impl.h.
56728         (fpurge): Remove redundant #defines.
56729         * lib/freadable.c: Include stdio-impl.h.
56730         (freadable): Remove redundant #defines.
56731         * lib/freadahead.c: Include stdio-impl.h.
56732         (freadahead): Remove redundant #defines.
56733         * lib/freading.c: Include stdio-impl.h.
56734         (freading): Remove redundant #defines.
56735         * lib/freadptr.c: Include stdio-impl.h.
56736         (freadptr): Remove redundant #defines.
56737         * lib/freadseek.c: Include stdio-impl.h.
56738         (freadptrinc): Remove redundant #defines.
56739         * lib/fseeko.c: Include stdio-impl.h.
56740         (rpl_fseeko): Remove redundant #defines.
56741         * lib/fseterr.c: Include stdio-impl.h.
56742         (fseterr): Remove redundant #defines.
56743         * lib/fwritable.c: Include stdio-impl.h.
56744         (fwritable: Remove redundant #defines.
56745         * lib/fwriting.c: Include stdio-impl.h.
56746         (fwriting): Remove redundant #defines.
56747         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56748         * modules/fflush (Files): Likewise.
56749         * modules/fpurge (Files): Likewise.
56750         * modules/freadable (Files): Likewise.
56751         * modules/freadahead (Files): Likewise.
56752         * modules/freading (Files): Likewise.
56753         * modules/freadptr (Files): Likewise.
56754         * modules/freadseek (Files): Likewise.
56755         * modules/fseeko (Files): Likewise.
56756         * modules/fseterr (Files): Likewise.
56757         * modules/fwritable (Files): Likewise.
56758         * modules/fwriting (Files): Likewise.
56759
56760 2008-04-26  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56763         restore_seek_optimization, update_fpos_cache): New functions, extracted
56764         from rpl_fflush.
56765         (rpl_fflush): Use them.
56766         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56767         (gl_REPLACE_FFLUSH): Use it.
56768
56769 2008-04-26  Bruno Haible  <bruno@clisp.org>
56770
56771         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56772         on Solaris.
56773         * tests/test-xstrtoimax.sh: Likewise.
56774         * tests/test-xstrtoumax.sh: Likewise.
56775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56776
56777 2008-04-26  Bruno Haible  <bruno@clisp.org>
56778
56779         * modules/memchr-tests: New file.
56780         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56781
56782 2008-04-26  Eric Blake  <ebb9@byu.net>
56783             Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/memchr.c: Include intprops.h.
56786         (__memchr): Optimize parallel detection of matching bytes. Rename local
56787         variables. Add explanatory comments.
56788
56789 2008-04-26  Bruno Haible  <bruno@clisp.org>
56790
56791         Fix module 'memchr', broken since 2000-10-28.
56792         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56793
56794 2008-04-26  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56797         comments.
56798
56799 2008-04-25  Eric Blake  <ebb9@byu.net>
56800
56801         Use native fstatat on cygwin 1.7.0.
56802         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56803         first.
56804
56805 2008-04-23  Eric Blake  <ebb9@byu.net>
56806
56807         Improve memchr2 performance.
56808         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56809         NUL bytes.
56810         * modules/memchr2 (Depends-on): Use intprops.h.
56811
56812 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56813
56814         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56815         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56816         <blp@cs.stanford.edu>.
56817
56818 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56819
56820         * lib/arpa_inet.in.h: New file.
56821
56822         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56823         (Makefile.am): Sed in substitute header file.
56824
56825         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56826         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56827
56828         * modules/inet_ntop (configure.ac): Use
56829         gl_ARPA_INET_MODULE_INDICATOR.
56830
56831         * modules/inet_pton (configure.ac): Use
56832         gl_ARPA_INET_MODULE_INDICATOR.
56833
56834 2008-04-22  Jim Meyering  <meyering@redhat.com>
56835
56836         * modules/verify (License): Re-license as LGPLv2+.
56837
56838 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56839
56840         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56841         parameter to void* as per POSIX standard (MinGW uses char*).
56842
56843 2008-04-21  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56846         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56847         Define to replacements if REPLACE_ISWCNTRL is 1.
56848         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56849         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56850         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56851         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56852         what it fixes.
56853         * doc/posix-functions/iswalpha.texi: Likewise.
56854         * doc/posix-functions/iswblank.texi: Likewise.
56855         * doc/posix-functions/iswcntrl.texi: Likewise.
56856         * doc/posix-functions/iswdigit.texi: Likewise.
56857         * doc/posix-functions/iswgraph.texi: Likewise.
56858         * doc/posix-functions/iswlower.texi: Likewise.
56859         * doc/posix-functions/iswprint.texi: Likewise.
56860         * doc/posix-functions/iswpunct.texi: Likewise.
56861         * doc/posix-functions/iswspace.texi: Likewise.
56862         * doc/posix-functions/iswupper.texi: Likewise.
56863         * doc/posix-functions/iswxdigit.texi: Likewise.
56864         Reported by Alain Guibert.
56865
56866 2008-04-21  Bruno Haible  <bruno@clisp.org>
56867
56868         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56869         Patch by Alain Guibert.
56870
56871 2008-04-21  Bruno Haible  <bruno@clisp.org>
56872
56873         Fix test failures on mingw.
56874         * tests/test-xstrtol.c (print_no_progname): New function.
56875         (main): Install it in error_print_progname hook.
56876         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56877         * tests/test-xstrtoimax.sh: Likewise.
56878         * tests/test-xstrtoumax.sh: Likewise.
56879
56880 2008-04-21  Bruno Haible  <bruno@clisp.org>
56881
56882         Fix test failure on mingw.
56883         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56884
56885 2008-04-21  Bruno Haible  <bruno@clisp.org>
56886
56887         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56888         Actually assign a value.
56889
56890 2008-04-20  Bruno Haible  <bruno@clisp.org>
56891
56892         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56893         take 2.
56894         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56895         'canonicalize-lgpl' module is also used.
56896         * lib/canonicalize-lgpl.c: Undo last change.
56897         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56898
56899 2008-04-20  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56902         config.h. Provide _mkdir based fallback for mingw.
56903         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56904         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56905         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56906         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56907         rather than defining mkdir in config.h.
56908         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56909         (gl_SYS_STAT_H_DEFAULTS): New macro.
56910         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56911         HAVE_IO_H any more.
56912         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56913         HAVE_DECL_MKDIR and HAVE_IO_H.
56914
56915 2008-04-20  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/isapipe.c: Port to native Windows platforms.
56918
56919 2008-04-20  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56922
56923 2008-04-21  Eric Blake  <ebb9@byu.net>
56924
56925         Work around preprocessors that don't handle UINTMAX_MAX.
56926         * lib/memchr2.c (memchr2): Avoid embedded #if.
56927         Reported by Alain Guibert, fix suggested by Bruno Haible.
56928
56929 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56930
56931         * doc/posix-functions/strftime.texi (strftime): Explain better
56932         Windows incompatibility.  Suggested by Micah Cowan
56933         <micah@cowan.name>.
56934
56935 2008-04-20  Bruno Haible  <bruno@clisp.org>
56936
56937         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56938         unistr/u8-mblen.
56939
56940 2008-04-20  Bruno Haible  <bruno@clisp.org>
56941
56942         Fix test failure on platforms with non-GNU iconv.
56943         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56944         (U_TO_U8): Use it, rather than u16_to_u8.
56945         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56946         units at the end of the input string.
56947         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56948
56949 2008-04-20  Bruno Haible  <bruno@clisp.org>
56950
56951         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56952         when the resulting length is 0.
56953         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56954
56955 2008-04-20  Bruno Haible  <bruno@clisp.org>
56956
56957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56958         works.
56959         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56960
56961 2008-04-20  Bruno Haible  <bruno@clisp.org>
56962
56963         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56964         * modules/tsearch-tests (configure.ac): Test for initstate function.
56965
56966 2008-04-20  Bruno Haible  <bruno@clisp.org>
56967
56968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56969         for nlink_t if missing.
56970         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56971
56972 2008-04-19  Bruno Haible  <bruno@clisp.org>
56973
56974         Work around snprintf bug on Linux libc5.
56975         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56977         gl_SNPRINTF_SIZE1.
56978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56979         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56980         that test failed.
56981         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56982         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56983         * modules/snprintf (Files): Add m4/printf.m4.
56984         * modules/vsnprintf (Files): Likewise.
56985         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56986         * doc/posix-functions/vsnprintf.texi: Likewise.
56987
56988 2008-04-19  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56991         from 0.0058 to less than 10^-7.
56992
56993 2008-04-19  Bruno Haible  <bruno@clisp.org>
56994
56995         Fix rounding when a precision is given.
56996         * lib/vasnprintf.c (is_borderline): New function.
56997         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56998         9...9x.
56999         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57000         %e, %g.
57001         * tests/test-vasprintf-posix.c (test_function): Likewise.
57002         * tests/test-snprintf-posix.h (test_function): Likewise.
57003         * tests/test-sprintf-posix.h (test_function): Likewise.
57004         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57005         * tests/test-printf-posix.h (test_function): Likewise.
57006         * tests/test-printf-posix.output: Update.
57007         Reported by John Darrington <john@darrington.wattle.id.au> via
57008         Ben Pfaff <blp@cs.stanford.edu>.
57009
57010 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57011
57012         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57013         Suggested by Bruno Haible <bruno@clisp.org>.
57014
57015 2008-04-17  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57018         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57019         implementation.
57020         Patch by Bruce Merry <bmerry@gmail.com>.
57021
57022 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57023
57024         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57025         doesn't work under Windows.
57026
57027 2008-04-16  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57030         New macros.
57031         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57032         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57033         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57034         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57035         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57036         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57037         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57038         macros.
57039         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57040         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57041         Northern Sotho, Uighur.
57042
57043 2008-04-16  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57046         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57047         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57048         Reported by Daniel Bergström <daniel@octocode.com>.
57049
57050 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57051             Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57054         function.
57055         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57056         New functions, mostly extracted from gl_locale_name_default.
57057         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57058
57059 2008-04-16  Eric Blake  <ebb9@byu.net>
57060
57061         Adjust strtod detection to catch glibc 2.7 bug.
57062         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57063         Reported by John Gatewood Ham.
57064
57065 2008-04-16  Bruno Haible  <bruno@clisp.org>
57066
57067         Add tentative support for Linux libc5.
57068         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57069         * lib/fpurge.c (fpurge): Likewise.
57070         * lib/freadable.c (freadable): Likewise.
57071         * lib/freadahead.c (freadahead): Likewise.
57072         * lib/freading.c (freading): Likewise.
57073         * lib/freadptr.c (freadptr): Likewise.
57074         * lib/freadseek.c (freadptrinc): Likewise.
57075         * lib/fseeko.c (rpl_fseeko): Likewise.
57076         * lib/fseterr.c (fseterr): Likewise.
57077         * lib/fwritable.c (fwritable): Likewise.
57078         * lib/fwriting.c (fwriting): Likewise.
57079         Reported by Alain Guibert <alguibert+bts@free.fr>.
57080
57081 2008-04-15  Bruno Haible  <bruno@clisp.org>
57082
57083         * modules/mathl (configure.ac): Define module indicator.
57084
57085 2008-04-15  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/logl.c (logl): Remove unused variables.
57088
57089 2008-04-15  Bruno Haible  <bruno@clisp.org>
57090
57091         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57092         fails.
57093
57094 2008-04-15  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/trim.c (trim2): Fix argument of isspace() macro.
57097
57098 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57099
57100         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57101         to 0.
57102         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57103
57104 2008-04-14  Bruno Haible  <bruno@clisp.org>
57105
57106         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57107         AC_LANG_PROGRAM argument.
57108         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57109         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57111         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57112         * m4/math_h.m4 (gl_MATH_H): Likewise.
57113         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57115         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57116         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57117         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57118         * m4/regex.m4 (gl_REGEX): Likewise.
57119         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57120         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57123         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57124         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57127
57128 2008-04-14  Jim Meyering  <meyering@redhat.com>
57129
57130         test-strtod: fix typos: s/abs/fabs/
57131         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57132
57133 2008-04-13  Bruno Haible  <bruno@clisp.org>
57134
57135         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57136         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57137         module is also used and while not building the reloc-wrapper.
57138
57139 2008-04-13  Bruno Haible  <bruno@clisp.org>
57140
57141         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57142
57143 2008-04-13  Bruno Haible  <bruno@clisp.org>
57144
57145         Fix AIX compilation failure introduced on 2008-04-02.
57146         * tests/test-frexp.c (exp): Undefine before redefining.
57147         * tests/test-frexpl.c (exp): Likewise.
57148
57149 2008-04-13  Bruno Haible  <bruno@clisp.org>
57150
57151         Work around a HP-UX stdio bug.
57152         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57153         * tests/test-ftello.c (main): Likewise.
57154         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57155         * doc/posix-functions/ftello.texi: Likewise.
57156
57157 2008-04-13  Bruno Haible  <bruno@clisp.org>
57158
57159         Make test-signbit pass on HP-UX/hppa.
57160         * tests/test-signbit.c (minus_zerol): New variable.
57161         (test_signbitl): Use it.
57162
57163 2008-04-13  Bruno Haible  <bruno@clisp.org>
57164
57165         Make truncl work on OSF/1 4.0.
57166         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57167         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57168         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57170         HAVE_DECL_TRUNCL.
57171         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57172         HAVE_DECL_TRUNCL.
57173         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57174
57175 2008-04-13  Bruno Haible  <bruno@clisp.org>
57176
57177         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57178
57179 2008-04-13  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57182         expression, so as to avoid HP-UX 11 cc compiler bug.
57183
57184 2008-04-13  Bruno Haible  <bruno@clisp.org>
57185
57186         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57187
57188 2008-04-13  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/git-merge-changelog.c: Remove empty declaration outside of
57191         functions.
57192
57193 2008-04-13  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57196
57197 2008-04-13  Bruno Haible  <bruno@clisp.org>
57198
57199         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57200         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57201         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57202         also if it exists but lacks definitions of the SHUT_* macros.
57203         * modules/sys_socket (Description): Update.
57204         Reported by Elbert Pol <e.pol@chello.nl>.
57205
57206 2008-04-13  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/localcharset.c (OS2): Don't redefine if already defined.
57209         Reported by Elbert Pol <e.pol@chello.nl>.
57210
57211 2008-04-13  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/binary-io.h [__EMX__]: Include <io.h>.
57214         Reported by Elbert Pol <e.pol@chello.nl>.
57215
57216 2008-04-12  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/fpucw.h: Enable the definitions also for x86_64.
57219         Needed for NetBSD/x86_64.
57220         Reported by Thomas Klausner <tk@giga.or.at>.
57221
57222 2008-04-12  Bruno Haible  <bruno@clisp.org>
57223
57224         * tests/test-strtod.c: Include isnand.h.
57225         (main): Use isnand instead of isnan.
57226         Reported by Jim Meyering.
57227
57228 2008-04-12  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57231         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57232
57233 2008-04-12  Jim Meyering  <meyering@redhat.com>
57234
57235         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57236
57237 2008-04-12  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57240         Reported by Elbert Pol <e.pol@chello.nl>.
57241
57242 2008-04-12  Eric Blake  <ebb9@byu.net>
57243
57244         Work around Solaris 10 math.h bug.
57245         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57246         (gl_MATH_H_DEFAULTS): Set up default.
57247         * modules/math (Makefile.am): Replace new indicators.
57248         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57249         * tests/test-math.c (main): Test this.
57250         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57251         * doc/posix-headers/math.texi (math.h): Mention bug.
57252         Reported by Nelson H. F. Beebe and Jim Meyering.
57253
57254 2008-04-11  Bruno Haible  <bruno@clisp.org>
57255
57256         Adapt to future versions of Apple GCC.
57257         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57258         Reported by Peter O'Gorman <peter@pogma.com>.
57259
57260 2008-04-11  Bruno Haible  <bruno@clisp.org>
57261
57262         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57263
57264 2008-04-11  Bruno Haible  <bruno@clisp.org>
57265
57266         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57267
57268         * modules/getaddrinfo-tests (Makefile.am): Define
57269         test_getaddrinfo_LDADD.
57270
57271 2008-04-11  Bruno Haible  <bruno@clisp.org>
57272
57273         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57274         (init): Fix syntax error.
57275         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57276         is declared.
57277
57278 2008-04-11  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57281         * modules/glob (Depends-on): Add stdbool.
57282
57283 2008-04-11  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/trim.c: Include <string.h>.
57286
57287 2008-04-11  Eric Blake  <ebb9@byu.net>
57288
57289         Avoid compile failure on OS/2.
57290         * lib/regex_internal.h (internal_function): Disable optimization
57291         on OS/2 (__EMX__), where it caused compiler error.
57292         Reported by Elbert Pol.
57293
57294 2008-04-11  Bruno Haible  <bruno@clisp.org>
57295
57296         Flush the standard error stream before aborting. Needed on mingw.
57297         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57298         * tests/test-array_list.c (ASSERT): Likewise.
57299         * tests/test-array_oset.c (ASSERT): Likewise.
57300         * tests/test-avltree_list.c (ASSERT): Likewise.
57301         * tests/test-avltree_oset.c (ASSERT): Likewise.
57302         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57303         * tests/test-binary-io.c (ASSERT): Likewise.
57304         * tests/test-byteswap.c (ASSERT): Likewise.
57305         * tests/test-c-ctype.c (ASSERT): Likewise.
57306         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57307         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57308         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57309         * tests/test-c-strstr.c (ASSERT): Likewise.
57310         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57311         * tests/test-canonicalize.c (ASSERT): Likewise.
57312         * tests/test-carray_list.c (ASSERT): Likewise.
57313         * tests/test-ceilf1.c (ASSERT): Likewise.
57314         * tests/test-ceilf2.c (ASSERT): Likewise.
57315         * tests/test-ceill.c (ASSERT): Likewise.
57316         * tests/test-count-one-bits.c (ASSERT): Likewise.
57317         * tests/test-fbufmode.c (ASSERT): Likewise.
57318         * tests/test-fflush2.c (ASSERT): Likewise.
57319         * tests/test-floorf1.c (ASSERT): Likewise.
57320         * tests/test-floorf2.c (ASSERT): Likewise.
57321         * tests/test-floorl.c (ASSERT): Likewise.
57322         * tests/test-fopen.c (ASSERT): Likewise.
57323         * tests/test-fpending.c (ASSERT): Likewise.
57324         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57325         * tests/test-fpurge.c (ASSERT): Likewise.
57326         * tests/test-freadable.c (ASSERT): Likewise.
57327         * tests/test-freadahead.c (ASSERT): Likewise.
57328         * tests/test-freading.c (ASSERT): Likewise.
57329         * tests/test-freadptr.c (ASSERT): Likewise.
57330         * tests/test-freadptr2.c (ASSERT): Likewise.
57331         * tests/test-freadseek.c (ASSERT): Likewise.
57332         * tests/test-freopen.c (ASSERT): Likewise.
57333         * tests/test-frexp.c (ASSERT): Likewise.
57334         * tests/test-frexpl.c (ASSERT): Likewise.
57335         * tests/test-fseek.c (ASSERT): Likewise.
57336         * tests/test-fseeko.c (ASSERT): Likewise.
57337         * tests/test-fstrcmp.c (ASSERT): Likewise.
57338         * tests/test-ftell.c (ASSERT): Likewise.
57339         * tests/test-ftello.c (ASSERT): Likewise.
57340         * tests/test-func.c (ASSERT): Likewise.
57341         * tests/test-fwritable.c (ASSERT): Likewise.
57342         * tests/test-fwriting.c (ASSERT): Likewise.
57343         * tests/test-getdelim.c (ASSERT): Likewise.
57344         * tests/test-getline.c (ASSERT): Likewise.
57345         * tests/test-i-ring.c (ASSERT): Likewise.
57346         * tests/test-iconv-utf.c (ASSERT): Likewise.
57347         * tests/test-iconv.c (ASSERT): Likewise.
57348         * tests/test-isfinite.c (ASSERT): Likewise.
57349         * tests/test-isnand.c (ASSERT): Likewise.
57350         * tests/test-isnanf.c (ASSERT): Likewise.
57351         * tests/test-isnanl.h (ASSERT): Likewise.
57352         * tests/test-ldexpl.c (ASSERT): Likewise.
57353         * tests/test-linked_list.c (ASSERT): Likewise.
57354         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57355         * tests/test-localename.c (ASSERT): Likewise.
57356         * tests/test-lseek.c (ASSERT): Likewise.
57357         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57358         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57359         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57360         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57361         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57362         * tests/test-mbschr.c (ASSERT): Likewise.
57363         * tests/test-mbscspn.c (ASSERT): Likewise.
57364         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57365         * tests/test-mbspbrk.c (ASSERT): Likewise.
57366         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57367         * tests/test-mbsrchr.c (ASSERT): Likewise.
57368         * tests/test-mbsspn.c (ASSERT): Likewise.
57369         * tests/test-mbsstr1.c (ASSERT): Likewise.
57370         * tests/test-mbsstr2.c (ASSERT): Likewise.
57371         * tests/test-mbsstr3.c (ASSERT): Likewise.
57372         * tests/test-memchr2.c (ASSERT): Likewise.
57373         * tests/test-memmem.c (ASSERT): Likewise.
57374         * tests/test-open.c (ASSERT): Likewise.
57375         * tests/test-printf-frexp.c (ASSERT): Likewise.
57376         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57377         * tests/test-printf-posix.c (ASSERT): Likewise.
57378         * tests/test-quotearg.c (ASSERT): Likewise.
57379         * tests/test-rbtree_list.c (ASSERT): Likewise.
57380         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57381         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57382         * tests/test-round1.c (ASSERT): Likewise.
57383         * tests/test-roundf1.c (ASSERT): Likewise.
57384         * tests/test-roundl.c (ASSERT): Likewise.
57385         * tests/test-signbit.c (ASSERT): Likewise.
57386         * tests/test-sleep.c (ASSERT): Likewise.
57387         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57388         * tests/test-snprintf.c (ASSERT): Likewise.
57389         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57390         * tests/test-stat-time.c (ASSERT): Likewise.
57391         * tests/test-strcasestr.c (ASSERT): Likewise.
57392         * tests/test-strerror.c (ASSERT): Likewise.
57393         * tests/test-striconv.c (ASSERT): Likewise.
57394         * tests/test-striconveh.c (ASSERT): Likewise.
57395         * tests/test-striconveha.c (ASSERT): Likewise.
57396         * tests/test-strsignal.c (ASSERT): Likewise.
57397         * tests/test-strstr.c (ASSERT): Likewise.
57398         * tests/test-strtod.c (ASSERT): Likewise.
57399         * tests/test-trunc1.c (ASSERT): Likewise.
57400         * tests/test-trunc2.c (ASSERT): Likewise.
57401         * tests/test-truncf1.c (ASSERT): Likewise.
57402         * tests/test-truncf2.c (ASSERT): Likewise.
57403         * tests/test-truncl.c (ASSERT): Likewise.
57404         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57405         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57406         * tests/test-vasnprintf.c (ASSERT): Likewise.
57407         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57408         * tests/test-vasprintf.c (ASSERT): Likewise.
57409         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57410         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57411         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57412         * tests/test-vsnprintf.c (ASSERT): Likewise.
57413         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57414         * tests/test-wcwidth.c (ASSERT): Likewise.
57415         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57416         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57417         * tests/test-xvasprintf.c (ASSERT): Likewise.
57418         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57419         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57420         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57421         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57422         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57423         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57424         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57425         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57426         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57427         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57428         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57429         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57430         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57431         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57432         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57433         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57434         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57435         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57436         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57437         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57438         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57439         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57440         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57441         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57442         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57443         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57444         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57445         * tests/unictype/test-combining.c (ASSERT): Likewise.
57446         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57447         * tests/unictype/test-digit.c (ASSERT): Likewise.
57448         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57449         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57450         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57451         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57452         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57453         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57454         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57455         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57456         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57457         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57458         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57459         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57460         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57461         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57462         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57463         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57464         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57465         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57466         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57467         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57468         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57469         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57470         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57471         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57472         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57473         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57474         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57475         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57476         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57477         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57478         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57479         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57480         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57481         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57482         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57483         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57484         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57485         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57486         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57487         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57488         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57489         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57490         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57491         Reported by Eric Blake.
57492
57493 2008-04-11  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/wchar.in.h: Tweak comment.
57496
57497 2008-04-11  Bruno Haible  <bruno@clisp.org>
57498
57499         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57500         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57501         gl_COMMON.
57502         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57503
57504 2008-04-11  Bruno Haible  <bruno@clisp.org>
57505
57506         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57507
57508 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57509
57510         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57511         of attempting to use non-existing /dev/*random.  Based on patch
57512         from Adam Strzelecki <ono@java.pl> in
57513         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57514
57515 2008-04-08  Bruno Haible  <bruno@clisp.org>
57516
57517         Add tentative support for emx+gcc.
57518         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57519         * lib/fpurge.c (fpurge): Likewise.
57520         * lib/freadable.c (freadable): Likewise.
57521         * lib/freadahead.c (freadahead): Likewise.
57522         * lib/freading.c (freading): Likewise.
57523         * lib/freadptr.c (freadptr): Likewise.
57524         * lib/freadseek.c (freadptrinc): Likewise.
57525         * lib/fseeko.c (rpl_fseeko): Likewise.
57526         * lib/fseterr.c (fseterr): Likewise.
57527         * lib/fwritable.c (fwritable): Likewise.
57528         * lib/fwriting.c (fwriting): Likewise.
57529         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57530
57531 2008-04-09  Eric Blake  <ebb9@byu.net>
57532
57533         Avoid some autoconf warnings.
57534         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57535         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57536         * m4/afs.m4 (gl_AFS): Likewise.
57537         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57538         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57540         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57541         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57542         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57543         (AC_CHECK_DECLS_ONCE): Likewise.
57544         Rename file...
57545         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57546         gnulib-tool requires autoconf 2.59 or better.
57547         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57548
57549 2008-04-08  Eric Blake  <ebb9@byu.net>
57550
57551         Use 'git describe --match' if present (added in git 1.5.5).
57552         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57553         if possible.
57554
57555 2008-04-08  Bruno Haible  <bruno@clisp.org>
57556
57557         Add tentative support for OpenServer.
57558         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57559         _ptr, _cnt.
57560         * lib/fpurge.c (fpurge): Likewise.
57561         * lib/freadable.c (freadable): Likewise.
57562         * lib/freadahead.c (freadahead): Likewise.
57563         * lib/freading.c (freading): Likewise.
57564         * lib/freadptr.c (freadptr): Likewise.
57565         * lib/freadseek.c (freadptrinc): Likewise.
57566         * lib/fseeko.c (rpl_fseeko): Likewise.
57567         * lib/fseterr.c (fseterr): Likewise.
57568         * lib/fwritable.c (fwritable): Likewise.
57569         * lib/fwriting.c (fwriting): Likewise.
57570         Reported by Roger Cornelius <rac@tenzing.org> and
57571         Brian K. White <brian@aljex.com>.
57572
57573 2008-04-06  Jim Meyering  <meyering@redhat.com>
57574
57575         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57576
57577 2008-04-06  Bruno Haible  <bruno@clisp.org>
57578
57579         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57580         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57581         * tests/test-printf-posix.sh: Likewise.
57582         * tests/test-vfprintf-posix.sh: Likewise.
57583         * tests/test-vprintf-posix.sh: Likewise.
57584         * tests/test-xprintf-posix.sh: Likewise.
57585
57586 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57587
57588         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57589         hide error from 'ls', needed on OS/2.
57590         Report by Elbert Pol <elbert.pol@gmail.com>.
57591
57592 2008-04-04  Eric Blake  <ebb9@byu.net>
57593
57594         Make test-fseeko.c failures meaningful.
57595         * tests/test-fseeko.c: Print line number on failure.
57596         * tests/test-fseek.c: Likewise.
57597         Reported by Nelson H. F. Beebe.
57598
57599         Improve strtod bug detection check.
57600         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57601         required for Solaris 10.
57602         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57603
57604 2008-04-04  Bruno Haible  <bruno@clisp.org>
57605
57606         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57607         by m4/setenv.m4.
57608
57609 2008-04-03  Eric Blake  <ebb9@byu.net>
57610
57611         Ensure sane .version contents.
57612         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57613         version string.
57614         * build-aux/git-version-gen: Improve documentation.
57615
57616         Make GNU make output nicer.
57617         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57618         MAKECMDGOALS to enforce message for all command line targets.  Set
57619         srcdir for use in maint.mk.
57620
57621         Another maintainer tweak.
57622         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57623         a target that regenerates version.
57624
57625 2008-04-03  Jim Meyering  <meyering@redhat.com>
57626
57627         vc-list-files: don't cause coreutils "make po-check" failure
57628         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57629
57630 2008-04-03  Eric Blake  <ebb9@byu.net>
57631
57632         Allow VPATH usage of vc-list-files.
57633         * build-aux/vc-list-files (scriptversion): Add timestamp.
57634         (options): Add --help, --version, -C.
57635         (CVS): Support installed cvsu.
57636
57637 2008-04-02  Bruno Haible  <bruno@clisp.org>
57638
57639         Avoid some "statement with no effect" warnings from gcc.
57640         * tests/test-wctype.c (main): Explicitly ignore unused values.
57641         Reported by Jim Meyering.
57642
57643 2008-04-02  Jim Meyering  <meyering@redhat.com>
57644
57645         Avoid some warnings from "gcc -Wshadow".
57646         * tests/test-frexp.c (exp): Define to a different identifier.
57647         * tests/test-frexpl.c (exp): Likewise.
57648
57649 2008-04-03  Jim Meyering  <meyering@redhat.com>
57650
57651         bootstrap: remove dangling *.[ch] symlinks from lib
57652         * build-aux/bootstrap [dangling symlink removal]: Move find's
57653         -depth option to precede all others, to avoid a warning.
57654         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57655
57656 2008-04-02  Bruno Haible  <bruno@clisp.org>
57657
57658         Avoid some warnings from "gcc -Wshadow".
57659         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57660         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57661         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57662         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57663         Reported by Jim Meyering.
57664
57665 2008-04-01  Bruno Haible  <bruno@clisp.org>
57666
57667         Fix test to work on IRIX 6.5 with cc.
57668         * tests/test-math.c (numeric_equal): New function.
57669         (main): Use it.
57670
57671 2008-04-01  Bruno Haible  <bruno@clisp.org>
57672
57673         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57674
57675 2008-04-01  Bruno Haible  <bruno@clisp.org>
57676
57677         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57678         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57679         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57680         (Depends-on): Remove math.
57681
57682         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57683         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57684         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57685         (Depends-on): Remove math.
57686
57687         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57688         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57689         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57690         (Depends-on): Remove math.
57691         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57692         (Depends-on): Remove math.
57693
57694         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57695         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57696         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57697         (Depends-on): Remove math.
57698         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57699         (Depends-on): Remove math.
57700
57701         * tests/test-round1.c: Include nan.h.
57702         (main): Use NaNd instead of NAN.
57703         * modules/round-tests (Files): Add tests/nan.h.
57704
57705         * tests/test-trunc1.c: Include nan.h.
57706         (main): Use NaNd instead of NAN.
57707         * modules/trunc-tests (Files): Add tests/nan.h.
57708
57709         * tests/test-roundf1.c: Include nan.h.
57710         (main): Use NaNf instead of NAN.
57711         * modules/roundf-tests (Files): Add tests/nan.h.
57712
57713         * tests/test-truncf1.c: Include nan.h.
57714         (main): Use NaNf instead of NAN.
57715         * modules/truncf-tests (Files): Add tests/nan.h.
57716
57717         * tests/test-ceilf1.c: Include nan.h.
57718         (main): Use NaNf instead of NAN.
57719         * modules/ceilf-tests (Files): Add tests/nan.h.
57720
57721         * tests/test-floorf1.c: Include nan.h.
57722         (main): Use NaNf instead of NAN.
57723         * modules/floorf-tests (Files): Add tests/nan.h.
57724
57725         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57726         (main): Use NaNf instead of NAN.
57727         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57728
57729         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57730         (main): Use NaNd instead of NAN.
57731         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57732
57733         * tests/test-frexp.c: Include nan.h.
57734         (main): Use NaNd instead of NAN.
57735         * modules/frexp-tests (Files): Add tests/nan.h.
57736
57737         * lib/isnan.c: Don't include <math.h>.
57738         (FUNC): Don't use NAN macro.
57739         * modules/isnand-nolibm (Depends-on): Remove math.
57740         * modules/isnanf-nolibm (Depends-on): Remove math.
57741         * modules/isnanl (Depends-on): Remove math.
57742         * modules/isnanl-nolibm (Depends-on): Remove math.
57743
57744         * tests/nan.h: New file.
57745
57746 2008-04-01  Eric Blake  <ebb9@byu.net>
57747
57748         Fix typos.
57749         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57750         values to be the right type.
57751
57752         For now, cater to gnulib strtod inaccuracies.
57753         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57754         fractional results.  While not as nice from a QoI perspective, it
57755         is a quicker patch than correctly implementing decimal to binary
57756         rounding.
57757
57758 2008-03-31  Eric Blake  <ebb9@byu.net>
57759
57760         Guarantee a definition of NAN.
57761         * lib/math.in.h (NAN): Define if missing.
57762         * tests/test-math.c (main): Test it.
57763         * doc/posix-headers/math.texi (math.h): Document this.
57764         * lib/isnan.c (rpl_isnand): Use it.
57765         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57766         * tests/test-floorf1.c (NaN): Likewise.
57767         * tests/test-frexp.c (NaN): Likewise.
57768         * tests/test-isnand.c (NaN): Likewise.
57769         * tests/test-isnanf.c (NaN): Likewise.
57770         * tests/test-round1.c (NaN): Likewise.
57771         * tests/test-roundf1.c (NaN): Likewise.
57772         * tests/test-snprintf-posix.h (NaN): Likewise.
57773         * tests/test-sprintf-posix.h (NaN): Likewise.
57774         * tests/test-trunc1.c (NaN): Likewise.
57775         * tests/test-truncf1.c (NaN): Likewise.
57776         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57777         * tests/test-vasprintf-posix.c (NaN): Likewise.
57778         * modules/isnand-nolibm (Depends-on): Add math.
57779         * modules/isnanf-nolibm (Depends-on): Likewise.
57780         * modules/isnanl (Depends-on): Likewise.
57781         * modules/isnanl-nolibm (Depends-on): Likewise.
57782         * modules/snprintf-posix-tests (Depends-on): Likewise.
57783         * modules/sprintf-posix-tests (Depends-on): Likewise.
57784         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57785         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57786         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57787         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57788
57789 2008-03-31  Bruno Haible  <bruno@clisp.org>
57790
57791         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57792         * doc/posix-functions/strtod.texi: Likewise.
57793
57794 2008-03-31  Bruno Haible  <bruno@clisp.org>
57795
57796         * tests/test-strtod.c (main): Don't use C99 syntax.
57797
57798 2008-03-31  Bruno Haible  <bruno@clisp.org>
57799
57800         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57801         Reported by Eric Blake.
57802
57803 2008-03-31  Jim Meyering  <meyering@redhat.com>
57804
57805         Don't compare actual signbit return values.
57806         * tests/test-strtod.c (main): Rather, compare only their
57807         zero/non-zero nature.
57808
57809 2008-03-31  Eric Blake  <ebb9@byu.net>
57810
57811         More strtod documentation.
57812         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57813         failures as distinct bugs.
57814
57815 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57816
57817         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57818         Problem reported by Erik Benada in
57819         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57820
57821 2008-03-30  Bruno Haible  <bruno@clisp.org>
57822
57823         * tests/test-strtod.c: Add comments about which assertion fails on which
57824         platform.
57825         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57826
57827 2008-03-30  Eric Blake  <ebb9@byu.net>
57828
57829         Test signbit behavior on zeros.
57830         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57831         (test_signbitd, test_signbitl): Likewise.
57832
57833         More strtod touchups.
57834         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57835         sign of negative underflow, for now.  Use .5, not .1.
57836         * doc/posix-functions/strtod.texi (strtod): Mention these
57837         limitations.
57838         Reported by Jim Meyering.
57839
57840 2008-03-30  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57843         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57844
57845 2008-03-30  Bruno Haible  <bruno@clisp.org>
57846
57847         Avoid failure when attempting to return empty iconv results on some
57848         platforms.
57849         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57850         allocation, don't report ENOMEM when the resulting string is empty.
57851
57852 2008-03-30  Bruno Haible  <bruno@clisp.org>
57853
57854         Fix buffer overrun.
57855         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57856         Don't consider the width for tmp_length. Check count against tmp_length
57857         before doing the padding. Ensure enough allocation during padding.
57858
57859 2008-03-30  Eric Blake  <ebb9@byu.net>
57860
57861         strtod touchups.
57862         * lib/strtod.c (strtod): Avoid compiler warnings.
57863         Reported by Jim Meyering.
57864
57865 2008-03-30  Bruno Haible  <bruno@clisp.org>
57866
57867         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57868         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57869         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57870         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57871         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57872         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57873         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57874         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57875
57876         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57877         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57878         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57879         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57880         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57881         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57882         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57883         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57884
57885         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57886         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57887         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57888         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57889         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57890         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57891         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57892         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57893
57894         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57895         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57896
57897         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57898         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57899
57900         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57901         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57902
57903         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57905         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57906
57907         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57909         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57910
57911         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57913         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57914
57915         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57917         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57918
57919         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57920         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57922         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57923         (Depends-on): Add EOVERFLOW.
57924         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57925         (Depends-on): Add EOVERFLOW.
57926         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57927         (Depends-on): Add EOVERFLOW.
57928         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57929         (Depends-on): Add EOVERFLOW.
57930         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57931         (Depends-on): Add EOVERFLOW.
57932         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57933         (Depends-on): Add EOVERFLOW.
57934         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57935         (Depends-on): Add EOVERFLOW.
57936         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57937         (Depends-on): Add EOVERFLOW.
57938
57939         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57941         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57942
57943         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57945         * modules/snprintf (Depends-on): Add EOVERFLOW.
57946
57947         * lib/poll.c (EOVERFLOW): Remove fallback.
57948         * modules/poll (Depends-on): Add EOVERFLOW.
57949
57950         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57951         * modules/getugroups (Depends-on): Add EOVERFLOW.
57952
57953         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57954         * modules/getdelim (Depends-on): Add EOVERFLOW.
57955
57956         * lib/ftell.c (EOVERFLOW): Remove fallback.
57957         * modules/ftell (Depends-on): Add EOVERFLOW.
57958
57959         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57961         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57962
57963         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57964
57965         * modules/EOVERFLOW-tests: New file.
57966         * tests/test-EOVERFLOW.c: New file.
57967
57968         * modules/EOVERFLOW: New file.
57969         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57970
57971 2008-03-30  Bruno Haible  <bruno@clisp.org>
57972
57973         Fix bug introduced on 2007-06-10.
57974         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57975         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57976
57977 2008-03-30  Bruno Haible  <bruno@clisp.org>
57978
57979         Improve freadseek's efficiency after ungetc.
57980         * lib/freadseek.c: Include freadahead.h.
57981         (freadptrinc): New function, extracted from freadseek.
57982         (freadseek): Use it in a loop. Use freadahead to determine the number
57983         of loop iterations.
57984         * modules/freadseek (Depends-on): Add freadahead.
57985         (configure.ac): Require AC_C_INLINE.
57986
57987 2008-03-30  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/freadseek.c (freadseek): Don't ignore the return value of
57990         freadptr.
57991
57992 2008-03-29  Eric Blake  <ebb9@byu.net>
57993
57994         Add hex float support.
57995         * modules/strtod (Depends-on): Add c-ctype.
57996         (Link): Mention POW_LIB.
57997         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57998         whitespace between 'e' and exponent.
57999         * tests/test-strtod.c (main): Enable hex float tests.
58000         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58001         now provides.
58002
58003         Document various strtod bugs, with some fixes.
58004         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58005         "-0x", "inf", "nan", and hex constants.
58006         * doc/posix-functions/atof.texi (atof): Likewise.
58007         * modules/stdlib (Makefile.am): Support strtod.
58008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58009         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58010         detect additional strtod bugs.
58011         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58012         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58013         bool where appropriate.  Parse 'inf' and 'nan'.
58014         * tests/test-strtod.c: New file.
58015         * modules/strtod (Depends-on): Add stdbool, stdlib.
58016         (configure.ac): Turn on module indicator.
58017         * modules/strtod-tests: New module.
58018
58019 2008-03-29  Eric Blake  <ebb9@byu.net>
58020
58021         Fix ftell on mingw.
58022         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58023         * modules/ftell-tests (Depends-on): Add binary-io.
58024         * modules/ftello-tests (Depends-on): Likewise.
58025         * tests/test-ftell.c (main): Enhance test to cover behavior after
58026         ungetc.  Enforce binary mode.
58027         * tests/test-ftello.c (main): Likewise.
58028
58029         Pass test-freadseek on cygwin.
58030         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58031         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58032         ungetc buffer.
58033
58034         * tests/test-fflush2.c (main): Fix typo.
58035
58036 2008-03-29  Bruno Haible  <bruno@clisp.org>
58037
58038         * tests/test-fflush2.c (main): Temporarily disable the contents of
58039         this test.
58040         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58041         Reported by Eric Blake.
58042
58043 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58044
58045         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58046         (GC_SHA224_DIGEST_SIZE): Add.
58047
58048         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58049         (gc_hash_digest_length): Likewise.
58050         (gc_hash_buffer): Likewise.
58051
58052 2008-03-25  Bruno Haible  <bruno@clisp.org>
58053
58054         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58055         detail which gettext release to use.
58056         Reported by Simon Josefsson.
58057
58058 2008-03-26  Jim Meyering  <meyering@redhat.com>
58059
58060         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58061         * modules/gnumakefile (clean-GNUmakefile): Also, use
58062         test ... && ... || : syntax rather than if-then ... fi.
58063
58064         gnumakefile: Don't double-quote-expand $(VPATH) value.
58065         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58066
58067 2008-03-24  Eric Blake  <ebb9@byu.net>
58068
58069         Alter GNUmakefile to install into top directory.
58070         * modules/maintainer-makefile: Split, and add dependency...
58071         * modules/gnumakefile: to this new module.
58072         * build-aux/GNUmakefile: Move...
58073         * top/GNUmakefile: ...here.
58074         * build-aux/maint.mk: Move...
58075         * top/maint.mk: ...here.
58076         * MODULES.html.sh (Support for maintaining...): Document new
58077         module.
58078
58079 2008-03-23  Bruno Haible  <bruno@clisp.org>
58080
58081         * gnulib-tool: New options --vc-files, --no-vc-files.
58082         (func_usage): Document them.
58083         (vc_files): New variable.
58084         (func_import): Consider vc_files.
58085         (func_create_testdir): Set vc_files to empty.
58086         Suggested by Jim Meyering and Karl Berry.
58087
58088 2008-03-23  Bruno Haible  <bruno@clisp.org>
58089
58090         Fix regex compilation error on HP-UX 11.
58091         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58092         * modules/regex (Files): Add m4/mbstate_t.m4.
58093         Reported by Ton Voon <ton.voon@altinity.com>.
58094
58095 2008-03-23  Bruno Haible  <bruno@clisp.org>
58096
58097         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58098
58099 2008-03-23  Eric Blake  <ebb9@byu.net>
58100             Bruno Haible  <bruno@clisp.org>
58101
58102         Install files from top/ in the destination directory.
58103         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58104         augmentation also for the files from top/.
58105         (func_import, func_create_testdir): Rewrite file names:
58106         top/filename -> filename.
58107
58108 2008-03-23  Bruno Haible  <bruno@clisp.org>
58109
58110         Tweak "gnulib --version" output.
58111         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58112
58113 2008-03-23  Bruno Haible  <bruno@clisp.org>
58114
58115         Tweak "gnulib --version" output.
58116         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58117         rather than contents of ChangeLog, when possible.
58118
58119 2008-03-21  Eric Blake  <ebb9@byu.net>
58120
58121         More --version tweaks.
58122         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58123         date of last ChangeLog entry.
58124
58125 2008-03-21  Jim Meyering  <meyering@redhat.com>
58126
58127         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58128
58129 2008-03-20  Eric Blake  <ebb9@byu.net>
58130
58131         VPATH fix.
58132         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58133
58134 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58135
58136         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58137         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58138
58139 2008-03-20  Eric Blake  <ebb9@byu.net>
58140
58141         Sync GNUmakefile with coreutils.
58142         * build-aux/GNUmakefile (have-Makefile): Rename...
58143         (_have-Makefile): ...to this, for namespace consideration.
58144         (GNUmakefile.cfg): Include, if present.
58145         (_autoreconf): Define a default.
58146         (_is-dist-target): New rule for rebuilds to pick up intra-release
58147         version.
58148         (maint-cfg.mk): Rename...
58149         (cfg.mk): ...to this.
58150
58151 2008-03-18  Jim Meyering  <meyering@redhat.com>
58152
58153         New script and module: mktempd
58154         * MODULES.html.sh (maint+release support): Add mktempd.
58155         * build-aux/mktempd: New file.
58156         * modules/mktempd: New file.
58157
58158 2008-03-15  Jim Meyering  <meyering@redhat.com>
58159
58160         Undo last change.
58161         * lib/sha1.c, lib/md5.c: 63 != ~63.
58162         Reported by Andreas Schwab.
58163
58164         sha1.c, md5.c: Hoist a redundant expression.
58165         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58166         "ctx->buflen" only once, before calling *_process_block.
58167         * lib/md5.c (md5_process_bytes): Likewise.
58168
58169 2008-03-14  Eric Blake  <ebb9@byu.net>
58170
58171         Bump copyright year in files generated by gnulib-tool.
58172         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58173         gnulib-tool, rather than hard-coding it.
58174
58175         Fix 'gnulib-tool --version' output to work with git.
58176         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58177         (startup): ...here.
58178         (func_version): Use it to invoke git-version-gen, rather than
58179         relying on CVS keyword expansion.  Modernize wording.
58180         (cvsdatestamp, last_checkin_date, version): Kill unused
58181         variables.
58182
58183 2008-03-12  Jim Meyering  <meyering@redhat.com>
58184
58185         Recognize optional cast of the argument to free.
58186         * build-aux/useless-if-before-free: Update regexps.
58187
58188         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58189
58190 2008-03-11  Bruno Haible  <bruno@clisp.org>
58191
58192         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58193         by a single package.
58194         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58195         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58196         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58197         Reported by Sam Steingold <sds@gnu.org>.
58198
58199 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58200
58201         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58202         repositories.
58203
58204 2008-03-11  Bruno Haible  <bruno@clisp.org>
58205
58206         Avoid conflicts between local macro definitions.
58207         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58208         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58209
58210 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58211             Bruno Haible  <bruno@clisp.org>
58212
58213         Make va_copy work with some version of xlc on AIX 5.1.
58214         * lib/stdarg.in.h: New file.
58215         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58216         On AIX, use a <stdarg.h> file substitute.
58217         * modules/stdarg (Files): Add lib/stdarg.in.h.
58218         (Depends-on): Add include_next.
58219         (Makefile.am): Build a stdarg.h substitute if requested.
58220         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58221
58222 2008-03-10  Bruno Haible  <bruno@clisp.org>
58223
58224         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58225         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58226         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58227
58228 2008-03-10  Bruno Haible  <bruno@clisp.org>
58229
58230         * modules/stdlib (Depends-on): Add include_next, remove
58231         absolute-header.
58232
58233 2008-03-09  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/freadahead.h (freadahead): Document more precisely.
58236         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58237         the sum of both buffer sizes.
58238         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58239         * NEWS: Document the change.
58240
58241 2008-03-09  Bruno Haible  <bruno@clisp.org>
58242
58243         Extend freadptr to return also the buffer size.
58244         * lib/freadptr.h (freadptr): Add sizep argument.
58245         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58246         (freadptr): Add sizep argument. Determine buffer size like freadahead
58247         does.
58248         * tests/test-freadptr.c: Don't include freadahead.h.
58249         (main): Adapt for new calling convention of freadptr.
58250         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58251         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58252         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58253         tests/test-freadptr2.sh.
58254         (Depends): Remove freadahead.
58255         (TESTS): Add test-freadptr2.sh.
58256         (check_PROGRAMS): Add test-freadptr2.
58257
58258 2008-03-09  Bruno Haible  <bruno@clisp.org>
58259
58260         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58261         Report and solution by Simon Josefsson.
58262
58263 2008-03-06  Bruno Haible  <bruno@clisp.org>
58264
58265         Make fflush after ungetc work on BSD platforms.
58266         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58267         * tests/test-fflush2.c: New file.
58268         * tests/test-fflush2.sh: New file.
58269         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58270         tests/test-fflush2.c.
58271         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58272         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58273
58274 2008-03-06  Eric Blake  <ebb9@byu.net>
58275
58276         Likewise for ftello.
58277         * modules/ftello (Dependencies): Add extensions.
58278         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58279
58280 2008-03-06  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/fseeko (Dependencies): Add extensions.
58283         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58284         Needed on glibc systems.
58285
58286 2008-03-06  Bruno Haible  <bruno@clisp.org>
58287
58288         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58289         email address.
58290         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58291
58292 2008-03-06  Bruno Haible  <bruno@clisp.org>
58293
58294         * users.txt: Add libgnupdf.
58295
58296 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58297
58298         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58299         (Header File Substitutes, Function Substitutes,
58300         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58301         (Build robot for gnulib): Fix typo.
58302
58303 2008-03-06  Bruno Haible  <bruno@clisp.org>
58304
58305         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58306         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58307
58308 2008-03-06  Bruno Haible  <bruno@clisp.org>
58309
58310         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58311         * doc/gnulib.texi: Include it.
58312
58313 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58314
58315         * modules/func (License): Change license to unlimited; there was
58316         no LGPL parts in the module anyway.
58317
58318 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58319
58320         * modules/__func__: Renamed to modules/func.
58321         * modules/__func__-tests: Renamed to modules/func-tests.
58322         * tests/test-__func__.c: Renamed to tests/test-func.c.
58323         * m4/__func__.m4: Renamed to m4/func.m4.
58324         * doc/gnulib.texi (__func__): Section renamed to func.
58325         Suggested by Eric Blake <ebb9@byu.net>.
58326
58327 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58328
58329         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58330         about __func__.  Make example self-contained.  Suggested by Eric
58331         Blake <ebb9@byu.net>.
58332
58333         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58334         Suggested by Eric Blake <ebb9@byu.net>.
58335
58336 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58337
58338         * modules/__func__: New file.
58339         * modules/__func__-tests: New file.
58340         * tests/test-__func__.c: New file.
58341         * m4/__func__.m4: New file.
58342         * doc/gnulib.texi (__func__): Document __func__ module.
58343
58344 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58345
58346         * modules/byteswap (License): Re-license as LGPLv2+.
58347
58348 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58349
58350         * doc/Makefile: Add pdf target.
58351
58352 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58353
58354         * modules/inline (License): Use 'unlimited', since there are only
58355         *.m4 files in this module.
58356
58357 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58358             Bruno Haible  <bruno@clisp.org>
58359
58360         Add support for HP C 7.1 on OpenVMS 8.3.
58361         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58362
58363 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58364
58365         Update VMS specifics.
58366         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58367
58368 2008-03-02  Jim Meyering  <meyering@redhat.com>
58369
58370         Remove the last dependency on the "free" module.
58371         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58372         Reported by Bob Proulx.
58373
58374         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58375
58376         Remove useless "if" tests before free.  Deprecate "free" module.
58377         * doc/posix-functions/free.texi: Mention that this
58378         module is no longer useful.
58379         * modules/free (Notice): Say this module is obsolete.
58380         * modules/readutmp (Depends-on): Remove free.
58381         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58382         * lib/putenv.c (putenv): Likewise.
58383         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58384         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58385         * tests/test-c-strcasestr.c (main): Likewise.
58386         * tests/test-c-strstr.c (main): Likewise.
58387         * tests/test-mbscasestr1.c (main): Likewise.
58388         * tests/test-mbscasestr2.c (main): Likewise.
58389         * tests/test-mbsstr1.c (main): Likewise.
58390         * tests/test-mbsstr2.c (main): Likewise.
58391         * tests/test-memmem.c (main): Likewise.
58392         * tests/test-strcasestr.c (main): Likewise.
58393         * tests/test-striconv.c (main): Likewise.
58394         * tests/test-striconveh.c (main): Likewise.
58395         * tests/test-striconveha.c (main): Likewise.
58396         * tests/test-strstr.c (main): Likewise.
58397
58398         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58399
58400         bootstrap: sync from coreutils again
58401         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58402
58403 2008-03-01  Jim Meyering  <meyering@redhat.com>
58404
58405         bootstrap: sync from coreutils
58406         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58407         also when the target doesn't exist.
58408
58409 2008-03-01  Eric Blake  <ebb9@byu.net>
58410
58411         Fix bugs in last patch.
58412         * lib/memchr2.c (memchr2): Fix typo.
58413         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58414         extension.
58415         Reported by Bruce Korb.
58416
58417         New module 'memchr2'.
58418         * modules/memchr2: New file.
58419         * modules/memchr2-tests: Likewise.
58420         * lib/memchr2.h: Likewise.
58421         * lib/memchr2.c: Likewise, based on memchr.c.
58422         * tests/test-memchr2.c: New test.
58423         * MODULES.html.sh (String handling): Add memchr2.
58424
58425 2008-02-29  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/freadseek-tests: New file.
58428         * tests/test-freadseek.sh: New file.
58429         * tests/test-freadseek.c: New file.
58430
58431         New module 'freadseek'.
58432         * modules/freadseek: New file.
58433         * lib/freadseek.h: New file.
58434         * lib/freadseek.c: New file.
58435         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58436
58437 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58438
58439         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58440         wydawca.
58441
58442         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58443         program_invocation_name and program_invocation_short_name are
58444         present.
58445
58446 2008-02-28  Bruno Haible  <bruno@clisp.org>
58447
58448         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58449         * tests/test-freadptr.sh: Also test non-seekable stdin.
58450
58451 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58452
58453         * build-aux/bootstrap (source_base, m4_base)
58454         (doc_base, tests_base): New variables.
58455         (gnulib_tool_options): Do not hardcode base directories, use
58456         the above variables instead.
58457
58458 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58459
58460         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58461
58462 2008-02-28  Bruno Haible  <bruno@clisp.org>
58463
58464         * modules/freadptr-tests: New file.
58465         * tests/test-freadptr.sh: New file.
58466         * tests/test-freadptr.c: New file.
58467
58468         New module 'freadptr'.
58469         * modules/freadptr: New file.
58470         * lib/freadptr.h: New file.
58471         * lib/freadptr.c: New file.
58472         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58473
58474 2008-02-26  Karl Berry  <karl@freefriends.org>
58475
58476         Sync from Libtool:
58477         * libltdl/argz.c (argz_add, argz_count): New functions.
58478         * libltdl/argz.in.h: Declare them.
58479         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58480
58481 2008-02-22  Bruno Haible  <bruno@clisp.org>
58482
58483         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58484         is a pointer type.  Needed for HP-UX 10.
58485         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58486         * doc/posix-functions/gmtime_r.texi: Likewise.
58487         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58488
58489 2008-02-24  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/environ-tests: New file.
58492         * tests/test-environ.c: New file.
58493
58494         New module 'environ'.
58495         * modules/environ: New file.
58496         * lib/unistd.in.h (environ): New declaration.
58497         * m4/environ.m4: New file.
58498         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58499         after use.
58500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58501         HAVE_DECL_ENVIRON.
58502         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58503         HAVE_DECL_ENVIRON.
58504         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58505         wrong claim that 'environ' is missing on some systems.
58506         * modules/execute (Depends-on): Add environ.
58507         * lib/execute.c (environ): Remove fallback declaration.
58508         * modules/pipe (Depends-on): Add environ.
58509         * lib/pipe.c (environ): Remove fallback declaration.
58510         * modules/setenv (Depends-on): Add environ.
58511         * lib/setenv.c (environ): Remove fallback declaration.
58512         * modules/unsetenv (Depends-on): Add environ.
58513         * lib/unsetenv.c (environ): Remove fallback declaration.
58514         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58515         m4/environ.m4.
58516         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58517         (gl_PREREQ_UNSETENV): Likewise.
58518
58519 2008-02-24  Bruno Haible  <bruno@clisp.org>
58520
58521         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58522
58523 2008-02-20  Bob Proulx  <bob@proulx.com>
58524
58525         Enable use of older two part flavor 'git describe'.
58526         * build-aux/git-version-gen: If using the older two part flavor of
58527         git version then recreate the third part now present in the
58528         newer three part flavor of git describe.
58529
58530 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58531
58532         * lib/fts.c (fts_build): Typo correction to comment.
58533
58534 2008-02-17  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58537         generating no-op conflicts.
58538
58539 2008-02-17  Bruno Haible  <bruno@clisp.org>
58540
58541         Speed up by 10%.
58542         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58543         result_entries, rather than an index-based loop.
58544
58545 2008-02-17  Bruno Haible  <bruno@clisp.org>
58546
58547         Speed up by 25%.
58548         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58549         'hashcode_cached'.
58550         (entry_create): New function.
58551         (entry_hashcode): Use the cached hashcode if possible.
58552         (read_changelog_file, try_split_merged_entry): Use entry_create.
58553
58554 2008-02-17  Bruno Haible  <bruno@clisp.org>
58555
58556         Speed up from O(n^2) to O(n) for long ChangeLog files.
58557         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58558         (read_changelog_file): Change implementation of entries_reversed list
58559         to rbtreehash.
58560         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58561
58562 2008-02-17  Bruno Haible  <bruno@clisp.org>
58563
58564         New option --split-merged-entry.
58565         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58566         (find_paragraph_end, try_split_merged_entry): New functions.
58567         (long_options): Add option --split-merged-entry.
58568         (usage): Document option --split-merged-entry.
58569         (main): Implement option --split-merged-entry.
58570         Reported by Eric Blake.
58571
58572 2008-02-17  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/git-merge-changelog.c: Include c-strstr.h.
58575         (main): Support the "git pull --rebase" situation.
58576         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58577         Reported by Eric Blake.
58578
58579 2008-02-16  Eric Blake  <ebb9@byu.net>
58580
58581         Avoid doubling \ in common case of "c-maybe" quoting style.
58582         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58583         eliding outer quotes.
58584         * lib/quotearg.h: Document this.
58585         * tests/test-quotearg.c (result_strings, inputs, results_g)
58586         (flag_results, locale_results): Test it by adding a new string to
58587         each test group.
58588         (compare_strings): Test new string.
58589
58590 2008-02-13  Eric Blake  <ebb9@byu.net>
58591
58592         Avoid trigraph quoting in default output.
58593         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58594         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58595         unless explicitly requested.
58596         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58597
58598 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58599
58600         Don't rely on signed integer overflowing to negative value.
58601         * lib/getugroups.c (getugroups): Include <limits.h>.
58602         Instead, compare against INT_MAX, and increment only if the test passes.
58603
58604 2008-02-13  Jim Meyering  <meyering@redhat.com>
58605         and Eric Blake  <ebb9@byu.net>
58606
58607         Avoid shadowing warning and compile errors on Linux.
58608         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58609         forwarding macros on Linux.
58610         (dcgettext): Define a stub, for Linux.
58611         (results_g, main): Avoid warnings.
58612
58613 2008-02-12  Eric Blake  <ebb9@byu.net>
58614
58615         Silence warning in last patch.
58616         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58617
58618         Quotearg part 4: add tests, fix c-maybe colon quoting.
58619         * lib/quotearg.h: Improve documentation.
58620         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58621         escapes when adding outer quotes.  When quoting trigraphs, use
58622         valid C notation.  When quoting NUL, omit extra characters if next
58623         character is not digit.  Alter prototype.
58624         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58625         callers.
58626         * modules/quotearg-tests: New module.
58627         * tests/test-quotearg.c: New test.
58628
58629 2008-02-07  Eric Blake  <ebb9@byu.net>
58630
58631         Quotearg part 3: add flag to control outer quote elision.
58632         * lib/quotearg.h (c_maybe_quoting_style): New style.
58633         (enum quoting_flags): Better documentation of flags.
58634         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58635         c-maybe style.
58636         (quotearg_buffer_restyled): Handle new flag to elide outer
58637         quotes.
58638
58639         Quotearg part 2: add flag that can control NUL elision.
58640         * lib/quotearg.h (set_quoting_flags): New prototype.
58641         * lib/quotearg.c (struct quoting_options): Add flag field.
58642         (set_quoting_flags): New function.
58643         (quotearg_buffer_restyled): Add flags parameter.
58644         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58645         (quotearg_n_options): Set the flag, since length cannot be
58646         returned.
58647         (quoting_options_from_style): Default flags correctly.
58648
58649         Quotearg part 1: more wrappers, restore quotearg_char state.
58650         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58651         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58652         (quotearg_colon_mem): New wrappers.
58653         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58654         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58655         functions.
58656         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58657         (quotearg_colon_mem): New functions.
58658
58659 2008-02-11  Bruno Haible  <bruno@clisp.org>
58660
58661         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58662         library in the current directory: it does not work with parallel make.
58663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58664
58665 2008-02-11  Bruno Haible  <bruno@clisp.org>
58666
58667         * .gitattributes: New file.
58668
58669 2008-02-11  Jim Meyering  <meyering@redhat.com>
58670
58671         useless-if-before-free: Fix reversed exit values.
58672         * build-aux/useless-if-before-free: Use correct values
58673         for EXIT_MATCH and EXIT_NO_MATCH.
58674
58675         * build-aux/useless-if-before-free: Close stdout carefully.
58676
58677 2008-02-10  Bruno Haible  <bruno@clisp.org>
58678
58679         New module 'git-merge-changelog'.
58680         * modules/git-merge-changelog: New file.
58681         * lib/git-merge-changelog.c: New file.
58682
58683 2008-02-10  Jim Meyering  <meyering@redhat.com>
58684
58685         useless-if-before-free: New option: --list (-l).
58686
58687         useless-if-before-free: Don't exit immediately upon open failure.
58688         * build-aux/useless-if-before-free: Exit 2 for errors.
58689         Upon failure to open a file, don't exit immediately.
58690         Rather, just warn and continue with any remaining files.
58691
58692 2008-02-10  Bruno Haible  <bruno@clisp.org>
58693
58694         New abstract list operation 'node_set_value'.
58695         * lib/gl_list.h (gl_list_node_set_value): New function.
58696         (struct gl_list_implementation): New field node_set_value.
58697         * lib/gl_list.c (gl_list_node_set_value): New function.
58698         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58699         (gl_array_list_implementation): Update.
58700         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58701         (gl_carray_list_implementation): Update.
58702         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58703         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58704         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58705         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58706         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58707         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58708         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58709         Update.
58710         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58711         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58712         (gl_sublist_list_implementation): Update.
58713
58714 2008-02-10  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58717         Needed when ELEMENT is #defined to 'some_type *'.
58718
58719 2008-02-10  Jim Meyering  <meyering@redhat.com>
58720
58721         New script and module: useless-if-before-free
58722         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58723         * build-aux/useless-if-before-free: New file.
58724         * modules/useless-if-before-free: New file.
58725
58726         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58727
58728         xstrtol_error: Fix typo.
58729         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58730         s/exit_failure/exit_status/.
58731
58732 2008-02-09  Jim Meyering  <meyering@redhat.com>
58733
58734         New script and module: gitlog-to-changelog
58735         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58736         * modules/gitlog-to-changelog: New file.
58737         * build-aux/gitlog-to-changelog: New file.
58738
58739 2008-02-08  Jim Meyering  <meyering@redhat.com>
58740
58741         Avoid two "parameter unused" warnings.
58742         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58743         Mark "st" as used.
58744
58745         Use "git COMMAND", not "git-COMMAND".
58746         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58747         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58748         * build-aux/git-version-gen: Use "git status", not "git-status".
58749
58750 2008-02-07  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58753         Avoids a crash on Windows Vista.
58754         Reported by Adam Strzelecki <ono@java.pl> via
58755         Simon Josefsson <simon@josefsson.org>.
58756
58757 2008-02-06  Bruno Haible  <bruno@clisp.org>
58758
58759         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58760         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58761         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58763         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58765         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58766         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58774         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58775         left-adjust flag.
58776         * tests/test-snprintf-posix.h (test_function): Likewise.
58777         * tests/test-sprintf-posix.h (test_function): Likewise.
58778         * tests/test-vasprintf-posix.c (test_function): Likewise.
58779         * doc/posix-functions/fprintf.texi: Update.
58780         * doc/posix-functions/printf.texi: Update.
58781         * doc/posix-functions/snprintf.texi: Update.
58782         * doc/posix-functions/sprintf.texi: Update.
58783         * doc/posix-functions/vfprintf.texi: Update.
58784         * doc/posix-functions/vprintf.texi: Update.
58785         * doc/posix-functions/vsnprintf.texi: Update.
58786         * doc/posix-functions/vsprintf.texi: Update.
58787         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58788
58789 2008-02-06  Bruno Haible  <bruno@clisp.org>
58790
58791         Fix bug introduced on 2008-01-26.
58792         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58793
58794 2008-02-06  Bruno Haible  <bruno@clisp.org>
58795
58796         Fix bug introduced on 2007-06-10.
58797         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58798         !NEED_PRINTF_FLAG_ZERO.
58799
58800 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58801
58802         getloadavg: use libperfstat on AIX5
58803         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58804
58805 2008-02-03  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/diffseq.h: Add comments about required #includes.
58808         Reported by Michael Biggs <gnulib@doubleplum.net>.
58809
58810 2008-02-01  Bruno Haible  <bruno@clisp.org>
58811
58812         * users.txt: Add gnuit.
58813
58814 2008-01-31  Bruno Haible  <bruno@clisp.org>
58815
58816         * lib/md4.c (set_uint32): Mark as inline.
58817         * lib/md5.c (set_uint32): Likewise.
58818         * lib/sha1.c (set_uint32): Likewise.
58819         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58820         * m4/md5.m4 (gl_MD5): Likewise.
58821         * m4/sha1.m4 (gl_SHA1): Likewise.
58822
58823 2008-01-31  Jim Meyering  <meyering@redhat.com>
58824
58825         Use "sizeof VAR", rather than a literal "4".
58826         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58827         * lib/md4.c (md4_read_ctx): Likewise.
58828         * lib/sha1.c (sha1_read_ctx): Likewise.
58829
58830 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58831
58832         * tests/test-sha1.c: New file, based on test-md5.c.
58833
58834         * modules/crypto/sha1-tests: New file.
58835
58836 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58837
58838         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58839
58840 2008-01-31  Jim Meyering  <meyering@redhat.com>
58841
58842         Prefer "sizeof v" over the equivalent "4".
58843         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58844         * lib/md5.c (set_uint32): Likewise.
58845         * lib/sha1.c (set_uint32): Likewise.
58846
58847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58848
58849         * lib/sha1.c (set_uint32): Mark function as static.
58850
58851 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58852
58853         md2: clarify comments to say that alignment is not required.
58854         * lib/md2.h: Remove warning about alignment in comment.
58855         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58856         never been required.
58857
58858 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58859
58860         md4: adapt alignment constraint fix from sha1.
58861         * lib/md4.c (set_uint32): New function, from sha1.c
58862         (md4_read_ctx): Use it.
58863         (md4_finish_ctx): Doc fix.
58864         * lib/md4.h: Doc fix.
58865
58866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58867
58868         md5: adapt alignment constraint fix from sha1.
58869         * lib/md5.c (set_uint32): New function, from sha1.c
58870         (md5_read_ctx): Use it.
58871         (md5_finish_ctx): Doc fix.
58872         * lib/md5.h: Doc fix.
58873
58874 2008-01-30  Peter Palfrader  <weasel@debian.org>
58875
58876         sha1: remove the result buffer alignment constraint
58877         * lib/sha1.c (set_uint32): New function.
58878         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58879         constraint.
58880         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58881         * lib/sha1.h: Likewise.
58882
58883 2008-01-30  Andreas Schwab  <schwab@suse.de>
58884             Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58887         correct definition of LDBL_MIN_EXP.
58888
58889 2008-01-30  Karl Berry  <karl@gnu.org>
58890
58891         * config/srclist-update: try to preserve x bit on updates.
58892         * config/srclistvars.sh: update for karl.
58893
58894 2008-01-29  Jim Meyering  <meyering@redhat.com>
58895
58896         vasnprintf.c: Avoid warning about unused label
58897         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58898         "overflow" label definition and associated code with the
58899         same cpp condition that guards the sole use of that label.
58900
58901 2008-01-26  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58904         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58905         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58906         * lib/isnanl-nolibm.h (isnanl): Likewise.
58907         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58908
58909 2008-01-26  Bruno Haible  <bruno@clisp.org>
58910
58911         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58912         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58913
58914 2008-01-26  Bruno Haible  <bruno@clisp.org>
58915
58916         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58917         GCC >= 4.0 built-in.
58918         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58919
58920 2008-01-26  Bruno Haible  <bruno@clisp.org>
58921
58922         Rename isnan, applicable to 'double' only, to isnand.
58923         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58924         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58925         (configure.ac): Update.
58926         (Include): Replace "isnan.h" with "isnand.h".
58927         * m4/isnand.m4: Renamed from m4/isnan.m4.
58928         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58929         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58930         instead of isnan.c.
58931         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58932         instead of HAVE_ISNAN_IN_LIBC.
58933         (isnand): Renamed from isnan.
58934         * lib/isnand.c: New file.
58935         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58936         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58937         (Makefile.am): Update.
58938         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58939         Include isnand.h instead of isnan.h.
58940         (main): Test isnand instead of isnan.
58941         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58942         isnan-nolibm.
58943         * modules/frexp (Depends-on): Likewise.
58944         * modules/frexp-tests (Depends-on): Likewise.
58945         * modules/frexp-nolibm (Depends-on): Likewise.
58946         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58947         * modules/isfinite (Depends-on): Likewise.
58948         * modules/round-tests (Depends-on): Likewise.
58949         * modules/signbit (Depends-on): Likewise.
58950         * modules/signbit-tests (Depends-on): Likewise.
58951         * modules/snprintf-posix (Depends-on): Likewise.
58952         * modules/sprintf-posix (Depends-on): Likewise.
58953         * modules/trunc-tests (Depends-on): Likewise.
58954         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58957         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58958         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58960         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58961         * modules/vasnprintf-posix (Depends-on): Likewise.
58962         * modules/vasprintf-posix (Depends-on): Likewise.
58963         * modules/vfprintf-posix (Depends-on): Likewise.
58964         * modules/vsnprintf-posix (Depends-on): Likewise.
58965         * modules/vsprintf-posix (Depends-on): Likewise.
58966         * lib/frexp.c: Include isnand.h instead of isnan.h.
58967         (ISNAN): Set to isnand instead of isnan.
58968         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58969         (gl_isfinited): Use isnand instead of isnan.
58970         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58971         (gl_signbitd): Use isnand instead of isnan.
58972         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58973         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58974         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58975         (main): Use isnand instead of isnan.
58976         * tests/test-round1.c: Include isnand.h.
58977         (main): Use isnand instead of isnan.
58978         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58979         (ISNAN): Set to isnand instead of isnan.
58980         * tests/test-trunc1.c: Include isnand.h.
58981         (main): Use isnand instead of isnan.
58982         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58983         (equal): Use isnand instead of isnan.
58984         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58985         isnand-nolibm.
58986         * NEWS: Mention the change.
58987
58988 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58989             Bruno Haible  <bruno@clisp.org>
58990
58991         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58992         the GCC builtins for signbits are present and set
58993         REPLACE_SIGNBIT_USING_GCC if so.
58994         * lib/math.in.h (signbit): Define using GCC builtins if
58995         REPLACE_SIGNBIT_USING_GCC is set.
58996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58997         REPLACE_SIGNBIT_USING_GCC.
58998         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58999
59000 2008-01-25  Jim Meyering  <meyering@redhat.com>
59001
59002         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59003         * lib/poll.c: Include <config.h>, not "config.h".
59004         * tests/test-getaddrinfo.c: Likewise.
59005
59006 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59007
59008         * modules/sockets-tests: New file.
59009
59010 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59011
59012         * modules/sockets: New module, can be used to call WSA_Startup and
59013         WSA_Cleanup when needed.
59014
59015         * lib/sockets.h, lib/sockets.c: New files.
59016
59017         * m4/sockets.m4: New file.
59018
59019         * tests/test-sockets.c: New file.
59020
59021 2008-01-19  Bruno Haible  <bruno@clisp.org>
59022
59023         * doc/posix-headers: Renamed from doc/headers.
59024         * doc/posix-functions: Renamed from doc/functions.
59025         * doc/gnulib.texi: Update.
59026
59027 2008-01-19  Bruno Haible  <bruno@clisp.org>
59028
59029         * doc/glibc-functions/strcasestr.texi: Include contents of
59030         doc/functions/strcasestr.texi, fixing the list of platforms.
59031         * doc/functions/strcasestr.texi: Remove file.
59032
59033 2008-01-19  Bruno Haible  <bruno@clisp.org>
59034
59035         * doc/glibc-functions/memmem.texi: Include contents of
59036         doc/functions/memmem.texi.
59037         * doc/functions/memmem.texi: Remove file.
59038
59039 2008-01-18  Bruno Haible  <bruno@clisp.org>
59040
59041         * doc/glibc-functions/*.texi: New files.
59042         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59043         to use the new files.
59044
59045 2008-01-17  Bruno Haible  <bruno@clisp.org>
59046
59047         * tests/test-gethostname.c (main): Fix printf statement.
59048
59049 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59050
59051         * modules/gethostname-tests: New file.
59052
59053         * tests/test-gethostname.c: New file.
59054
59055 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59056
59057         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59058         used by the UNAME case.  Reported by Bruno Haible
59059         <bruno@clisp.org>.
59060
59061 2008-01-17  Eric Blake  <ebb9@byu.net>
59062
59063         Convert c-strcasestr to be more efficient.
59064         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59065         (Depends-on): Add c-strcase, remove malloca, strnlen.
59066         * tests/test-c-strcasestr.c (main): Enhance test.
59067         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59068
59069 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59070
59071         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59072         Use it in creating po/Makevars.
59073
59074 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59075
59076         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59077         Applications that requires it should initialize libgcrypt
59078         manually.
59079
59080 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59081
59082         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59083
59084 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59085
59086         Fix problem with getdate on mingw32 reported by Simon Josefsson
59087         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59088         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59089         tzname", when deciding whether to declare tzname.
59090         * lib/strftime.c (tzname): Likewise.
59091
59092 2008-01-15  Bruno Haible  <bruno@clisp.org>
59093
59094         Work around a MacOS X 10.5 bug in frexpl().
59095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59096         * doc/functions/frexpl.texi: Document the bug.
59097         Reported by Elias Pipping <pipping@gentoo.org>.
59098
59099 2008-01-14  Eric Blake  <ebb9@byu.net>
59100
59101         Touch up previous patch.
59102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59103         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59104
59105         Convert strcasestr module to use Two-Way algorithm.
59106         * modules/strcasestr-simple: New module, based on the old
59107         strcasestr, but with Two-Way rather than KMP.
59108         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59109         * lib/string.in.h (rpl_strcasestr): Declare.
59110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59111         performance.
59112         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59113         * modules/string (Makefile.am): Support strcasestr.
59114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59115         * modules/strcasestr-tests (Depends-on): Check for alarm.
59116         * tests/test-strcasestr.c: Augment test.
59117         * lib/str-two-way.h: Clean up stray macro.
59118         * NEWS: Document new module.
59119         * MODULES.html.sh (string handling): Likewise.
59120         * doc/functions/strcasestr.texi: New file.
59121         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59122         here, since it is not a POSIX function.
59123
59124 2008-01-14  Colin Watson  <cjwatson@debian.org>
59125             Bruno Haible  <bruno@clisp.org>
59126
59127         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59128         works fine; if not, set REPLACE_STRSIGNAL.
59129         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59131         REPLACE_STRSIGNAL.
59132         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59133         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59134         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59135
59136 2008-01-14  Bruno Haible  <bruno@clisp.org>
59137
59138         * modules/strsignal (Include): Change to <string.h>.
59139
59140 2008-01-14  Colin Watson  <cjwatson@debian.org>
59141
59142         * modules/argp (Notice): Add a notice recommending to change
59143         XGETTEXT_OPTIONS.
59144         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59145
59146 2008-01-13  Colin Watson  <cjwatson@debian.org>
59147
59148         * modules/strsignal-tests: New file.
59149         * tests/test-strsignal.c: New file.
59150
59151         * lib/strsignal.c: New file, from glibc with modifications.
59152         * lib/siglist.h: New file, from glibc with modifications.
59153         * lib/string.in.h (strsignal): New declaration.
59154         * m4/strsignal.m4: New file.
59155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59156         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59157         * modules/strsignal: New file.
59158         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59159         HAVE_DECL_STRSIGNAL.
59160
59161 2008-01-13  Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59164         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59167
59168 2008-01-13  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59171         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59172         * lib/argp.h (__attribute__): Likewise.
59173         * lib/c-stack.c (__attribute__): Likewise.
59174         * lib/error.h (__attribute__): Likewise.
59175         * lib/fts.c (__attribute__): Likewise.
59176         * lib/openat.h (__attribute__): Likewise.
59177         * lib/stdio.in.h (__attribute__): Likewise.
59178         * lib/string.in.h (__attribute__): Likewise.
59179         * lib/utimens.c (__attribute__): Likewise.
59180         * lib/vasnprintf.h (__attribute__): Likewise.
59181         * lib/xalloc.h (__attribute__): Likewise.
59182         * lib/xprintf.h (__attribute__): Likewise.
59183         * lib/xstrtol.h (__attribute__): Likewise.
59184         * lib/xvasprintf.h (__attribute__): Likewise.
59185
59186 2008-01-12  Bruno Haible  <bruno@clisp.org>
59187
59188         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59189         * doc/glibc-headers/a.out.texi: New file.
59190         * doc/glibc-headers/aliases.texi: New file.
59191         * doc/glibc-headers/alloca.texi: New file.
59192         * doc/glibc-headers/ar.texi: New file.
59193         * doc/glibc-headers/argp.texi: New file.
59194         * doc/glibc-headers/argz.texi: New file.
59195         * doc/glibc-headers/byteswap.texi: New file.
59196         * doc/glibc-headers/crypt.texi: New file.
59197         * doc/glibc-headers/endian.texi: New file.
59198         * doc/glibc-headers/envz.texi: New file.
59199         * doc/glibc-headers/err.texi: New file.
59200         * doc/glibc-headers/error.texi: New file.
59201         * doc/glibc-headers/execinfo.texi: New file.
59202         * doc/glibc-headers/fpu_control.texi: New file.
59203         * doc/glibc-headers/fstab.texi: New file.
59204         * doc/glibc-headers/fts.texi: New file.
59205         * doc/glibc-headers/getopt.texi: New file.
59206         * doc/glibc-headers/ieee754.texi: New file.
59207         * doc/glibc-headers/ifaddrs.texi: New file.
59208         * doc/glibc-headers/libintl.texi: New file.
59209         * doc/glibc-headers/mcheck.texi: New file.
59210         * doc/glibc-headers/mntent.texi: New file.
59211         * doc/glibc-headers/obstack.texi: New file.
59212         * doc/glibc-headers/paths.texi: New file.
59213         * doc/glibc-headers/printf.texi: New file.
59214         * doc/glibc-headers/pty.texi: New file.
59215         * doc/glibc-headers/resolv.texi: New file.
59216         * doc/glibc-headers/shadow.texi: New file.
59217         * doc/glibc-headers/sysexits.texi: New file.
59218         * doc/glibc-headers/ttyent.texi: New file.
59219
59220 2008-01-12  Jim Meyering  <meyering@redhat.com>
59221
59222         announce-gen: emit Gnulib's git-based version string.
59223         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59224         New option --gnulib-version=V, where V is expected to be
59225         the output of running git describe in the gnulib directory.
59226         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59227         not useful, and plan to stop publishing an xdelta file with each
59228         coreutils release.
59229
59230         * build-aux/announce-gen: Also check for lzma-compressed files.
59231
59232 2008-01-11  Bruno Haible  <bruno@clisp.org>
59233
59234         * tests/test-memmem.c (main): Increase maximum allowed time.
59235         * tests/test-strstr.c (main): Likewise.
59236
59237 2008-01-11  Bruno Haible  <bruno@clisp.org>
59238
59239         * doc/functions/memmem.texi: Add more precisions about platforms.
59240         * doc/functions/strstr.texi: Likewise.
59241
59242 2008-01-10  Eric Blake  <ebb9@byu.net>
59243
59244         * m4/strstr.m4: Delete cruft from copy-n-paste.
59245         Reported by Bruno Haible.
59246
59247 2008-01-10  Bruno Haible  <bruno@clisp.org>
59248
59249         Make c-strstr rely on strstr.
59250         * lib/c-strstr.c: Don't include str-kmp.h.
59251         (c_strstr): Define in terms of strstr.
59252         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59253         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59254
59255 2008-01-10  Bruno Haible  <bruno@clisp.org>
59256
59257         * doc/gnulib.texi (String Functions in C Locale): New section.
59258         * doc/c-ctype.texi: New file.
59259         * doc/c-strcase.texi: New file.
59260         * doc/c-strcaseeq.texi: New file.
59261         * doc/c-strcasestr.texi: New file.
59262         * doc/c-strstr.texi: New file.
59263         * doc/c-strtod.texi: New file.
59264         * doc/c-strtold.texi: New file.
59265
59266 2008-01-10  Eric Blake  <ebb9@byu.net>
59267
59268         * lib/relocatable.h: Fix a comment.
59269
59270 2008-01-10  Eric Blake  <ebb9@byu.net>
59271
59272         Share two-way algorithm.
59273         * lib/str-two-way.h: New file, merged from...
59274         * lib/memmem.c: ...here...
59275         * lib/strstr.c: ...and here.
59276         * modules/memmem (Files): Use it.
59277         * modules/strstr (Files): Likewise.
59278
59279         Avoid quadratic strstr implementations.
59280         * lib/strstr.c: New file.
59281         * m4/strstr.m4: Likewise.
59282         * modules/strstr: Likewise.
59283         * modules/strstr-tests: Likewise.
59284         * tests/test-strstr.c: Likewise.
59285         * lib/string.in.h (rpl_strstr): Declare.
59286         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59288         * modules/string (Makefile.am): Likewise.
59289         * MODULES.html.sh (string handling): Mention new module.
59290         * doc/functions/strstr.texi (strstr): Document the bug.
59291
59292 2008-01-10  Bruno Haible  <bruno@clisp.org>
59293
59294         * lib/relocatable.h (relocate): State whether result is freshly
59295         allocated or not.
59296         * lib/relocatable.c (relocate): Return a freshly allocated string
59297         instead of a pointer to a privately held string.
59298         Reported by Sylvain Beucler <beuc@gnu.org>.
59299
59300 2008-01-10  Colin Watson  <cjwatson@debian.org>
59301
59302         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59303         s/S_ISNLK/S_ISLNK/.
59304
59305 2008-01-09  Bruno Haible  <bruno@clisp.org>
59306
59307         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59308         and other files.
59309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59310         if it's only a guess.
59311         * modules/memmem: Simplify by depending on memmem-simple.
59312
59313 2008-01-09  Bruno Haible  <bruno@clisp.org>
59314
59315         Work around OpenBSD 4.0 tdelete() bug.
59316         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59317         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59318         macros and don't redefine the enum values.
59319         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59320         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59321         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59322
59323 2008-01-09  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59326         (main): Don't perform the tests if setlocale did not install a UTF-8
59327         locale. Needed on OpenBSD 4.0.
59328         * modules/wcwidth-tests (Depends-on): Add localcharset.
59329
59330 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59333         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59334         * NEWS: announce this.
59335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59336
59337 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59338         and Eric Blake  <ebb9@byu.net>
59339
59340         Add memmem-simple module.
59341         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59342         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59343         * modules/memmem-simple: New file.
59344         * modules/memmem (Description): Tweak.
59345         * MODULES.html.sh (string handling): Mention new module.
59346         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59347         addressed by memmem-simple.
59348         * NEWS: Document the difference.
59349
59350 2008-01-09  Eric Blake  <ebb9@byu.net>
59351
59352         Give gcc some memmem optimization hints.
59353         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59354         (strcasestr): Declare as pure.
59355         * modules/memmem (Maintainer): Claim my implementation.
59356
59357 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59358
59359         Support AIX 6.1 and higher.
59360         * build-aux/config.libpath: Likewise.
59361         * build-aux/config.rpath: Likewise.
59362
59363 2008-01-08  Jim Meyering  <meyering@redhat.com>
59364             Bruno Haible  <bruno@clisp.org>
59365
59366         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59367         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59368         Reported by Peter Fales in
59369         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59370
59371 2008-01-08  Bruno Haible  <bruno@clisp.org>
59372
59373         * modules/unictype/category-of (Depends-on): Add
59374         unictype/category-none.
59375         * modules/unictype/category-and-tests (Depends-on): Add
59376         unictype/category-{L,N,Lu,Nd}.
59377         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59378         * modules/unictype/category-or-tests (Depends-on): Add
59379         unictype/category-{L,N}.
59380         * modules/unictype/category-name-tests (Depends-on): Add
59381         unictype/category-{Z,Nl}.
59382         Reported by Simon Josefsson.
59383
59384 2008-01-08  Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59387         convention better.
59388         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59389         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59390         Reported by Peter Miller <millerp@canb.auug.org.au>.
59391
59392 2008-01-08  Eric Blake  <ebb9@byu.net>
59393
59394         Rewrite memmem to guarantee linear complexity without malloc.
59395         * lib/memmem.c (memmem): Use Two-Way rather than
59396         Knuth-Morris-Pratt, to allow O(1) space usage.
59397         (critical_factorization, two_way_short_needle)
59398         (two_way_long_needle): New functions.
59399         (knuth_morris_pratt): Delete.
59400         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59401         Add stdint.
59402         * tests/test-memmem.c (main): Add tests for periodic needle and
59403         sublinear performance.
59404         * doc/functions/memmem.texi (memmem): Document other deficiencies
59405         in cygwin and older glibc.
59406
59407 2008-01-08  Bruno Haible  <bruno@clisp.org>
59408
59409         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59410         augmentation.
59411
59412 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59413
59414         Add a configure time option: --disable-acl.
59415         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59416         AC_ARG_ENABLE(acl).
59417
59418 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59419
59420         * tests/test-localename.c: Don't include obsolete "setenv.h".
59421
59422         * modules/localename-tests (Depends-on): Need unsetenv.
59423
59424 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59425
59426         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59427
59428 2008-01-06  Colin Watson  <cjwatson@debian.org>
59429
59430         * users.txt: Add man-db.
59431
59432 2008-01-07  Bruno Haible  <bruno@clisp.org>
59433
59434         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59435         previous section name.
59436
59437 2008-01-07  Bruno Haible  <bruno@clisp.org>
59438
59439         * lib/progname.c (set_program_name): Don't strip off a leading
59440         "lt-" prefix outside a .libs directory.
59441         Suggested by Paul Eggert.
59442
59443 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59444             Bruno Haible  <bruno@clisp.org>
59445
59446         Improve memory cleanup in 'relocatable' module.
59447         * lib/relocatable.h (compute_curr_prefix): Change return type to
59448         'char *'.
59449         * lib/relocatable.c (compute_curr_prefix): Change return type to
59450         'char *'. Free curr_installdir after use.
59451         (relocate): Free curr_prefix_better after use.
59452         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59453
59454 2008-01-01  Bruno Haible  <bruno@clisp.org>
59455
59456         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59457         failure on older glibc systems.
59458         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59459
59460 2008-01-05  Eric Blake  <ebb9@byu.net>
59461
59462         Avoid quadratic system memmem.
59463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59464         Reported by Ralf Wildenhues.
59465
59466         Fix memmem test for mingw.
59467         * modules/memmem-tests (configure.ac): Check for alarm.
59468         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59469         it.
59470         * doc/functions/memmem.texi: New file.
59471         * doc/gnulib.texi (Function Substitutes): Add memmem.
59472         Reported by Bruno Haible.
59473
59474 2008-01-04  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59477         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59478         gl_HEADER_STRING_H_DEFAULTS.
59479
59480 2008-01-04  Eric Blake  <ebb9@byu.net>
59481
59482         Shorten duration of memmem test.
59483         * tests/test-memmem.c (main): Use alarm to declare failure if test
59484         is taking too long.
59485         Reported by Ralf Wildenhues.
59486
59487 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59488
59489         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59490         string, needed by strerror.
59491
59492 2008-01-03  Colin Watson  <cjwatson@debian.org>
59493             Bruno Haible  <bruno@clisp.org>
59494
59495         * doc/gnulib-tool.texi (Localization): New section.
59496
59497 2008-01-02  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59500         variables to 'unsigned char *' type.
59501         Reported by Paul Eggert.
59502
59503 2008-01-02  Jim Meyering  <jim@meyering.net>
59504
59505         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59506
59507 2007-12-31  Jim Meyering  <jim@meyering.net>
59508
59509         Avoid use of private FTS type name.
59510         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59511
59512 2007-12-30  Karl Berry  <karl@gnu.org>
59513
59514         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59515         work around defect in Texinfo and/or the standalone Info browser.
59516
59517 2007-12-30  Bruno Haible  <bruno@clisp.org>
59518
59519         Unify 5 copies of the KMP code.
59520         * lib/str-kmp.h: New file.
59521         * lib/c-strcasestr.c: Include str-kmp.h.
59522         (knuth_morris_pratt): Remove function.
59523         (c_strcasestr): Update.
59524         * lib/c-strstr.c: Include str-kmp.h.
59525         (knuth_morris_pratt): Remove function.
59526         (c_strcasestr): Update.
59527         * lib/mbscasestr.c: Include str-kmp.h.
59528         (knuth_morris_pratt_unibyte): Remove function.
59529         * lib/mbsstr.c: Include str-kmp.h.
59530         (knuth_morris_pratt_unibyte): Remove function.
59531         * lib/strcasestr.c: Include str-kmp.h.
59532         (knuth_morris_pratt): Remove function.
59533         (strcasestr): Update.
59534         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59535         * modules/c-strstr (Files): Likewise.
59536         * modules/mbscasestr (Files): Likewise.
59537         * modules/mbsstr (Files): Likewise.
59538         * modules/strcasestr (Files): Likewise.
59539         Suggested by Paul Eggert.
59540
59541 2007-12-30  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59544         defined.
59545
59546 2007-12-30  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/xmalloca.h: Include xalloc.h.
59549         (xnmalloca): New macro.
59550
59551 2007-12-30  Bruno Haible  <bruno@clisp.org>
59552
59553         * lib/malloca.h (nmalloca): New macro.
59554         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59555         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59556         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59557         knuth_morris_pratt_multibyte): Likewise.
59558         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59559         knuth_morris_pratt_multibyte): Likewise.
59560         * lib/memmem.c (knuth_morris_pratt): Likewise.
59561         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59562
59563 2007-12-25  Bruno Haible  <bruno@clisp.org>
59564
59565         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59566         * lib/glob.c: Don't include openat.h.
59567         (link_exists2_p): Add back the code that deals with the
59568         !GLOB_ALTDIRFUNC case.
59569         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59570         let it do the filename concatenation.
59571         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59572         * modules/glob (Depends-on): Remove openat.
59573
59574 2007-12-31  Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/dirfd (License): Change to LGPLv2+.
59577         Approved by Jim Meyering.
59578
59579 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59582         when multiplying M by sizeof (size_t).
59583
59584 2007-12-10  Martin Lambers  <marlam@marlam.de>
59585
59586         Override getpagesize on mingw.
59587         * lib/getpagesize.c: New file.
59588         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59589         * modules/getpagesize (Files): Add lib/getpagesize.c.
59590         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59592         REPLACE_GETPAGESIZE.
59593         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59594
59595 2007-12-25  Bruno Haible  <bruno@clisp.org>
59596
59597         * modules/localcharset (Notice): New field.
59598         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59599         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59600
59601 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59602             Bruno Haible  <bruno@clisp.org>
59603
59604         Avoid using the syntax symbol() in formatted documentation.
59605         * MODULES.html.sh (func_module): When replacing symbol() with a
59606         hyperlink, remove the parentheses. Show an error if some remain.
59607         Recognize and render the '...' syntax.
59608         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59609         Rework. Add paragraph about GCC's inlining.
59610         * doc/alloca.texi: Likewise.
59611         * doc/error.texi: Remove parentheses from symbol reference.
59612         * doc/gnulib-intro.texi: Likewise.
59613         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59614         * modules/fnmatch (Description): Reword to say "the ... function".
59615         * modules/full-read (Description): Likewise.
59616         * modules/full-write (Description): Likewise.
59617         * modules/safe-read (Description): Likewise.
59618         * modules/safe-write (Description): Likewise.
59619         * modules/strchrnul (Description): Likewise.
59620         * modules/trim (Description): Likewise.
59621         * modules/error (Description): Remove parentheses from symbol
59622         references.
59623         * modules/verror (Description): Likewise.
59624         Reported by Karl Berry.
59625
59626 2007-12-25  Bruno Haible  <bruno@clisp.org>
59627
59628         Fixup after 2007-10-16 commit.
59629         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59630
59631 2007-12-24  Bruno Haible  <bruno@clisp.org>
59632
59633         Make --enable-relocatable work with DESTDIR.
59634         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59635         to compute installdir from destprog.
59636         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59637         also set the RELOC_DESTDIR variable.
59638         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59639
59640 2007-12-24  Bruno Haible  <bruno@clisp.org>
59641
59642         Fix link error due to xalloc_die().
59643         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59644         of xreadlink.
59645         * lib/relocwrapper.c: Update comments.
59646         * build-aux/install-reloc: Remove xreadlink.c from file list.
59647         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59648         xreadlink.c.
59649         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59650
59651 2007-12-24  Bruno Haible  <bruno@clisp.org>
59652
59653         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59654         * lib/setenv.h: Remove file.
59655         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59656         lib/setenv.h.
59657         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59658         (Depends-on): Add stdlib.
59659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59660         gl_FUNC_UNSETENV.
59661         (Include): Replace setenv.h with <stdlib.h>.
59662         * modules/unsetenv: New file.
59663         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59664         * lib/unsetenv.c: Include <stdlib.h> first.
59665         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59666         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59667         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59668         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59669         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59670         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59672         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59673         * doc/functions/unsetenv.texi: Update.
59674         * modules/xsetenv (Depends-on): Add unsetenv.
59675         * modules/getdate (Depends-on): Likewise.
59676         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59677         * lib/xsetenv.c: Don't include setenv.h.
59678         * lib/getdate.y: Likewise.
59679         * lib/relocwrapper.c: Likewise.
59680         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59681         (Depends-on): Add stdlib.
59682         * NEWS: Mention the changes.
59683         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59684
59685 2007-12-23  Bruno Haible  <bruno@clisp.org>
59686
59687         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59688         indentation.
59689
59690 2007-12-23  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/c-strcasestr.c: Add more comments.
59693         * lib/c-strstr.c: Likewise.
59694         * lib/mbscasestr.c: Likewise.
59695         * lib/mbsstr.c: Likewise.
59696         * lib/strcasestr.c: Likewise.
59697         * lib/memmem.c: Likewise.
59698
59699 2007-12-23  Bruno Haible  <bruno@clisp.org>
59700
59701         * tests/test-memmem.c: Include <string.h> first.
59702
59703 2007-12-22  Bruno Haible  <bruno@clisp.org>
59704
59705         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59706         the contents of $testsbase.
59707         Reported by Ralf Wildenhues.
59708
59709 2007-12-22  Bruno Haible  <bruno@clisp.org>
59710
59711         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59712         two variables local_ldadd_before, local_ldadd_last.
59713
59714 2007-12-20  Eric Blake  <ebb9@byu.net>
59715
59716         Work around circular library issue when cross-compiling.
59717         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59718         that progname.o does not need to pull in rpl_memcmp.
59719
59720 2007-12-19  Eric Blake  <ebb9@byu.net>
59721
59722         Fix memmem to avoid O(n^2) worst-case complexity.
59723         * lib/memmem.c (knuth_morris_pratt): New function.
59724         (memmem): Use it if first few naive iterations fail.
59725         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59726         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59727         * modules/memchr (License): Likewise.
59728         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59729         malloca.
59730         * tests/test-memmem.c: Rewrite, borrowing ideas from
59731         test-mbsstr1.c; the old version wouldn't even compile!
59732         * modules/memmem-tests: New file.
59733         * lib/string.in.h (rpl_memmem): Add declaration.
59734         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59736         REPLACE_MEMMEM.
59737
59738 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59741         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59742         before any system include files, and undef after them all.  This
59743         should fix a problem on VMS reported by John E. Malmberg in
59744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59745
59746 2007-12-17  Eric Blake  <ebb9@byu.net>
59747
59748         Revert addition of verify, for BSD/OS.
59749         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59750         can't handle large files, for the sake of obsolete platforms.
59751         * modules/fseeko (Depends-on): Remove verify.
59752         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59753         * doc/functions/ftello.texi (ftello): Likewise.
59754         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59755         Reported by Larry Jones.
59756
59757 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59758
59759         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59760         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59761
59762 2007-12-17  Jim Meyering  <meyering@redhat.com>
59763
59764         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59765         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59766         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59767         * modules/getcwd (Depends-on): Add openat.
59768         Reported by Petr Salinger.
59769
59770 2007-12-17  Bruno Haible  <bruno@clisp.org>
59771
59772         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59773         avoid a segmentation fault of the configure test on x86_64 systems.
59774
59775 2007-12-15  Jim Meyering  <meyering@redhat.com>
59776
59777         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59778
59779 2007-12-13  Eric Blake  <ebb9@byu.net>
59780
59781         Another fseek test.
59782         * tests/test-fseek.c (main): Also test ungetc handling.
59783         * tests/test-fseeko.c (main): Likewise.
59784         * modules/fseeko (Depends-on): Add verify.
59785         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59786         large.
59787         Reported by Larry Jones.
59788
59789         Fix fseeko on mingw.
59790         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59791         seek.
59792
59793         Beef up fseek tests.
59794         * tests/test-fseek.c (main): Also test eof handling.
59795         * tests/test-fseeko.c (main): Likewise.
59796         Reported by Larry Jones.
59797
59798 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59799
59800         Fix fseeko on BSD-based platforms.
59801         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59802         successful seek.
59803
59804 2007-12-12  Eric Blake  <ebb9@byu.net>
59805
59806         Allow circular dependency of separate libtests.a
59807         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59808         when use_libtests.
59809
59810 2007-12-11  Eric Blake  <ebb9@byu.net>
59811
59812         Fix bug with -0.0L in previous patch.
59813         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59814         * tests/test-isnan.c (main): Also test on zeroes.
59815         * tests/test-isnanf.c (main): Likewise.
59816         * tests/test-isnanl.h (main): Likewise.
59817
59818         Detect pseudo-denormals on x86 even when cross-compiling.
59819         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59820         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59821         invalid bit patterns that happen to satisfy ==.
59822
59823         Avoid link failures with separate libtests.a.
59824         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59825         last, to satisfy circular dependencies.
59826
59827 2007-12-11  Eric Blake  <ebb9@byu.net>
59828         and Bruno Haible  <bruno@clisp.org>
59829
59830         Fix OpenBSD 4.0 <float.h> handling of long double.
59831         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59832         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59833         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59834
59835 2007-12-11  Jim Meyering  <meyering@redhat.com>
59836
59837         * users.txt: Add libvirt.
59838
59839         Support versions of autoconf prior to 2.59c.
59840         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59841         if it is not already defined.
59842
59843 2007-12-09  Bruno Haible  <bruno@clisp.org>
59844
59845         Let 'gnulib-tool --import' collect sources needed for the tests in
59846         tests/ rather than in lib/.
59847         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59848         argument. If true, add rules to generate libtests.a, and put libtests.a
59849         into $(LDADD). Consider source files in subdirectories and set
59850         uses_subdirs.
59851         (func_emit_initmacro_start, func_emit_initmacro_end,
59852         func_emit_initmacro_done): Pass all arguments explicitly.
59853         (func_import): Determine two module lists main_modules,
59854         testsrelated_modules. Determine use_libtests. Determine two variables
59855         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59856         instead of just sed_transform_lib_file. Determine two variables
59857         main_files and testsrelated_files. Compute 'files' as the union of
59858         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59859         func_add_or_update. In the generated gnulib-comp.m4, collect the
59860         object files for tests/ in different variables than those for lib/.
59861         Substitute LIBTESTS_LIBDEPS.
59862         (func_create_testdir): Combine the uses_subdirs results from
59863         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59864
59865 2007-12-09  Bruno Haible  <bruno@clisp.org>
59866
59867         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59868         the build-aux directory.
59869
59870 2007-12-09  Bruno Haible  <bruno@clisp.org>
59871
59872         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59873         introduced on 2006-09-09.
59874
59875 2007-12-07  Jim Meyering  <meyering@redhat.com>
59876
59877         Let these macros work also with autoconf-2.59.
59878         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59879         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59880         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59881
59882 2007-12-06  Jim Meyering  <meyering@redhat.com>
59883
59884         Avoid a configure-time syntax error in gl_FUNC_ACL.
59885         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59886         function in each branch, before testing the cache variable.
59887
59888 2007-12-04  Eric Blake  <ebb9@byu.net>
59889
59890         Make scripts executable.
59891         * build-aux/config.guess: Add execute permissions.
59892         * build-aux/config.sub: Likewise.
59893         * build-aux/gendocs.sh: Likewise.
59894
59895         Fix frexp on mingw.
59896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59897         cross-compiling.
59898         * doc/functions/frexp.texi (frexp): Document the bug.
59899
59900         Make cygwin fseeko check more reliable.
59901         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59902         version numbers, rather than unrelated feature check.
59903         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59904         * doc/functions/ftello.texi (ftello): Likewise.
59905         Reported by Bruno Haible.
59906
59907         * m4/strerror.m4: Bump version number.
59908
59909 2007-12-03  Bruno Haible  <bruno@clisp.org>
59910
59911         * doc/functions/mprotect.texi: Mention the mingw problem.
59912
59913 2007-12-03  Eric Blake  <ebb9@byu.net>
59914
59915         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59916         REPLACE_STRERROR is initialized before this macro.
59917
59918 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59921         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59922         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59923         put -lsec in even for programs other than 'ls'.  This fixes a problem
59924         for gettext reported by Bruno Haible in
59925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59926         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59927         Add support for Solaris 10.  This isn't efficient, but should get the
59928         job done for now.
59929
59930 2007-12-03  James Youngman  <jay@gnu.org>
59931
59932         * doc/regexprops-generic.texi: change "an close-group" to "a
59933         close-group" and "illegal" to "not allowed".
59934
59935 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59936
59937         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59938         pr_byname.h. Needed for the rare case when the maintainer has done
59939         "make maintainer-clean" in the source directory and then attempts a
59940         build outside the source directory.
59941         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59942         scripts_byname.h.
59943
59944 2007-12-02  Martin Lambers <marlam@marlam.de>
59945             Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/getpagesize.h: Remove file.
59948         * lib/unistd.in.h: Include declaration of getpagesize here.
59949         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59950         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59951         HAVE_SYS_PARAM_H.
59952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59953         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59954         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59955         (Depends-on): Add unistd.
59956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59957         (Include): Use <unistd.h> instead of getpagesize.h.
59958         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59959         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59960         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59961         gl_GETPAGESIZE invocation, already handled by module dependency.
59962         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59963
59964 2007-12-02  Bruno Haible  <bruno@clisp.org>
59965
59966         * modules/strings-tests: New file.
59967         * tests/test-strings.c: New file.
59968
59969         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59970         * lib/strings.in.h: New file.
59971         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59972         * m4/strings_h.m4: New file.
59973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59974         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59975         * modules/strings: New file.
59976         * modules/string (Makefile.am): Update.
59977         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59978         Reported by Karl Berry.
59979
59980 2007-12-01  Eric Blake  <ebb9@byu.net>
59981
59982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59983         accommodate fix in cygwin 1.5.25.
59984
59985 2007-12-01  Jim Meyering  <meyering@redhat.com>
59986
59987         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59988         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59989         that would inhibit utf8-optimization of a regexp containing line-
59990         or buffer-anchors, e.g., `^', `$'.
59991
59992 2007-11-30  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59995         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59996         glthread_recursive_lock_init.
59997         * lib/lock.c (glthread_recursive_lock_init)
59998         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60000
60001 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         New function qset_acl, like set_acl but with syscall semantics.
60004         * lib/acl.h (qset_acl): New decl.
60005         * lib/acl.c (qset_acl): New function.
60006         (set_acl): Use new function.  Use more-consistent diagnostics.
60007
60008 2007-11-28  Jim Meyering  <meyering@redhat.com>
60009
60010         * modules/physmem (License): Change from GPL to LGPLv2+.
60011
60012 2007-11-26  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60015         'long double' type has excess precision.
60016         Reported by Jim Meyering in
60017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60018
60019 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60020
60021         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60022         Sync from <http://gnu.org/licenses>.
60023         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60024         with license text from same location.
60025         * doc/maintain.texi, doc/standards.texi:  Sync from
60026         <http://savannah.gnu.org/projects/gnustandards>.
60027
60028 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60029         and Jim Meyering  <meyering@redhat.com>
60030
60031         Adjust getdate' grammar to accept a slightly more regular language.
60032         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60033         Before, the former was rejected.
60034         * lib/getdate.y (digits_to_date_time): New function, factored
60035         out of ...
60036         (number): ...here.  Just call digits_to_date_time.
60037         (hybrid): New non-terminal to handle an <unsigned number,
60038         signed relative offset> sequence consistently.
60039
60040 2007-11-18  Jim Meyering  <meyering@redhat.com>
60041
60042         Pull my changes from coreutils:
60043         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60044         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60045         use of $gnulib_tool_option_extras, so that it's separated from the
60046         preceding argument.
60047
60048         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60049         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60050         parent destination directories before copying a file into place.
60051
60052 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60053
60054         bootstrap: work also with 4-argument variant of AC_INIT
60055         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60056
60057 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         Port test-getaddrinfo to Solaris.
60060         Problem reported by Bruno Haible in
60061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60062         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60063         explanation of setting 'hints'.
60064         Don't reject an implementation merely because it returns EAI_SERVICE.
60065         (EAI_SERVICE): Define to 0 if not defined.
60066
60067 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         The license of gnu-make and posix-shell is now "GPLed build tool".
60070         * modules/gnu-make (License): Likewise.
60071         * modules/posix-shell (License): Likewise.
60072
60073         New module posix-shell, for determining a POSIX shell
60074         or perhaps something that is close enough to a POSIX shell.
60075         * m4/posix-shell.m4: New file.
60076         * modules/posix-shell: New file.
60077
60078         * MODULES.html.sh: Mention new module.
60079
60080         New module gnu-make, for determining whether we're using GNU Make.
60081         * m4/gnu-make.m4: New file.
60082         * modules/gnu-make: New file.
60083         * MODULES.html.sh: Mention new module.
60084
60085 2007-11-14  Jim Meyering  <meyering@redhat.com>
60086
60087         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60088         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60089         use this macro to create a function _definition_.
60090         Remove useless "#undef ARGMATCH_DIE".
60091
60092 2007-11-14  Bruno Haible  <bruno@clisp.org>
60093
60094         * lib/config.charset: Update for OpenBSD 4.1.
60095         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60096
60097 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         Document 64-bit #if problems in stdint.texi.
60100         * doc/headers/stdint.texi (stdint.h): Mention problems with
60101         64-bit-#if, and how to work around them.
60102
60103         Don't insist on 'long long int' support in the preprocessor.  It
60104         breaks too many things.  For example, PRIdMAX still uses a 'long
60105         long int' format with the latest Sun compiler, even though
60106         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60107         preprocessor problem.  This causes the latest coreutils to dump
60108         core on Solaris 10 sparc with the Sun C compiler.
60109         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60110         the troublesome expressions at configure-time, not at #if-time.
60111         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60112         preprocessor.
60113         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60114         compile-time C checks, done at 'configure'-time.
60115         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60116         * modules/inttypes (Makefile): Substitute the new symbols that
60117         gl_INTTYPES_H now generates.
60118         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60119
60120 2007-11-12  Bruno Haible  <bruno@clisp.org>
60121
60122         Tests for Unicode character classification functions.
60123
60124         * modules/unictype/bidicategory-byname-tests: New file.
60125         * modules/unictype/bidicategory-name-tests: New file.
60126         * modules/unictype/bidicategory-of-tests: New file.
60127         * modules/unictype/bidicategory-test-tests: New file.
60128         * modules/unictype/block-list-tests: New file.
60129         * modules/unictype/block-of-tests: New file.
60130         * modules/unictype/block-test-tests: New file.
60131         * modules/unictype/category-C-tests: New file.
60132         * modules/unictype/category-Cc-tests: New file.
60133         * modules/unictype/category-Cf-tests: New file.
60134         * modules/unictype/category-Cn-tests: New file.
60135         * modules/unictype/category-Co-tests: New file.
60136         * modules/unictype/category-Cs-tests: New file.
60137         * modules/unictype/category-L-tests: New file.
60138         * modules/unictype/category-Ll-tests: New file.
60139         * modules/unictype/category-Lm-tests: New file.
60140         * modules/unictype/category-Lo-tests: New file.
60141         * modules/unictype/category-Lt-tests: New file.
60142         * modules/unictype/category-Lu-tests: New file.
60143         * modules/unictype/category-M-tests: New file.
60144         * modules/unictype/category-Mc-tests: New file.
60145         * modules/unictype/category-Me-tests: New file.
60146         * modules/unictype/category-Mn-tests: New file.
60147         * modules/unictype/category-N-tests: New file.
60148         * modules/unictype/category-Nd-tests: New file.
60149         * modules/unictype/category-Nl-tests: New file.
60150         * modules/unictype/category-No-tests: New file.
60151         * modules/unictype/category-P-tests: New file.
60152         * modules/unictype/category-Pc-tests: New file.
60153         * modules/unictype/category-Pd-tests: New file.
60154         * modules/unictype/category-Pe-tests: New file.
60155         * modules/unictype/category-Pf-tests: New file.
60156         * modules/unictype/category-Pi-tests: New file.
60157         * modules/unictype/category-Po-tests: New file.
60158         * modules/unictype/category-Ps-tests: New file.
60159         * modules/unictype/category-S-tests: New file.
60160         * modules/unictype/category-Sc-tests: New file.
60161         * modules/unictype/category-Sk-tests: New file.
60162         * modules/unictype/category-Sm-tests: New file.
60163         * modules/unictype/category-So-tests: New file.
60164         * modules/unictype/category-Z-tests: New file.
60165         * modules/unictype/category-Zl-tests: New file.
60166         * modules/unictype/category-Zp-tests: New file.
60167         * modules/unictype/category-Zs-tests: New file.
60168         * modules/unictype/category-and-not-tests: New file.
60169         * modules/unictype/category-and-tests: New file.
60170         * modules/unictype/category-byname-tests: New file.
60171         * modules/unictype/category-name-tests: New file.
60172         * modules/unictype/category-none-tests: New file.
60173         * modules/unictype/category-of-tests: New file.
60174         * modules/unictype/category-or-tests: New file.
60175         * modules/unictype/category-test-withtable-tests: New file.
60176         * modules/unictype/combining-class-tests: New file.
60177         * modules/unictype/ctype-alnum-tests: New file.
60178         * modules/unictype/ctype-alpha-tests: New file.
60179         * modules/unictype/ctype-blank-tests: New file.
60180         * modules/unictype/ctype-cntrl-tests: New file.
60181         * modules/unictype/ctype-digit-tests: New file.
60182         * modules/unictype/ctype-graph-tests: New file.
60183         * modules/unictype/ctype-lower-tests: New file.
60184         * modules/unictype/ctype-print-tests: New file.
60185         * modules/unictype/ctype-punct-tests: New file.
60186         * modules/unictype/ctype-space-tests: New file.
60187         * modules/unictype/ctype-upper-tests: New file.
60188         * modules/unictype/ctype-xdigit-tests: New file.
60189         * modules/unictype/decimal-digit-tests: New file.
60190         * modules/unictype/digit-tests: New file.
60191         * modules/unictype/mirror-tests: New file.
60192         * modules/unictype/numeric-tests: New file.
60193         * modules/unictype/property-alphabetic-tests: New file.
60194         * modules/unictype/property-ascii-hex-digit-tests: New file.
60195         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60196         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60197         * modules/unictype/property-bidi-block-separator-tests: New file.
60198         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60199         * modules/unictype/property-bidi-common-separator-tests: New file.
60200         * modules/unictype/property-bidi-control-tests: New file.
60201         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60202         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60203         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60204         * modules/unictype/property-bidi-european-digit-tests: New file.
60205         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60206         * modules/unictype/property-bidi-left-to-right-tests: New file.
60207         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60208         * modules/unictype/property-bidi-other-neutral-tests: New file.
60209         * modules/unictype/property-bidi-pdf-tests: New file.
60210         * modules/unictype/property-bidi-segment-separator-tests: New file.
60211         * modules/unictype/property-bidi-whitespace-tests: New file.
60212         * modules/unictype/property-byname-tests: New file.
60213         * modules/unictype/property-combining-tests: New file.
60214         * modules/unictype/property-composite-tests: New file.
60215         * modules/unictype/property-currency-symbol-tests: New file.
60216         * modules/unictype/property-dash-tests: New file.
60217         * modules/unictype/property-decimal-digit-tests: New file.
60218         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60219         * modules/unictype/property-deprecated-tests: New file.
60220         * modules/unictype/property-diacritic-tests: New file.
60221         * modules/unictype/property-extender-tests: New file.
60222         * modules/unictype/property-format-control-tests: New file.
60223         * modules/unictype/property-grapheme-base-tests: New file.
60224         * modules/unictype/property-grapheme-extend-tests: New file.
60225         * modules/unictype/property-grapheme-link-tests: New file.
60226         * modules/unictype/property-hex-digit-tests: New file.
60227         * modules/unictype/property-hyphen-tests: New file.
60228         * modules/unictype/property-id-continue-tests: New file.
60229         * modules/unictype/property-id-start-tests: New file.
60230         * modules/unictype/property-ideographic-tests: New file.
60231         * modules/unictype/property-ids-binary-operator-tests: New file.
60232         * modules/unictype/property-ids-trinary-operator-tests: New file.
60233         * modules/unictype/property-ignorable-control-tests: New file.
60234         * modules/unictype/property-iso-control-tests: New file.
60235         * modules/unictype/property-join-control-tests: New file.
60236         * modules/unictype/property-left-of-pair-tests: New file.
60237         * modules/unictype/property-line-separator-tests: New file.
60238         * modules/unictype/property-logical-order-exception-tests: New file.
60239         * modules/unictype/property-lowercase-tests: New file.
60240         * modules/unictype/property-math-tests: New file.
60241         * modules/unictype/property-non-break-tests: New file.
60242         * modules/unictype/property-not-a-character-tests: New file.
60243         * modules/unictype/property-numeric-tests: New file.
60244         * modules/unictype/property-other-alphabetic-tests: New file.
60245         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60246         * modules/unictype/property-other-grapheme-extend-tests: New file.
60247         * modules/unictype/property-other-id-continue-tests: New file.
60248         * modules/unictype/property-other-id-start-tests: New file.
60249         * modules/unictype/property-other-lowercase-tests: New file.
60250         * modules/unictype/property-other-math-tests: New file.
60251         * modules/unictype/property-other-uppercase-tests: New file.
60252         * modules/unictype/property-paired-punctuation-tests: New file.
60253         * modules/unictype/property-paragraph-separator-tests: New file.
60254         * modules/unictype/property-pattern-syntax-tests: New file.
60255         * modules/unictype/property-pattern-white-space-tests: New file.
60256         * modules/unictype/property-private-use-tests: New file.
60257         * modules/unictype/property-punctuation-tests: New file.
60258         * modules/unictype/property-quotation-mark-tests: New file.
60259         * modules/unictype/property-radical-tests: New file.
60260         * modules/unictype/property-sentence-terminal-tests: New file.
60261         * modules/unictype/property-soft-dotted-tests: New file.
60262         * modules/unictype/property-space-tests: New file.
60263         * modules/unictype/property-terminal-punctuation-tests: New file.
60264         * modules/unictype/property-test-tests: New file.
60265         * modules/unictype/property-titlecase-tests: New file.
60266         * modules/unictype/property-unassigned-code-value-tests: New file.
60267         * modules/unictype/property-unified-ideograph-tests: New file.
60268         * modules/unictype/property-uppercase-tests: New file.
60269         * modules/unictype/property-variation-selector-tests: New file.
60270         * modules/unictype/property-white-space-tests: New file.
60271         * modules/unictype/property-xid-continue-tests: New file.
60272         * modules/unictype/property-xid-start-tests: New file.
60273         * modules/unictype/property-zero-width-tests: New file.
60274         * modules/unictype/scripts-tests: New file.
60275         * modules/unictype/syntax-c-ident-tests: New file.
60276         * modules/unictype/syntax-c-whitespace-tests: New file.
60277         * modules/unictype/syntax-java-ident-tests: New file.
60278         * modules/unictype/syntax-java-whitespace-tests: New file.
60279         * tests/unictype/test-bidi_byname.c: New file.
60280         * tests/unictype/test-bidi_name.c: New file.
60281         * tests/unictype/test-bidi_of.c: New file.
60282         * tests/unictype/test-bidi_test.c: New file.
60283         * tests/unictype/test-block_list.c: New file.
60284         * tests/unictype/test-block_of.c: New file.
60285         * tests/unictype/test-block_test.c: New file.
60286         * tests/unictype/test-categ_and.c: New file.
60287         * tests/unictype/test-categ_and_not.c: New file.
60288         * tests/unictype/test-categ_byname.c: New file.
60289         * tests/unictype/test-categ_name.c: New file.
60290         * tests/unictype/test-categ_none.c: New file.
60291         * tests/unictype/test-categ_of.c: New file.
60292         * tests/unictype/test-categ_or.c: New file.
60293         * tests/unictype/test-categ_test_withtable.c: New file.
60294         * tests/unictype/test-combining.c: New file.
60295         * tests/unictype/test-decdigit.c: New file.
60296         * tests/unictype/test-digit.c: New file.
60297         * tests/unictype/test-mirror.c: New file.
60298         * tests/unictype/test-numeric.c: New file.
60299         * tests/unictype/test-pr_byname.c: New file.
60300         * tests/unictype/test-pr_test.c: New file.
60301         * tests/unictype/test-predicate-part1.h: New file.
60302         * tests/unictype/test-predicate-part2.h: New file.
60303         * tests/unictype/test-scripts.c: New file.
60304         * tests/unictype/test-sy_c_ident.c: New file.
60305         * tests/unictype/test-sy_java_ident.c: New file.
60306
60307         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60308         for Unicode 5.0.0.
60309         * tests/unictype/test-categ_Cc.c: Likewise.
60310         * tests/unictype/test-categ_Cf.c: Likewise.
60311         * tests/unictype/test-categ_Cn.c: Likewise.
60312         * tests/unictype/test-categ_Co.c: Likewise.
60313         * tests/unictype/test-categ_Cs.c: Likewise.
60314         * tests/unictype/test-categ_L.c: Likewise.
60315         * tests/unictype/test-categ_Ll.c: Likewise.
60316         * tests/unictype/test-categ_Lm.c: Likewise.
60317         * tests/unictype/test-categ_Lo.c: Likewise.
60318         * tests/unictype/test-categ_Lt.c: Likewise.
60319         * tests/unictype/test-categ_Lu.c: Likewise.
60320         * tests/unictype/test-categ_M.c: Likewise.
60321         * tests/unictype/test-categ_Mc.c: Likewise.
60322         * tests/unictype/test-categ_Me.c: Likewise.
60323         * tests/unictype/test-categ_Mn.c: Likewise.
60324         * tests/unictype/test-categ_N.c: Likewise.
60325         * tests/unictype/test-categ_Nd.c: Likewise.
60326         * tests/unictype/test-categ_Nl.c: Likewise.
60327         * tests/unictype/test-categ_No.c: Likewise.
60328         * tests/unictype/test-categ_P.c: Likewise.
60329         * tests/unictype/test-categ_Pc.c: Likewise.
60330         * tests/unictype/test-categ_Pd.c: Likewise.
60331         * tests/unictype/test-categ_Pe.c: Likewise.
60332         * tests/unictype/test-categ_Pf.c: Likewise.
60333         * tests/unictype/test-categ_Pi.c: Likewise.
60334         * tests/unictype/test-categ_Po.c: Likewise.
60335         * tests/unictype/test-categ_Ps.c: Likewise.
60336         * tests/unictype/test-categ_S.c: Likewise.
60337         * tests/unictype/test-categ_Sc.c: Likewise.
60338         * tests/unictype/test-categ_Sk.c: Likewise.
60339         * tests/unictype/test-categ_Sm.c: Likewise.
60340         * tests/unictype/test-categ_So.c: Likewise.
60341         * tests/unictype/test-categ_Z.c: Likewise.
60342         * tests/unictype/test-categ_Zl.c: Likewise.
60343         * tests/unictype/test-categ_Zp.c: Likewise.
60344         * tests/unictype/test-categ_Zs.c: Likewise.
60345         * tests/unictype/test-ctype_alnum.c: Likewise.
60346         * tests/unictype/test-ctype_alpha.c: Likewise.
60347         * tests/unictype/test-ctype_blank.c: Likewise.
60348         * tests/unictype/test-ctype_cntrl.c: Likewise.
60349         * tests/unictype/test-ctype_digit.c: Likewise.
60350         * tests/unictype/test-ctype_graph.c: Likewise.
60351         * tests/unictype/test-ctype_lower.c: Likewise.
60352         * tests/unictype/test-ctype_print.c: Likewise.
60353         * tests/unictype/test-ctype_punct.c: Likewise.
60354         * tests/unictype/test-ctype_space.c: Likewise.
60355         * tests/unictype/test-ctype_upper.c: Likewise.
60356         * tests/unictype/test-ctype_xdigit.c: Likewise.
60357         * tests/unictype/test-decdigit.h: Likewise.
60358         * tests/unictype/test-digit.h: Likewise.
60359         * tests/unictype/test-numeric.h: Likewise.
60360         * tests/unictype/test-pr_alphabetic.c: Likewise.
60361         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60362         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60363         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60364         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60365         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60366         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60367         * tests/unictype/test-pr_bidi_control.c: Likewise.
60368         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60369         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60370         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60371         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60372         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60373         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60374         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60375         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60376         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60377         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60378         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60379         * tests/unictype/test-pr_combining.c: Likewise.
60380         * tests/unictype/test-pr_composite.c: Likewise.
60381         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60382         * tests/unictype/test-pr_dash.c: Likewise.
60383         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60384         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60385         * tests/unictype/test-pr_deprecated.c: Likewise.
60386         * tests/unictype/test-pr_diacritic.c: Likewise.
60387         * tests/unictype/test-pr_extender.c: Likewise.
60388         * tests/unictype/test-pr_format_control.c: Likewise.
60389         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60390         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60391         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60392         * tests/unictype/test-pr_hex_digit.c: Likewise.
60393         * tests/unictype/test-pr_hyphen.c: Likewise.
60394         * tests/unictype/test-pr_id_continue.c: Likewise.
60395         * tests/unictype/test-pr_id_start.c: Likewise.
60396         * tests/unictype/test-pr_ideographic.c: Likewise.
60397         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60398         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60399         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60400         * tests/unictype/test-pr_iso_control.c: Likewise.
60401         * tests/unictype/test-pr_join_control.c: Likewise.
60402         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60403         * tests/unictype/test-pr_line_separator.c: Likewise.
60404         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60405         * tests/unictype/test-pr_lowercase.c: Likewise.
60406         * tests/unictype/test-pr_math.c: Likewise.
60407         * tests/unictype/test-pr_non_break.c: Likewise.
60408         * tests/unictype/test-pr_not_a_character.c: Likewise.
60409         * tests/unictype/test-pr_numeric.c: Likewise.
60410         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60411         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60412         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60413         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60414         * tests/unictype/test-pr_other_id_start.c: Likewise.
60415         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60416         * tests/unictype/test-pr_other_math.c: Likewise.
60417         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60418         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60419         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60420         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60421         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60422         * tests/unictype/test-pr_private_use.c: Likewise.
60423         * tests/unictype/test-pr_punctuation.c: Likewise.
60424         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60425         * tests/unictype/test-pr_radical.c: Likewise.
60426         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60427         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60428         * tests/unictype/test-pr_space.c: Likewise.
60429         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60430         * tests/unictype/test-pr_titlecase.c: Likewise.
60431         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60432         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60433         * tests/unictype/test-pr_uppercase.c: Likewise.
60434         * tests/unictype/test-pr_variation_selector.c: Likewise.
60435         * tests/unictype/test-pr_white_space.c: Likewise.
60436         * tests/unictype/test-pr_xid_continue.c: Likewise.
60437         * tests/unictype/test-pr_xid_start.c: Likewise.
60438         * tests/unictype/test-pr_zero_width.c: Likewise.
60439         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60440         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60441
60442 2007-11-12  Bruno Haible  <bruno@clisp.org>
60443
60444         Unicode character classification functions.
60445         * lib/unictype.h: New file.
60446         * modules/unictype/base: New file.
60447         * modules/unictype/category-L: New file.
60448         * modules/unictype/category-Lu: New file.
60449         * modules/unictype/category-Ll: New file.
60450         * modules/unictype/category-Lt: New file.
60451         * modules/unictype/category-Lm: New file.
60452         * modules/unictype/category-Lo: New file.
60453         * modules/unictype/category-M: New file.
60454         * modules/unictype/category-Mn: New file.
60455         * modules/unictype/category-Mc: New file.
60456         * modules/unictype/category-Me: New file.
60457         * modules/unictype/category-N: New file.
60458         * modules/unictype/category-Nd: New file.
60459         * modules/unictype/category-Nl: New file.
60460         * modules/unictype/category-No: New file.
60461         * modules/unictype/category-P: New file.
60462         * modules/unictype/category-Pc: New file.
60463         * modules/unictype/category-Pd: New file.
60464         * modules/unictype/category-Ps: New file.
60465         * modules/unictype/category-Pe: New file.
60466         * modules/unictype/category-Pi: New file.
60467         * modules/unictype/category-Pf: New file.
60468         * modules/unictype/category-Po: New file.
60469         * modules/unictype/category-S: New file.
60470         * modules/unictype/category-Sm: New file.
60471         * modules/unictype/category-Sc: New file.
60472         * modules/unictype/category-Sk: New file.
60473         * modules/unictype/category-So: New file.
60474         * modules/unictype/category-Z: New file.
60475         * modules/unictype/category-Zs: New file.
60476         * modules/unictype/category-Zl: New file.
60477         * modules/unictype/category-Zp: New file.
60478         * modules/unictype/category-C: New file.
60479         * modules/unictype/category-Cc: New file.
60480         * modules/unictype/category-Cf: New file.
60481         * modules/unictype/category-Cs: New file.
60482         * modules/unictype/category-Co: New file.
60483         * modules/unictype/category-Cn: New file.
60484         * modules/unictype/category-or: New file.
60485         * modules/unictype/category-of: New file.
60486         * modules/unictype/category-test: New file.
60487         * modules/unictype/category-test-withtable: New file.
60488         * modules/unictype/category-byname: New file.
60489         * modules/unictype/category-none: New file.
60490         * modules/unictype/category-and: New file.
60491         * modules/unictype/category-and-not: New file.
60492         * modules/unictype/category-name: New file.
60493         * modules/unictype/combining-class: New file.
60494         * modules/unictype/category-all: New file.
60495         * modules/unictype/bidicategory-all: New file.
60496         * modules/unictype/bidicategory-byname: New file.
60497         * modules/unictype/bidicategory-name: New file.
60498         * modules/unictype/bidicategory-of: New file.
60499         * modules/unictype/bidicategory-test: New file.
60500         * modules/unictype/decimal-digit: New file.
60501         * modules/unictype/digit: New file.
60502         * modules/unictype/numeric: New file.
60503         * modules/unictype/mirror: New file.
60504         * modules/unictype/property-white-space: New file.
60505         * modules/unictype/property-alphabetic: New file.
60506         * modules/unictype/property-other-alphabetic: New file.
60507         * modules/unictype/property-not-a-character: New file.
60508         * modules/unictype/property-default-ignorable-code-point: New file.
60509         * modules/unictype/property-other-default-ignorable-code-point: New
60510         file.
60511         * modules/unictype/property-deprecated: New file.
60512         * modules/unictype/property-logical-order-exception: New file.
60513         * modules/unictype/property-variation-selector: New file.
60514         * modules/unictype/property-private-use: New file.
60515         * modules/unictype/property-unassigned-code-value: New file.
60516         * modules/unictype/property-uppercase: New file.
60517         * modules/unictype/property-other-uppercase: New file.
60518         * modules/unictype/property-lowercase: New file.
60519         * modules/unictype/property-other-lowercase: New file.
60520         * modules/unictype/property-titlecase: New file.
60521         * modules/unictype/property-soft-dotted: New file.
60522         * modules/unictype/property-id-start: New file.
60523         * modules/unictype/property-other-id-start: New file.
60524         * modules/unictype/property-id-continue: New file.
60525         * modules/unictype/property-other-id-continue: New file.
60526         * modules/unictype/property-xid-start: New file.
60527         * modules/unictype/property-xid-continue: New file.
60528         * modules/unictype/property-pattern-white-space: New file.
60529         * modules/unictype/property-pattern-syntax: New file.
60530         * modules/unictype/property-join-control: New file.
60531         * modules/unictype/property-grapheme-base: New file.
60532         * modules/unictype/property-grapheme-extend: New file.
60533         * modules/unictype/property-other-grapheme-extend: New file.
60534         * modules/unictype/property-grapheme-link: New file.
60535         * modules/unictype/property-bidi-control: New file.
60536         * modules/unictype/property-bidi-left-to-right: New file.
60537         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60538         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60539         * modules/unictype/property-bidi-european-digit: New file.
60540         * modules/unictype/property-bidi-eur-num-separator: New file.
60541         * modules/unictype/property-bidi-eur-num-terminator: New file.
60542         * modules/unictype/property-bidi-arabic-digit: New file.
60543         * modules/unictype/property-bidi-common-separator: New file.
60544         * modules/unictype/property-bidi-block-separator: New file.
60545         * modules/unictype/property-bidi-segment-separator: New file.
60546         * modules/unictype/property-bidi-whitespace: New file.
60547         * modules/unictype/property-bidi-non-spacing-mark: New file.
60548         * modules/unictype/property-bidi-boundary-neutral: New file.
60549         * modules/unictype/property-bidi-pdf: New file.
60550         * modules/unictype/property-bidi-embedding-or-override: New file.
60551         * modules/unictype/property-bidi-other-neutral: New file.
60552         * modules/unictype/property-hex-digit: New file.
60553         * modules/unictype/property-ascii-hex-digit: New file.
60554         * modules/unictype/property-ideographic: New file.
60555         * modules/unictype/property-unified-ideograph: New file.
60556         * modules/unictype/property-radical: New file.
60557         * modules/unictype/property-ids-binary-operator: New file.
60558         * modules/unictype/property-ids-trinary-operator: New file.
60559         * modules/unictype/property-zero-width: New file.
60560         * modules/unictype/property-space: New file.
60561         * modules/unictype/property-non-break: New file.
60562         * modules/unictype/property-iso-control: New file.
60563         * modules/unictype/property-format-control: New file.
60564         * modules/unictype/property-dash: New file.
60565         * modules/unictype/property-hyphen: New file.
60566         * modules/unictype/property-punctuation: New file.
60567         * modules/unictype/property-line-separator: New file.
60568         * modules/unictype/property-paragraph-separator: New file.
60569         * modules/unictype/property-quotation-mark: New file.
60570         * modules/unictype/property-sentence-terminal: New file.
60571         * modules/unictype/property-terminal-punctuation: New file.
60572         * modules/unictype/property-currency-symbol: New file.
60573         * modules/unictype/property-math: New file.
60574         * modules/unictype/property-other-math: New file.
60575         * modules/unictype/property-paired-punctuation: New file.
60576         * modules/unictype/property-left-of-pair: New file.
60577         * modules/unictype/property-combining: New file.
60578         * modules/unictype/property-composite: New file.
60579         * modules/unictype/property-decimal-digit: New file.
60580         * modules/unictype/property-numeric: New file.
60581         * modules/unictype/property-diacritic: New file.
60582         * modules/unictype/property-extender: New file.
60583         * modules/unictype/property-ignorable-control: New file.
60584         * modules/unictype/property-test: New file.
60585         * modules/unictype/property-byname: New file.
60586         * modules/unictype/property-all: New file.
60587         * modules/unictype/scripts: New file.
60588         * modules/unictype/scripts-all: New file.
60589         * modules/unictype/block-of: New file.
60590         * modules/unictype/block-test: New file.
60591         * modules/unictype/block-list: New file.
60592         * modules/unictype/block-all: New file.
60593         * modules/unictype/syntax-c-whitespace: New file.
60594         * modules/unictype/syntax-java-whitespace: New file.
60595         * modules/unictype/syntax-c-ident: New file.
60596         * modules/unictype/syntax-java-ident: New file.
60597         * modules/unictype/ctype-alnum: New file.
60598         * modules/unictype/ctype-alpha: New file.
60599         * modules/unictype/ctype-cntrl: New file.
60600         * modules/unictype/ctype-digit: New file.
60601         * modules/unictype/ctype-graph: New file.
60602         * modules/unictype/ctype-lower: New file.
60603         * modules/unictype/ctype-print: New file.
60604         * modules/unictype/ctype-punct: New file.
60605         * modules/unictype/ctype-space: New file.
60606         * modules/unictype/ctype-upper: New file.
60607         * modules/unictype/ctype-xdigit: New file.
60608         * modules/unictype/ctype-blank: New file.
60609         * lib/unictype/bidi_byname.c: New file.
60610         * lib/unictype/bidi_name.c: New file.
60611         * lib/unictype/bidi_of.c: New file.
60612         * lib/unictype/bidi_test.c: New file.
60613         * lib/unictype/bitmap.h: New file.
60614         * lib/unictype/block_test.c: New file.
60615         * lib/unictype/blocks.c: New file.
60616         * lib/unictype/categ_C.c: New file.
60617         * lib/unictype/categ_Cc.c: New file.
60618         * lib/unictype/categ_Cf.c: New file.
60619         * lib/unictype/categ_Cn.c: New file.
60620         * lib/unictype/categ_Co.c: New file.
60621         * lib/unictype/categ_Cs.c: New file.
60622         * lib/unictype/categ_L.c: New file.
60623         * lib/unictype/categ_Ll.c: New file.
60624         * lib/unictype/categ_Lm.c: New file.
60625         * lib/unictype/categ_Lo.c: New file.
60626         * lib/unictype/categ_Lt.c: New file.
60627         * lib/unictype/categ_Lu.c: New file.
60628         * lib/unictype/categ_M.c: New file.
60629         * lib/unictype/categ_Mc.c: New file.
60630         * lib/unictype/categ_Me.c: New file.
60631         * lib/unictype/categ_Mn.c: New file.
60632         * lib/unictype/categ_N.c: New file.
60633         * lib/unictype/categ_Nd.c: New file.
60634         * lib/unictype/categ_Nl.c: New file.
60635         * lib/unictype/categ_No.c: New file.
60636         * lib/unictype/categ_P.c: New file.
60637         * lib/unictype/categ_Pc.c: New file.
60638         * lib/unictype/categ_Pd.c: New file.
60639         * lib/unictype/categ_Pe.c: New file.
60640         * lib/unictype/categ_Pf.c: New file.
60641         * lib/unictype/categ_Pi.c: New file.
60642         * lib/unictype/categ_Po.c: New file.
60643         * lib/unictype/categ_Ps.c: New file.
60644         * lib/unictype/categ_S.c: New file.
60645         * lib/unictype/categ_Sc.c: New file.
60646         * lib/unictype/categ_Sk.c: New file.
60647         * lib/unictype/categ_Sm.c: New file.
60648         * lib/unictype/categ_So.c: New file.
60649         * lib/unictype/categ_Z.c: New file.
60650         * lib/unictype/categ_Zl.c: New file.
60651         * lib/unictype/categ_Zp.c: New file.
60652         * lib/unictype/categ_Zs.c: New file.
60653         * lib/unictype/categ_and.c: New file.
60654         * lib/unictype/categ_and_not.c: New file.
60655         * lib/unictype/categ_byname.c: New file.
60656         * lib/unictype/categ_name.c: New file.
60657         * lib/unictype/categ_none.c: New file.
60658         * lib/unictype/categ_of.c: New file.
60659         * lib/unictype/categ_or.c: New file.
60660         * lib/unictype/categ_test.c: New file.
60661         * lib/unictype/combining.c: New file.
60662         * lib/unictype/ctype_alnum.c: New file.
60663         * lib/unictype/ctype_alpha.c: New file.
60664         * lib/unictype/ctype_blank.c: New file.
60665         * lib/unictype/ctype_cntrl.c: New file.
60666         * lib/unictype/ctype_digit.c: New file.
60667         * lib/unictype/ctype_graph.c: New file.
60668         * lib/unictype/ctype_lower.c: New file.
60669         * lib/unictype/ctype_print.c: New file.
60670         * lib/unictype/ctype_punct.c: New file.
60671         * lib/unictype/ctype_space.c: New file.
60672         * lib/unictype/ctype_upper.c: New file.
60673         * lib/unictype/ctype_xdigit.c: New file.
60674         * lib/unictype/decdigit.c: New file.
60675         * lib/unictype/digit.c: New file.
60676         * lib/unictype/identsyntaxmap.h: New file.
60677         * lib/unictype/mirror.c: New file.
60678         * lib/unictype/numeric.c: New file.
60679         * lib/unictype/pr_alphabetic.c: New file.
60680         * lib/unictype/pr_ascii_hex_digit.c: New file.
60681         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60682         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60683         * lib/unictype/pr_bidi_block_separator.c: New file.
60684         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60685         * lib/unictype/pr_bidi_common_separator.c: New file.
60686         * lib/unictype/pr_bidi_control.c: New file.
60687         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60688         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60689         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60690         * lib/unictype/pr_bidi_european_digit.c: New file.
60691         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60692         * lib/unictype/pr_bidi_left_to_right.c: New file.
60693         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60694         * lib/unictype/pr_bidi_other_neutral.c: New file.
60695         * lib/unictype/pr_bidi_pdf.c: New file.
60696         * lib/unictype/pr_bidi_segment_separator.c: New file.
60697         * lib/unictype/pr_bidi_whitespace.c: New file.
60698         * lib/unictype/pr_byname.c: New file.
60699         * lib/unictype/pr_byname.gperf: New file.
60700         * lib/unictype/pr_combining.c: New file.
60701         * lib/unictype/pr_composite.c: New file.
60702         * lib/unictype/pr_currency_symbol.c: New file.
60703         * lib/unictype/pr_dash.c: New file.
60704         * lib/unictype/pr_decimal_digit.c: New file.
60705         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60706         * lib/unictype/pr_deprecated.c: New file.
60707         * lib/unictype/pr_diacritic.c: New file.
60708         * lib/unictype/pr_extender.c: New file.
60709         * lib/unictype/pr_format_control.c: New file.
60710         * lib/unictype/pr_grapheme_base.c: New file.
60711         * lib/unictype/pr_grapheme_extend.c: New file.
60712         * lib/unictype/pr_grapheme_link.c: New file.
60713         * lib/unictype/pr_hex_digit.c: New file.
60714         * lib/unictype/pr_hyphen.c: New file.
60715         * lib/unictype/pr_id_continue.c: New file.
60716         * lib/unictype/pr_id_start.c: New file.
60717         * lib/unictype/pr_ideographic.c: New file.
60718         * lib/unictype/pr_ids_binary_operator.c: New file.
60719         * lib/unictype/pr_ids_trinary_operator.c: New file.
60720         * lib/unictype/pr_ignorable_control.c: New file.
60721         * lib/unictype/pr_iso_control.c: New file.
60722         * lib/unictype/pr_join_control.c: New file.
60723         * lib/unictype/pr_left_of_pair.c: New file.
60724         * lib/unictype/pr_line_separator.c: New file.
60725         * lib/unictype/pr_logical_order_exception.c: New file.
60726         * lib/unictype/pr_lowercase.c: New file.
60727         * lib/unictype/pr_math.c: New file.
60728         * lib/unictype/pr_non_break.c: New file.
60729         * lib/unictype/pr_not_a_character.c: New file.
60730         * lib/unictype/pr_numeric.c: New file.
60731         * lib/unictype/pr_other_alphabetic.c: New file.
60732         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60733         * lib/unictype/pr_other_grapheme_extend.c: New file.
60734         * lib/unictype/pr_other_id_continue.c: New file.
60735         * lib/unictype/pr_other_id_start.c: New file.
60736         * lib/unictype/pr_other_lowercase.c: New file.
60737         * lib/unictype/pr_other_math.c: New file.
60738         * lib/unictype/pr_other_uppercase.c: New file.
60739         * lib/unictype/pr_paired_punctuation.c: New file.
60740         * lib/unictype/pr_paragraph_separator.c: New file.
60741         * lib/unictype/pr_pattern_syntax.c: New file.
60742         * lib/unictype/pr_pattern_white_space.c: New file.
60743         * lib/unictype/pr_private_use.c: New file.
60744         * lib/unictype/pr_punctuation.c: New file.
60745         * lib/unictype/pr_quotation_mark.c: New file.
60746         * lib/unictype/pr_radical.c: New file.
60747         * lib/unictype/pr_sentence_terminal.c: New file.
60748         * lib/unictype/pr_soft_dotted.c: New file.
60749         * lib/unictype/pr_space.c: New file.
60750         * lib/unictype/pr_terminal_punctuation.c: New file.
60751         * lib/unictype/pr_test.c: New file.
60752         * lib/unictype/pr_titlecase.c: New file.
60753         * lib/unictype/pr_unassigned_code_value.c: New file.
60754         * lib/unictype/pr_unified_ideograph.c: New file.
60755         * lib/unictype/pr_uppercase.c: New file.
60756         * lib/unictype/pr_variation_selector.c: New file.
60757         * lib/unictype/pr_white_space.c: New file.
60758         * lib/unictype/pr_xid_continue.c: New file.
60759         * lib/unictype/pr_xid_start.c: New file.
60760         * lib/unictype/pr_zero_width.c: New file.
60761         * lib/unictype/scripts.c: New file.
60762         * lib/unictype/sy_c_ident.c: New file.
60763         * lib/unictype/sy_c_whitespace.c: New file.
60764         * lib/unictype/sy_java_ident.c: New file.
60765         * lib/unictype/sy_java_whitespace.c: New file.
60766
60767         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60768         Unicode 5.0.0.
60769         * lib/unictype/blocks.h: Likewise.
60770         * lib/unictype/categ_C.h: Likewise.
60771         * lib/unictype/categ_Cc.h: Likewise.
60772         * lib/unictype/categ_Cf.h: Likewise.
60773         * lib/unictype/categ_Cn.h: Likewise.
60774         * lib/unictype/categ_Co.h: Likewise.
60775         * lib/unictype/categ_Cs.h: Likewise.
60776         * lib/unictype/categ_L.h: Likewise.
60777         * lib/unictype/categ_Ll.h: Likewise.
60778         * lib/unictype/categ_Lm.h: Likewise.
60779         * lib/unictype/categ_Lo.h: Likewise.
60780         * lib/unictype/categ_Lt.h: Likewise.
60781         * lib/unictype/categ_Lu.h: Likewise.
60782         * lib/unictype/categ_M.h: Likewise.
60783         * lib/unictype/categ_Mc.h: Likewise.
60784         * lib/unictype/categ_Me.h: Likewise.
60785         * lib/unictype/categ_Mn.h: Likewise.
60786         * lib/unictype/categ_N.h: Likewise.
60787         * lib/unictype/categ_Nd.h: Likewise.
60788         * lib/unictype/categ_Nl.h: Likewise.
60789         * lib/unictype/categ_No.h: Likewise.
60790         * lib/unictype/categ_P.h: Likewise.
60791         * lib/unictype/categ_Pc.h: Likewise.
60792         * lib/unictype/categ_Pd.h: Likewise.
60793         * lib/unictype/categ_Pe.h: Likewise.
60794         * lib/unictype/categ_Pf.h: Likewise.
60795         * lib/unictype/categ_Pi.h: Likewise.
60796         * lib/unictype/categ_Po.h: Likewise.
60797         * lib/unictype/categ_Ps.h: Likewise.
60798         * lib/unictype/categ_S.h: Likewise.
60799         * lib/unictype/categ_Sc.h: Likewise.
60800         * lib/unictype/categ_Sk.h: Likewise.
60801         * lib/unictype/categ_Sm.h: Likewise.
60802         * lib/unictype/categ_So.h: Likewise.
60803         * lib/unictype/categ_Z.h: Likewise.
60804         * lib/unictype/categ_Zl.h: Likewise.
60805         * lib/unictype/categ_Zp.h: Likewise.
60806         * lib/unictype/categ_Zs.h: Likewise.
60807         * lib/unictype/categ_of.h: Likewise.
60808         * lib/unictype/combining.h: Likewise.
60809         * lib/unictype/ctype_alnum.h: Likewise.
60810         * lib/unictype/ctype_alpha.h: Likewise.
60811         * lib/unictype/ctype_blank.h: Likewise.
60812         * lib/unictype/ctype_cntrl.h: Likewise.
60813         * lib/unictype/ctype_digit.h: Likewise.
60814         * lib/unictype/ctype_graph.h: Likewise.
60815         * lib/unictype/ctype_lower.h: Likewise.
60816         * lib/unictype/ctype_print.h: Likewise.
60817         * lib/unictype/ctype_punct.h: Likewise.
60818         * lib/unictype/ctype_space.h: Likewise.
60819         * lib/unictype/ctype_upper.h: Likewise.
60820         * lib/unictype/ctype_xdigit.h: Likewise.
60821         * lib/unictype/decdigit.h: Likewise.
60822         * lib/unictype/digit.h: Likewise.
60823         * lib/unictype/mirror.h: Likewise.
60824         * lib/unictype/numeric.h: Likewise.
60825         * lib/unictype/pr_alphabetic.h: Likewise.
60826         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60827         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60828         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60829         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60830         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60831         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60832         * lib/unictype/pr_bidi_control.h: Likewise.
60833         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60834         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60835         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60836         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60837         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60838         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60839         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60840         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60841         * lib/unictype/pr_bidi_pdf.h: Likewise.
60842         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60843         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60844         * lib/unictype/pr_combining.h: Likewise.
60845         * lib/unictype/pr_composite.h: Likewise.
60846         * lib/unictype/pr_currency_symbol.h: Likewise.
60847         * lib/unictype/pr_dash.h: Likewise.
60848         * lib/unictype/pr_decimal_digit.h: Likewise.
60849         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60850         * lib/unictype/pr_deprecated.h: Likewise.
60851         * lib/unictype/pr_diacritic.h: Likewise.
60852         * lib/unictype/pr_extender.h: Likewise.
60853         * lib/unictype/pr_format_control.h: Likewise.
60854         * lib/unictype/pr_grapheme_base.h: Likewise.
60855         * lib/unictype/pr_grapheme_extend.h: Likewise.
60856         * lib/unictype/pr_grapheme_link.h: Likewise.
60857         * lib/unictype/pr_hex_digit.h: Likewise.
60858         * lib/unictype/pr_hyphen.h: Likewise.
60859         * lib/unictype/pr_id_continue.h: Likewise.
60860         * lib/unictype/pr_id_start.h: Likewise.
60861         * lib/unictype/pr_ideographic.h: Likewise.
60862         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60863         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60864         * lib/unictype/pr_ignorable_control.h: Likewise.
60865         * lib/unictype/pr_iso_control.h: Likewise.
60866         * lib/unictype/pr_join_control.h: Likewise.
60867         * lib/unictype/pr_left_of_pair.h: Likewise.
60868         * lib/unictype/pr_line_separator.h: Likewise.
60869         * lib/unictype/pr_logical_order_exception.h: Likewise.
60870         * lib/unictype/pr_lowercase.h: Likewise.
60871         * lib/unictype/pr_math.h: Likewise.
60872         * lib/unictype/pr_non_break.h: Likewise.
60873         * lib/unictype/pr_not_a_character.h: Likewise.
60874         * lib/unictype/pr_numeric.h: Likewise.
60875         * lib/unictype/pr_other_alphabetic.h: Likewise.
60876         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60877         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60878         * lib/unictype/pr_other_id_continue.h: Likewise.
60879         * lib/unictype/pr_other_id_start.h: Likewise.
60880         * lib/unictype/pr_other_lowercase.h: Likewise.
60881         * lib/unictype/pr_other_math.h: Likewise.
60882         * lib/unictype/pr_other_uppercase.h: Likewise.
60883         * lib/unictype/pr_paired_punctuation.h: Likewise.
60884         * lib/unictype/pr_paragraph_separator.h: Likewise.
60885         * lib/unictype/pr_pattern_syntax.h: Likewise.
60886         * lib/unictype/pr_pattern_white_space.h: Likewise.
60887         * lib/unictype/pr_private_use.h: Likewise.
60888         * lib/unictype/pr_punctuation.h: Likewise.
60889         * lib/unictype/pr_quotation_mark.h: Likewise.
60890         * lib/unictype/pr_radical.h: Likewise.
60891         * lib/unictype/pr_sentence_terminal.h: Likewise.
60892         * lib/unictype/pr_soft_dotted.h: Likewise.
60893         * lib/unictype/pr_space.h: Likewise.
60894         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60895         * lib/unictype/pr_titlecase.h: Likewise.
60896         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60897         * lib/unictype/pr_unified_ideograph.h: Likewise.
60898         * lib/unictype/pr_uppercase.h: Likewise.
60899         * lib/unictype/pr_variation_selector.h: Likewise.
60900         * lib/unictype/pr_white_space.h: Likewise.
60901         * lib/unictype/pr_xid_continue.h: Likewise.
60902         * lib/unictype/pr_xid_start.h: Likewise.
60903         * lib/unictype/pr_zero_width.h: Likewise.
60904         * lib/unictype/scripts.h: Likewise.
60905         * lib/unictype/scripts_byname.gperf: Likewise.
60906         * lib/unictype/sy_c_ident.h: Likewise.
60907         * lib/unictype/sy_c_whitespace.h: Likewise.
60908         * lib/unictype/sy_java_ident.h: Likewise.
60909         * lib/unictype/sy_java_whitespace.h: Likewise.
60910
60911         * lib/unictype/Makefile: New file.
60912         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60913         glibc.
60914         * lib/unictype/3level.h: New file, copied from glibc.
60915         * lib/unictype/3levelbit.h: New file.
60916
60917 2007-11-11  Bruno Haible  <bruno@clisp.org>
60918
60919         * modules/gperf: New file.
60920         * modules/iconv_open (Depends-on): Add it.
60921         (Makefile.am): Remove the GPERF definition.
60922
60923 2007-11-11  Bruno Haible  <bruno@clisp.org>
60924
60925         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60926         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60927
60928 2007-11-11  Bruno Haible  <bruno@clisp.org>
60929
60930         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60931         (usage): Remove function.
60932
60933 2007-11-11  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60936         gl_FUNC_CEILF_LIBS.
60937         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60938         gl_FUNC_CEIL_LIBS.
60939         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60940         gl_FUNC_CEILL_LIBS.
60941         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60942         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60943         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60944
60945 2007-11-11  Bruno Haible  <bruno@clisp.org>
60946
60947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60948         roundf were declared but do not exist on functions.
60949         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60950         roundl were declared but do not exist on functions.
60951         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60952         HAVE_FLOORL_AND_CEILL, respectively.
60953         Needed for Sun C on Solaris 10.
60954
60955 2007-11-11  Bruno Haible  <bruno@clisp.org>
60956
60957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60958         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60959         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60960         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60962         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60963         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60964         HAVE_DECL_ROUNDF.
60965         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60966         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60968         of HAVE_DECL_ROUND*.
60969         * modules/math (Makefile.am): Update.
60970
60971 2007-11-10  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60974         ptrdiff_t as m4/intl.m4.
60975
60976 2007-11-10  Jim Meyering  <meyering@redhat.com>
60977
60978         Avoid link failure for the argmatch test.
60979         * tests/test-argmatch.c (usage): Define function to avoid a link
60980         failure: argmatch_die requires a usage function.
60981
60982 2007-11-09  Bruno Haible  <bruno@clisp.org>
60983
60984         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60985         * doc/functions/vsnprintf.texi: Likewise.
60986         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60987         with a size argument < 2.
60988
60989 2007-11-09  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60992         buffer. Fixes an inefficiency introduced on 2007-11-03.
60993
60994 2007-11-09  Bruno Haible  <bruno@clisp.org>
60995
60996         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60997         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60998
60999 2007-11-08  Jim Meyering  <meyering@redhat.com>
61000
61001         Change cache variable name prefix "jm_" to "gl_" everywhere.
61002         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61003         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61004         * m4/uptime.m4: s/gl_/jm_/
61005
61006 2007-11-07  Bruno Haible  <bruno@clisp.org>
61007
61008         Update to GNU gettext 0.17.
61009         * m4/intl.m4: Update to GNU gettext 0.17.
61010         * m4/po.m4: Likewise.
61011         * modules/gettext (Files): Remove m4/ulonglong.m4.
61012         (configure.ac): Require gettext infrastructure from version 0.17.
61013
61014 2007-11-06  Bruno Haible  <bruno@clisp.org>
61015
61016         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61017         symbolic values are not defined in a public header.
61018         * lib/freadable.c (freadable) [QNX]: Likewise.
61019         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61020         * lib/freading.c (freading) [QNX]: Likewise.
61021         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61022         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61023         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61024         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61025         Reported by Alain Magloire.
61026
61027         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61028
61029 2007-11-05  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61032         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61033         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61034         Reported by Eric Blake.
61035
61036 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61037             Bruno Haible  <bruno@clisp.org>
61038
61039         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61040         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61041         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61042         (malloc): Undefine also before including <stdlib.h>.
61043         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61044         Needed on OSF/1 4.0.
61045
61046 2007-11-05  Jim Meyering  <meyering@redhat.com>
61047
61048         git-version-gen: sync from coreutils.
61049         * build-aux/git-version-gen: Add comments.
61050         Change the first '-' to '.' in the snapshot version string,
61051         e.g., 6.9-377-08144 -> 6.9.377-08144
61052         Remove first parameter.
61053         Don't declare a version "-dirty" merely because a time
61054         stamp has changed.
61055
61056 2007-11-04  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/lock.h: Protect all macro definitions containing an 'if'
61059         statement through a "do { ... } while (0)".
61060         * lib/tls.h: Likewise.
61061
61062 2007-11-04  Bruno Haible  <bruno@clisp.org>
61063
61064         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61065
61066 2007-11-04  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61069         * modules/fprintf-posix (Depends-on): Add nocrash.
61070         * modules/snprintf-posix (Depends-on): Likewise.
61071         * modules/sprintf-posix (Depends-on): Likewise.
61072         * modules/vasnprintf-posix (Depends-on): Likewise.
61073         * modules/vasprintf-posix (Depends-on): Likewise.
61074         * modules/vfprintf-posix (Depends-on): Likewise.
61075         * modules/vsnprintf-posix (Depends-on): Likewise.
61076         * modules/vsprintf-posix (Depends-on): Likewise.
61077         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61078         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61079         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61080         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61081         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61082         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61083         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61084
61085 2007-11-04  Bruno Haible  <bruno@clisp.org>
61086
61087         * modules/nocrash: New file.
61088         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61089         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61090
61091 2007-11-04  Bruno Haible  <bruno@clisp.org>
61092
61093         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61094         precision handling.
61095         * tests/test-vasprintf-posix.c (test_function): Likewise.
61096         * tests/test-snprintf-posix.h (test_function): Likewise.
61097         * tests/test-sprintf-posix.h (test_function): Likewise.
61098
61099         Fix *printf behaviour for large precisions on mingw and BeOS.
61100         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61101         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61103         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61105         gl_PRINTF_PRECISION and test its result. Invoke
61106         gl_PREREQ_VASNPRINTF_PRECISION.
61107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61114         * doc/functions/fprintf.texi: Update.
61115         * doc/functions/printf.texi: Update.
61116         * doc/functions/snprintf.texi: Update.
61117         * doc/functions/sprintf.texi: Update.
61118         * doc/functions/vfprintf.texi: Update.
61119         * doc/functions/vprintf.texi: Update.
61120         * doc/functions/vsnprintf.texi: Update.
61121         * doc/functions/vsprintf.texi: Update.
61122
61123 2007-11-04  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61126
61127 2007-11-04  Bruno Haible  <bruno@clisp.org>
61128
61129         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61130         Reported by Sylvain Beucler <beuc@gnu.org>.
61131
61132 2007-11-03  Bruno Haible  <bruno@clisp.org>
61133
61134         * tests/test-fprintf-posix2.sh: New file.
61135         * tests/test-fprintf-posix2.c: New file.
61136         * modules/fprintf-posix-tests (Files): Add them.
61137         (TESTS): Add test-fprintf-posix2.sh.
61138         (configure.ac): Check for getrlimit and setrlimit.
61139         (check_PROGRAMS): Add test-fprintf-posix2.
61140
61141         * tests/test-printf-posix2.sh: New file.
61142         * tests/test-printf-posix2.c: New file.
61143         * modules/printf-posix-tests (Files): Add them.
61144         (TESTS): Add test-printf-posix2.sh.
61145         (configure.ac): Check for getrlimit and setrlimit.
61146         (check_PROGRAMS): Add test-printf-posix2.
61147
61148         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61149         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61150         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61151         (decode_double): New function, copied from decode_long_double.
61152         (scale10_round_decimal_decoded): New function, extracted from
61153         scale10_round_decimal_long_double.
61154         (scale10_round_decimal_long_double): Use it.
61155         (scale10_round_decimal_double): New function.
61156         (floorlog10): New function.
61157         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61159         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61161         gl_PRINTF_ENOMEM and test its result. Invoke
61162         gl_PREREQ_VASNPRINTF_ENOMEM.
61163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61170         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61171         * modules/snprintf-posix (Depends-on): Likewise.
61172         * modules/sprintf-posix (Depends-on): Likewise.
61173         * modules/vasnprintf-posix (Depends-on): Likewise.
61174         * modules/vasprintf-posix (Depends-on): Likewise.
61175         * modules/vfprintf-posix (Depends-on): Likewise.
61176         * modules/vsnprintf-posix (Depends-on): Likewise.
61177         * modules/vsprintf-posix (Depends-on): Likewise.
61178         * doc/functions/fprintf.texi: Update.
61179         * doc/functions/printf.texi: Update.
61180         * doc/functions/snprintf.texi: Update.
61181         * doc/functions/sprintf.texi: Update.
61182         * doc/functions/vfprintf.texi: Update.
61183         * doc/functions/vprintf.texi: Update.
61184         * doc/functions/vsnprintf.texi: Update.
61185         * doc/functions/vsprintf.texi: Update.
61186
61187 2007-11-03  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/frexp-nolibm-tests: New file.
61190
61191         * modules/frexp-nolibm: New file.
61192         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61193
61194 2007-11-03  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61197         value is C99 compliant.
61198         Needed for OSF/1 5.1.
61199
61200 2007-11-03  Bruno Haible  <bruno@clisp.org>
61201
61202         Fix out-of-memory handling of vasnprintf.
61203         * lib/printf-parse.c: Include <errno.h>.
61204         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61205         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61206         is already set.
61207
61208 2007-11-02  Eric Blake  <ebb9@byu.net>
61209
61210         Fix tests on cygwin.
61211         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61212
61213 2007-11-01  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61216         warning.
61217         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61218         needed for POSIX compatibility.
61219
61220 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61221
61222         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61223         for compatibility with GNU.
61224
61225 2007-11-01  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61228         (putenv): Renamed from rpl_putenv. Change argument type from
61229         'const char *' to 'char *'.
61230         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61231         of defining putenv in config.h, just set REPLACE_PUTENV.
61232         * modules/putenv (Depends-on): Add stdlib.
61233         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61234         (Include): Use <stdlib.h>.
61235         * lib/stdlib.in.h (putenv): New declaration.
61236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61237         REPLACE_PUTENV.
61238         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61239         REPLACE_PUTENV.
61240         Needed for MacOS X 10.5.0.
61241         Reported by Peter O'Gorman <peter@pogma.com>.
61242
61243 2007-11-01  Jim Meyering  <meyering@redhat.com>
61244
61245         Treat an empty date string exactly like "0".
61246         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61247         if the remaining date string (to be parsed) is empty, use "0".
61248         Reported by Mischa Molhoek and discussed in this thread:
61249         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61250
61251 2007-10-31  Bruno Haible  <bruno@clisp.org>
61252
61253         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61254         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61255         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61256         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61257         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61258         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61259
61260 2007-10-31  Bruno Haible  <bruno@clisp.org>
61261
61262         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61263         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61264         (AC_TYPE_LONG_LONG_INT): Use it.
61265         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61266         it as well.
61267         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61268         to m4/longlong.m4.
61269         * modules/stdint (Files): Remove m4/ulonglong.m4.
61270         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61271         m4/ulonglong.m4.
61272         * modules/strtoumax (Files): Likewise.
61273
61274 2007-10-30  Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/xvasprintf-posix: New file.
61277         Suggested by Eric Blake.
61278
61279 2007-10-30  Bruno Haible  <bruno@clisp.org>
61280
61281         * modules/xprintf-posix-tests: New file.
61282         * tests/test-xprintf-posix.sh: New file.
61283         * tests/test-xprintf-posix.c: New file.
61284         * tests/test-xfprintf-posix.c: New file.
61285
61286         * modules/xprintf-posix: New file.
61287
61288 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61289
61290         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61291         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61292         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61293
61294 2007-10-29  Bruno Haible  <bruno@clisp.org>
61295
61296         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61297         contain the special marker '_cv_'.
61298         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61299         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61300         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61301         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61302         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61303         Reported by Ralf Wildenhues.
61304
61305 2007-10-29  Bruno Haible  <bruno@clisp.org>
61306
61307         * gnulib-tool (func_import): When --lgpl is not specified, set
61308         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61309         GPLv3.
61310         Reported by Simon Josefsson.
61311
61312 2007-10-28  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61315         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61316         HAVE_DECL_ISFINITE.
61317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61318         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61319         HAVE_DECL_ISFINITE.
61320
61321 2007-10-28  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61324         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61325
61326 2007-10-28  Bruno Haible  <bruno@clisp.org>
61327
61328         Fix link errors with Sun C 5.0 on Solaris 10.
61329         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61330         function is declared but not present in the compiler's libm.
61331         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61332         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61333         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61334         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61335         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61336         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61337         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61339         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61340         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61341         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61342         HAVE_DECL_FLOORL.
61343
61344 2007-10-28  Bruno Haible  <bruno@clisp.org>
61345
61346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61347         gl_FUNC_FLOORL. Cache the result.
61348         (gl_FUNC_FLOORL): Use it.
61349         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61350         gl_FUNC_CEILL. Cache the result.
61351         (gl_FUNC_CEILL): Use it.
61352
61353         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61354         gl_FUNC_FLOOR. Cache the result.
61355         (gl_FUNC_FLOOR): Use it.
61356         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61357         gl_FUNC_CEIL. Cache the result.
61358         (gl_FUNC_CEIL): Use it.
61359
61360         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61361         gl_FUNC_FLOORF. Cache the result.
61362         (gl_FUNC_FLOORF): Use it.
61363         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61364         gl_FUNC_CEILF. Cache the result.
61365         (gl_FUNC_CEILF): Use it.
61366
61367 2007-10-28  Bruno Haible  <bruno@clisp.org>
61368
61369         * gnulib-tool: Allow specifying the LGPL version number through
61370         --lgpl=2 or --lgpl=3.
61371         (func_usage): Document --lgpl with argument.
61372         Handle --lgpl=... arguments.
61373         (func_import): Recognize also gl_LGPL calls with an argument. When
61374         --lgpl=2 is used and the module's license is just LGPL, report an
61375         error. Set sed_transform_lib_file according to the lgpl variable. In
61376         the generated files, use --lgpl or gl_LGPL invocations with argument,
61377         if necessary.
61378         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61379         an LGPv2+ license.
61380         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61381         gl_LGPL macro.
61382
61383 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61384             Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61387         (u16_uctomb_aux): Likewise.
61388         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61389         !HAVE_INLINE.
61390         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61391
61392 2007-10-28  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61395         Invoke AM_GETTEXT_OPTION if it exists.
61396         * modules/vasprintf: Likewise.
61397         * modules/verror: Likewise.
61398         * modules/xprintf: Likewise.
61399         * modules/xvasprintf: Likewise.
61400
61401 2007-10-27  Ben Pfaff  <blp@gnu.org>
61402
61403         * lib/math.in.h: Define isfinite macro and prototypes for
61404         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61405         implementations.
61406         * m4/math_h.m4: New substitutions for isfinite module.
61407         * lib/isfinite.c: New file.
61408         * m4/isfinite.m4: New file.
61409         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61410         * modules/isfinite: New file.
61411         * modules/isfinite-tests: New file.
61412         * tests/tests-isfinite.c: New file.
61413         * doc/functions/isfinite.texi: Mention isfinite module.
61414         * MODULES.html.sh: Mention new module.
61415
61416 2007-10-27  Ben Pfaff  <blp@gnu.org>
61417
61418         Ralf Wildenhues reported that Tru64 4.0D declares the round
61419         functions but does not have definitions.
61420         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61421         cannot be found in any library, set the output variable to
61422         "missing" instead of "".
61423         * m4/round.m4: Also use our substitute if we cannot find round in
61424         any library, even if it is declared.
61425         * m4/roundf.m4: Likewise for roundf.
61426         * m4/roundl.m4: Likewise for roundl.
61427         * lib/math.in.h: Undefine roundf, round, roundl before defining
61428         their replacements, to allow for hypothetical systems where these
61429         may be defined as macros but not available in libraries.
61430
61431 2007-10-27  Bruno Haible  <bruno@clisp.org>
61432
61433         * doc/gnulib.texi: Invoke @firstparagraphindent.
61434         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61435         changes in gnulib.
61436         (Source changes): New section.
61437
61438 2007-10-26  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61441         borrowed from autoconf.
61442
61443 2007-10-26  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61446         strerror returned the empty string. Needed on HP-UX 11.00.
61447
61448 2007-10-24  Micah Cowan  <micah@cowan.name>
61449
61450         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61451         * build-aux/bootstrap: Remove support for now-unnecessary option,
61452         --cvs-user, and envvars CVS_USER, CVS_RSH.
61453
61454 2007-10-24  Jim Meyering  <meyering@redhat.com>
61455
61456         Avoid diagnostics from sha1sum when there is no cached checksum.
61457         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61458         if the po.s1 file hasn't been created yet.
61459
61460         * build-aux/bootstrap: Sync from coreutils:
61461         2007-10-24  Jim Meyering  <meyering@redhat.com>
61462         Get gnulib from the git repository, not from an obsolete cvs one.
61463         * build-aux/bootstrap: Suggestion from Micah Cowan.
61464         2007-10-04  Jim Meyering  <jim@meyering.net>
61465         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61466         (update_po_files): Work also when there are no .po files in po/.
61467
61468 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * README: Append ".git" to git and cg examples.
61471         Problem reported by Benoit Sigoure.
61472
61473 2007-10-23  Micah Cowan  <micah@cowan.name>
61474
61475         * users.txt: Add wget.
61476
61477 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61478
61479         Fix linking of some unistdio tests on FreeBSD.
61480         * modules/unistdio/u16-vsnprintf-tests
61481         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61482         * modules/unistdio/u16-vsprintf-tests
61483         (test_u16_vsnprintf1_LDADD): Likewise.
61484         * modules/unistdio/u32-vsnprintf-tests
61485         (test_u32_vsnprintf1_LDADD): Likewise.
61486         * modules/unistdio/u32-vsprintf-tests
61487         (test_u32_vsprintf1_LDADD): Likewise.
61488         * modules/unistdio/u8-vsnprintf-tests
61489         (test_u8_vsnprintf1_LDADD): Likewise.
61490         * modules/unistdio/u8-vsprintf-tests
61491         (test_u8_vsprintf1_LDADD): Likewise.
61492         * modules/unistdio/ulc-vsnprintf-tests
61493         (test_ulc_vsnprintf1_LDADD): Likewise.
61494         * modules/unistdio/ulc-vsprintf-tests
61495         (test_ulc_vsprintf1_LDADD): Likewise.
61496
61497         Fix linking of some uniconv tests on FreeBSD.
61498         * modules/uniconv/u16-conv-from-enc-tests
61499         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61500         * modules/uniconv/u16-conv-to-enc-tests
61501         (test_u16_conv_to_enc_LDADD): Likewise.
61502         * modules/uniconv/u16-strconv-from-enc-tests
61503         (test_u16_strconv_from_enc_LDADD): Likewise.
61504         * modules/uniconv/u16-strconv-to-enc-tests
61505         (test_u16_strconv_to_enc_LDADD): Likewise.
61506         * modules/uniconv/u32-conv-from-enc-tests
61507         (test_u32_conv_from_enc_LDADD): Likewise.
61508         * modules/uniconv/u32-conv-to-enc-tests
61509         (test_u32_conv_to_enc_LDADD): Likewise.
61510         * modules/uniconv/u32-strconv-from-enc-tests
61511         (test_u32_strconv_from_enc_LDADD): Likewise.
61512         * modules/uniconv/u32-strconv-to-enc-tests
61513         (test_u32_strconv_to_enc_LDADD): Likewise.
61514         * modules/uniconv/u8-conv-from-enc-tests
61515         (test_u8_conv_from_enc_LDADD): Likewise.
61516         * modules/uniconv/u8-conv-to-enc-tests
61517         (test_u8_conv_to_enc_LDADD): Likewise.
61518         * modules/uniconv/u8-strconv-from-enc-tests
61519         (test_u8_strconv_from_enc_LDADD): Likewise.
61520         * modules/uniconv/u8-strconv-to-enc-tests
61521         (test_u8_strconv_to_enc_LDADD): Likewise.
61522
61523 2007-10-22  Bruno Haible  <bruno@clisp.org>
61524
61525         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61526         size.
61527
61528 2007-10-22  Eric Blake  <ebb9@byu.net>
61529
61530         Tweak x*printf documentation.
61531         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61532         variable name and comments.
61533         Suggested by Bruno Haible.
61534
61535 2007-10-22  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/acl.c (copy_acl): Fix file name in comment.
61538
61539 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61540
61541         Fix Tru64 problem with stdbool.h.
61542         * lib/stdbool.in.h (false, true):
61543         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61544         Don't declare as an enum in this situation; it runs afoul of Tru64.
61545         Problem reported by Steven M. Schweda in
61546         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61547
61548 2007-10-22  Eric Blake  <ebb9@byu.net>
61549
61550         Also wrap vf?printf.
61551         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61552         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61553         (xvprintf, xvfprintf): New functions.
61554
61555 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61556
61557         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61558         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61559
61560         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61561         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61562
61563 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61566         by Bruno Haible.
61567
61568 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61569
61570         * lib/getloadavg.c
61571         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61572         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61573
61574         * tests/test-i-ring.c: Work for C89.
61575
61576 2007-10-22  Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61579         -1u, in preprocessor expression, so that we don't test for the bug
61580         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61582
61583 2007-10-22  Eric Blake  <ebb9@byu.net>
61584
61585         * tests/test-yesno.sh: Silence stderr during test.
61586
61587 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61588
61589         * modules/crypto/gc-camellia: New file.
61590
61591         * m4/gc-camellia.m4: New file.
61592
61593         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61594
61595         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61596
61597 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61598
61599         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61600         --help to stdout.  Reported by sms@antinode.org (Steven
61601         M. Schweda).
61602
61603 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61604
61605         * users.txt: Fix link to libksba.
61606
61607 2007-10-21  Ben Pfaff  <blp@gnu.org>
61608
61609         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61610         round.c roundf implementation that depends on floorf and ceilf to
61611         be tested unconditionally.
61612
61613 2007-10-21  Ben Pfaff  <blp@gnu.org>
61614
61615         * m4/check-libm-func.m4: Removed.
61616         * m4/check-math-lib.m4: New file.
61617         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61618         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61619         definition and lack of AC_LIBOBJ([roundf]).
61620         * m4/roundl.m4: Ditto, and similarly for roundl.
61621         * modules/round: Reference new m4 file.
61622         * modules/roundf: Ditto.
61623         * modules/roundl: Ditto.
61624         * tests/test-round2.c (main): Use ROUND instead of round.
61625         Bug report from Bruno Haible.
61626
61627 2007-10-21  Bruno Haible  <bruno@clisp.org>
61628
61629         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61630         context.
61631
61632 2007-10-21  Bruno Haible  <bruno@clisp.org>
61633
61634         * tests/test-wcwidth.c (main): Allow negative result for some control
61635         characters.
61636
61637         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61638         Needed on OSF/1 5.1.
61639
61640 2007-10-21  Bruno Haible  <bruno@clisp.org>
61641
61642         * tests/test-floorf1.c: Include isnanf.h.
61643         (main): Use isnanf() instead of isnan().
61644         * tests/test-ceilf1.c: Include isnanf.h.
61645         (main): Use isnanf() instead of isnan().
61646         * tests/test-truncf1.c: Include isnanf.h.
61647         (main): Use isnanf() instead of isnan().
61648         * tests/test-roundf1.c: Include isnanf.h.
61649         (main): Use isnanf() instead of isnan().
61650
61651 2007-10-21  Eric Blake  <ebb9@byu.net>
61652
61653         * users.txt: Update URL for m4.
61654
61655 2007-10-21  Bruno Haible  <bruno@clisp.org>
61656
61657         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61658
61659 2007-10-21  Bruno Haible  <bruno@clisp.org>
61660
61661         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61662         Git's management files if the CVS files are not present.
61663
61664 2007-10-20  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61667         gcc-3.4.x.
61668
61669 2007-10-20  Ben Pfaff  <blp@gnu.org>
61670
61671         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61672         implementations.
61673         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61674         * lib/round.c: New file.
61675         * lib/roundf.c: New file.
61676         * lib/roundl.c: New file.
61677         * m4/round.m4: New file.
61678         * m4/roundf.m4: New file.
61679         * m4/roundl.m4: New file.
61680         * m4/check-libm-func-m4: New file.
61681         * modules/math: Replace round, roundf, roundl related @VARS@ in
61682         math.in.h.
61683         * modules/round: New file.
61684         * modules/round-tests: New file.
61685         * modules/roundf: New file.
61686         * modules/roundf-tests: New file.
61687         * modules/roundl: New file.
61688         * modules/roundl-tests: New file.
61689         * tests/test-round1.c: New file.
61690         * tests/test-round2.c: New file.
61691         * tests/test-roundf1.c: New file.
61692         * tests/test-roundf2.c: New file.
61693         * tests/test-roundl.c: New file.
61694         * doc/functions/round.texi: Mention round module.
61695         * doc/functions/roundf.texi: Mention roundf module.
61696         * doc/functions/roundl.texi: Mention roundl module.
61697         * MODULES.html.sh: Mention new modules.
61698         Thanks to Bruno Haible for suggestions.
61699
61700 2007-10-20  Jim Meyering  <meyering@redhat.com>
61701
61702         * lib/xprintf.c: Include <config.h> unconditionally.
61703
61704         Change xprintf's license to GPL.
61705         * modules/xprintf (License): s/LGPL/GPL/, since this module
61706         depends on modules (exit and exitfail) which are GPL.
61707         Suggestion from Bruno Haible.
61708
61709         xprintf fixes.
61710         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61711         Use a clearer diagnostic.
61712         Patch from Bruno Haible.
61713
61714 2007-10-20  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61717         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61719
61720 2007-10-20  Bruno Haible  <bruno@clisp.org>
61721
61722         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61723         precision in the comparison result > x - 1 or similar.
61724         * tests/test-ceilf2.c (correct_result_p): Likewise.
61725         * tests/test-truncf2.c (correct_result_p): Likewise.
61726         * tests/test-trunc2.c (correct_result_p): Likewise.
61727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61728
61729 2007-10-20  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/ceil: New file.
61732         * m4/ceil.m4: New file.
61733         * doc/functions/ceil.texi: Mention the 'ceil' module.
61734
61735 2007-10-20  Bruno Haible  <bruno@clisp.org>
61736
61737         * modules/floor: New file.
61738         * m4/floor.m4: New file.
61739         * doc/functions/floor.texi: Mention the 'floor' module.
61740
61741 2007-10-20  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61744         of %a.
61745         * modules/floorf-tests (Depends-on): Likewise.
61746         * modules/truncf-tests (Depends-on): Likewise.
61747         * modules/trunc-tests (Depends-on): Likewise.
61748         Reported by Ben Pfaff.
61749
61750 2007-10-19  Jim Meyering  <meyering@redhat.com>
61751
61752         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61753         Don't bother testing specific errno values.  Just test ferror.
61754
61755         New module: xprintf
61756         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61757
61758 2007-10-19  Bruno Haible  <bruno@clisp.org>
61759
61760         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61761         syntax.
61762         * modules/javaexec (Makefile.am): Likewise.
61763         * modules/relocatable-prog (Makefile.am): Likewise.
61764         Suggested by Jim Meyering.
61765
61766 2007-10-18  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61769         Reported by Jim Meyering.
61770
61771 2007-10-18  Eric Blake  <ebb9@byu.net>
61772
61773         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61774
61775 2007-10-18  Bruno Haible  <bruno@clisp.org>
61776
61777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61778         the format string into writable memory. Needed in Fortify conditions.
61779
61780 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61781             Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61784         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61785         * modules/trim (Depends-on): Add mbchar.
61786         (configure.ac): Add gl_FUNC_MBRTOWC.
61787         (Makefile.am): Augment lib_SOURCES.
61788
61789 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         Modify glob.c to use fstatat and dirfd, to simplify it.
61792         Suggested by Eric Blake.
61793         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61794         Don't include <stdbool.h>; not used.
61795         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61796         (link_exists_p): Simplify implementation, since we can now assume
61797         dirfd and fstatat.
61798         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61799
61800 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61801
61802         * gnulib-tool (func_get_dependencies): Fix sed script to
61803         match only tests.
61804
61805 2007-10-17  Bruno Haible  <bruno@clisp.org>
61806
61807         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61808         allow locale names without encoding suffix.
61809         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61810         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61811
61812 2007-10-16  Bruno Haible  <bruno@clisp.org>
61813
61814         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61815         * lib/getgroups.c (getgroups): Likewise.
61816         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61817
61818 2007-10-16  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61821         * modules/malloc-posix (License): Likewise.
61822         * modules/realloc-posix (License): Likewise.
61823         * modules/calloc-posix (License): Likewise.
61824         * modules/intprops (License): Change from GPL to LGPL, with
61825         Paul Eggert's approval.
61826
61827 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         Merge glibc changes into lib/glob.c.
61830
61831         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61832         2007-10-15 04:59:03 UTC.  Here are the changes:
61833
61834         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61835
61836         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61837
61838         * lib/glob.c: Add some branch prediction throughout.
61839
61840         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61841
61842         [BZ #5103]
61843         * lib/glob.c (glob): Recognize patterns starting \/.
61844
61845         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61846
61847         [BZ #3996]
61848         * lib/glob.c (attribute_hidden): Define if not defined.
61849         (glob): Unescape dirname, filename or username when needed and not
61850         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61851         is NULL.  Handle unescaped [ in pattern without closing ].
61852         Don't pass GLOB_CHECK down to recursive glob for directories.
61853         (__glob_pattern_type): New function.
61854         (__glob_pattern_p): Implement using __glob_pattern_type.
61855         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61856         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61857         Remove unreachable code.
61858
61859         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61860
61861         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61862         explain why there are no leaks.
61863
61864         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61865
61866         [BZ #3253]
61867         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61868         time, rather allocate increasingly bigger arrays of pointers, if
61869         possible with alloca, if too large with malloc.
61870
61871 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61874         Problem reported by H.Merijn Brand in
61875         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61876         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61878
61879 2007-10-15  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61882         with explicit rpl_ prefix.
61883         * lib/fopen.c (fopen): Likewise.
61884         * lib/freopen.c (freopen): Likewise.
61885         * lib/iconv.c (iconv): Likewise.
61886         * lib/iconv_close.c (iconv_close): Likewise.
61887
61888 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61889
61890         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61891
61892 2007-10-15  Bruno Haible  <bruno@clisp.org>
61893
61894         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61895         <stddef.h> instead of <stdlib.h> since we only need NULL.
61896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61897
61898 2007-10-15  Bruno Haible  <bruno@clisp.org>
61899
61900         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61901         Replace paragraph talking about LIBOBJS.
61902         Reported by Colin Watson <cjwatson@debian.org>.
61903
61904 2007-10-15  Bruno Haible  <bruno@clisp.org>
61905
61906         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61907         <stdlib.h> before using NULL.
61908
61909 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61910
61911         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61912         Reported by Albert Chin <china@thewrittenword.com>.
61913
61914 2007-10-14  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/iconv_open-utf-tests: New file.
61917         * tests/test-iconv-utf.c: New file.
61918
61919         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61920         * modules/iconv_open-utf: New file.
61921         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61922         (iconv, iconv_close): New declarations.
61923         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61924         be defined.
61925         (iconv_open): Add special handling of conversion between UTF-8 and
61926         UTF-{16,32}{BE,LE}.
61927         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61928         * lib/iconv_close.c: New file.
61929         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61930         gl_FUNC_ICONV_OPEN.
61931         (gl_FUNC_ICONV_OPEN): Use it.
61932         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61933         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61934         and REPLACE_ICONV_UTF.
61935         * modules/iconv_open (Depends-on): Add c-strcase.
61936         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61937         ICONV_CONST.
61938         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61939
61940 2007-10-13  Albert Chin  <china@thewrittenword.com>
61941             Bruno Haible  <bruno@clisp.org>
61942
61943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61944         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61945
61946 2007-10-13  Bruno Haible  <bruno@clisp.org>
61947
61948         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61949         defined, use the ISO C99 inline semantics.
61950         * lib/argp.h (ARGP_EI): Likewise.
61951
61952 2007-10-13  Bruno Haible  <bruno@clisp.org>
61953
61954         Handle 'inline' change in gcc 4.3.0.
61955         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61956         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61957         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61958         argp_fmtstream_point): Disable 'extern' declaration if the function
61959         definition is going to be provided inline.
61960         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61961         semantics, not the ISO C99 inline semantics.
61962         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61963         'extern' declaration if the function definition is going to be provided
61964         inline.
61965         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61966         the GNU C inline semantics, not the ISO C99 inline semantics. With
61967         GCC 4.2, avoid a warning.
61968
61969 2007-10-13  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/freading.h (freading): Enable the use of __freading for
61972         glibc >= 2.7.
61973         * lib/freading.c (freading): Likewise.
61974
61975 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61978         "warning: C99 inline functions are not supported; using GNU89".
61979
61980 2007-10-12  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61983         of 2.
61984         * tests/test-ceilf2.c: New file.
61985         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61986
61987         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61988         * modules/ceilf-tests: Update.
61989
61990 2007-10-12  Bruno Haible  <bruno@clisp.org>
61991
61992         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61993         of 2.
61994         * tests/test-floorf2.c: New file.
61995         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61996
61997         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61998         * modules/floorf-tests: Update.
61999
62000 2007-10-12  Bruno Haible  <bruno@clisp.org>
62001
62002         * tests/test-trunc2.c: New file.
62003         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62004
62005         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62006         * modules/trunc-tests: Update.
62007
62008 2007-10-12  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62011         of 2.
62012         * tests/test-truncf2.c: New file.
62013         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62014
62015         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62016         * modules/truncf-tests: Update.
62017
62018 2007-10-11  Eric Blake  <ebb9@byu.net>
62019
62020         Don't claim strerror is broken on Interix.
62021         * doc/functions/strerror.texi (strerror): Known broken systems are
62022         now Solaris 8, and not Interix.
62023         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62024         Interix on cross-compile.
62025         Reported by Martin Koeppe in
62026         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62027
62028 2007-10-11  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/i-ring-tests: New file.
62031         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62032         instead of assert.
62033
62034 2007-10-11  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/filenamecat-tests: New file.
62037         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62038         * lib/filenamecat.c: Remove test code.
62039
62040 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62043
62044         * lib/strerror.c: Include <string.h> always, to test interface,
62045         and to remove the need for the dummy.
62046         Include intprops.h to compute width instead of doing it ourselves
62047         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62048         (strerror): Define it to return NULL if there's no system strerror.
62049         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62050         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62051         ancient pre-strerror Unix systems well any more.  Saying "unknown
62052         system error" is enough.
62053         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62054         simpler strerror.c implementation.
62055         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62056         Simplify the tests to reflect the simpler strerror implementation.
62057         * modules/strerror (Depends-on): Add intprops.
62058
62059 2007-10-09  Eric Blake  <ebb9@byu.net>
62060
62061         Silence test-fpending.
62062         * modules/fpending-tests (Files): Add wrapper script.
62063         * tests/test-fpending.sh: New file.
62064
62065 2007-10-09  Bruno Haible  <bruno@clisp.org>
62066
62067         * MODULES.html.sh (func_module): Don't create a hyperlink for
62068         function names like 'printf_frexp'.
62069         (Misc): Add crc, memxor.
62070         (Characteristics of floating types): New section.
62071         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62072         isnanf-nolibm, signbit, trunc, truncf, truncl.
62073         (Enhancements for ISO C 99 functions): New subsection Input/output.
62074         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62075         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62076         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62077         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62078         (Enhancements for POSIX:2001 functions): Add chdir-long.
62079         (File system functions): Add areadlink, chdir-safer, read-file.
62080         Remove cycle-check.
62081         (File system as inode set): New section.
62082         (Date and time): Add gethrxtime.
62083         (Multithreading): Add openmp.
62084         (Internationalization functions): Add localename.
62085         (Unicode string functions): Add unistr/u*-mbsnlen.
62086         (Support for maintaining and releasing projects): Add git-version-gen.
62087         (Lone files): Remove directories.
62088
62089 2007-10-08  Ben Pfaff  <blp@gnu.org>
62090
62091         * lib/xmalloca.h: Fix typo in comment.
62092
62093 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62096         when avoiding problems with integer overflow.  Use a portable test
62097         instead.
62098
62099 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62100
62101         * modules/dummy (License): Change to LGPLv2+.
62102         * modules/float (License): Likewise
62103         * modules/realloc (License): Likewise
62104         * modules/stdlib (License): Likewise
62105
62106 2007-10-07  Bruno Haible  <bruno@clisp.org>
62107
62108         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62109         * floor.c (TWO_MANT_DIG): Likewise.
62110         * ceil.c (TWO_MANT_DIG): Likewise.
62111         Reported by Ben Pfaff.
62112
62113 2007-10-07  Bruno Haible  <bruno@clisp.org>
62114
62115         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62116         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62117         * lib/frexp.c (FUNC): Likewise.
62118         * lib/printf-frexp.h (printf_frexp): Likewise.
62119         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62120         * lib/printf-frexp.c (FUNC): Likewise.
62121         Suggested by Jim Meyering.
62122
62123 2007-10-07  Jim Meyering  <meyering@redhat.com>
62124
62125         Make xnanosleep's integer overflow test more robust.
62126         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62127         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62128
62129 2007-10-07  Bruno Haible  <bruno@clisp.org>
62130
62131         * NEWS: Mention the license change.
62132
62133         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62134         abbreviations in the modules files.
62135
62136         Change copyright notice from GPLv2+ to GPLv3+.
62137         * README: Change copyright notice.
62138         * MODULES.html.sh: Likewise.
62139         * build-aux/bootstrap.conf: Likewise.
62140         * build-aux/config.libpath: Likewise.
62141         * build-aux/csharpcomp.sh.in: Likewise.
62142         * build-aux/csharpexec.sh.in: Likewise.
62143         * build-aux/install-reloc: Likewise.
62144         * build-aux/javacomp.sh.in: Likewise.
62145         * build-aux/javaexec.sh.in: Likewise.
62146         * build-aux/ldd.sh.in: Likewise.
62147         * build-aux/reloc-ldflags: Likewise.
62148         * build-aux/relocatable.sh.in: Likewise.
62149         * build-aux/x-to-1.in: Likewise.
62150         * check-module: Likewise.
62151         * config/srclistvars.sh: Likewise.
62152         * gnulib-tool: Likewise.
62153         * lib/acl-internal.h: Likewise.
62154         * lib/acl.c: Likewise.
62155         * lib/acl.h: Likewise.
62156         * lib/acl_entries.c: Likewise.
62157         * lib/areadlink-with-size.c: Likewise.
62158         * lib/areadlink.c: Likewise.
62159         * lib/areadlink.h: Likewise.
62160         * lib/argmatch.c: Likewise.
62161         * lib/argmatch.h: Likewise.
62162         * lib/argp-ba.c: Likewise.
62163         * lib/argp-eexst.c: Likewise.
62164         * lib/argp-fmtstream.c: Likewise.
62165         * lib/argp-fmtstream.h: Likewise.
62166         * lib/argp-fs-xinl.c: Likewise.
62167         * lib/argp-help.c: Likewise.
62168         * lib/argp-namefrob.h: Likewise.
62169         * lib/argp-parse.c: Likewise.
62170         * lib/argp-pin.c: Likewise.
62171         * lib/argp-pv.c: Likewise.
62172         * lib/argp-pvh.c: Likewise.
62173         * lib/argp-xinl.c: Likewise.
62174         * lib/argp.h: Likewise.
62175         * lib/at-func.c: Likewise.
62176         * lib/atanl.c: Likewise.
62177         * lib/backupfile.c: Likewise.
62178         * lib/backupfile.h: Likewise.
62179         * lib/basename.c: Likewise.
62180         * lib/binary-io.h: Likewise.
62181         * lib/byteswap.in.h: Likewise.
62182         * lib/c-stack.c: Likewise.
62183         * lib/c-stack.h: Likewise.
62184         * lib/c-strcasestr.c: Likewise.
62185         * lib/c-strcasestr.h: Likewise.
62186         * lib/c-strstr.c: Likewise.
62187         * lib/c-strstr.h: Likewise.
62188         * lib/c-strtod.c: Likewise.
62189         * lib/calloc.c: Likewise.
62190         * lib/canon-host.c: Likewise.
62191         * lib/canon-host.h: Likewise.
62192         * lib/canonicalize-lgpl.c: Likewise.
62193         * lib/canonicalize.c: Likewise.
62194         * lib/canonicalize.h: Likewise.
62195         * lib/ceil.c: Likewise.
62196         * lib/ceilf.c: Likewise.
62197         * lib/ceill.c: Likewise.
62198         * lib/chdir-long.c: Likewise.
62199         * lib/chdir-long.h: Likewise.
62200         * lib/chdir-safer.c: Likewise.
62201         * lib/chdir-safer.h: Likewise.
62202         * lib/chown.c: Likewise.
62203         * lib/classpath.c: Likewise.
62204         * lib/classpath.h: Likewise.
62205         * lib/clean-temp.c: Likewise.
62206         * lib/clean-temp.h: Likewise.
62207         * lib/cloexec.c: Likewise.
62208         * lib/close-stream.c: Likewise.
62209         * lib/closein.c: Likewise.
62210         * lib/closein.h: Likewise.
62211         * lib/closeout.c: Likewise.
62212         * lib/closeout.h: Likewise.
62213         * lib/concat-filename.c: Likewise.
62214         * lib/copy-file.c: Likewise.
62215         * lib/copy-file.h: Likewise.
62216         * lib/count-one-bits.h: Likewise.
62217         * lib/crc.c: Likewise.
62218         * lib/crc.h: Likewise.
62219         * lib/creat-safer.c: Likewise.
62220         * lib/csharpcomp.c: Likewise.
62221         * lib/csharpcomp.h: Likewise.
62222         * lib/csharpexec.c: Likewise.
62223         * lib/csharpexec.h: Likewise.
62224         * lib/cycle-check.c: Likewise.
62225         * lib/cycle-check.h: Likewise.
62226         * lib/diacrit.c: Likewise.
62227         * lib/diacrit.h: Likewise.
62228         * lib/diffseq.h: Likewise.
62229         * lib/dirchownmod.c: Likewise.
62230         * lib/dirent.in.h: Likewise.
62231         * lib/dirfd.c: Likewise.
62232         * lib/dirfd.h: Likewise.
62233         * lib/dirname.c: Likewise.
62234         * lib/dirname.h: Likewise.
62235         * lib/dummy.c: Likewise.
62236         * lib/dup-safer.c: Likewise.
62237         * lib/dup2.c: Likewise.
62238         * lib/eealloc.h: Likewise.
62239         * lib/error.c: Likewise.
62240         * lib/error.h: Likewise.
62241         * lib/euidaccess.c: Likewise.
62242         * lib/exclude.c: Likewise.
62243         * lib/exclude.h: Likewise.
62244         * lib/execute.c: Likewise.
62245         * lib/execute.h: Likewise.
62246         * lib/exitfail.c: Likewise.
62247         * lib/exitfail.h: Likewise.
62248         * lib/expl.c: Likewise.
62249         * lib/fatal-signal.c: Likewise.
62250         * lib/fatal-signal.h: Likewise.
62251         * lib/fbufmode.c: Likewise.
62252         * lib/fbufmode.h: Likewise.
62253         * lib/fchdir.c: Likewise.
62254         * lib/fchmodat.c: Likewise.
62255         * lib/fchownat.c: Likewise.
62256         * lib/fcntl--.h: Likewise.
62257         * lib/fcntl-safer.h: Likewise.
62258         * lib/fcntl.in.h: Likewise.
62259         * lib/fd-safer.c: Likewise.
62260         * lib/fflush.c: Likewise.
62261         * lib/file-has-acl.c: Likewise.
62262         * lib/file-set.c: Likewise.
62263         * lib/file-type.c: Likewise.
62264         * lib/file-type.h: Likewise.
62265         * lib/fileblocks.c: Likewise.
62266         * lib/filemode.c: Likewise.
62267         * lib/filemode.h: Likewise.
62268         * lib/filename.h: Likewise.
62269         * lib/filenamecat.c: Likewise.
62270         * lib/filenamecat.h: Likewise.
62271         * lib/findprog.c: Likewise.
62272         * lib/findprog.h: Likewise.
62273         * lib/float.in.h: Likewise.
62274         * lib/floor.c: Likewise.
62275         * lib/floorf.c: Likewise.
62276         * lib/floorl.c: Likewise.
62277         * lib/fopen-safer.c: Likewise.
62278         * lib/fopen.c: Likewise.
62279         * lib/fpending.c: Likewise.
62280         * lib/fpending.h: Likewise.
62281         * lib/fprintf.c: Likewise.
62282         * lib/fprintftime.h: Likewise.
62283         * lib/fpucw.h: Likewise.
62284         * lib/fpurge.c: Likewise.
62285         * lib/fpurge.h: Likewise.
62286         * lib/freadable.c: Likewise.
62287         * lib/freadable.h: Likewise.
62288         * lib/freadahead.c: Likewise.
62289         * lib/freadahead.h: Likewise.
62290         * lib/freading.c: Likewise.
62291         * lib/freading.h: Likewise.
62292         * lib/free.c: Likewise.
62293         * lib/freopen.c: Likewise.
62294         * lib/frexp.c: Likewise.
62295         * lib/frexpl.c: Likewise.
62296         * lib/fseek.c: Likewise.
62297         * lib/fseterr.c: Likewise.
62298         * lib/fseterr.h: Likewise.
62299         * lib/fstatat.c: Likewise.
62300         * lib/fstrcmp.c: Likewise.
62301         * lib/fstrcmp.h: Likewise.
62302         * lib/fsusage.c: Likewise.
62303         * lib/fsusage.h: Likewise.
62304         * lib/ftell.c: Likewise.
62305         * lib/ftello.c: Likewise.
62306         * lib/fts-cycle.c: Likewise.
62307         * lib/fts.c: Likewise.
62308         * lib/fts_.h: Likewise.
62309         * lib/full-read.c: Likewise.
62310         * lib/full-read.h: Likewise.
62311         * lib/full-write.c: Likewise.
62312         * lib/full-write.h: Likewise.
62313         * lib/fwritable.c: Likewise.
62314         * lib/fwritable.h: Likewise.
62315         * lib/fwriteerror.c: Likewise.
62316         * lib/fwriteerror.h: Likewise.
62317         * lib/fwriting.c: Likewise.
62318         * lib/fwriting.h: Likewise.
62319         * lib/gcd.c: Likewise.
62320         * lib/gcd.h: Likewise.
62321         * lib/getcwd.c: Likewise.
62322         * lib/getdate.h: Likewise.
62323         * lib/getdate.y: Likewise.
62324         * lib/getdomainname.c: Likewise.
62325         * lib/getdomainname.h: Likewise.
62326         * lib/getgroups.c: Likewise.
62327         * lib/gethostname.c: Likewise.
62328         * lib/gethrxtime.c: Likewise.
62329         * lib/gethrxtime.h: Likewise.
62330         * lib/getloadavg.c: Likewise.
62331         * lib/getndelim2.c: Likewise.
62332         * lib/getndelim2.h: Likewise.
62333         * lib/getnline.c: Likewise.
62334         * lib/getnline.h: Likewise.
62335         * lib/getopt.c: Likewise.
62336         * lib/getopt.in.h: Likewise.
62337         * lib/getopt1.c: Likewise.
62338         * lib/getopt_int.h: Likewise.
62339         * lib/getpagesize.h: Likewise.
62340         * lib/getsubopt.c: Likewise.
62341         * lib/gettime.c: Likewise.
62342         * lib/getugroups.c: Likewise.
62343         * lib/getugroups.h: Likewise.
62344         * lib/getusershell.c: Likewise.
62345         * lib/gl_anyavltree_list1.h: Likewise.
62346         * lib/gl_anyavltree_list2.h: Likewise.
62347         * lib/gl_anyhash_list1.h: Likewise.
62348         * lib/gl_anyhash_list2.h: Likewise.
62349         * lib/gl_anylinked_list1.h: Likewise.
62350         * lib/gl_anylinked_list2.h: Likewise.
62351         * lib/gl_anyrbtree_list1.h: Likewise.
62352         * lib/gl_anyrbtree_list2.h: Likewise.
62353         * lib/gl_anytree_list1.h: Likewise.
62354         * lib/gl_anytree_list2.h: Likewise.
62355         * lib/gl_anytree_oset.h: Likewise.
62356         * lib/gl_anytreehash_list1.h: Likewise.
62357         * lib/gl_anytreehash_list2.h: Likewise.
62358         * lib/gl_array_list.c: Likewise.
62359         * lib/gl_array_list.h: Likewise.
62360         * lib/gl_array_oset.c: Likewise.
62361         * lib/gl_array_oset.h: Likewise.
62362         * lib/gl_avltree_list.c: Likewise.
62363         * lib/gl_avltree_list.h: Likewise.
62364         * lib/gl_avltree_oset.c: Likewise.
62365         * lib/gl_avltree_oset.h: Likewise.
62366         * lib/gl_avltreehash_list.c: Likewise.
62367         * lib/gl_avltreehash_list.h: Likewise.
62368         * lib/gl_carray_list.c: Likewise.
62369         * lib/gl_carray_list.h: Likewise.
62370         * lib/gl_linked_list.c: Likewise.
62371         * lib/gl_linked_list.h: Likewise.
62372         * lib/gl_linkedhash_list.c: Likewise.
62373         * lib/gl_linkedhash_list.h: Likewise.
62374         * lib/gl_list.c: Likewise.
62375         * lib/gl_list.h: Likewise.
62376         * lib/gl_oset.c: Likewise.
62377         * lib/gl_oset.h: Likewise.
62378         * lib/gl_rbtree_list.c: Likewise.
62379         * lib/gl_rbtree_list.h: Likewise.
62380         * lib/gl_rbtree_oset.c: Likewise.
62381         * lib/gl_rbtree_oset.h: Likewise.
62382         * lib/gl_rbtreehash_list.c: Likewise.
62383         * lib/gl_rbtreehash_list.h: Likewise.
62384         * lib/gl_sublist.c: Likewise.
62385         * lib/gl_sublist.h: Likewise.
62386         * lib/group-member.c: Likewise.
62387         * lib/group-member.h: Likewise.
62388         * lib/hard-locale.c: Likewise.
62389         * lib/hard-locale.h: Likewise.
62390         * lib/hash-pjw.c: Likewise.
62391         * lib/hash-pjw.h: Likewise.
62392         * lib/hash-triple.c: Likewise.
62393         * lib/hash.c: Likewise.
62394         * lib/hash.h: Likewise.
62395         * lib/human.c: Likewise.
62396         * lib/human.h: Likewise.
62397         * lib/i-ring.c: Likewise.
62398         * lib/i-ring.h: Likewise.
62399         * lib/idcache.c: Likewise.
62400         * lib/imaxabs.c: Likewise.
62401         * lib/imaxdiv.c: Likewise.
62402         * lib/inet_pton.c: Likewise.
62403         * lib/inet_pton.h: Likewise.
62404         * lib/intprops.h: Likewise.
62405         * lib/inttostr.c: Likewise.
62406         * lib/inttostr.h: Likewise.
62407         * lib/inttypes.in.h: Likewise.
62408         * lib/isapipe.c: Likewise.
62409         * lib/isdir.c: Likewise.
62410         * lib/isnan.c: Likewise.
62411         * lib/isnan.h: Likewise.
62412         * lib/isnanf.c: Likewise.
62413         * lib/isnanf.h: Likewise.
62414         * lib/isnanl-nolibm.h: Likewise.
62415         * lib/isnanl.c: Likewise.
62416         * lib/isnanl.h: Likewise.
62417         * lib/javacomp.c: Likewise.
62418         * lib/javacomp.h: Likewise.
62419         * lib/javaexec.c: Likewise.
62420         * lib/javaexec.h: Likewise.
62421         * lib/javaversion.c: Likewise.
62422         * lib/javaversion.h: Likewise.
62423         * lib/javaversion.java: Likewise.
62424         * lib/lbrkprop.h: Likewise.
62425         * lib/lchmod.h: Likewise.
62426         * lib/lchown.c: Likewise.
62427         * lib/ldexpl.c: Likewise.
62428         * lib/linebreak.c: Likewise.
62429         * lib/linebreak.h: Likewise.
62430         * lib/linebuffer.c: Likewise.
62431         * lib/linebuffer.h: Likewise.
62432         * lib/locale.in.h: Likewise.
62433         * lib/logl.c: Likewise.
62434         * lib/long-options.c: Likewise.
62435         * lib/long-options.h: Likewise.
62436         * lib/lstat.c: Likewise.
62437         * lib/lstat.h: Likewise.
62438         * lib/math.in.h: Likewise.
62439         * lib/mbchar.c: Likewise.
62440         * lib/mbchar.h: Likewise.
62441         * lib/mbfile.h: Likewise.
62442         * lib/mbiter.h: Likewise.
62443         * lib/mbscasecmp.c: Likewise.
62444         * lib/mbscasestr.c: Likewise.
62445         * lib/mbschr.c: Likewise.
62446         * lib/mbscspn.c: Likewise.
62447         * lib/mbslen.c: Likewise.
62448         * lib/mbsncasecmp.c: Likewise.
62449         * lib/mbsnlen.c: Likewise.
62450         * lib/mbspbrk.c: Likewise.
62451         * lib/mbspcasecmp.c: Likewise.
62452         * lib/mbsrchr.c: Likewise.
62453         * lib/mbssep.c: Likewise.
62454         * lib/mbsspn.c: Likewise.
62455         * lib/mbsstr.c: Likewise.
62456         * lib/mbstok_r.c: Likewise.
62457         * lib/mbswidth.c: Likewise.
62458         * lib/mbswidth.h: Likewise.
62459         * lib/mbuiter.h: Likewise.
62460         * lib/memcasecmp.c: Likewise.
62461         * lib/memcasecmp.h: Likewise.
62462         * lib/memchr.c: Likewise.
62463         * lib/memcmp.c: Likewise.
62464         * lib/memcoll.c: Likewise.
62465         * lib/memcoll.h: Likewise.
62466         * lib/memcpy.c: Likewise.
62467         * lib/memrchr.c: Likewise.
62468         * lib/mkancesdirs.c: Likewise.
62469         * lib/mkdir-p.c: Likewise.
62470         * lib/mkdir-p.h: Likewise.
62471         * lib/mkdir.c: Likewise.
62472         * lib/mkdirat.c: Likewise.
62473         * lib/mkdtemp.c: Likewise.
62474         * lib/mkstemp-safer.c: Likewise.
62475         * lib/mkstemp.c: Likewise.
62476         * lib/modechange.c: Likewise.
62477         * lib/modechange.h: Likewise.
62478         * lib/mountlist.c: Likewise.
62479         * lib/mountlist.h: Likewise.
62480         * lib/mpsort.c: Likewise.
62481         * lib/nanosleep.c: Likewise.
62482         * lib/obstack.c: Likewise.
62483         * lib/obstack.h: Likewise.
62484         * lib/open-safer.c: Likewise.
62485         * lib/open.c: Likewise.
62486         * lib/openat-die.c: Likewise.
62487         * lib/openat-priv.h: Likewise.
62488         * lib/openat-proc.c: Likewise.
62489         * lib/openat.c: Likewise.
62490         * lib/openat.h: Likewise.
62491         * lib/pagealign_alloc.c: Likewise.
62492         * lib/pagealign_alloc.h: Likewise.
62493         * lib/physmem.c: Likewise.
62494         * lib/physmem.h: Likewise.
62495         * lib/pipe-safer.c: Likewise.
62496         * lib/pipe.c: Likewise.
62497         * lib/pipe.h: Likewise.
62498         * lib/posixtm.c: Likewise.
62499         * lib/posixtm.h: Likewise.
62500         * lib/posixver.c: Likewise.
62501         * lib/printf-frexp.c: Likewise.
62502         * lib/printf-frexp.h: Likewise.
62503         * lib/printf-frexpl.c: Likewise.
62504         * lib/printf-frexpl.h: Likewise.
62505         * lib/printf.c: Likewise.
62506         * lib/progname.c: Likewise.
62507         * lib/progname.h: Likewise.
62508         * lib/progreloc.c: Likewise.
62509         * lib/putenv.c: Likewise.
62510         * lib/quote.c: Likewise.
62511         * lib/quote.h: Likewise.
62512         * lib/quotearg.c: Likewise.
62513         * lib/quotearg.h: Likewise.
62514         * lib/raise.c: Likewise.
62515         * lib/readline.c: Likewise.
62516         * lib/readline.h: Likewise.
62517         * lib/readlink.c: Likewise.
62518         * lib/readtokens.c: Likewise.
62519         * lib/readtokens.h: Likewise.
62520         * lib/readtokens0.c: Likewise.
62521         * lib/readtokens0.h: Likewise.
62522         * lib/readutmp.c: Likewise.
62523         * lib/readutmp.h: Likewise.
62524         * lib/realloc.c: Likewise.
62525         * lib/relocwrapper.c: Likewise.
62526         * lib/rename-dest-slash.c: Likewise.
62527         * lib/rename.c: Likewise.
62528         * lib/rmdir.c: Likewise.
62529         * lib/rpmatch.c: Likewise.
62530         * lib/safe-read.c: Likewise.
62531         * lib/safe-read.h: Likewise.
62532         * lib/safe-write.c: Likewise.
62533         * lib/safe-write.h: Likewise.
62534         * lib/same-inode.h: Likewise.
62535         * lib/same.c: Likewise.
62536         * lib/same.h: Likewise.
62537         * lib/save-cwd.c: Likewise.
62538         * lib/save-cwd.h: Likewise.
62539         * lib/savedir.c: Likewise.
62540         * lib/savedir.h: Likewise.
62541         * lib/savewd.c: Likewise.
62542         * lib/savewd.h: Likewise.
62543         * lib/search.in.h: Likewise.
62544         * lib/setenv.c: Likewise.
62545         * lib/setenv.h: Likewise.
62546         * lib/settime.c: Likewise.
62547         * lib/sh-quote.c: Likewise.
62548         * lib/sh-quote.h: Likewise.
62549         * lib/sig2str.c: Likewise.
62550         * lib/sig2str.h: Likewise.
62551         * lib/signal.in.h: Likewise.
62552         * lib/signbitd.c: Likewise.
62553         * lib/signbitf.c: Likewise.
62554         * lib/signbitl.c: Likewise.
62555         * lib/sigprocmask.c: Likewise.
62556         * lib/sincosl.c: Likewise.
62557         * lib/sleep.c: Likewise.
62558         * lib/sprintf.c: Likewise.
62559         * lib/sqrtl.c: Likewise.
62560         * lib/stat-time.h: Likewise.
62561         * lib/stdio--.h: Likewise.
62562         * lib/stdio-safer.h: Likewise.
62563         * lib/stdlib--.h: Likewise.
62564         * lib/stdlib-safer.h: Likewise.
62565         * lib/stdlib.in.h: Likewise.
62566         * lib/stpcpy.c: Likewise.
62567         * lib/stpncpy.c: Likewise.
62568         * lib/strchrnul.c: Likewise.
62569         * lib/strcspn.c: Likewise.
62570         * lib/strerror.c: Likewise.
62571         * lib/strftime.c: Likewise.
62572         * lib/strftime.h: Likewise.
62573         * lib/striconveh.c: Likewise.
62574         * lib/striconveh.h: Likewise.
62575         * lib/striconveha.c: Likewise.
62576         * lib/striconveha.h: Likewise.
62577         * lib/stripslash.c: Likewise.
62578         * lib/strnlen1.c: Likewise.
62579         * lib/strnlen1.h: Likewise.
62580         * lib/strtod.c: Likewise.
62581         * lib/strtoimax.c: Likewise.
62582         * lib/strtok_r.c: Likewise.
62583         * lib/strtol.c: Likewise.
62584         * lib/strtoll.c: Likewise.
62585         * lib/strtoul.c: Likewise.
62586         * lib/strtoull.c: Likewise.
62587         * lib/sysexits.in.h: Likewise.
62588         * lib/tempname.c: Likewise.
62589         * lib/tempname.h: Likewise.
62590         * lib/timespec.h: Likewise.
62591         * lib/tls.c: Likewise.
62592         * lib/tls.h: Likewise.
62593         * lib/tmpdir.c: Likewise.
62594         * lib/tmpdir.h: Likewise.
62595         * lib/tmpfile-safer.c: Likewise.
62596         * lib/tmpfile.c: Likewise.
62597         * lib/trigl.c: Likewise.
62598         * lib/trigl.h: Likewise.
62599         * lib/trim.c: Likewise.
62600         * lib/trim.h: Likewise.
62601         * lib/trunc.c: Likewise.
62602         * lib/truncf.c: Likewise.
62603         * lib/truncl.c: Likewise.
62604         * lib/tsearch.c: Likewise.
62605         * lib/unicodeio.c: Likewise.
62606         * lib/unicodeio.h: Likewise.
62607         * lib/unistd--.h: Likewise.
62608         * lib/unistd-safer.h: Likewise.
62609         * lib/unistdio/ulc-fprintf.c: Likewise.
62610         * lib/unistdio/ulc-vfprintf.c: Likewise.
62611         * lib/unlinkdir.c: Likewise.
62612         * lib/unlinkdir.h: Likewise.
62613         * lib/unlocked-io.h: Likewise.
62614         * lib/unsetenv.c: Likewise.
62615         * lib/userspec.c: Likewise.
62616         * lib/utime.c: Likewise.
62617         * lib/utimecmp.c: Likewise.
62618         * lib/utimecmp.h: Likewise.
62619         * lib/utimens.c: Likewise.
62620         * lib/verify.h: Likewise.
62621         * lib/verror.c: Likewise.
62622         * lib/verror.h: Likewise.
62623         * lib/version-etc-fsf.c: Likewise.
62624         * lib/version-etc.c: Likewise.
62625         * lib/version-etc.h: Likewise.
62626         * lib/vfprintf.c: Likewise.
62627         * lib/vprintf.c: Likewise.
62628         * lib/vsprintf.c: Likewise.
62629         * lib/w32spawn.h: Likewise.
62630         * lib/wait-process.c: Likewise.
62631         * lib/wait-process.h: Likewise.
62632         * lib/wcwidth.c: Likewise.
62633         * lib/write-any-file.c: Likewise.
62634         * lib/xalloc-die.c: Likewise.
62635         * lib/xalloc.h: Likewise.
62636         * lib/xasprintf.c: Likewise.
62637         * lib/xgetcwd.c: Likewise.
62638         * lib/xgetcwd.h: Likewise.
62639         * lib/xgetdomainname.c: Likewise.
62640         * lib/xgetdomainname.h: Likewise.
62641         * lib/xgethostname.c: Likewise.
62642         * lib/xmalloc.c: Likewise.
62643         * lib/xmalloca.c: Likewise.
62644         * lib/xmalloca.h: Likewise.
62645         * lib/xmemcoll.c: Likewise.
62646         * lib/xnanosleep.c: Likewise.
62647         * lib/xreadlink.c: Likewise.
62648         * lib/xreadlink.h: Likewise.
62649         * lib/xsetenv.c: Likewise.
62650         * lib/xsetenv.h: Likewise.
62651         * lib/xstriconv.c: Likewise.
62652         * lib/xstriconv.h: Likewise.
62653         * lib/xstrndup.c: Likewise.
62654         * lib/xstrndup.h: Likewise.
62655         * lib/xstrtod.c: Likewise.
62656         * lib/xstrtod.h: Likewise.
62657         * lib/xstrtol-error.c: Likewise.
62658         * lib/xstrtol.c: Likewise.
62659         * lib/xstrtol.h: Likewise.
62660         * lib/xtime.h: Likewise.
62661         * lib/xvasprintf.c: Likewise.
62662         * lib/xvasprintf.h: Likewise.
62663         * lib/yesno.c: Likewise.
62664         * lib/yesno.h: Likewise.
62665         * posix-modules: Likewise.
62666         * tests/test-alloca-opt.c: Likewise.
62667         * tests/test-arcfour.c: Likewise.
62668         * tests/test-arctwo.c: Likewise.
62669         * tests/test-argmatch.c: Likewise.
62670         * tests/test-argp-2.sh: Likewise.
62671         * tests/test-argp.c: Likewise.
62672         * tests/test-arpa_inet.c: Likewise.
62673         * tests/test-array_list.c: Likewise.
62674         * tests/test-array_oset.c: Likewise.
62675         * tests/test-atexit.c: Likewise.
62676         * tests/test-avltree_list.c: Likewise.
62677         * tests/test-avltree_oset.c: Likewise.
62678         * tests/test-avltreehash_list.c: Likewise.
62679         * tests/test-base64.c: Likewise.
62680         * tests/test-binary-io.c: Likewise.
62681         * tests/test-byteswap.c: Likewise.
62682         * tests/test-c-ctype.c: Likewise.
62683         * tests/test-c-strcasecmp.c: Likewise.
62684         * tests/test-c-strcasestr.c: Likewise.
62685         * tests/test-c-strncasecmp.c: Likewise.
62686         * tests/test-c-strstr.c: Likewise.
62687         * tests/test-canonicalize-lgpl.c: Likewise.
62688         * tests/test-canonicalize.c: Likewise.
62689         * tests/test-carray_list.c: Likewise.
62690         * tests/test-ceilf.c: Likewise.
62691         * tests/test-ceill.c: Likewise.
62692         * tests/test-count-one-bits.c: Likewise.
62693         * tests/test-crc.c: Likewise.
62694         * tests/test-dirname.c: Likewise.
62695         * tests/test-fbufmode.c: Likewise.
62696         * tests/test-fcntl.c: Likewise.
62697         * tests/test-fflush.c: Likewise.
62698         * tests/test-floorf.c: Likewise.
62699         * tests/test-floorl.c: Likewise.
62700         * tests/test-fopen.c: Likewise.
62701         * tests/test-fprintf-posix.c: Likewise.
62702         * tests/test-fprintf-posix.h: Likewise.
62703         * tests/test-fpurge.c: Likewise.
62704         * tests/test-freadable.c: Likewise.
62705         * tests/test-freadahead.c: Likewise.
62706         * tests/test-freading.c: Likewise.
62707         * tests/test-freopen.c: Likewise.
62708         * tests/test-frexp.c: Likewise.
62709         * tests/test-frexpl.c: Likewise.
62710         * tests/test-fseek.c: Likewise.
62711         * tests/test-fseeko.c: Likewise.
62712         * tests/test-fseterr.c: Likewise.
62713         * tests/test-fstrcmp.c: Likewise.
62714         * tests/test-ftell.c: Likewise.
62715         * tests/test-ftello.c: Likewise.
62716         * tests/test-fwritable.c: Likewise.
62717         * tests/test-fwriting.c: Likewise.
62718         * tests/test-getaddrinfo.c: Likewise.
62719         * tests/test-getpass.c: Likewise.
62720         * tests/test-gettimeofday.c: Likewise.
62721         * tests/test-hmac-md5.c: Likewise.
62722         * tests/test-hmac-sha1.c: Likewise.
62723         * tests/test-iconv.c: Likewise.
62724         * tests/test-iconvme.c: Likewise.
62725         * tests/test-inttypes.c: Likewise.
62726         * tests/test-isnan.c: Likewise.
62727         * tests/test-isnanf.c: Likewise.
62728         * tests/test-isnanl-nolibm.c: Likewise.
62729         * tests/test-isnanl.c: Likewise.
62730         * tests/test-isnanl.h: Likewise.
62731         * tests/test-ldexpl.c: Likewise.
62732         * tests/test-linked_list.c: Likewise.
62733         * tests/test-linkedhash_list.c: Likewise.
62734         * tests/test-locale.c: Likewise.
62735         * tests/test-localename.c: Likewise.
62736         * tests/test-lock.c: Likewise.
62737         * tests/test-lseek.c: Likewise.
62738         * tests/test-malloca.c: Likewise.
62739         * tests/test-math.c: Likewise.
62740         * tests/test-mbscasecmp.c: Likewise.
62741         * tests/test-mbscasestr1.c: Likewise.
62742         * tests/test-mbscasestr2.c: Likewise.
62743         * tests/test-mbscasestr3.c: Likewise.
62744         * tests/test-mbscasestr4.c: Likewise.
62745         * tests/test-mbschr.c: Likewise.
62746         * tests/test-mbscspn.c: Likewise.
62747         * tests/test-mbsncasecmp.c: Likewise.
62748         * tests/test-mbspbrk.c: Likewise.
62749         * tests/test-mbspcasecmp.c: Likewise.
62750         * tests/test-mbsrchr.c: Likewise.
62751         * tests/test-mbsspn.c: Likewise.
62752         * tests/test-mbsstr1.c: Likewise.
62753         * tests/test-mbsstr2.c: Likewise.
62754         * tests/test-mbsstr3.c: Likewise.
62755         * tests/test-md5.c: Likewise.
62756         * tests/test-memmem.c: Likewise.
62757         * tests/test-netinet_in.c: Likewise.
62758         * tests/test-open.c: Likewise.
62759         * tests/test-printf-frexp.c: Likewise.
62760         * tests/test-printf-frexpl.c: Likewise.
62761         * tests/test-printf-posix.c: Likewise.
62762         * tests/test-printf-posix.h: Likewise.
62763         * tests/test-rbtree_list.c: Likewise.
62764         * tests/test-rbtree_oset.c: Likewise.
62765         * tests/test-rbtreehash_list.c: Likewise.
62766         * tests/test-read-file.c: Likewise.
62767         * tests/test-rijndael.c: Likewise.
62768         * tests/test-search.c: Likewise.
62769         * tests/test-signbit.c: Likewise.
62770         * tests/test-sleep.c: Likewise.
62771         * tests/test-snprintf-posix.c: Likewise.
62772         * tests/test-snprintf-posix.h: Likewise.
62773         * tests/test-snprintf.c: Likewise.
62774         * tests/test-sprintf-posix.c: Likewise.
62775         * tests/test-sprintf-posix.h: Likewise.
62776         * tests/test-stat-time.c: Likewise.
62777         * tests/test-stdbool.c: Likewise.
62778         * tests/test-stdint.c: Likewise.
62779         * tests/test-stdio.c: Likewise.
62780         * tests/test-stdlib.c: Likewise.
62781         * tests/test-stpncpy.c: Likewise.
62782         * tests/test-strcasestr.c: Likewise.
62783         * tests/test-striconv.c: Likewise.
62784         * tests/test-striconveh.c: Likewise.
62785         * tests/test-striconveha.c: Likewise.
62786         * tests/test-string.c: Likewise.
62787         * tests/test-sys_select.c: Likewise.
62788         * tests/test-sys_socket.c: Likewise.
62789         * tests/test-sys_stat.c: Likewise.
62790         * tests/test-sys_time.c: Likewise.
62791         * tests/test-sysexits.c: Likewise.
62792         * tests/test-time.c: Likewise.
62793         * tests/test-tls.c: Likewise.
62794         * tests/test-trunc.c: Likewise.
62795         * tests/test-truncf.c: Likewise.
62796         * tests/test-truncl.c: Likewise.
62797         * tests/test-unistd.c: Likewise.
62798         * tests/test-vasnprintf-posix.c: Likewise.
62799         * tests/test-vasnprintf-posix2.c: Likewise.
62800         * tests/test-vasnprintf.c: Likewise.
62801         * tests/test-vasprintf-posix.c: Likewise.
62802         * tests/test-vasprintf.c: Likewise.
62803         * tests/test-verify.c: Likewise.
62804         * tests/test-vfprintf-posix.c: Likewise.
62805         * tests/test-vprintf-posix.c: Likewise.
62806         * tests/test-vsnprintf-posix.c: Likewise.
62807         * tests/test-vsnprintf.c: Likewise.
62808         * tests/test-vsprintf-posix.c: Likewise.
62809         * tests/test-wchar.c: Likewise.
62810         * tests/test-wctype.c: Likewise.
62811         * tests/test-wcwidth.c: Likewise.
62812         * tests/test-xstrtol.c: Likewise.
62813         * tests/test-xvasprintf.c: Likewise.
62814         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62815         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62816         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62817         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62818         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62819         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62820         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62821         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62822         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62823         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62824         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62825         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62826         * tests/uniname/test-uninames.c: Likewise.
62827         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62828         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62829         * tests/unistdio/test-u16-printf1.h: Likewise.
62830         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62831         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62832         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62833         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62834         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62835         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62836         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62837         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62838         * tests/unistdio/test-u32-printf1.h: Likewise.
62839         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62840         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62841         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62842         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62843         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62844         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62845         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62846         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62847         * tests/unistdio/test-u8-printf1.h: Likewise.
62848         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62849         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62850         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62851         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62852         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62853         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62854         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62855         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62856         * tests/unistdio/test-ulc-printf1.h: Likewise.
62857         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62858         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62859         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62860         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62861         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62862         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62863         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62864         * tests/uniwidth/test-u16-width.c: Likewise.
62865         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62866         * tests/uniwidth/test-u32-width.c: Likewise.
62867         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62868         * tests/uniwidth/test-u8-width.c: Likewise.
62869         * tests/uniwidth/test-uc_width.c: Likewise.
62870         * config/srclist-update: Likewise.
62871         (fixlicense): Update to GPLv3+.
62872
62873         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62874         * tests/test-tsearch.c: Change copyright notice.
62875
62876         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62877         * lib/c-strcaseeq.h: Change copyright notice.
62878         * lib/streq.h: Likewise.
62879         * lib/uniconv.h: Likewise.
62880         * lib/uniconv/u-conv-from-enc.h: Likewise.
62881         * lib/uniconv/u-conv-to-enc.h: Likewise.
62882         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62883         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62884         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62885         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62886         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62887         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62888         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62889         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62890         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62891         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62892         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62893         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62894         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62895         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62896         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62897         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62898         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62899         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62900         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62901         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62902         * lib/uniname.h: Likewise.
62903         * lib/uniname/uniname.c: Likewise.
62904         * lib/unistdio.h: Likewise.
62905         * lib/unistdio/u-asnprintf.h: Likewise.
62906         * lib/unistdio/u-asprintf.h: Likewise.
62907         * lib/unistdio/u-printf-args.c: Likewise.
62908         * lib/unistdio/u-printf-args.h: Likewise.
62909         * lib/unistdio/u-printf-parse.h: Likewise.
62910         * lib/unistdio/u-snprintf.h: Likewise.
62911         * lib/unistdio/u-sprintf.h: Likewise.
62912         * lib/unistdio/u-vasprintf.h: Likewise.
62913         * lib/unistdio/u-vsnprintf.h: Likewise.
62914         * lib/unistdio/u-vsprintf.h: Likewise.
62915         * lib/unistdio/u16-asnprintf.c: Likewise.
62916         * lib/unistdio/u16-asprintf.c: Likewise.
62917         * lib/unistdio/u16-printf-parse.c: Likewise.
62918         * lib/unistdio/u16-snprintf.c: Likewise.
62919         * lib/unistdio/u16-sprintf.c: Likewise.
62920         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62921         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62922         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62923         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62924         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62925         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62926         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62927         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62928         * lib/unistdio/u16-vasnprintf.c: Likewise.
62929         * lib/unistdio/u16-vasprintf.c: Likewise.
62930         * lib/unistdio/u16-vsnprintf.c: Likewise.
62931         * lib/unistdio/u16-vsprintf.c: Likewise.
62932         * lib/unistdio/u32-asnprintf.c: Likewise.
62933         * lib/unistdio/u32-asprintf.c: Likewise.
62934         * lib/unistdio/u32-printf-parse.c: Likewise.
62935         * lib/unistdio/u32-snprintf.c: Likewise.
62936         * lib/unistdio/u32-sprintf.c: Likewise.
62937         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62938         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62939         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62940         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62941         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62942         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62943         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62944         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62945         * lib/unistdio/u32-vasnprintf.c: Likewise.
62946         * lib/unistdio/u32-vasprintf.c: Likewise.
62947         * lib/unistdio/u32-vsnprintf.c: Likewise.
62948         * lib/unistdio/u32-vsprintf.c: Likewise.
62949         * lib/unistdio/u8-asnprintf.c: Likewise.
62950         * lib/unistdio/u8-asprintf.c: Likewise.
62951         * lib/unistdio/u8-printf-parse.c: Likewise.
62952         * lib/unistdio/u8-snprintf.c: Likewise.
62953         * lib/unistdio/u8-sprintf.c: Likewise.
62954         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62955         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62956         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62957         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62958         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62959         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62960         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62961         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62962         * lib/unistdio/u8-vasnprintf.c: Likewise.
62963         * lib/unistdio/u8-vasprintf.c: Likewise.
62964         * lib/unistdio/u8-vsnprintf.c: Likewise.
62965         * lib/unistdio/u8-vsprintf.c: Likewise.
62966         * lib/unistdio/ulc-asnprintf.c: Likewise.
62967         * lib/unistdio/ulc-asprintf.c: Likewise.
62968         * lib/unistdio/ulc-printf-parse.c: Likewise.
62969         * lib/unistdio/ulc-snprintf.c: Likewise.
62970         * lib/unistdio/ulc-sprintf.c: Likewise.
62971         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62972         * lib/unistdio/ulc-vasprintf.c: Likewise.
62973         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62974         * lib/unistdio/ulc-vsprintf.c: Likewise.
62975         * lib/unistr.h: Likewise.
62976         * lib/unistr/u-cpy-alloc.h: Likewise.
62977         * lib/unistr/u-cpy.h: Likewise.
62978         * lib/unistr/u-endswith.h: Likewise.
62979         * lib/unistr/u-move.h: Likewise.
62980         * lib/unistr/u-set.h: Likewise.
62981         * lib/unistr/u-startswith.h: Likewise.
62982         * lib/unistr/u-stpcpy.h: Likewise.
62983         * lib/unistr/u-stpncpy.h: Likewise.
62984         * lib/unistr/u-strcat.h: Likewise.
62985         * lib/unistr/u-strcpy.h: Likewise.
62986         * lib/unistr/u-strcspn.h: Likewise.
62987         * lib/unistr/u-strdup.h: Likewise.
62988         * lib/unistr/u-strlen.h: Likewise.
62989         * lib/unistr/u-strncat.h: Likewise.
62990         * lib/unistr/u-strncpy.h: Likewise.
62991         * lib/unistr/u-strnlen.h: Likewise.
62992         * lib/unistr/u-strpbrk.h: Likewise.
62993         * lib/unistr/u-strspn.h: Likewise.
62994         * lib/unistr/u-strstr.h: Likewise.
62995         * lib/unistr/u-strtok.h: Likewise.
62996         * lib/unistr/u16-check.c: Likewise.
62997         * lib/unistr/u16-chr.c: Likewise.
62998         * lib/unistr/u16-cmp.c: Likewise.
62999         * lib/unistr/u16-cpy-alloc.c: Likewise.
63000         * lib/unistr/u16-cpy.c: Likewise.
63001         * lib/unistr/u16-endswith.c: Likewise.
63002         * lib/unistr/u16-mblen.c: Likewise.
63003         * lib/unistr/u16-mbsnlen.c: Likewise.
63004         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63005         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63006         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63007         * lib/unistr/u16-mbtouc.c: Likewise.
63008         * lib/unistr/u16-mbtoucr.c: Likewise.
63009         * lib/unistr/u16-move.c: Likewise.
63010         * lib/unistr/u16-next.c: Likewise.
63011         * lib/unistr/u16-prev.c: Likewise.
63012         * lib/unistr/u16-set.c: Likewise.
63013         * lib/unistr/u16-startswith.c: Likewise.
63014         * lib/unistr/u16-stpcpy.c: Likewise.
63015         * lib/unistr/u16-stpncpy.c: Likewise.
63016         * lib/unistr/u16-strcat.c: Likewise.
63017         * lib/unistr/u16-strchr.c: Likewise.
63018         * lib/unistr/u16-strcmp.c: Likewise.
63019         * lib/unistr/u16-strcpy.c: Likewise.
63020         * lib/unistr/u16-strcspn.c: Likewise.
63021         * lib/unistr/u16-strdup.c: Likewise.
63022         * lib/unistr/u16-strlen.c: Likewise.
63023         * lib/unistr/u16-strmblen.c: Likewise.
63024         * lib/unistr/u16-strmbtouc.c: Likewise.
63025         * lib/unistr/u16-strncat.c: Likewise.
63026         * lib/unistr/u16-strncmp.c: Likewise.
63027         * lib/unistr/u16-strncpy.c: Likewise.
63028         * lib/unistr/u16-strnlen.c: Likewise.
63029         * lib/unistr/u16-strpbrk.c: Likewise.
63030         * lib/unistr/u16-strrchr.c: Likewise.
63031         * lib/unistr/u16-strspn.c: Likewise.
63032         * lib/unistr/u16-strstr.c: Likewise.
63033         * lib/unistr/u16-strtok.c: Likewise.
63034         * lib/unistr/u16-to-u32.c: Likewise.
63035         * lib/unistr/u16-to-u8.c: Likewise.
63036         * lib/unistr/u16-uctomb-aux.c: Likewise.
63037         * lib/unistr/u16-uctomb.c: Likewise.
63038         * lib/unistr/u32-check.c: Likewise.
63039         * lib/unistr/u32-chr.c: Likewise.
63040         * lib/unistr/u32-cmp.c: Likewise.
63041         * lib/unistr/u32-cpy-alloc.c: Likewise.
63042         * lib/unistr/u32-cpy.c: Likewise.
63043         * lib/unistr/u32-endswith.c: Likewise.
63044         * lib/unistr/u32-mblen.c: Likewise.
63045         * lib/unistr/u32-mbsnlen.c: Likewise.
63046         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63047         * lib/unistr/u32-mbtouc.c: Likewise.
63048         * lib/unistr/u32-mbtoucr.c: Likewise.
63049         * lib/unistr/u32-move.c: Likewise.
63050         * lib/unistr/u32-next.c: Likewise.
63051         * lib/unistr/u32-prev.c: Likewise.
63052         * lib/unistr/u32-set.c: Likewise.
63053         * lib/unistr/u32-startswith.c: Likewise.
63054         * lib/unistr/u32-stpcpy.c: Likewise.
63055         * lib/unistr/u32-stpncpy.c: Likewise.
63056         * lib/unistr/u32-strcat.c: Likewise.
63057         * lib/unistr/u32-strchr.c: Likewise.
63058         * lib/unistr/u32-strcmp.c: Likewise.
63059         * lib/unistr/u32-strcpy.c: Likewise.
63060         * lib/unistr/u32-strcspn.c: Likewise.
63061         * lib/unistr/u32-strdup.c: Likewise.
63062         * lib/unistr/u32-strlen.c: Likewise.
63063         * lib/unistr/u32-strmblen.c: Likewise.
63064         * lib/unistr/u32-strmbtouc.c: Likewise.
63065         * lib/unistr/u32-strncat.c: Likewise.
63066         * lib/unistr/u32-strncmp.c: Likewise.
63067         * lib/unistr/u32-strncpy.c: Likewise.
63068         * lib/unistr/u32-strnlen.c: Likewise.
63069         * lib/unistr/u32-strpbrk.c: Likewise.
63070         * lib/unistr/u32-strrchr.c: Likewise.
63071         * lib/unistr/u32-strspn.c: Likewise.
63072         * lib/unistr/u32-strstr.c: Likewise.
63073         * lib/unistr/u32-strtok.c: Likewise.
63074         * lib/unistr/u32-to-u16.c: Likewise.
63075         * lib/unistr/u32-to-u8.c: Likewise.
63076         * lib/unistr/u32-uctomb.c: Likewise.
63077         * lib/unistr/u8-check.c: Likewise.
63078         * lib/unistr/u8-chr.c: Likewise.
63079         * lib/unistr/u8-cmp.c: Likewise.
63080         * lib/unistr/u8-cpy-alloc.c: Likewise.
63081         * lib/unistr/u8-cpy.c: Likewise.
63082         * lib/unistr/u8-endswith.c: Likewise.
63083         * lib/unistr/u8-mblen.c: Likewise.
63084         * lib/unistr/u8-mbsnlen.c: Likewise.
63085         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63086         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63087         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63088         * lib/unistr/u8-mbtouc.c: Likewise.
63089         * lib/unistr/u8-mbtoucr.c: Likewise.
63090         * lib/unistr/u8-move.c: Likewise.
63091         * lib/unistr/u8-next.c: Likewise.
63092         * lib/unistr/u8-prev.c: Likewise.
63093         * lib/unistr/u8-set.c: Likewise.
63094         * lib/unistr/u8-startswith.c: Likewise.
63095         * lib/unistr/u8-stpcpy.c: Likewise.
63096         * lib/unistr/u8-stpncpy.c: Likewise.
63097         * lib/unistr/u8-strcat.c: Likewise.
63098         * lib/unistr/u8-strchr.c: Likewise.
63099         * lib/unistr/u8-strcmp.c: Likewise.
63100         * lib/unistr/u8-strcpy.c: Likewise.
63101         * lib/unistr/u8-strcspn.c: Likewise.
63102         * lib/unistr/u8-strdup.c: Likewise.
63103         * lib/unistr/u8-strlen.c: Likewise.
63104         * lib/unistr/u8-strmblen.c: Likewise.
63105         * lib/unistr/u8-strmbtouc.c: Likewise.
63106         * lib/unistr/u8-strncat.c: Likewise.
63107         * lib/unistr/u8-strncmp.c: Likewise.
63108         * lib/unistr/u8-strncpy.c: Likewise.
63109         * lib/unistr/u8-strnlen.c: Likewise.
63110         * lib/unistr/u8-strpbrk.c: Likewise.
63111         * lib/unistr/u8-strrchr.c: Likewise.
63112         * lib/unistr/u8-strspn.c: Likewise.
63113         * lib/unistr/u8-strstr.c: Likewise.
63114         * lib/unistr/u8-strtok.c: Likewise.
63115         * lib/unistr/u8-to-u16.c: Likewise.
63116         * lib/unistr/u8-to-u32.c: Likewise.
63117         * lib/unistr/u8-uctomb-aux.c: Likewise.
63118         * lib/unistr/u8-uctomb.c: Likewise.
63119         * lib/unitypes.h: Likewise.
63120         * lib/uniwidth.h: Likewise.
63121         * lib/uniwidth/cjk.h: Likewise.
63122         * lib/uniwidth/u16-strwidth.c: Likewise.
63123         * lib/uniwidth/u16-width.c: Likewise.
63124         * lib/uniwidth/u32-strwidth.c: Likewise.
63125         * lib/uniwidth/u32-width.c: Likewise.
63126         * lib/uniwidth/u8-strwidth.c: Likewise.
63127         * lib/uniwidth/u8-width.c: Likewise.
63128         * lib/uniwidth/width.c: Likewise.
63129
63130 2007-10-07  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63133         The file is still under LGPL (see modules/inttypes).
63134
63135 2007-10-06  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/trunc (Dependencies): Add 'extensions'.
63138         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63139         Reported by Ben Pfaff <blp@gnu.org>.
63140
63141 2007-10-06  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/freopen-tests: New file.
63144         * tests/test-freopen.c: New file.
63145
63146         * modules/fopen-tests: New file.
63147         * tests/test-fopen.c: New file.
63148
63149         * modules/fopen: New file.
63150         * lib/fopen.c: New file.
63151         * m4/fopen.m4: New file.
63152         * modules/freopen: New file.
63153         * lib/freopen.c: New file.
63154         * m4/freopen.m4: New file.
63155         * lib/stdio.in.h (fopen, freopen): New declarations.
63156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63157         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63158         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63159         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63160         * doc/functions/fopen.texi: Mention the 'fopen' module.
63161         * doc/functions/freopen.texi: Mention the 'freopen' module.
63162
63163 2007-10-06  Bruno Haible  <bruno@clisp.org>
63164
63165         * modules/open-tests: New file.
63166         * tests/test-open.c: New file.
63167
63168         * modules/open: New file.
63169         * lib/open.c: New file.
63170         * m4/open.m4: New file.
63171         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63172         lib/open.c does.
63173         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63174         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63175         macros.
63176         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63177         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63178         REPLACE_OPEN.
63179         * doc/functions/open.texi: Mention the 'open' module.
63180
63181 2007-10-04  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/ceill-tests: New file.
63184         * tests/test-ceill.c: New file.
63185
63186         * modules/ceill: New file.
63187         * lib/ceill.c: Replace entire file.
63188         * m4/ceill.m4: New file.
63189         * lib/math.in.h (ceill): Replace declaration.
63190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63191         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63192         * doc/functions/ceill.texi: Mention the 'ceill' module.
63193         * modules/mathl (Files): Remove lib/ceill.c.
63194         (Depends-on): Add ceill.
63195
63196 2007-10-04  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/ceilf-tests: New file.
63199         * tests/test-ceilf.c: New file.
63200
63201         * modules/ceilf: New file.
63202         * lib/ceil.c: New file.
63203         * lib/ceilf.c: New file.
63204         * m4/ceilf.m4: New file.
63205         * lib/math.in.h (ceilf): New declaration.
63206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63207         HAVE_DECL_CEILF.
63208         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63209         HAVE_DECL_CEILF.
63210         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63211
63212 2007-10-04  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/floorl-tests: New file.
63215         * tests/test-floorl.c: New file.
63216
63217         * modules/floorl: New file.
63218         * lib/floorl.c: Replace entire file.
63219         * m4/floorl.m4: New file.
63220         * lib/math.in.h (floorl): Replace declaration.
63221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63222         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63223         * doc/functions/floorl.texi: Mention the 'floorl' module.
63224         * modules/mathl (Files): Remove lib/floorl.c.
63225         (Depends-on): Add floorl.
63226
63227 2007-10-04  Bruno Haible  <bruno@clisp.org>
63228
63229         * modules/floorf-tests: New file.
63230         * tests/test-floorf.c: New file.
63231
63232         * modules/floorf: New file.
63233         * lib/floor.c: New file.
63234         * lib/floorf.c: New file.
63235         * m4/floorf.m4: New file.
63236         * lib/math.in.h (floorf): New declaration.
63237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63238         HAVE_DECL_FLOORF.
63239         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63240         HAVE_DECL_FLOORF.
63241         * doc/functions/floorf.texi: Mention the 'floorf' module.
63242
63243 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63244             Bruno Haible  <bruno@clisp.org>
63245
63246         Advertise for the Git server instead of the CVS server.
63247         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63248         repository instead of the CVS one.
63249         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63250         about all VCS systems generically.
63251         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63252
63253 2007-10-04  Bruno Haible  <bruno@clisp.org>
63254
63255         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63256         means.
63257         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63258
63259 2007-10-04  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/truncl-tests: New file.
63262         * tests/test-truncl.c: New file.
63263
63264         * modules/truncl: New file.
63265         * lib/truncl.c: New file.
63266         * m4/truncl.m4: New file.
63267         * lib/math.in.h (truncl): New declaration.
63268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63269         HAVE_DECL_TRUNCL.
63270         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63271         HAVE_DECL_TRUNCL.
63272         * doc/functions/truncl.texi: Mention the 'truncl' module.
63273
63274 2007-10-04  Bruno Haible  <bruno@clisp.org>
63275
63276         * modules/truncf-tests: New file.
63277         * tests/test-truncf.c: New file.
63278
63279         * modules/truncf: New file.
63280         * lib/trunc.c: Make paramerizable through USE_* macros.
63281         * lib/truncf.c: New file.
63282         * m4/truncf.m4: New file.
63283         * lib/math.in.h (truncf): New declaration.
63284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63285         HAVE_DECL_TRUNCF.
63286         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63287         HAVE_DECL_TRUNCF.
63288         * doc/functions/truncf.texi: Mention the 'truncf' module.
63289
63290 2007-10-03  Bruno Haible  <bruno@clisp.org>
63291
63292         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63293         augmentation also for tests modules.
63294         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63295         * modules/atexit-tests (Makefile.am): Likewise.
63296         * modules/binary-io-tests (Makefile.am): Likewise.
63297         * modules/c-strcase-tests (Makefile.am): Likewise.
63298         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63299         * modules/canonicalize-tests (Makefile.am): Likewise.
63300         * modules/closein-tests (Makefile.am): Likewise.
63301         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63302         * modules/freadahead-tests (Makefile.am): Likewise.
63303         * modules/fseek-tests (Makefile.am): Likewise.
63304         * modules/fseeko-tests (Makefile.am): Likewise.
63305         * modules/ftell-tests (Makefile.am): Likewise.
63306         * modules/ftello-tests (Makefile.am): Likewise.
63307         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63308         * modules/isnanl-tests (Makefile.am): Likewise.
63309         * modules/lseek-tests (Makefile.am): Likewise.
63310         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63311         * modules/mbscasestr-tests (Makefile.am): Likewise.
63312         * modules/mbschr-tests (Makefile.am): Likewise.
63313         * modules/mbscspn-tests (Makefile.am): Likewise.
63314         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63315         * modules/mbspbrk-tests (Makefile.am): Likewise.
63316         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63317         * modules/mbsrchr-tests (Makefile.am): Likewise.
63318         * modules/mbsspn-tests (Makefile.am): Likewise.
63319         * modules/mbsstr-tests (Makefile.am): Likewise.
63320         * modules/printf-posix-tests (Makefile.am): Likewise.
63321         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63322         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63323         * modules/tsearch-tests (Makefile.am): Likewise.
63324         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63325         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63326         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63327         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63328         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63329         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63330         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63331         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63332         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63333         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63334         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63335         * modules/xstrtol-tests (Makefile.am): Likewise.
63336         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63337         * modules/yesno-tests (Makefile.am): Likewise.
63338
63339 2007-10-03  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/trunc-tests: New file.
63342         * tests/test-trunc.c: New file.
63343
63344         * modules/trunc: New file.
63345         * lib/trunc.c: New file.
63346         * m4/trunc.m4: New file.
63347         * lib/math.in.h (trunc): New declaration.
63348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63349         HAVE_DECL_TRUNC.
63350         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63351         HAVE_DECL_TRUNC.
63352         * doc/functions/trunc.texi: Mention the 'trunc' module.
63353
63354 2007-10-03  Bruno Haible  <bruno@clisp.org>
63355
63356         * tests/test-fpending.c: New file, mostly copied
63357         from coreutils/lib/t-fpending.c.
63358         * modules/fpending-tests: New file.
63359
63360 2007-10-03  Bruno Haible  <bruno@clisp.org>
63361
63362         Port the stdio extensions to QNX (untested).
63363         * lib/fseterr.c (fseterr): Add support for QNX.
63364         * lib/fbufmode.c (fbufmode): Likewise.
63365         * lib/freadable.c (freadable): Likewise.
63366         * lib/fwritable.c (fwritable): Likewise.
63367         * lib/freading.c (freading): Likewise.
63368         * lib/fwriting.c (fwriting): Likewise.
63369         * lib/freadahead.c (freadahed): Likewise.
63370         * lib/fpurge.c (fpurge): Likewise.
63371         * lib/fseeko.c (rpl_fseeko): Likewise.
63372
63373 2007-10-03  Bruno Haible  <bruno@clisp.org>
63374             Jim Meyering  <jim@meyering.net>
63375             Eric Blake  <ebb9@byu.net>
63376
63377         * doc/relocatable.texi: Use @command instead of @program.
63378
63379 2007-10-02  Jim Meyering  <jim@meyering.net>
63380
63381         Perform one more "_.h" -> ".in.h" substitution.
63382         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63383         instead of unistd_.h here, too.
63384
63385 2007-10-01  Bruno Haible  <bruno@clisp.org>
63386
63387         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63388         Needed for the alloca-opt module.
63389
63390 2007-09-30  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63393         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63394         alloca_.h.
63395         * lib/argz.in.h: Renamed from lib/argz_.h.
63396         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63397         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63398         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63399         byteswap_.h.
63400         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63401         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63402         dirent_.h.
63403         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63404         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63405         fcntl_.h.
63406         * lib/float.in.h: Renamed from lib/float_.h.
63407         * modules/float (Files, Makefile.am): Use float.in.h instead of
63408         float_.h.
63409         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63410         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63411         fnmatch_.h.
63412         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63413         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63414         getopt_.h.
63415         * lib/glob.in.h: Renamed from lib/glob_.h.
63416         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63417         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63418         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63419         iconv_.h.
63420         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63421         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63422         inttypes_.h.
63423         * lib/locale.in.h: Renamed from lib/locale_.h.
63424         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63425         locale_.h.
63426         * lib/math.in.h: Renamed from lib/math_.h.
63427         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63428         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63429         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63430         of netinet_in_.h. Add dependency.
63431         * lib/poll.in.h: Renamed from lib/poll_.h.
63432         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63433         * lib/search.in.h: Renamed from lib/search_.h.
63434         * modules/search (Files, Makefile.am): Use search.in.h instead of
63435         search_.h.
63436         * lib/signal.in.h: Renamed from lib/signal_.h.
63437         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63438         _signal.h.
63439         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63440         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63441         stdbool_.h.
63442         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63443         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63444         stdint_.h.
63445         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63446         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63447         stdio_.h.
63448         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63449         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63450         stdlib_.h.
63451         * lib/string.in.h: Renamed from lib/string_.h.
63452         * modules/string (Files, Makefile.am): Use string.in.h instead of
63453         string_.h.
63454         * doc/gnulib-tool.texi (Initial import): Update.
63455         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63456         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63457         of sys_select_.h. Add dependency.
63458         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63459         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63460         of sys_socket_.h.
63461         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63462         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63463         sys_stat_.h.
63464         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63465         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63466         sys_time_.h.
63467         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63468         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63469         sysexits_.h.
63470         * lib/time.in.h: Renamed from lib/time_.h.
63471         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63472         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63473         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63474         unistd_.h.
63475         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63476         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63477         wchar_.h.
63478         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63479         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63480         wctype_.h.
63481         * build-aux/bootstrap (slurp): Update.
63482         * lib/.cppi-disable: Update.
63483
63484 2007-09-30  Bruno Haible  <bruno@clisp.org>
63485
63486         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63487         Needed on BeOS.
63488
63489 2007-09-30  Bruno Haible  <bruno@clisp.org>
63490
63491         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63492
63493 2007-09-29  Bruno Haible  <bruno@clisp.org>
63494
63495         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63496
63497 2007-09-29  Bruno Haible  <bruno@clisp.org>
63498
63499         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63500         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63501         * build-aux/install-reloc: Compile also areadlink.c.
63502         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63503
63504 2007-09-29  Bruno Haible  <bruno@clisp.org>
63505
63506         * gnulib-tool (func_emit_initmacro_done): Indentation.
63507
63508 2007-09-29  Bruno Haible  <bruno@clisp.org>
63509
63510         * README: Add CVS checkout update instructions.
63511         Info from Bob Proulx <bob@proulx.com>.
63512
63513 2007-09-28  Eric Blake  <ebb9@byu.net>
63514
63515         Provide move-if-change.
63516         * build-aux/move-if-change: New file, based on best practice
63517         rather than any canonical upstream location.
63518
63519 2007-09-28  Jim Meyering  <jim@meyering.net>
63520
63521         Fix canonicalize loop-detection corner case.
63522         Do not attempt to stat the symlink values stored via seen_triple.
63523         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63524         on linux-2.6.18, (but not 2.6.22).
63525         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63526         triple_compare.  The former compares dev,ino,filename, while the latter
63527         would actually stat dirname(filename) when dev and ino were equal.
63528         * lib/hash-triple.c: Install <string.h>.
63529         (STREQ): Define.
63530         (triple_compare_ino_str): New function.
63531         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63532
63533 2007-09-28  Eric Blake  <ebb9@byu.net>
63534
63535         Enforce that AC_REPLACE_FUNCS files exist.
63536         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63537         override check for typos.
63538
63539         Fix test-closein on Solaris 10.
63540         * tests/test-closein.c (main): Don't assume stdin can be inherited
63541         closed on all systems.
63542         * tests/test-closein.sh: Likewise.
63543         Reported by Piotr Tarnowski.
63544
63545 2007-09-28  Jim Meyering  <jim@meyering.net>
63546
63547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63548
63549 2007-09-27  Jim Meyering  <jim@meyering.net>
63550
63551         canonicalize: Avoid a false-positive cycle failure.
63552         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63553         Sort.  Remove cycle-check.
63554         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63555         not cycle-check.h.
63556         (seen_triple): New function.
63557         (canonicalize_filename_mode): Use it instead of cycle-check.
63558         * tests/test-canonicalize.c: Add a test for this bug.
63559         * tests/test-canonicalize.sh: Set up and run the test.
63560
63561         New module, file-set, from coreutils.
63562         * modules/file-set: Define it.
63563         * lib/file-set.c, lib/file-set.h: Implement.
63564
63565         New module, hash-triple, from coreutils.
63566         * modules/hash-triple: Define it.
63567         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63568
63569 2007-09-25  Eric Blake  <ebb9@byu.net>
63570
63571         Fix strerror on Interix.
63572         * lib/string_.h (strerror): Declare replacement.
63573         * doc/functions/strerror.texi (strerror): Document the Interix
63574         shortcoming.
63575         * modules/string (Makefile.am): Support new hooks.
63576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63577         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63578         gl_FUNC_STRERROR_SEPARATE.
63579         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63580         * lib/strerror.c (rpl_strerror): Provide replacement.
63581         * modules/strerror (Depends-on): Add string.
63582         (configure.ac): Detect use of module.
63583         * tests/test-strerror.c: New file.
63584         * modules/strerror-tests: New test module.
63585         * modules/argp (Depends-on): Add strerror.
63586         * modules/error (Depends-on): Likewise.
63587         Reported by Martin Koeppe.
63588
63589 2007-09-24  Bruno Haible  <bruno@clisp.org>
63590
63591         * README: Update git instructions.
63592
63593 2007-09-24  Eric Blake  <ebb9@byu.net>
63594
63595         Revert fpending breakage from 2007-09-08.
63596         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63597         __fpending.c.
63598
63599 2007-09-24  Jim Meyering  <jim@meyering.net>
63600
63601         filenamecat.c: Add a test.
63602         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63603         showing how the function works when DIR is the empty string.
63604
63605 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63606
63607         * tests/test-canonicalize.sh: Turn on executable bit.
63608
63609 2007-09-19  Eric Blake  <ebb9@byu.net>
63610
63611         * README: Update CVS instructions.
63612
63613 2007-09-18  Bruno Haible  <bruno@clisp.org>
63614
63615         * modules/areadlink: New file.
63616         * lib/areadlink.h (areadlink): New declaration.
63617         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63618
63619 2007-09-17  Jim Meyering  <jim@meyering.net>
63620
63621         * lib/savewd.c (ESTALE) [!defined]: Define.
63622         Reported to be required on Interix by Martin Koeppe.
63623
63624 2007-09-17  Bruno Haible  <bruno@clisp.org>
63625
63626         * gnulib-tool (func_version): Use $version.
63627
63628 2007-09-16  Bruno Haible  <bruno@clisp.org>
63629
63630         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63631         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63632         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63633         Reported by Greg Schafer <gschafer@zip.com.au>.
63634
63635 2007-09-15  Bruno Haible  <bruno@clisp.org>
63636
63637         * gnulib-tool (sed): Try a little harder to make bash understand the
63638         alias.
63639         Reported by Bruce Korb <bruce.korb@gmail.com>.
63640
63641 2007-09-13  Eric Blake  <ebb9@byu.net>
63642
63643         * ChangeLog: Remove conflict markers.
63644
63645 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63646
63647         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63648         Reported by Bruno Haible <bruno@clisp.org>.
63649
63650 2007-09-12  Bruno Haible  <bruno@clisp.org>
63651
63652         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63653         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63654         is not defined.
63655
63656 2007-09-12  Eric Blake  <ebb9@byu.net>
63657
63658         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63660         Autoconf definition.
63661         * modules/euidaccess (Depends-on): Add extensions, for
63662         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63663         * modules/fnmatch (Depends-on): Likewise.
63664         * modules/getaddrinfo (Depends-on): Likewise.
63665         * modules/getdelim (Depends-on): Likewise.
63666         * modules/getline (Depends-on): Likewise.
63667         * modules/getsubopt (Depends-on): Likewise.
63668         * modules/gettext (Depends-on): Likewise.
63669         * modules/group-member (Depends-on): Likewise.
63670         * modules/mbchar (Depends-on): Likewise.
63671         * modules/memmem (Depends-on): Likewise.
63672         * modules/mempcpy (Depends-on): Likewise.
63673         * modules/memrchr (Depends-on): Likewise.
63674         * modules/pagealign_alloc (Depends-on): Likewise.
63675         * modules/readutmp (Depends-on): Likewise.
63676         * modules/stpcpy (Depends-on): Likewise.
63677         * modules/stpncpy (Depends-on): Likewise.
63678         * modules/strchrnul (Depends-on): Likewise.
63679         * modules/strndup (Depends-on): Likewise.
63680         * modules/strsep (Depends-on): Likewise.
63681         * modules/strverscmp (Depends-on): Likewise.
63682         * modules/vasprintf (Depends-on): Likewise.
63683         * modules/wcwidth (Depends-on): Likewise.
63684         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63685         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63686         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63688         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63689         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63690         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63691         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63692         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63693         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63695         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63696         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63698         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63699         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63700         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63701         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63703         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63706         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63707         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63708         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63710         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63711         so that lock.m4 can be used in gettext without extensions module.
63712
63713 2007-09-11  Bruno Haible  <bruno@clisp.org>
63714
63715         * m4/isc-posix.m4: Remove file.
63716         Suggested by Eric Blake.
63717
63718 2007-09-11  Eric Blake  <ebb9@byu.net>
63719
63720         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63721
63722 2007-09-10  Bruno Haible  <bruno@clisp.org>
63723
63724         * posix-modules: Fix typo in error message.
63725         Reported by Matt <mkraai@beckman.com>.
63726
63727 2007-09-09  Bruno Haible  <bruno@clisp.org>
63728
63729         * doc/functions/getdelim.texi: Update list of platforms lacking the
63730         function.
63731         * doc/functions/getline.texi: Likewise.
63732
63733 2007-09-09  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/hash.c (hash_initialize): Detect calloc failure.
63736         Reported by Bruno Haible.
63737
63738 2007-09-09  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63741         malloc or realloc fails.
63742
63743 2007-09-09  Bruno Haible  <bruno@clisp.org>
63744
63745         * modules/getcwd (Depends-on): Add malloc-posix.
63746         * modules/glob (Depends-on): Likewise.
63747         * modules/putenv (Depends-on): Likewise.
63748         * modules/strdup (Depends-on): Likewise.
63749         * modules/getdelim (Depends-on): Add realloc-posix.
63750         * modules/read-file (Depends-on): Likewise.
63751
63752 2007-09-09  Bruno Haible  <bruno@clisp.org>
63753
63754         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63755         (gl_FUNC_MALLOC_POSIX): Require it.
63756         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63757         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63758         * modules/realloc (Files): Add m4/malloc.m4.
63759         * modules/calloc (Files): Likewise.
63760
63761 2007-09-09  Bruno Haible  <bruno@clisp.org>
63762
63763         * modules/malloc-posix: New file.
63764         * modules/malloc (Depends-on): Add malloc-posix.
63765         * lib/malloc.c: Include errno.h.
63766         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63767         and a POSIX-compatible malloc into a single function. Set ENOMEM
63768         when returning NULL.
63769         * m4/malloc.m4: New file.
63770         * doc/functions/malloc.texi: Mention the malloc-posix module.
63771         * lib/stdlib_.h (malloc): New declaration.
63772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63773         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63774         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63775         and HAVE_MALLOC_POSIX.
63776
63777 2007-09-09  Bruno Haible  <bruno@clisp.org>
63778
63779         * modules/realloc-posix: New file.
63780         * modules/realloc (Depends-on): Add realloc-posix.
63781         * lib/realloc.c: Include errno.h.
63782         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63783         and a POSIX-compatible realloc into a single function. Set ENOMEM
63784         when returning NULL.
63785         * m4/realloc.m4: New file.
63786         * doc/functions/realloc.texi: Mention the realloc-posix module.
63787         * lib/stdlib_.h (realloc): New declaration.
63788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63789         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63790         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63791         and HAVE_REALLOC_POSIX.
63792
63793 2007-09-09  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/calloc-posix: New file.
63796         * modules/calloc (Depends-on): Add calloc-posix.
63797         * lib/calloc.c: Include errno.h.
63798         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63799         and a POSIX-compatible calloc into a single function. Set ENOMEM
63800         when returning NULL.
63801         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63802         * doc/functions/calloc.texi: Mention the calloc-posix module.
63803         * lib/stdlib_.h (calloc): New declaration.
63804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63805         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63806         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63807         and HAVE_CALLOC_POSIX.
63808
63809 2007-09-09  Bruno Haible  <bruno@clisp.org>
63810
63811         Allow for modules to show an arbitrary notice.
63812         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63813         * gnulib-tool: New option --extract-notice.
63814         (func_usage): Document it.
63815         (sed_extract_prog): Update.
63816         (func_get_notice): New function.
63817         (func_modules_notice): New function.
63818         (func_import, func_create_testdir): Invoke it.
63819         Suggested by Jim Meyering.
63820
63821 2007-09-09  Bruno Haible  <bruno@clisp.org>
63822
63823         * gnulib-tool: New options --verbose, --quiet.
63824         (func_usage): Document them.
63825         (verbose): New variable.
63826         (func_execute_command): New function.
63827         (func_import): Don't show the module list and the file list if
63828         $verbose < 0.
63829         (func_create_testdir): Likewise. Use func_execute_command.
63830         (func_create_megatestdir): Use func_execute_command.
63831
63832 2007-09-08  Bruno Haible  <bruno@clisp.org>
63833
63834         * gnulib-tool (func_import): Prefer rsync over wget when available,
63835         for fetching the PO files.
63836
63837 2007-09-08  Bruno Haible  <bruno@clisp.org>
63838
63839         * posix-modules: New file. Portions copied from gnulib-tool.
63840         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63841
63842 2007-09-08  Jim Meyering  <jim@meyering.net>
63843
63844         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63845         * lib/fpending.h: Rename from __fpending.h.
63846         * lib/fpending.c: Rename from __fpending.c.
63847         Include "fpending.h", not "__fpending.h".
63848         * lib/__fpending.h, lib/__fpending.c: Remove files.
63849         * modules/fpending (Files): Reflect new file names.
63850         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63851
63852 2007-09-08  Bruno Haible  <bruno@clisp.org>
63853
63854         * m4/inttypes-h.m4: Remove stub file.
63855
63856 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63857
63858         * doc/headers/stdint.texi: Discuss #include_next issue.
63859
63860 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63863
63864 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63865
63866         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63867         in variable name.
63868
63869 2007-09-03  Jim Meyering  <jim@meyering.net>
63870
63871         New module: git-version-gen.
63872         * modules/git-version-gen: New file.
63873
63874         Import changes from coreutils for bootstrap script.
63875
63876         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63877
63878         bootstrap: uses rsync to download the .po files
63879         * build-aux/bootstrap (po_download_command_format): New global.
63880         (download_po_files): Use rsync.
63881         (update_po_files): Don't remove .po files after download,
63882         so future rsync runs can take advantage of the copies.
63883
63884         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63885
63886         Solve the unnecessary-.po-file-regeneration problem once and for all.
63887         * build-aux/bootstrap (download_po_files): New function, renamed from
63888         get_translations.  Now, downloads, but doesn't update LINGUAS.
63889         (update_po_files): New function.
63890
63891         bootstrap: Ignore more.
63892         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63893         uniwidth to e.g., lib/.gitignore.
63894         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63895
63896         * build-aux/bootstrap: New setting: vc_ignore.
63897         (insert_sorted_if_absent): Create $file if absent.
63898         Adapt to new, possibly empty, list: $vc_ignore.
63899
63900         bootstrap: generate more ignorable names
63901         * build-aux/bootstrap (slurp): When generating ignorable names,
63902         also map .sin to .sed, .gperf to .c, and .y to .c.
63903
63904 2007-09-03  Jim Meyering  <jim@meyering.net>
63905
63906         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63907         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63908
63909 2007-09-02  Bruno Haible  <bruno@clisp.org>
63910
63911         Fix mis-recognition of 'mcs' on QNX 6.
63912         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63913         output contains the string "Mono".
63914         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63915         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63916
63917 2007-09-01  Bruno Haible  <bruno@clisp.org>
63918
63919         Fix collision between uniwidth/* and linebreak modules.
63920         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63921         u32_width): Remove declarations.
63922         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63923         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63924         streq3, streq2, streq1, streq0): Remove functions.
63925         (STREQ): Remove macro.
63926         (is_cjk_encoding): Remove function.
63927         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63928         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63929         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63930         * NEWS: Document the change.
63931
63932 2007-09-01  Bruno Haible  <bruno@clisp.org>
63933
63934         * lib/streq.h: Add double-inclusion guard.
63935
63936 2007-09-01  Karl Berry  <karl@gnu.org>
63937
63938         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63939
63940 2007-08-28  Jim Meyering  <jim@meyering.net>
63941
63942         Rename mreadlink_with_size to areadlink_with_size.
63943         * NEWS: Document the change.
63944         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63945         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63946         * lib/mreadlink.h: Rename this to...
63947         * lib/areadlink.h: ...this.
63948         * modules/mreadlink-with-size: Rename this to...
63949         * modules/areadlink-with-size: ...this.
63950         * lib/canonicalize.c: Reflect the renaming.
63951         * modules/canonicalize: Likewise.
63952
63953 2007-08-26  Bruno Haible  <bruno@clisp.org>
63954
63955         * gnulib-tool (func_import): When deciding which files to remove,
63956         consider also dangling symbolic links.
63957         Reported by Eric Blake.
63958
63959 2007-08-26  Bruno Haible  <bruno@clisp.org>
63960
63961         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63962
63963 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63964
63965         * lib/readline.c: Don't include getline.h, the prototype is now
63966         found in stdio.h.
63967
63968 2007-08-23  Jim Meyering  <jim@meyering.net>
63969
63970         Getdelim touchup.
63971         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63972         around the funlockfile call, since funlockfile never sets errno.
63973         Don't set errno upon failed realloc.
63974
63975 2007-08-22  Eric Blake  <ebb9@byu.net>
63976
63977         Getline touchups.
63978         * lib/getdelim.c (getdelim): Revert regression that required *n to
63979         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63981         getdelim, rather than whether implementation is missing.
63982         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63983         * lib/stdio_.h (getline): Also declare if replacement is
63984         required.
63985         * doc/functions/getdelim.texi: New file.
63986         * doc/functions/getline.texi: Likewise.
63987         * doc/gnulib.texi (Function Substitutes): Add new files.
63988         Reported by Bruno Haible.
63989
63990 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63991
63992         * users.txt: Add Guile.
63993
63994 2007-08-22  Eric Blake  <ebb9@byu.net>
63995
63996         * tests/test-getdelim.c (main): Use remove, not unlink.
63997         * tests/test-getline.c (main): Likewise.
63998
63999         Move getline and getdelim into stdio.h, per POSIX 200x.
64000         * modules/getline (Files): Remove getline.h.
64001         (Depends-on): Add stdio.
64002         (configure.ac): Add module indicator.
64003         * modules/getdelim (Files): Remove getdelim.h.
64004         (Depends-on): Add stdio.
64005         (configure.ac): Add module indicator.
64006         * modules/stdio (Makefile.am): Work with new indicators.
64007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64008         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64009         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64010         * lib/getdelim.h: Delete.
64011         * lib/getline.h: Delete.
64012         * lib/stdio_.h (getdelim, getline): Declare.
64013         * modules/getdelim-tests: New module.
64014         * modules/getline-tests: Likewise.
64015         * tests/test-getdelim.c: New file.
64016         * tests/test-getline.c: Likewise.
64017         * NEWS: Document the change.
64018         * lib/getline.c: Update choice of header.
64019         * lib/csharpcomp.c: Likewise.
64020         * lib/getpass.c: Likewise.
64021         * lib/javacomp.c: Likewise.
64022         * lib/javaversion.c: Likewise.
64023         * lib/yesno.c: Likewise.
64024         * lib/getdelim.c: Likewise.
64025         (getdelim): Set errno on failure, and avoid memory leak.
64026
64027 2007-08-19  Bruno Haible  <bruno@clisp.org>
64028
64029         * modules/closein (Depends-on): Add freadahead.
64030         * lib/closein.c: Include freadahead.h.
64031         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64032         is zero.
64033
64034 2007-08-19  Bruno Haible  <bruno@clisp.org>
64035
64036         * modules/freadahead-tests: New file.
64037         * tests/test-freadahead.sh: New file.
64038         * tests/test-freadahead.c: New file.
64039
64040         * modules/freadahead: New file.
64041         * lib/freadahead.h: New file.
64042         * lib/freadahead.c: New file.
64043         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64044         fbufmode, fpurge, freadable, fwritable.
64045
64046 2007-08-19  Eric Blake  <ebb9@byu.net>
64047
64048         Test yesno in combination with closein.
64049         * lib/yesno.c (yesno): Document use of stdin.
64050         * modules/yesno-tests (Files): New module.
64051         * tests/test-yesno.c (main): New file.
64052         * tests/test-yesno.sh: Likewise.
64053
64054 2007-08-19  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64057         * lib/fseeko.c (rpl_fseeko): Likewise.
64058         * lib/fseterr.c (fseterr): Likewise.
64059
64060 2007-08-19  Bruno Haible  <bruno@clisp.org>
64061
64062         * tests/test-lseek.c (main): Disable a test for BeOS.
64063         * doc/functions/lseek.texi: Document the BeOS bug.
64064
64065 2007-08-19  Bruno Haible  <bruno@clisp.org>
64066             Eric Blake  <ebb9@byu.net>
64067
64068         * lib/lseek.c: Include <sys/stat.h>.
64069         (rpl_lseek): Add workaround code also for Unix platforms.
64070         Needed for BeOS.
64071         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64072         * doc/functions/lseek.texi: Document BeOS definiency.
64073
64074 2007-08-18  Bruno Haible  <bruno@clisp.org>
64075
64076         * modules/fstrcmp-tests: New file.
64077         * tests/test-fstrcmp.c: New file.
64078
64079 2007-08-18  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/fstrcmp: New file, from GNU gettext with modifications.
64082         * lib/fstrcmp.h: New file, from GNU gettext.
64083         * lib/fstrcmp.c: New file, from GNU gettext.
64084         * MODULES.html.sh (String handling): Add fstrcmp.
64085
64086 2007-08-18  Bruno Haible  <bruno@clisp.org>
64087
64088         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64089         'bool'.
64090         (diag, compareseq): Remove const from the ctxt argument.
64091         (USE_HEURISTIC): Undefine at the end.
64092
64093 2007-08-18  Jim Meyering  <jim@meyering.net>
64094
64095         New file: lib/idcache.h
64096         * NEWS: Mention the addition.
64097         * modules/idcache (Files): Add lib/idcache.h
64098         * lib/idcache.c: Include "idcache.h".
64099         Don't include <sys/types.h>.
64100         Add a FIXME comment.
64101         Move file-scoped "static" declarations to the top.
64102         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64103
64104 2007-08-17  Bruno Haible  <bruno@clisp.org>
64105         and Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * MODULES.html.sh: Add diffseq.
64108         * modules/diffseq: New file.
64109         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64110         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64111
64112 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         Import changes from coreutils for bootstrap script.
64115
64116         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * build-aux/bootstrap (slurp): Work even in environments where
64119         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64120         current code does not slurp files whose names start with ".", and
64121         this looks like it might be a troublesome area.
64122
64123         2007-07-11  Jim Meyering  <jim@meyering.net>
64124
64125         If there's a GPL vN copyright comment, require that N == 3.
64126
64127         2007-07-08  Jim Meyering  <jim@meyering.net>
64128
64129         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64130         * build-aux/bootstrap (mam_template): Move definition out of loop.
64131
64132         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64133
64134         * build-aux/bootstrap (symlink_to_dir): Rename function from
64135         symlink_to_gnulib.  Add a directory parameter.  Update all
64136         callers.
64137         (cp_mark_as_generated): Also check for -- and link to -- files in
64138         gl/.
64139
64140         2007-07-08  Jim Meyering  <jim@meyering.net>
64141
64142         Adapt to deeper hierarchy in gnulib.
64143         * build-aux/bootstrap (symlink_to_dir): If the destination
64144         directory doesn't exist, create it. This is required at least for
64145         "lib/uniwidth/cjk.h".
64146
64147         2007-05-15  Jim Meyering  <jim@meyering.net>
64148
64149         * build-aux/bootstrap: Now that generated Makefile.am files
64150         are no longer under version control, they must be created at
64151         bootstrap time.
64152
64153 2007-08-14  Ben Pfaff  <blp@gnu.org>
64154
64155         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64156
64157 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64160         given the changes below.
64161         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64162         even on hosts that have padding bits beyond the supported 64.
64163
64164 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64167         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64168         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64169         depends on it.
64170         (xstrtol_error): Remove.
64171         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64172         but with a different signature.
64173         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64174         * lib/xstrtol-error.c: Include exitfail.h.
64175         (xstrtol_fatal): New function, with a different signature from the
64176         old xstrtol_error, so that the caller need not worry about passing
64177         in an exit status, or about storage management of the option argument.
64178         (xstrtol_error): Now a static function.  Redo signature to
64179         implement xstrtol_fatal.  Output the correct number of hyphens in
64180         front of the option so that the caller need not worry about
64181         storage management.
64182         (N_): New macro.
64183         (_): Remove; not used now.
64184         * modules/xstrtol: Depend on getopt.
64185         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64186         of old STRTOL_FATAL_ERROR macro.
64187         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64188         of test program.
64189         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64190         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64191
64192 2007-08-08  Eric Blake  <ebb9@byu.net>
64193
64194         * lib/xstrtol-error.c: Add missing include.
64195
64196         Move xstrtol messages into gnulib domain, when --pobase is used.
64197         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64198         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64199         * modules/xstrtol (Files): Distribute new file.
64200         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64201         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64202         * tests/test-xstrtol.c: ...into new file.
64203         * tests/test-xstrtoul.c: Also test xstrtoul.
64204         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64205         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64206         * tests/test-xstrtol.sh: Drive the tests.
64207         * tests/test-xstrtoimax.sh: Likewise.
64208         * tests/test-xstrtoumax.sh: Likewise.
64209         * modules/xstrtol-tests: New module.
64210         * modules/xstrtoimax-tests: Likewise.
64211         * modules/xstrtoumax-tests: Likewise.
64212
64213 2007-08-08  Jim Meyering  <jim@meyering.net>
64214
64215         New function: mfile_name_concat.
64216         * lib/filenamecat.c (mfile_name_concat): New function, just like
64217         file_name_concat, but return NULL upon failure rather than exiting
64218         with a diagnostic.
64219         * lib/filenamecat.h: Declare it.
64220
64221 2007-08-07  Bruno Haible  <bruno@clisp.org>
64222
64223         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64224         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64225         warning from gcc.
64226         Reported by Eric Blake.
64227
64228 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64229
64230         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64231         * modules/crypto/arcfour (License): Likewise.
64232         * modules/crypto/des-tests (License): Likewise.
64233         * modules/crypto/gc-arctwo-tests (License): Likewise.
64234         * modules/crypto/gc-des-tests (License): Likewise.
64235         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64236         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64237         * modules/crypto/gc-md2-tests (License): Likewise.
64238         * modules/crypto/gc-md4-tests (License): Likewise.
64239         * modules/crypto/gc-md5-tests (License): Likewise.
64240         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64241         * modules/crypto/gc-rijndael-tests (License): Likewise.
64242         * modules/crypto/gc-sha1-tests (License): Likewise.
64243         * modules/crypto/gc-tests (License): Likewise.
64244         * modules/crypto/hmac-md5 (License): Likewise.
64245         * modules/crypto/hmac-sha1 (License): Likewise.
64246         * modules/crypto/md2-tests (License): Likewise.
64247         * modules/crypto/md4-tests (License): Likewise.
64248         * modules/crypto/md5 (License): Likewise.
64249         * modules/crypto/rijndael (License): Likewise.
64250         * modules/crypto/sha1 (License): Likewise.
64251         * modules/memxor (License): Likewise.
64252
64253 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64254         and Bruno Haible  <bruno@clisp.org>
64255
64256         * NEWS: Describe interface changes to human, xstrtol.
64257         * lib/human.h: Include <xstrtol.h>.
64258         (human_options): Return enum strtol_error, not int.  Remove
64259         bool arg; take int * instead.
64260         * lib/human.c: Don't include "gettext.h".
64261         (_): Remove; no longer used.
64262         Don't include <xstrtol.h>, since human.h does it.
64263         (human_options): Adjust to abovementioned interface changes.
64264         Do not report error to stderr; that's now the caller's
64265         responsibility.
64266         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64267         interface change.
64268         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64269         Str, Argument_type_string.  All uses changed.  Put " argument"
64270         in diagnostics to make them clearer.  Change wording of suffix
64271         message for clarity.
64272         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64273         Argument_type_string.
64274         (STRTOL_FATAL_WARN): Remove; no longer used.
64275         * modules/human (Depends-on): Remove gettext-h.
64276
64277 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64278
64279         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64280
64281 2007-07-31  Bruno Haible  <bruno@clisp.org>
64282
64283         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64284         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64285         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64286
64287 2007-07-31  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64290         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64291
64292 2007-07-30  Bruno Haible  <bruno@clisp.org>
64293
64294         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64295         * modules/c-ctype (License): Likewise.
64296         * modules/c-strcase (License): Likewise.
64297         * modules/check-version (License): Likewise.
64298         * modules/iconv (License): Likewise.
64299         * modules/iconv_open (License): Likewise.
64300         * modules/read-file (License): Likewise.
64301         * modules/striconv (License): Likewise.
64302         * modules/strverscmp (License): Likewise.
64303         * modules/vasprintf (License): Likewise.
64304         * modules/crypto/des (License): Likewise.
64305         * modules/crypto/gc (License): Likewise.
64306         * modules/crypto/gc-arcfour (License): Likewise.
64307         * modules/crypto/gc-arctwo (License): Likewise.
64308         * modules/crypto/gc-des (License): Likewise.
64309         * modules/crypto/gc-hmac-md5 (License): Likewise.
64310         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64311         * modules/crypto/gc-md2 (License): Likewise.
64312         * modules/crypto/gc-md4 (License): Likewise.
64313         * modules/crypto/gc-md5 (License): Likewise.
64314         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64315         * modules/crypto/gc-random (License): Likewise.
64316         * modules/crypto/gc-rijndael (License): Likewise.
64317         * modules/crypto/gc-sha1 (License): Likewise.
64318         * modules/crypto/md2 (License): Likewise.
64319         * modules/crypto/md4 (License): Likewise.
64320
64321 2007-07-30  Jim Meyering  <jim@meyering.net>
64322
64323         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64324         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64325         it has valid stat data.  This bug would cause du not to count the
64326         sizes of inaccessible directories.
64327         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64328         in <http://bugzilla.redhat.com/250077>.
64329
64330 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64331             Bruno Haible  <bruno@clisp.org>
64332
64333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64334         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64335         #include_next, gives a diagnostic about it, but reports no error in
64336         the exit code.
64337         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64338
64339 2007-07-24  Ben Pfaff  <blp@gnu.org>
64340
64341         Improve name: "count-one-bits" is better than "popcount".
64342         * MODULES.html.sh: Update name.
64343         * lib/popcount.h: Renamed lib/count-one-bits.h.
64344         (popcount): Renamed count_one_bits.
64345         (popcountl): Renamed count_one_bits_l.
64346         (popcountll): Renamed count_one_bits_ll.
64347         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64348         * modules/popcount: Renamed module/count-one-bits.
64349         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64350         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64351
64352 2007-07-23  Ben Pfaff  <blp@gnu.org>
64353
64354         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64355         better code generation, and add U to large constants to avoid
64356         warnings, in non-GCC case.
64357         Suggested by Bruno Haible.
64358
64359 2007-07-23  Ben Pfaff  <blp@gnu.org>
64360
64361         * lib/popcount.h: Use verify_true instead of if...abort.
64362         * modules/popcount: Depend on verify module.
64363         Suggested by Jim Meyering.
64364
64365 2007-07-23  Bruno Haible  <bruno@clisp.org>
64366
64367         * gnulib-tool (func_import): Create a .cvsignore file also when the
64368         directory is not yet in CVS but the toplevel directory is. When
64369         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64370         Reported by Karl Berry.
64371
64372 2007-07-22  Ben Pfaff  <blp@gnu.org>
64373
64374         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64375         case.
64376         Suggested by Eric Blake.
64377
64378 2007-07-22  Ben Pfaff  <blp@gnu.org>
64379
64380         New module: popcount.
64381         * MODULES.html.sh: Add popcount.
64382         * modules/popcount: New file.
64383         * modules/popcount-tests: New file.
64384         * tests/test-popcount.c: New file.
64385         * lib/popcount.h: New file.
64386         * m4/popcount.m4: New file.
64387
64388 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * build-aux/announce-gen: Update to GPLv3.
64391
64392         * build-aux/config.guess: Update from config.
64393
64394 2007-07-21  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64397         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64398
64399 2007-07-20  Jim Meyering  <jim@meyering.net>
64400
64401         * check-module: Diagnose a self-dependency.
64402
64403 2007-07-19  Bruno Haible  <bruno@clisp.org>
64404
64405         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64406         empty.
64407         Reported by Eric Blake.
64408
64409 2007-07-18  Bruno Haible  <bruno@clisp.org>
64410
64411         * gnulib-tool: New options --po-base, --po-domain.
64412         (func_usage): Document them.
64413         (pobase, po_domain): New variables.
64414         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64415         DEFAULT_TEXT_DOMAIN.
64416         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64417         (func_import): Consider pobase and po_domain. Create a po/ directory.
64418         (func_create_testdir): Set pobase and po_domain to empty.
64419         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64420         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64421
64422 2007-07-18  Bruno Haible  <bruno@clisp.org>
64423
64424         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64425         EXTRA_DIST augmentation for files in build-aux/.
64426
64427 2007-07-16  Bruno Haible  <bruno@clisp.org>
64428
64429         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64430         * modules/getdelim (License): Likewise.
64431
64432 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64433
64434         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64435         * modules/d-type (License): Likewise.
64436         * modules/extensions (License): Likewise.
64437         * modules/fnmatch (License): Likewise.
64438         * modules/fseeko (License): Likewise.
64439         * modules/getaddrinfo (License): Likewise.
64440         * modules/getline (License): Likewise.
64441         * modules/getlogin_r (License): Likewise.
64442         * modules/getpass (License): Likewise.
64443         * modules/gettimeofday (License): Likewise.
64444         * modules/glob (License): Likewise.
64445         * modules/inet_ntop (License): Likewise.
64446         * modules/malloc (License): Likewise.
64447         * modules/malloca (License): Likewise.
64448         * modules/memmem (License): Likewise.
64449         * modules/mempcpy (License): Likewise.
64450         * modules/memset (License): Likewise.
64451         * modules/minmax (License): Likewise.
64452         * modules/mktime (License): Likewise.
64453         * modules/netinet_in (License): Likewise.
64454         * modules/pathmax (License): Likewise.
64455         * modules/poll (License): Likewise.
64456         * modules/regex (License): Likewise.
64457         * modules/snprintf (License): Likewise.
64458         * modules/stdbool (License): Likewise.
64459         * modules/stdint (License): Likewise.
64460         * modules/stdio (License): Likewise.
64461         * modules/strcase (License): Likewise.
64462         * modules/strcasestr (License): Likewise.
64463         * modules/strdup (License): Likewise.
64464         * modules/string (License): Likewise.
64465         * modules/strndup (License): Likewise.
64466         * modules/strnlen (License): Likewise.
64467         * modules/strpbrk (License): Likewise.
64468         * modules/strptime (License): Likewise.
64469         * modules/strsep (License): Likewise.
64470         * modules/sys_select (License): Likewise.
64471         * modules/sys_socket (License): Likewise.
64472         * modules/sys_stat (License): Likewise.
64473         * modules/sys_time (License): Likewise.
64474         * modules/time (License): Likewise.
64475         * modules/time_r (License): Likewise.
64476         * modules/timegm (License): Likewise.
64477         * modules/unistd (License): Likewise.
64478         * modules/vsnprintf (License): Likewise.
64479         * modules/wctype (License): Likewise.
64480
64481 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64482
64483         * modules/argz (License): LGPLv2+.
64484
64485 2007-07-15  Karl Berry  <karl@gnu.org>
64486
64487         * doc/gnulib.texi: revise node structure per new fdl.texi.
64488
64489 2007-07-14  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64492         the output file.
64493         * lib/uniname/uninames.h: Regenerated.
64494
64495 2007-07-14  Karl Berry  <karl@gnu.org>
64496
64497         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64498         omitting sectioning and index commands.
64499
64500 2007-07-13  Bruno Haible  <bruno@clisp.org>
64501
64502         New gnulib-tool option --more-symlinks.
64503         * gnulib-tool (func_usage): Document --more-symlinks.
64504         (do_copyrights): New variable.
64505         Recognize option --more-symlinks.
64506         (func_import): Don't add a copyright notice transform to
64507         sed_transform_lib_file if do_copyrights is empty.
64508
64509 2007-07-13  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/vasnprintf.c (decimal_point_char): Define also if
64512         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64513         && !NEED_PRINTF_DIRECTIVE_A.
64514         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64515         Gary V. Vaughan <gary@gnu.org>.
64516
64517 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * lib/inttypes_.h: Undo previous change, since it was fixed
64520         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64521
64522 2007-07-13  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64525         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64526
64527 2007-07-13  Jim Meyering  <jim@meyering.net>
64528
64529         df: Don't fail for Tru64's "file-on-file mount".
64530         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64531         so we fall through and use statfs instead.  Details here:
64532         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64533         Reported by Albert Chin.
64534
64535 2007-07-13  Bruno Haible  <bruno@clisp.org>
64536
64537         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64538         * modules/configmake (License): Likewise.
64539         * modules/gettext (License): Likewise.
64540         * modules/gettext-h (License): Likewise.
64541         * modules/include_next (License): Likewise.
64542         * modules/link-warning (License): Likewise.
64543         * modules/localcharset (License): Likewise.
64544         * modules/localename (License): Likewise.
64545         * modules/lock (License): Likewise.
64546         * modules/relocatable-lib-lgpl (License): Likewise.
64547         * modules/size_max (License): Likewise.
64548         * modules/vasnprintf (License): Likewise.
64549         * modules/wchar (License): Likewise.
64550         * modules/xsize (License): Likewise.
64551
64552 2007-07-13  Bruno Haible  <bruno@clisp.org>
64553
64554         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64555         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64556
64557 2007-07-12  Bruno Haible  <bruno@clisp.org>
64558
64559         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64560         in the modules files.
64561
64562 2007-07-11  Karl Berry  <karl@gnu.org>
64563
64564         * MODULES.html.sh (func_module): use
64565          sed -e '\|^'"${includefile}"'$|d'
64566          instead of /.../d, to avoid errors on $includefile's containing /.
64567
64568 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64569
64570         * gnulib-tool (func_import): Avoid duplication of --avoid
64571         statements
64572         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64573         names to `_' in variable names.
64574
64575 2007-07-10  Eric Blake  <ebb9@byu.net>
64576
64577         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64578         * NEWS: Document this change.
64579
64580 2007-07-08  Bruno Haible  <bruno@clisp.org>
64581
64582         Update to Unicode 5.0.
64583         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64584         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64585         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64586         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64587         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64588         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64589         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64590         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64591         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64592         U+10A3F, U+1D242..U+1D244.
64593         (nonspacing_table_ind): Update.
64594         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64595         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64596
64597 2007-07-08  Bruno Haible  <bruno@clisp.org>
64598
64599         Update to Unicode 5.0.
64600         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64601         code transform. Extend the name index field of unicode_name_to_code and
64602         unicode_code_to_name from 16 to 24 bits.
64603         * lib/uniname/uniname.c (unicode_character_name,
64604         unicode_name_character): Add the range 0x12xxx to the code transform.
64605         * lib/uniname/uninames.h: Regenerated.
64606         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64607
64608 2007-07-07  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/wcwidth-tests: New file.
64611         * tests/test-wcwidth.c: New file.
64612
64613         Work around MacOS X wcwidth() bug.
64614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64615         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64616         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64617         original wcwidth in non-UTF-8 locales.
64618         * modules/wcwidth (Depends-on): Add localcharset, streq,
64619         uniwidth/width.
64620         * doc/functions/wcwidth.texi: Update.
64621
64622 2007-07-07  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64625         (wcwidth): New declaration.
64626         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64627         macros.
64628         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64629         here. Prepare for creating <wchar.h> unconditionally.
64630         * modules/wchar (Depends-on): Add link-warning.
64631         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64632         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64633         * lib/wcwidth.h: Remove file.
64634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64635         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64636         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64637         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64638         (Include): Replace wcwidth.h with <wchar.h>.
64639         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64640         * lib/mbchar.h: Don't include wcwidth.h.
64641         * lib/mbswidth.c: Likewise.
64642         * NEWS: Mention the change.
64643
64644 2007-07-07  Bruno Haible  <bruno@clisp.org>
64645
64646         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64647         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64648         definition with an external declaration.
64649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64650         defined as a function. Remove AC_C_INLINE requirement.
64651         * modules/wcwidth (Files): Add lib/wcwidth.c.
64652         (Makefile.am): Remove redundant statement.
64653
64654 2007-07-07  Bruno Haible  <bruno@clisp.org>
64655
64656         * MODULES.html.sh (Unicode string functions): Add the new modules.
64657
64658         * tests/uniwidth/test-u32-strwidth.c: New file.
64659         * modules/uniwidth/u32-strwidth-tests: New file.
64660
64661         * lib/uniwidth/u32-strwidth.c: New file.
64662         * modules/uniwidth/u32-strwidth: New file.
64663
64664         * tests/uniwidth/test-u16-strwidth.c: New file.
64665         * modules/uniwidth/u16-strwidth-tests: New file.
64666
64667         * lib/uniwidth/u16-strwidth.c: New file.
64668         * modules/uniwidth/u16-strwidth: New file.
64669
64670         * tests/uniwidth/test-u8-strwidth.c: New file.
64671         * modules/uniwidth/u8-strwidth-tests: New file.
64672
64673         * lib/uniwidth/u8-strwidth.c: New file.
64674         * modules/uniwidth/u8-strwidth: New file.
64675
64676         * tests/uniwidth/test-u32-width.c: New file.
64677         * modules/uniwidth/u32-width-tests: New file.
64678
64679         * lib/uniwidth/u32-width.c: New file.
64680         * modules/uniwidth/u32-width: New file.
64681
64682         * tests/uniwidth/test-u16-width.c: New file.
64683         * modules/uniwidth/u16-width-tests: New file.
64684
64685         * lib/uniwidth/u16-width.c: New file.
64686         * modules/uniwidth/u16-width: New file.
64687
64688         * tests/uniwidth/test-u8-width.c: New file.
64689         * modules/uniwidth/u8-width-tests: New file.
64690
64691         * lib/uniwidth/u8-width.c: New file.
64692         * modules/uniwidth/u8-width: New file.
64693
64694         * tests/uniwidth/test-uc_width.c: New file.
64695         * modules/uniwidth/width-tests: New file.
64696
64697         * lib/uniwidth/width.c: New file, from GNU libiconv.
64698         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64699         * modules/uniwidth/width: New file.
64700
64701         * lib/uniwidth.h: New file, from GNU libiconv.
64702         * modules/uniwidth/base: New file.
64703
64704 2007-07-07  Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/uniname.h: New file, from GNU gettext.
64707         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64708         * lib/uniname/uninames.h: New file, from GNU gettext.
64709         * lib/uniname/uniname.c: New file, from GNU gettext.
64710         * tests/uniname/test-uninames.sh: New file.
64711         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64712         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64713         * modules/uniname/base: New file.
64714         * modules/uniname/uniname: New file.
64715         * modules/uniname/uniname-tests: New file.
64716         * MODULES.html.sh (Unicode string functions): Add the new modules.
64717
64718 2007-07-06  Bruno Haible  <bruno@clisp.org>
64719
64720         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64721
64722 2007-07-06  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64725         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64726         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64727         include <sys/time.h>.
64728         Reported by Eric Blake.
64729
64730 2007-07-06  Eric Blake  <ebb9@byu.net>
64731
64732         Fix testing canonicalize on cygwin.
64733         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64734         Revert patch from 2007-06-19.
64735         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64736         canonicalize module is also in use.
64737         * tests/test-canonicalize.c: New file.
64738         * tests/test-canonicalize.sh: Likewise.
64739         * modules/canonicalize-tests: Likewise.
64740
64741 2007-07-06  Jim Meyering  <jim@meyering.net>
64742
64743         * lib/getugroups.c (getugroups): Detect getgrent failure.
64744         Adjust comment to reflect reality: this function may return -1.
64745
64746 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64747
64748         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64749         the new TP address.
64750         (usage): Fix typo
64751         (gnulib_mk): New variable.
64752
64753 2007-07-05  Jim Meyering  <jim@meyering.net>
64754
64755         Don't let endgrent clobber errno, no matter how improbable.
64756         * lib/getugroups.c (getugroups): Save and restore errno around
64757         endgrent call.
64758
64759         Close the group DB even when failing with 2^31 or more members.
64760         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64761
64762 2007-07-04  Jim Meyering  <jim@meyering.net>
64763
64764         * lib/getugroups.h: New file.
64765         * lib/getugroups.c: Include "getugroups.h".
64766         Remove uses of "register" keyword.
64767         Move local variable, "cp", down into scope where used.
64768         Give "username" parameter the "const" attribute.
64769         * modules/getugroups (Files): Add lib/getugroups.h
64770
64771 2007-07-04  Karl Berry  <karl@gnu.org>
64772
64773         * MODULES.html.sh (func_all_modules): Complete rename of
64774         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64775
64776 2007-07-02  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64779         mode, when inttypes.h comes from gnulib.
64780         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64781
64782 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64783
64784         * NEWS: Mention lgpl module name change.
64785
64786         * modules/lgpl-2.1: Renamed from lgpl.
64787
64788         * NEWS: Mention gpl module name change.
64789
64790         * modules/gpl-3.0: New file, based on gpl-2.0.
64791
64792         * modules/gpl-2.0: Renamed from gpl.
64793
64794         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64795         doc/gpl-2.0.texi.
64796
64797 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64800         #define __STDC_LIMIT_MACROS temporarily while including
64801         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64802         Problem reported by Joel E. Denny in
64803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64804
64805 2007-07-01  Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/unistdio.h: New file.
64808         * lib/unistdio/u-asnprintf.h: New file.
64809         * lib/unistdio/u-asprintf.h: New file.
64810         * lib/unistdio/u-printf-args.c: New file.
64811         * lib/unistdio/u-printf-args.h: New file.
64812         * lib/unistdio/u-printf-parse.h: New file.
64813         * lib/unistdio/u-snprintf.h: New file.
64814         * lib/unistdio/u-sprintf.h: New file.
64815         * lib/unistdio/u-vasprintf.h: New file.
64816         * lib/unistdio/u-vsnprintf.h: New file.
64817         * lib/unistdio/u-vsprintf.h: New file.
64818         * lib/unistdio/ulc-asnprintf.c: New file.
64819         * lib/unistdio/ulc-asprintf.c: New file.
64820         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64821         * lib/unistdio/ulc-printf-parse.c: New file.
64822         * lib/unistdio/ulc-snprintf.c: New file.
64823         * lib/unistdio/ulc-sprintf.c: New file.
64824         * lib/unistdio/ulc-vasnprintf.c: New file.
64825         * lib/unistdio/ulc-vasprintf.c: New file.
64826         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64827         * lib/unistdio/ulc-vsnprintf.c: New file.
64828         * lib/unistdio/ulc-vsprintf.c: New file.
64829         * lib/unistdio/u8-asnprintf.c: New file.
64830         * lib/unistdio/u8-asprintf.c: New file.
64831         * lib/unistdio/u8-printf-parse.c: New file.
64832         * lib/unistdio/u8-snprintf.c: New file.
64833         * lib/unistdio/u8-sprintf.c: New file.
64834         * lib/unistdio/u8-vasnprintf.c: New file.
64835         * lib/unistdio/u8-vasprintf.c: New file.
64836         * lib/unistdio/u8-vsnprintf.c: New file.
64837         * lib/unistdio/u8-vsprintf.c: New file.
64838         * lib/unistdio/u8-u8-asnprintf.c: New file.
64839         * lib/unistdio/u8-u8-asprintf.c: New file.
64840         * lib/unistdio/u8-u8-snprintf.c: New file.
64841         * lib/unistdio/u8-u8-sprintf.c: New file.
64842         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64843         * lib/unistdio/u8-u8-vasprintf.c: New file.
64844         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64845         * lib/unistdio/u8-u8-vsprintf.c: New file.
64846         * lib/unistdio/u16-asnprintf.c: New file.
64847         * lib/unistdio/u16-asprintf.c: New file.
64848         * lib/unistdio/u16-printf-parse.c: New file.
64849         * lib/unistdio/u16-snprintf.c: New file.
64850         * lib/unistdio/u16-sprintf.c: New file.
64851         * lib/unistdio/u16-vasnprintf.c: New file.
64852         * lib/unistdio/u16-vasprintf.c: New file.
64853         * lib/unistdio/u16-vsnprintf.c: New file.
64854         * lib/unistdio/u16-vsprintf.c: New file.
64855         * lib/unistdio/u16-u16-asnprintf.c: New file.
64856         * lib/unistdio/u16-u16-asprintf.c: New file.
64857         * lib/unistdio/u16-u16-snprintf.c: New file.
64858         * lib/unistdio/u16-u16-sprintf.c: New file.
64859         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64860         * lib/unistdio/u16-u16-vasprintf.c: New file.
64861         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64862         * lib/unistdio/u16-u16-vsprintf.c: New file.
64863         * lib/unistdio/u32-asnprintf.c: New file.
64864         * lib/unistdio/u32-asprintf.c: New file.
64865         * lib/unistdio/u32-printf-parse.c: New file.
64866         * lib/unistdio/u32-snprintf.c: New file.
64867         * lib/unistdio/u32-sprintf.c: New file.
64868         * lib/unistdio/u32-vasnprintf.c: New file.
64869         * lib/unistdio/u32-vasprintf.c: New file.
64870         * lib/unistdio/u32-vsnprintf.c: New file.
64871         * lib/unistdio/u32-vsprintf.c: New file.
64872         * lib/unistdio/u32-u32-asnprintf.c: New file.
64873         * lib/unistdio/u32-u32-asprintf.c: New file.
64874         * lib/unistdio/u32-u32-snprintf.c: New file.
64875         * lib/unistdio/u32-u32-sprintf.c: New file.
64876         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64877         * lib/unistdio/u32-u32-vasprintf.c: New file.
64878         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64879         * lib/unistdio/u32-u32-vsprintf.c: New file.
64880         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64881         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64882         * tests/unistdio/test-ulc-printf1.h: New file.
64883         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64884         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64885         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64886         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64887         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64888         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64889         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64890         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64891         * tests/unistdio/test-u8-asnprintf1.c: New file.
64892         * tests/unistdio/test-u8-asnprintf1.h: New file.
64893         * tests/unistdio/test-u8-printf1.h: New file.
64894         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64895         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64896         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64897         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64898         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64899         * tests/unistdio/test-u8-vasprintf1.c: New file.
64900         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64901         * tests/unistdio/test-u8-vsprintf1.c: New file.
64902         * tests/unistdio/test-u16-asnprintf1.c: New file.
64903         * tests/unistdio/test-u16-asnprintf1.h: New file.
64904         * tests/unistdio/test-u16-printf1.h: New file.
64905         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64906         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64907         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64908         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64909         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64910         * tests/unistdio/test-u16-vasprintf1.c: New file.
64911         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64912         * tests/unistdio/test-u16-vsprintf1.c: New file.
64913         * tests/unistdio/test-u32-asnprintf1.c: New file.
64914         * tests/unistdio/test-u32-asnprintf1.h: New file.
64915         * tests/unistdio/test-u32-printf1.h: New file.
64916         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64917         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64918         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64919         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64920         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64921         * tests/unistdio/test-u32-vasprintf1.c: New file.
64922         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64923         * tests/unistdio/test-u32-vsprintf1.c: New file.
64924         * modules/unistdio/base: New file.
64925         * modules/unistdio/u-printf-args: New file.
64926         * modules/unistdio/ulc-asnprintf: New file.
64927         * modules/unistdio/ulc-asprintf: New file.
64928         * modules/unistdio/ulc-fprintf: New file.
64929         * modules/unistdio/ulc-printf-parse: New file.
64930         * modules/unistdio/ulc-snprintf: New file.
64931         * modules/unistdio/ulc-sprintf: New file.
64932         * modules/unistdio/ulc-vasnprintf: New file.
64933         * modules/unistdio/ulc-vasprintf: New file.
64934         * modules/unistdio/ulc-vfprintf: New file.
64935         * modules/unistdio/ulc-vsnprintf: New file.
64936         * modules/unistdio/ulc-vsprintf: New file.
64937         * modules/unistdio/u8-asnprintf: New file.
64938         * modules/unistdio/u8-asprintf: New file.
64939         * modules/unistdio/u8-printf-parse: New file.
64940         * modules/unistdio/u8-snprintf: New file.
64941         * modules/unistdio/u8-sprintf: New file.
64942         * modules/unistdio/u8-vasnprintf: New file.
64943         * modules/unistdio/u8-vasprintf: New file.
64944         * modules/unistdio/u8-vsnprintf: New file.
64945         * modules/unistdio/u8-vsprintf: New file.
64946         * modules/unistdio/u8-u8-asnprintf: New file.
64947         * modules/unistdio/u8-u8-asprintf: New file.
64948         * modules/unistdio/u8-u8-snprintf: New file.
64949         * modules/unistdio/u8-u8-sprintf: New file.
64950         * modules/unistdio/u8-u8-vasnprintf: New file.
64951         * modules/unistdio/u8-u8-vasprintf: New file.
64952         * modules/unistdio/u8-u8-vsnprintf: New file.
64953         * modules/unistdio/u8-u8-vsprintf: New file.
64954         * modules/unistdio/u16-asnprintf: New file.
64955         * modules/unistdio/u16-asprintf: New file.
64956         * modules/unistdio/u16-printf-parse: New file.
64957         * modules/unistdio/u16-snprintf: New file.
64958         * modules/unistdio/u16-sprintf: New file.
64959         * modules/unistdio/u16-vasnprintf: New file.
64960         * modules/unistdio/u16-vasprintf: New file.
64961         * modules/unistdio/u16-vsnprintf: New file.
64962         * modules/unistdio/u16-vsprintf: New file.
64963         * modules/unistdio/u16-u16-asnprintf: New file.
64964         * modules/unistdio/u16-u16-asprintf: New file.
64965         * modules/unistdio/u16-u16-snprintf: New file.
64966         * modules/unistdio/u16-u16-sprintf: New file.
64967         * modules/unistdio/u16-u16-vasnprintf: New file.
64968         * modules/unistdio/u16-u16-vasprintf: New file.
64969         * modules/unistdio/u16-u16-vsnprintf: New file.
64970         * modules/unistdio/u16-u16-vsprintf: New file.
64971         * modules/unistdio/u32-asnprintf: New file.
64972         * modules/unistdio/u32-asprintf: New file.
64973         * modules/unistdio/u32-printf-parse: New file.
64974         * modules/unistdio/u32-snprintf: New file.
64975         * modules/unistdio/u32-sprintf: New file.
64976         * modules/unistdio/u32-vasnprintf: New file.
64977         * modules/unistdio/u32-vasprintf: New file.
64978         * modules/unistdio/u32-vsnprintf: New file.
64979         * modules/unistdio/u32-vsprintf: New file.
64980         * modules/unistdio/u32-u32-asnprintf: New file.
64981         * modules/unistdio/u32-u32-asprintf: New file.
64982         * modules/unistdio/u32-u32-snprintf: New file.
64983         * modules/unistdio/u32-u32-sprintf: New file.
64984         * modules/unistdio/u32-u32-vasnprintf: New file.
64985         * modules/unistdio/u32-u32-vasprintf: New file.
64986         * modules/unistdio/u32-u32-vsnprintf: New file.
64987         * modules/unistdio/u32-u32-vsprintf: New file.
64988         * modules/unistdio/ulc-asnprintf-tests: New file.
64989         * modules/unistdio/ulc-vasnprintf-tests: New file.
64990         * modules/unistdio/ulc-vasprintf-tests: New file.
64991         * modules/unistdio/ulc-vsnprintf-tests: New file.
64992         * modules/unistdio/ulc-vsprintf-tests: New file.
64993         * modules/unistdio/u8-asnprintf-tests: New file.
64994         * modules/unistdio/u8-vasnprintf-tests: New file.
64995         * modules/unistdio/u8-vasprintf-tests: New file.
64996         * modules/unistdio/u8-vsnprintf-tests: New file.
64997         * modules/unistdio/u8-vsprintf-tests: New file.
64998         * modules/unistdio/u16-asnprintf-tests: New file.
64999         * modules/unistdio/u16-vasnprintf-tests: New file.
65000         * modules/unistdio/u16-vasprintf-tests: New file.
65001         * modules/unistdio/u16-vsnprintf-tests: New file.
65002         * modules/unistdio/u16-vsprintf-tests: New file.
65003         * modules/unistdio/u32-asnprintf-tests: New file.
65004         * modules/unistdio/u32-vasnprintf-tests: New file.
65005         * modules/unistdio/u32-vasprintf-tests: New file.
65006         * modules/unistdio/u32-vsnprintf-tests: New file.
65007         * modules/unistdio/u32-vsprintf-tests: New file.
65008         * MODULES.html.sh (Unicode string functions): Add the new modules.
65009
65010 2007-07-01  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/sprintf.c (sprintf): Limit the available length estimation,
65013         to avoid address wraparound.
65014         * lib/vsprintf.c (vsprintf): Likewise.
65015         * modules/sprintf-posix (Dependencies): Add stdint.
65016         * modules/vsprintf-posix (Dependencies): Likewise.
65017
65018 2007-07-01  Bruno Haible  <bruno@clisp.org>
65019
65020         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65021         Windows PATH as well. Conservative double-quoting. Comments.
65022
65023 2007-07-01  Bruno Haible  <bruno@clisp.org>
65024             Eric Blake  <ebb9@byu.net>
65025             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65026
65027         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65028         empty components in $PATH, denoting '.'.
65029
65030 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65031
65032         * gnulib-tool: Fix indentation.
65033         (func_create_megatestdir): Likewise.
65034         Report by Bruno Haible.
65035
65036 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65037
65038         Sync from Automake.
65039         * build-aux/gnupload: Fix shell portability issues with for loops.
65040         Report by Karl Berry.
65041
65042 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65043
65044         * build-aux/maint.mk (POURL): Use translationproject.org.
65045
65046 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65047             Bruno Haible  <bruno@clisp.org>
65048
65049         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65050         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65051         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65052         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65053         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65054
65055 2007-06-27  Bruno Haible  <bruno@clisp.org>
65056
65057         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65058         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65059
65060 2007-06-26  Karl Berry  <karl@gnu.org>
65061
65062         * MODULES.html.sh: remove xreadlink-with-size.
65063
65064 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65067         method that I hope also handles the double-include problem noted
65068         by Bruno Haible in
65069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65070
65071 2007-06-23  Bruno Haible  <bruno@clisp.org>
65072
65073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65074         Don't let the 'mostlyclean' target fail if the last subdirectory could
65075         not be removed.
65076         Reported by Karl Berry.
65077
65078 2007-06-23  Bruno Haible  <bruno@clisp.org>
65079
65080         * gnulib-tool (echo): Add a speedier workaround for ksh.
65081         * tests/test-echo.sh: Likewise.
65082
65083 2007-06-23  Bruno Haible  <bruno@clisp.org>
65084
65085         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65086         * tests/test-echo.sh: Likewise.
65087
65088 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65089
65090         * gnulib-tool (IFS): Initialize early, so we don't set it to
65091         empty later.
65092         (self_abspathname): Rewrite algorithm to set it, reindent.
65093         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65094         (func_create_megatestdir): Merge some sed scripts.
65095
65096 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65097
65098         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65099         exposed by Sun Studio 11 cc on Solaris 8.
65100
65101 2007-06-22  Bruno Haible  <bruno@clisp.org>
65102
65103         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65104         backslashes.
65105         * tests/test-echo.sh: New file.
65106
65107 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65108
65109         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65110         simplify `sed_replace_build_aux' scripts, they are portable but
65111         echoing them with `echo' is not.
65112         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65113
65114 2007-06-21  Karl Berry  <karl@gnu.org>
65115
65116         * config/srclist.txt: guess we can't handle the licenses via
65117         srclist at the moment.
65118
65119 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65120
65121         * MODULES.html.sh: Add include_next.
65122         * modules/include_next: New file.
65123
65124 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65127         INCLUDE_NEXT.
65128         (gl_CHECK_NEXT_HEADERS): New macro.
65129         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65130         the obsolescent gl_ABSOLUTE_HEADER.
65131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65132         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65133         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65134         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65135         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65136         * m4/math_h.m4 (gl_MATH_H): Likewise.
65137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65138         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65139         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65140         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65141         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65142         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65143         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65147         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65148         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65149         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65150         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65151         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65152         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65153         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65154         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65155         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65156         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65157         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65158         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65159         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65160         * lib/float_.h: Likewise.
65161         * lib/inttypes_.h: Likewise.
65162         * lib/math_.h: Likewise.
65163         * lib/search_.h: Likewise.
65164         * lib/signal_.h: Likewise.
65165         * lib/stdint_.h: Likewise.
65166         * lib/stdio_.h: Likewise.
65167         * lib/stdlib_.h: Likewise.
65168         * lib/string_.h: Likewise.
65169         * lib/sys_stat_.h: Likewise.
65170         * lib/sys_time_.h: Likewise.
65171         * lib/time_.h: Likewise.
65172         * lib/unistd_.h: Likewise.
65173         * lib/wchar_.h: Likewise.
65174         * lib/wctype_.h: Likewise.
65175         * lib/dirent_.h: Likewise.
65176         * lib/iconv_.h: Likewise.
65177         * lib/locale_.h: Likewise.
65178         * lib/netinet_in_.h: Likewise.
65179         * lib/sys_select_.h: Likewise.
65180         * lib/sys_socket_.h: Likewise.
65181         * lib/sysexits_.h: Likewise.
65182         * modules/fcntl (Depends-on): Depend on include_next, not
65183         absolute_header.
65184         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65185         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65186         * modules/fchdir: Likewise.
65187         * modules/float: Likewise.
65188         * modules/iconv_open: Likewise.
65189         * modules/inttypes: Likewise.
65190         * modules/locale: Likewise.
65191         * modules/math: Likewise.
65192         * modules/netinet_in: Likewise.
65193         * modules/search: Likewise.
65194         * modules/signal: Likewise.
65195         * modules/stdint: Likewise.
65196         * modules/stdio: Likewise.
65197         * modules/stdlib: Likewise.
65198         * modules/string: Likewise.
65199         * modules/sys_select: Likewise.
65200         * modules/sys_socket: Likewise.
65201         * modules/sys_stat: Likewise.
65202         * modules/sys_time: Likewise.
65203         * modules/sysexits: Likewise.
65204         * modules/time: Likewise.
65205         * modules/unistd: Likewise.
65206         * modules/wchar: Likewise.
65207         * modules/wctype: Likewise.
65208         * modules/sys_stat: Change maintainer to "all".
65209         * modules/unistd: Likewise.
65210
65211 2007-06-20  Karl Berry  <karl@gnu.org>
65212
65213         * config/srclist.txt: track www changes in license files.
65214
65215 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65216
65217         * build-aux/bootstrap: Remove stray dot.
65218         Make sure build_aux settings are honored when linking
65219         gnulib_extra_files.
65220
65221 2007-06-19  Eric Blake  <ebb9@byu.net>
65222
65223         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65224         Allow compilation on cygwin.
65225
65226 2007-06-19  Jim Meyering  <jim@meyering.net>
65227
65228         xreadlink-with-size: Remove module.  No longer used.
65229         Ex-callers now use xreadlink or mreadlink-with-size.
65230         * modules/xreadlink-with-size: Remove module.
65231         * lib/xreadlink-with-size.c: Remove file.
65232         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65233         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65234         just before the function definition *is* accurate.
65235
65236         Eliminate one way canonicalize_filename_mode could exit.
65237         * lib/canonicalize.c (canonicalize_filename_mode):
65238         Use mreadlink_with_size, not xreadlink_with_size.
65239
65240 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         Detect porting problems to FreeBSD/arm, which has time_t wider than
65243         long int.  Original problem reported for GNU diff by Xin Li in
65244         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65245         * modules/getdate (Depends-on): Add intprops, verify.
65246         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65247         is an integer type no wider than long int.
65248
65249 2007-06-18  Jim Meyering  <jim@meyering.net>
65250
65251         New module: mreadlink-with-size.
65252         * MODULES.html.sh: Add mreadlink-with-size.
65253         * modules/mreadlink-with-size: New module
65254         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65255         not xreadlink-with-size.
65256         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65257
65258 2007-06-16  Bruno Haible  <bruno@clisp.org>
65259
65260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65261         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65262         Reported by Gary V. Vaughan <gary@gnu.org>.
65263
65264 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         Revamp lchown so that it lives in unistd.h where it belongs.
65267         * lib/lchown.h: Remove.
65268         * lib/dirchownmod.c: Don't include lib/lchown.h.
65269         * lib/fchownat.c: Likewise.
65270         * lib/openat.c: Likewise.
65271         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65272         does not follow symlinks.
65273         (EOPNOTSUPP): Define if not defined.
65274         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65275         is defined to 0.
65276         (lchown): New decl.
65277         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65278         Do not check for lchown decl.
65279         Set REPLACE_LCHOWN.
65280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65281         REPLACE_LCHOWN.
65282         * modules/chown: Make it clear it follows symlinks.
65283         * modules/lchown: Make it clear it doesn't follow symlinks.
65284         (Files): Remove lib/lchown.h
65285         (Depends-on): Add unistd.
65286         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65287         (Include): Include <unistd.h>, not "lchown.h".
65288         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65289         REPLACE_LCHOWN.
65290
65291 2007-06-15  Jim Meyering  <jim@meyering.net>
65292
65293         Change license (GPL to LGPL) of fsusage and dependents.
65294         * modules/fsusage (License): Change to LGPL.
65295         * modules/full-read (License): Likewise.
65296         * modules/full-write (License): Likewise.
65297         * modules/safe-read (License): Likewise.
65298         * modules/safe-write (License): Likewise.
65299
65300 2007-06-14  Ben Pfaff  <blp@gnu.org>
65301
65302         Missing part of allocsa -> malloca transition.
65303         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65304         gl_MALLOCA.
65305
65306 2007-06-12  Bruno Haible  <bruno@clisp.org>
65307
65308         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65309         to ia64, x86_64, i386.
65310         Reported by Eric Blake.
65311
65312 2007-06-12  Bruno Haible  <bruno@clisp.org>
65313
65314         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65315         cross-compiling to x86_64.
65316
65317 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65320         glitch reported by Ralf Wildenhues in
65321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65322
65323         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65324         Vin Shelton.
65325
65326 2007-06-11  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65329         replacement string.
65330         Reported by Eric Blake.
65331
65332 2007-06-10  Bruno Haible  <bruno@clisp.org>
65333
65334         Prepare vasnprintf code for use with Unicode strings.
65335         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65336         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65337         TYPE_U32_STRING.
65338         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65339         a_u32_string variants.
65340         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65341         * lib/printf-args.c: Don't include config.h and the specification
65342         header if PRINTF_FETCHARGS is already defined.
65343         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65344         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65345         TYPE_U16_STRING, TYPE_U32_STRING.
65346         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65347         u16_directive, u16_directives, u32_directive, u32_directives): New
65348         types.
65349         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65350         New declarations.
65351         * lib/printf-parse.c: Don't include config.h and the specification
65352         header if PRINTF_PARSE is already defined. Eliminate the set of
65353         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65354         them now. Include c-ctype.h.
65355         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65356         directive and CHAR_T_ONLY_ASCII.
65357         * lib/vasnprintf.c: Don't include config.h and the specification header
65358         if VASNPRINTF is already defined.
65359         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65360         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65361         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65362         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65363         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65364         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65365         code accordingly.
65366         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65367         pad_ourselves also in this case, with the 'c' and 's' directives, and
65368         with a different notion of "width".
65369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65370
65371 2007-06-10  Bruno Haible  <bruno@clisp.org>
65372
65373         * modules/unistr/u32-mbsnlen: New file.
65374         * lib/unistr/u32-mbsnlen.c: New file.
65375
65376         * modules/unistr/u16-mbsnlen: New file.
65377         * lib/unistr/u16-mbsnlen.c: New file.
65378
65379         * modules/unistr/u8-mbsnlen: New file.
65380         * lib/unistr/u8-mbsnlen.c: New file.
65381
65382         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65383         declarations.
65384
65385 2007-06-10  Bruno Haible  <bruno@clisp.org>
65386
65387         * lib/string_.h (mbsnlen): New declaration.
65388         * lib/mbsnlen.c: New file.
65389         * m4/mbsnlen.m4: New file.
65390         * modules/mbsnlen: New file.
65391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65392         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65393         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65394
65395 2007-06-10  Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65398
65399 2007-06-10  Bruno Haible  <bruno@clisp.org>
65400
65401         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65402         * lib/mbuiter.h: Likewise.
65403
65404 2007-06-10  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65407         declaration.
65408
65409 2007-06-10  Karl Berry  <karl@gnu.org>
65410
65411         * config/srclist.txt: remove gettext entries, Bruno prefers
65412         to update individually.
65413
65414 2007-06-10  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65417         'maxlen'. Ensure only length + width bytes are allocated, not
65418         length + 1 + width.
65419
65420 2007-06-09  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65423         (CHAR_T): Remove macro.
65424         (VASNPRINTF): Update.
65425
65426 2007-06-09  Bruno Haible  <bruno@clisp.org>
65427
65428         * MODULES.html.sh (Unicode string functions): Add the new modules.
65429
65430         * modules/uniconv/u32-conv-to-enc: New file.
65431         * lib/uniconv/u32-conv-to-enc.c: New file.
65432         * modules/uniconv/u32-conv-to-enc-tests: New file.
65433         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65434
65435         * modules/uniconv/u16-conv-to-enc: New file.
65436         * lib/uniconv/u16-conv-to-enc.c: New file.
65437         * lib/uniconv/u-conv-to-enc.h: New file.
65438         * modules/uniconv/u16-conv-to-enc-tests: New file.
65439         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65440
65441         * modules/uniconv/u8-conv-to-enc: New file.
65442         * lib/uniconv/u8-conv-to-enc.c: New file.
65443         * modules/uniconv/u8-conv-to-enc-tests: New file.
65444         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65445
65446         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65447         u32_conv_to_encoding): New declarations.
65448
65449 2007-06-09  Bruno Haible  <bruno@clisp.org>
65450
65451         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65452
65453 2007-06-09  Bruno Haible  <bruno@clisp.org>
65454
65455         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65456         * modules/malloca: Renamed from modules/allocsa, updated.
65457         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65458         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65459         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65460         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65461         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65462         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65463         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65464         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65465         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65466         * modules/c-strcasestr (Depends-on): Update.
65467         * lib/c-strcasestr.c: Update.
65468         * modules/c-strstr (Depends-on): Update.
65469         * lib/c-strstr.c: Update.
65470         * modules/canonicalize-lgpl (Depends-on): Update.
65471         * lib/canonicalize-lgpl.c: Update.
65472         * modules/clean-temp (Depends-on): Update.
65473         * lib/clean-temp.c: Update.
65474         * modules/csharpcomp (Depends-on): Update.
65475         * lib/csharpcomp.c: Update.
65476         * modules/csharpexec (Depends-on): Update.
65477         * lib/csharpexec.c: Update.
65478         * modules/javacomp (Depends-on): Update.
65479         * lib/javacomp.c: Update.
65480         * modules/javaexec (Depends-on): Update.
65481         * lib/javaexec.c: Update.
65482         * modules/mbscasestr (Depends-on): Update.
65483         * lib/mbscasestr.c: Update.
65484         * modules/mbsstr (Depends-on): Update.
65485         * lib/mbsstr.c: Update.
65486         * modules/setenv (Depends-on): Update.
65487         * lib/setenv.c: Update.
65488         * modules/strcasestr (Depends-on): Update.
65489         * lib/strcasestr.c: Update.
65490         * modules/striconveha (Depends-on): Update.
65491         * lib/striconveha.c: Update.
65492         * modules/relocatable-prog-wrapper (Files): Update.
65493         * lib/relocwrapper.c: Update.
65494         * build-aux/install-reloc: Update.
65495         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65496
65497 2007-06-08  Bruno Haible  <bruno@clisp.org>
65498
65499         Port to uClibc.
65500         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65501         * lib/fpurge.c (fpurge): Likewise.
65502         * lib/freading.c (freading): Likewise.
65503         * lib/fseeko.c (rpl_fseeko): Likewise.
65504         * lib/fseterr.c (fseterr): Likewise.
65505         * lib/fwriting.c (fwriting): Likewise.
65506         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65507
65508 2007-06-08  Bruno Haible  <bruno@clisp.org>
65509
65510         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65511         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65512         * modules/gettext (Files): Add m4/intlmacosx.m4.
65513
65514 2007-06-07  Bruno Haible  <bruno@clisp.org>
65515
65516         * modules/localename-tests: New file.
65517         * tests/test-localename.c: New file.
65518
65519         New module 'localename'.
65520         * lib/localename.h: New file.
65521         * lib/localename.c: New file, from GNU gettext.
65522         * m4/localename.m4: New file.
65523         * modules/localename: New file.
65524
65525 2007-06-07  Bruno Haible  <bruno@clisp.org>
65526
65527         Work around the lack of <wchar.h> on some builds of uClibc.
65528         * doc/headers/wchar.texi: Update.
65529         * lib/wchar_.h: Include <wchar.h> only if it exists.
65530         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65531         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65532         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65533         doesn't exist.
65534         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65535         * modules/mbfile (Depends-on): Add wchar.
65536         * modules/mbiter (Depends-on): Likewise.
65537         * modules/mbuiter (Depends-on): Likewise.
65538         Reported by Simon Josefsson.
65539
65540 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         Work around problem reported by Steven M. Schweda in
65543         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65544         Tru64 5.1B with the Compaq compiler environment installed declares
65545         an 'isblank' function but does not define it in the C library.
65546         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65547         * lib/regex_internal.h (isblank): Likewise.
65548         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65549         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65550
65551 2007-06-05  Bruno Haible  <bruno@clisp.org>
65552
65553         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65554         ia64.
65555         * modules/printf-safe: New file.
65556         * modules/fprintf-posix (Depends-on): Add printf-safe.
65557         * modules/printf-posix (Depends-on): Likewise.
65558         * modules/snprintf-posix (Depends-on): Likewise.
65559         * modules/sprintf-posix (Depends-on): Likewise.
65560         * modules/vasnprintf-posix (Depends-on): Likewise.
65561         * modules/vasprintf-posix (Depends-on): Likewise.
65562         * modules/vfprintf-posix (Depends-on): Likewise.
65563         * modules/vprintf-posix (Depends-on): Likewise.
65564         * modules/vsnprintf-posix (Depends-on): Likewise.
65565         * modules/vsprintf-posix (Depends-on): Likewise.
65566         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65567         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65568         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65569         "no" on i386, x86_64, ia64.
65570         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65571         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65572         on i386, x86_64, ia64.
65573         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65574         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65575         on i386, x86_64, ia64.
65576         * tests/test-vasnprintf-posix.c: Include float.h.
65577         (LDBL80_WORDS): New macro.
65578         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65579         on i386, x86_64, ia64.
65580         * tests/test-vasprintf-posix.c: Include float.h.
65581         (LDBL80_WORDS): New macro.
65582         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65583         on i386, x86_64, ia64.
65584         * tests/test-snprintf-posix.c: Include float.h.
65585         * tests/test-sprintf-posix.c: Likewise.
65586         * tests/test-vsnprintf-posix.c: Likewise.
65587         * tests/test-vsprintf-posix.c: Likewise.
65588
65589 2007-06-05  Bruno Haible  <bruno@clisp.org>
65590
65591         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65592         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65593         non-IEEE numbers on i386, x86_64, ia64.
65594         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65595         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65596         * tests/test-isnanl.h: Include float.h.
65597         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65598
65599 2007-06-05  Bruno Haible  <bruno@clisp.org>
65600
65601         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65602         also the %a / %A. Handle the %a / %A code before this extra handling.
65603
65604 2007-06-05  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65607         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65608
65609 2007-06-05  Bruno Haible  <bruno@clisp.org>
65610
65611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65612         typo in variable name.
65613
65614 2007-06-05  Eric Blake  <ebb9@byu.net>
65615
65616         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65617         Reported by Simon Josefsson.
65618
65619 2007-06-04  Bruno Haible  <bruno@clisp.org>
65620
65621         Avoid test failures on some PowerPC platforms.
65622         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65623         Define differently for PowerPC.
65624         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65625         Reported by Gary V. Vaughan <gary@gnu.org>.
65626
65627 2007-06-02  Bruno Haible  <bruno@clisp.org>
65628
65629         Fix test-stdint failure on FreeBSD/ia64.
65630         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65631         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65632         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65633         * doc/headers/stdint.texi: Update.
65634
65635 2007-06-01  Bruno Haible  <bruno@clisp.org>
65636
65637         * tests/test-binary-io.c (main): Pass a third argument to open().
65638         Reported by Gary V. Vaughan <gary@gnu.org>.
65639
65640 2007-06-01  Bruno Haible  <bruno@clisp.org>
65641
65642         * doc/functions/frexpl.texi: Update for mingw.
65643
65644 2007-06-01  Bruno Haible  <bruno@clisp.org>
65645
65646         * tests/test-lseek.c (main): Disable test of errno for invalid third
65647         argument.
65648         * doc/functions/lseek.texi: Update.
65649         Reported by Gary V. Vaughan <gary@gnu.org>.
65650
65651 2007-05-28  Bruno Haible  <bruno@clisp.org>
65652
65653         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65654
65655 2007-05-31  Eric Blake  <ebb9@byu.net>
65656
65657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65658         cross compiling.
65659
65660 2007-05-30  Eric Blake  <ebb9@byu.net>
65661         and Bruno Haible  <bruno@clisp.org>
65662
65663         Work around mingw test failures exposed by m4-1.4.9b.
65664         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65665         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65666         moment.
65667
65668 2007-05-30  Bruno Haible  <bruno@clisp.org>
65669
65670         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65671         assuming that they are closed. Needed on HP-UX 11.
65672
65673 2007-05-29  Bruno Haible  <bruno@clisp.org>
65674
65675         Fix a problem with #include_next.
65676         * lib/dirent_.h: Split the double-inclusion guard.
65677         * lib/fcntl_.h: Likewise.
65678         * lib/float_.h: Likewise.
65679         * lib/iconv_.h: Likewise.
65680         * lib/inttypes_.h: Likewise.
65681         * lib/locale_.h: Likewise.
65682         * lib/math_.h: Likewise.
65683         * lib/netinet_in_.h: Likewise.
65684         * lib/search_.h: Likewise.
65685         * lib/signal_.h: Likewise.
65686         * lib/stdint_.h: Likewise.
65687         * lib/stdio_.h: Likewise.
65688         * lib/stdlib_.h: Likewise.
65689         * lib/string_.h: Likewise.
65690         * lib/sys_select_.h: Likewise.
65691         * lib/sys_socket_.h: Likewise.
65692         * lib/sys_stat_.h: Likewise.
65693         * lib/sys_time_.h: Likewise.
65694         * lib/sysexits_.h: Likewise.
65695         * lib/time_.h: Likewise.
65696         * lib/unistd_.h: Likewise.
65697         * lib/wchar_.h: Likewise.
65698         * lib/wctype_.h: Likewise.
65699
65700 2007-05-29  Bruno Haible  <bruno@clisp.org>
65701
65702         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65703         for the moment.
65704
65705 2007-05-29  Bruno Haible  <bruno@clisp.org>
65706
65707         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65708         invocation.
65709         Reported by Eric Blake.
65710
65711 2007-05-29  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65714         compiling case.
65715
65716 2007-05-29  Eric Blake  <ebb9@byu.net>
65717             Bruno Haible  <bruno@clisp.org>
65718
65719         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65720         cross compiles.
65721
65722 2007-05-28  Eric Blake  <ebb9@byu.net>
65723
65724         * modules/closein-tests (test_closein_LDADD): Support test on
65725         cygwin with libtool.
65726
65727 2007-05-28  Bruno Haible  <bruno@clisp.org>
65728
65729         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65730         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65731         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65732         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65733         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65734         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65735         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65736         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65737         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65738
65739 2007-05-28  Eric Blake  <ebb9@byu.net>
65740
65741         Unconditionally include <config.h> in unit tests.
65742         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65743         * tests/test-allocsa.c, tests/test-arcfour.c,
65744         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65745         tests/test-array_list.c, tests/test-array_oset.c,
65746         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65747         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65748         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65749         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65750         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65751         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65752         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65753         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65754         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65755         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65756         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65757         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65758         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65759         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65760         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65761         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65762         test-md5.c, test-memmem.c, test-printf-posix.c,
65763         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65764         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65765         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65766         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65767         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65768         test-vasnprintf-posix2.c, test-vasnprintf.c,
65769         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65770         test-vfprintf-posix.c, test-vprintf-posix.c,
65771         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65772         test-xvasprintf.c: Likewise.
65773
65774 2007-05-28  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_import): Remember the --with-tests command-line
65777         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65778         Reported by Eric Blake.
65779
65780 2007-05-28  Bruno Haible  <bruno@clisp.org>
65781
65782         * modules/ftell-tests: New file.
65783         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65784         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65785
65786         * lib/ftell.c: New file.
65787         * modules/ftell: New file.
65788         * m4/ftell.m4: New file.
65789         * doc/functions/ftell.texi: Update.
65790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65791         REPLACE_FTELL.
65792         * lib/stdio_.h (rpl_ftell): New declaration.
65793         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65794         REPLACE_FTELL.
65795
65796 2007-05-28  Eric Blake  <ebb9@byu.net>
65797
65798         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65799
65800 2007-05-28  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/fseek-tests: New file.
65803         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65804         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65805
65806         * lib/fseek.c: New file.
65807         * modules/fseek: New file.
65808         * m4/fseek.m4: New file.
65809         * doc/functions/fseek.texi: Update.
65810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65811         REPLACE_FSEEK.
65812         * lib/stdio_.h (rpl_fseek): New declaration.
65813         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65814         REPLACE_FSEEK.
65815
65816 2007-05-28  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/stdio_.h (fflush): More comments.
65819
65820 2007-05-28  Bruno Haible  <bruno@clisp.org>
65821
65822         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65823         runtime test.
65824
65825 2007-05-28  Eric Blake  <ebb9@byu.net>
65826
65827         Improve lseek module.
65828         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65829         * lib/unistd_.h (lseek): Scale back link warning message.
65830         * tests/test-lseek.c: Beef up test.
65831         * tests/test-lseek.sh: Exercise more facets of lseek.
65832         Reported by Bruno Haible.
65833
65834 2007-05-28  Bruno Haible  <bruno@clisp.org>
65835
65836         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65837         to define.
65838
65839 2007-05-27  Bruno Haible  <bruno@clisp.org>
65840
65841         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65842
65843 2007-05-27  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/openmp: New file.
65846         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65847         Noah Misch.
65848
65849 2007-05-26  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/chdir-long (Depends-on): Add fchdir.
65852         * modules/chdir-safer (Depends-on): Likewise.
65853         * modules/fts (Depends-on): Likewise.
65854         * modules/fts-lgpl (Depends-on): Likewise.
65855         * modules/openat (Depends-on): Likewise.
65856         * modules/savewd (Depends-on): Likewise.
65857
65858 2007-05-24  Eric Blake  <ebb9@byu.net>
65859
65860         Fix lseek on mingw.
65861         * modules/lseek: New module.
65862         * m4/lseek.m4: New file.
65863         * lib/lseek.c: New file.
65864         * modules/lseek-tests: New file.
65865         * tests/test-lseek.c: New file.
65866         * tests/test-lseek.sh: New file.
65867         * MODULES.html.sh: Document lseek module.
65868         * modules/fflush (Depends-on): Add lseek, fseeko.
65869         * modules/fseeko (Depends-on): Likewise.
65870         * modules/ftello (Depends-on): Likewise.
65871         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65872         broken.
65873         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65874         broken.
65875         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65876         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65877         * lib/ftello.c (rpl_ftello): Likewise.
65878         * tests/test-fseeko.c (main): Test this.
65879         * tests/test-fseeko.sh: Likewise.
65880         * tests/test-ftello.c (main): Likewise.
65881         * tests/test-ftello.sh: Likewise.
65882         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65883         implies replacing fseek.
65884         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65885         HAVE_FTELLO.
65886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65887         * modules/unistd (Makefile.am): Likewise.
65888         * lib/unistd_.h (lseek): Declare a replacement.
65889         * doc/functions/lseek.texi (lseek): Document this fix.
65890         * doc/functions/fseek.texi (fseek): Likewise.
65891         * doc/functions/ftell.texi (ftell): Likewise.
65892
65893 2007-05-24  Bruno Haible  <bruno@clisp.org>
65894
65895         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65896         in the printed representation of a NaN.
65897         * tests/test-vasprintf-posix.c (test_function): Likewise.
65898         * tests/test-snprintf-posix.h (test_function): Likewise.
65899         * tests/test-sprintf-posix.h (test_function): Likewise.
65900         Reported by Eric Blake.
65901
65902 2007-05-23  Eric Blake  <ebb9@byu.net>
65903
65904         Fix fseeko/ftello on cygwin 1.5.24.
65905         * doc/functions/fseeko.texi (fseeko): Document the fix.
65906         * doc/functions/ftello.texi (ftello): Document the fix.
65907         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65908         * doc/functions/stdout.text (stdout): New file.
65909         * doc/functions/stderr.text (stderr): New file.
65910         * doc/gnulib.texi (Function Substitutes): Use new files.
65911         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65912         prior to 1.7.0.
65913         * tests/test-ftello.c (main): Likewise for ftello.
65914         * tests/test-fseeko.sh: New file.
65915         * tests/test-ftello.sh: New file.
65916         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65917         with seekable stdin.
65918         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65919         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65920         (gl_REPLACE_FSEEKO): New macro.
65921         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65922         * modules/fseeko (Files): Distribute fseeko.c.
65923         * modules/ftello (Files): Distribute ftello.c.
65924         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65925         mode.
65926         * lib/ftello.c (rpl_ftello): New file.
65927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65928         fseeko, ftello.
65929         (gl_STDIN_LARGE_OFFSET): New macro.
65930         * modules/stdio (Makefile.am): Perform the replacement.
65931         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65932
65933 2007-05-23  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65936         GNULIB_POSIXCHECK is defined.
65937
65938 2007-05-21  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65941         Check also the output for NaN arguments. When cross-compiling, guess
65942         no on IRIX.
65943         * lib/vasnprintf.c: Update comments.
65944         * tests/test-vasnprintf-posix.c (strisnan): New function.
65945         (test_function): Use it.
65946         * tests/test-vasprintf-posix.c (strisnan): New function.
65947         (test_function): Use it.
65948         * tests/test-snprintf-posix.h (strisnan): New function.
65949         (test_function): Use it.
65950         * tests/test-sprintf-posix.h (strisnan): New function.
65951         (test_function): Use it.
65952         Reported by Eric Blake.
65953
65954 2007-05-20  Bruno Haible  <bruno@clisp.org>
65955
65956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65957         numbers that fails on BeOS.
65958         * doc/functions/frexpl.texi: Update.
65959
65960 2007-05-20  Jim Meyering  <jim@meyering.net>
65961
65962         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65963         forced upon us by glibc-2.6.
65964
65965 2007-05-20  Bruno Haible  <bruno@clisp.org>
65966
65967         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65968         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65969         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65970         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65971         NEED_PRINTF_INFINITE.
65972         (is_infinitel): New function.
65973         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65975         gl_PREREQ_VASNPRINTF_INFINITE.
65976         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65978         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65979         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65980         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65981         gl_PREREQ_VASNPRINTF_INFINITE.
65982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65989         * doc/functions/fprintf.texi: Update.
65990         * doc/functions/printf.texi: Update.
65991         * doc/functions/snprintf.texi: Update.
65992         * doc/functions/sprintf.texi: Update.
65993         * doc/functions/vfprintf.texi: Update.
65994         * doc/functions/vprintf.texi: Update.
65995         * doc/functions/vsnprintf.texi: Update.
65996         * doc/functions/vsprintf.texi: Update.
65997
65998 2007-05-20  Bruno Haible  <bruno@clisp.org>
65999
66000         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66001         was not found in libc.
66002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66003
66004 2007-05-20  Bruno Haible  <bruno@clisp.org>
66005
66006         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66007         printed as "-nan" instead of "nan".
66008         * tests/test-vasprintf-posix.c (test_function): Likewise.
66009         * tests/test-snprintf-posix.h (test_function): Likewise.
66010         * tests/test-sprintf-posix.h (test_function): Likewise.
66011         Needed for HP-UX 11.
66012
66013 2007-05-20  Jim Meyering  <jim@meyering.net>
66014
66015         Fix buggy test for the fchownat-deref bug.
66016         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66017         symlink required for the run-test.  Without it, this test would
66018         always declare that fchownat doesn't work, and client code would
66019         unnecessarily use the replacement function with fixed libc.
66020         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66021         Reported by Greg Schafer.
66022
66023 2007-05-19  Bruno Haible  <bruno@clisp.org>
66024
66025         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66026         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66027         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66028         Needed for IRIX 6.5 and Solaris 2.5.1.
66029
66030 2007-05-19  Bruno Haible  <bruno@clisp.org>
66031
66032         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66033         (test_function): Skip tests involving -0.0 on platforms where
66034         -0.0 = 0.0.
66035         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66036         (test_function): Skip tests involving -0.0 on platforms where
66037         -0.0 = 0.0.
66038         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66039         (test_function): Skip tests involving -0.0 on platforms where
66040         -0.0 = 0.0.
66041         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66042         (test_function): Skip tests involving -0.0 on platforms where
66043         -0.0 = 0.0.
66044         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66045         tests.
66046         * tests/test-printf-posix.h (test_function): Likewise.
66047         * tests/test-printf-posix.output: Remove all -0.0 related results.
66048         Needed for IRIX 6.5.
66049
66050 2007-05-19  Bruno Haible  <bruno@clisp.org>
66051
66052         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66053         printed as "nan0x7fffffff" instead of "nan".
66054         * tests/test-vasprintf-posix.c (test_function): Likewise.
66055         * tests/test-snprintf-posix.h (test_function): Likewise.
66056         * tests/test-sprintf-posix.h (test_function): Likewise.
66057         * tests/test-fprintf-posix.h (NaN): Remove macro.
66058         (test_function): Remove all NaN related tests.
66059         * tests/test-printf-posix.h (NaN): Remove macro.
66060         (test_function): Remove all NaN related tests.
66061         * tests/test-printf-posix.output: Remove all NaN related results.
66062         Needed for IRIX 6.5.
66063
66064 2007-05-19  Bruno Haible  <bruno@clisp.org>
66065
66066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66068
66069 2007-05-19  Bruno Haible  <bruno@clisp.org>
66070
66071         * lib/float_.h: New file.
66072         * m4/float_h.m4: New file.
66073         * modules/float: New file.
66074         * modules/isnanl (Dependencies): Add float.
66075         * modules/isnanl-nolibm (Dependencies): Likewise.
66076         * modules/mathl (Dependencies): Likewise.
66077         * modules/printf-frexpl (Dependencies): Likewise.
66078         * modules/signbit (Dependencies): Likewise.
66079         * modules/vasnprintf (Dependencies): Likewise.
66080         * doc/headers/float.texi: Update.
66081
66082 2007-05-19  Jim Meyering  <jim@meyering.net>
66083
66084         * lib/utimens.c (gl_futimens): Rename from futimens,
66085         now that glibc-2.6 declares futimens.
66086         * lib/utimens.h: Likewise.
66087
66088 2007-05-19  Bruno Haible  <bruno@clisp.org>
66089
66090         Avoid test failures on mingw.
66091         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66092         * tests/test-printf-posix.sh: Likewise.
66093         * tests/test-vfprintf-posix.sh: Likewise.
66094         * tests/test-vprintf-posix.sh: Likewise.
66095
66096 2007-05-19  Bruno Haible  <bruno@clisp.org>
66097
66098         Fix *printf result for NaN, Inf, -0.0 on mingw.
66099         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66100         * lib/vasnprintf.c: Include math.h and isnan.h.
66101         (is_infinite_or_zero): New function.
66102         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66103         values in the %f, %F, %e, %E, %g, %G directives.
66104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66106         gl_PRINTF_INFINITE and test its result. Invoke
66107         gl_PREREQ_VASNPRINTF_INFINITE.
66108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66109         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66110         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66111         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66115         * doc/functions/fprintf.texi: Update.
66116         * doc/functions/printf.texi: Update.
66117         * doc/functions/snprintf.texi: Update.
66118         * doc/functions/sprintf.texi: Update.
66119         * doc/functions/vfprintf.texi: Update.
66120         * doc/functions/vprintf.texi: Update.
66121         * doc/functions/vsnprintf.texi: Update.
66122         * doc/functions/vsprintf.texi: Update.
66123
66124 2007-05-19  Bruno Haible  <bruno@clisp.org>
66125
66126         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66127         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66128         Instead of multiplying with 10^k, set extra_zeroes to k.
66129         (scale10_round_long_double): Remove function.
66130
66131 2007-05-18  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66134         introduced on 2007-05-06.
66135
66136 2007-05-18  Bruno Haible  <bruno@clisp.org>
66137
66138         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66139         %g directives.
66140         * tests/test-vasprintf-posix.c (test_function): Likewise.
66141         * tests/test-snprintf-posix.h (test_function): Likewise.
66142         * tests/test-sprintf-posix.h (test_function): Likewise.
66143
66144 2007-05-18  Bruno Haible  <bruno@clisp.org>
66145
66146         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66147         (strmatch): New function.
66148         (test_function): Test the %f directive on numbers of various exponents.
66149         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66150         (strmatch): New function.
66151         (test_function): Test the %f directive on numbers of various exponents.
66152         * tests/test-snprintf-posix.h (strmatch): New function.
66153         (test_function): Test the %f directive on numbers of various exponents.
66154         * tests/test-sprintf-posix.h (strmatch): New function.
66155         (test_function): Test the %f directive on numbers of various exponents.
66156         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66157         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66158         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66159         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66160
66161 2007-05-18  Bruno Haible  <bruno@clisp.org>
66162
66163         Add support for 'long double' number output.
66164         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66165         * lib/vasnprintf.c: Include math.h and float+.h.
66166         (mp_limb_t): New type.
66167         (GMP_LIMB_BITS): New macro.
66168         (mp_twolimb_t): New type.
66169         (GMP_TWOLIMB_BITS): New macro.
66170         (mpn_t): New type.
66171         (multiply, divide, convert_to_decimal, decode_long_double,
66172         scale10_round_long_double, scale10_round_decimal_long_double,
66173         floorlog10l): New functions.
66174         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66175         for the %f, %F, %e, %E, %g, %G directives.
66176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66178         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66179         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66187         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66188         * modules/snprintf-posix (Depends-on): Likewise.
66189         * modules/sprintf-posix (Depends-on): Likewise.
66190         * modules/vasnprintf-posix (Depends-on): Likewise.
66191         * modules/vasprintf-posix (Depends-on): Likewise.
66192         * modules/vfprintf-posix (Depends-on): Likewise.
66193         * modules/vsnprintf-posix (Depends-on): Likewise.
66194         * modules/vsprintf-posix (Depends-on): Likewise.
66195         * modules/vasnprintf (Files): Add lib/float+.h.
66196         * doc/functions/fprintf.texi: Update.
66197         * doc/functions/printf.texi: Update.
66198         * doc/functions/snprintf.texi: Update.
66199         * doc/functions/sprintf.texi: Update.
66200         * doc/functions/vfprintf.texi: Update.
66201         * doc/functions/vprintf.texi: Update.
66202         * doc/functions/vsnprintf.texi: Update.
66203         * doc/functions/vsprintf.texi: Update.
66204
66205 2007-05-18  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66208
66209 2007-05-18  Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66212         for printing 64-bit integers. Needed for mingw.
66213
66214 2007-05-18  Bruno Haible  <bruno@clisp.org>
66215
66216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66217         gl_FUNC_FREXPL_WORKS.
66218         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66219
66220 2007-05-18  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/frexpl-nolibm-tests: New file.
66223
66224         * modules/frexpl-nolibm: New file.
66225         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66226
66227 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66230         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66231         GCC 4.2, which otherwise issues a lot of warnings.
66232         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66233         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66234         Likewise.
66235         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66236         * modules/iconv_open (iconv.h): Likewise.
66237         * modules/locale (locale.h): Likewise.
66238         * modules/netinet_in (netinet/in.h): Likewise.
66239         * modules/sys_select (sys_select.h): Likewise.
66240         * modules/sys_socket (sys/socket.h): Likewise.
66241         * modules/sys_stat (sys/stat.h): Likewise.
66242         * modules/sysexits (sysexits.h): Likewise.
66243         * modules/unistd (unistd.h): Likewise.
66244
66245 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66246
66247         * modules/closein-tests (Makefile.am): Distribute
66248         `test-closein.sh'.
66249
66250 2007-05-17  Bruno Haible  <bruno@clisp.org>
66251
66252         * tests/test-printf-posix.output: Renamed from
66253         tests/test-fprintf-posix.out.
66254         * modules/fprintf-posix-tests: Update.
66255         * modules/printf-posix-tests: Update.
66256         * modules/vfprintf-posix-tests: Update.
66257         * modules/vprintf-posix-tests: Update.
66258         * tests/test-fprintf-posix.sh: Update.
66259         * tests/test-printf-posix.sh: Update.
66260         * tests/test-vfprintf-posix.sh: Update.
66261         * tests/test-vprintf-posix.sh: Update.
66262         Reported by Ralf Wildenhues.
66263
66264 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66267         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66268         GCC 4.2, which otherwise issues a lot of warnings.
66269         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66270         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66271         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66272         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66273         it should no longer be needed.
66274         * lib/string_.h: Likewise.
66275         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66276         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66277         * modules/inttypes (inttypes.h): Likewise.
66278         * modules/math (math.h): Likewise.
66279         * modules/search (search.h): Likewise.
66280         * modules/signal (signal.h): Likewise.
66281         * modules/stdint (stdint.h): Likewise.
66282         * modules/stdio (stdio.h): Likewise.
66283         * modules/stdlib (stdlib.h): Likewise.
66284         * modules/string (string.h): Likewise.
66285         * modules/sys_time (sys/time.h): Likewise.
66286         * modules/time (time.h): Likewise.
66287         * modules/wchar (wchar.h): Likewise.
66288         * modules/wctype (wtype.h): Likewise.
66289
66290 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66291
66292         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66293
66294 2007-05-13  Bruno Haible  <bruno@clisp.org>
66295
66296         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66297         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66298         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66299         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66300         (gl_PREREQ_STRTOK_R): Don't require it here.
66301
66302 2007-05-13  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66305         when used in C++ mode.
66306
66307 2007-05-12  Bruno Haible  <bruno@clisp.org>
66308
66309         * lib/linebuffer.h: Tweak doc.
66310         * lib/linebuffer.c: Likewise.
66311
66312 2007-05-12  James Youngman  <jay@gnu.org>
66313
66314         * lib/linebuffer.c (readlinebuffer_delim): New function,
66315         like readlinebuffer, but use a caller-specified delimiter.
66316         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66317         as the delimiter.
66318         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66319
66320 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66321
66322         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66323         * modules/openat (Files): Remove openat-die.c.
66324         (Depends-on): Add openat-die.
66325         * modules/openat-die: New module.
66326
66327 2007-05-06  Bruno Haible  <bruno@clisp.org>
66328
66329         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66330         Update with info about Cygwin.
66331         * doc/functions/fprintf.texi: Update.
66332         * doc/functions/printf.texi: Update.
66333         * doc/functions/snprintf.texi: Update.
66334         * doc/functions/sprintf.texi: Update.
66335         * doc/functions/vfprintf.texi: Update.
66336         * doc/functions/vprintf.texi: Update.
66337         * doc/functions/vsnprintf.texi: Update.
66338         * doc/functions/vsprintf.texi: Update.
66339         Reported by Eric Blake.
66340
66341 2007-05-06  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66344         padding ourselves for the floating-point directives.
66345         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66348         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66349         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66350         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66354         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66356         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66357         * tests/test-snprintf-posix.h (test_function): Also check the width
66358         and some flags in the %f directive.
66359         * tests/test-sprintf-posix.h (test_function): Likewise.
66360         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66361         * tests/test-vasprintf-posix.c (test_function): Likewise.
66362         * doc/functions/fprintf.texi: Update.
66363         * doc/functions/printf.texi: Update.
66364         * doc/functions/snprintf.texi: Update.
66365         * doc/functions/sprintf.texi: Update.
66366         * doc/functions/vfprintf.texi: Update.
66367         * doc/functions/vprintf.texi: Update.
66368         * doc/functions/vsnprintf.texi: Update.
66369         * doc/functions/vsprintf.texi: Update.
66370
66371 2007-05-06  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66374         pass the ' flag character to sprintf or snprintf.
66375         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66378         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66379         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66387         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66388         flag.
66389         * tests/test-sprintf-posix.h (test_function): Likewise.
66390         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66391         * tests/test-vasprintf-posix.c (test_function): Likewise.
66392         * doc/functions/fprintf.texi: Update.
66393         * doc/functions/printf.texi: Update.
66394         * doc/functions/snprintf.texi: Update.
66395         * doc/functions/sprintf.texi: Update.
66396         * doc/functions/vfprintf.texi: Update.
66397         * doc/functions/vprintf.texi: Update.
66398         * doc/functions/vsnprintf.texi: Update.
66399         * doc/functions/vsprintf.texi: Update.
66400
66401 2007-05-01  Bruno Haible  <bruno@clisp.org>
66402
66403         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66404
66405 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66408         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66409
66410 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66413         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66415
66416 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66417
66418         * lib/argp-help.c (struct hol_entry): New member `ord'.
66419         (HOL_ENTRY_PTRCMP): Use ord for comparison
66420         (hol_sort): Initialize ord.
66421
66422 2007-05-01  Bruno Haible  <bruno@clisp.org>
66423
66424         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66425         Reported by Eric Blake.
66426         * doc/gnulib.texi (Function Substitutes): Update.
66427
66428 2007-05-01  Bruno Haible  <bruno@clisp.org>
66429
66430         * doc/functions.texi: Remove file, now redundant through
66431         doc/functions/*.texi.
66432
66433 2007-05-01  Bruno Haible  <bruno@clisp.org>
66434
66435         * modules/argp (Depends-on): Add sleep.
66436
66437 2007-05-01  Bruno Haible  <bruno@clisp.org>
66438
66439         * modules/sleep-tests: New file.
66440         * tests/test-sleep.c: New file.
66441
66442         * modules/sleep: New file.
66443         * lib/sleep.c: New file.
66444         * m4/sleep.m4: New file.
66445         * lib/unistd_.h (sleep): New declaration.
66446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66447         HAVE_SLEEP.
66448         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66449         * doc/functions/sleep.texi: Document the sleep module.
66450
66451 2007-05-01  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/sigprocmask.h: Remove file.
66454         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66455         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66456         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66457         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66458         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66459         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66460         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66461         HAVE_SIGSET_T as a shell variable.
66462         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66463         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66464         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66465         (Depends-on): Add signal. Remove verify.
66466         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66467         (Include): Mention <signal.h> instead of sigprocmask.h.
66468         * NEWS: Mention the change.
66469         * lib/fatal-signal.c: Don't include sigprocmask.h.
66470
66471 2007-05-01  Bruno Haible  <bruno@clisp.org>
66472
66473         * modules/signal: New file.
66474         * lib/signal_.h: New file.
66475         * m4/signal_h.m4: New file.
66476
66477 2007-05-01  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66480         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66481         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66482         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66483
66484 2007-05-01  Bruno Haible  <bruno@clisp.org>
66485
66486         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66487         configure time.
66488         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66489         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66490         * modules/sys_stat (Makefile.am): Substitute their values into
66491         sys/stat.h.
66492
66493 2007-05-01  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66496         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66497         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66498
66499 2007-05-01  Bruno Haible  <bruno@clisp.org>
66500
66501         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66502         'assert' module here.
66503
66504 2007-05-01  Bruno Haible  <bruno@clisp.org>
66505
66506         * doc/functions/*.texi: New files.
66507         * doc/functions/google-ranking.txt: New file.
66508         * doc/gnulib.texi (Function Substitutes): New chapter.
66509         (ctime, inet_ntoa): Remove sections.
66510         * doc/ctime.texi: Remove file.
66511         * doc/inet_ntoa.texi: Remove file.
66512         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66513         dependencies.
66514         (%.info): New rule, specifying a --reference-limit.
66515
66516 2007-05-01  Bruno Haible  <bruno@clisp.org>
66517
66518         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66519
66520 2007-05-01  Bruno Haible  <bruno@clisp.org>
66521
66522         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66523         the portability of 'mkdir' to mingw systems.
66524
66525 2007-05-01  Bruno Haible  <bruno@clisp.org>
66526
66527         * doc/headers/google-ranking.txt: New file.
66528
66529 2007-04-30  Eric Blake  <ebb9@byu.net>
66530
66531         Prefer fseeko to fseek.
66532         * modules/getpass (Depends-on): Add fseeko.
66533         * lib/getpass.c (getpass): Use fseeko, not fseek.
66534
66535 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66536
66537         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66538         assumes the sorting is stable, while most qsort implementations
66539         are not.  Use argument addresses to ensure they never compare as
66540         equal.
66541
66542         * tests/test-argp-2.sh (usage-indent test): Fix output
66543         (func_compare): Restore diff options
66544         * tests/test-argp.c: Restore #include "progname.h"
66545
66546 2007-04-29  Bruno Haible  <bruno@clisp.org>
66547
66548         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66550         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66552         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66553         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66554         (TESTS, check_PROGRAMS): Add test-snprintf.
66555         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66556         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66557         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66558         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66559         assertions that fail on HP-UX, OSF/1, or IRIX.
66560         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66561
66562 2007-04-29  Bruno Haible  <bruno@clisp.org>
66563
66564         * MODULES.html.sh (posix_functions): Remove 'contents'.
66565
66566 2007-04-29  Karl Berry  <karl@gnu.org>
66567
66568         * config/srclist.txt (gendocs_template_min): new entry.
66569
66570 2007-04-29  Bruno Haible  <bruno@clisp.org>
66571
66572         Work around fpurge bug on BSD systems.
66573         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66575         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66576         fpurge to rpl_fpurge if the system already has this function.
66577         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66578         the case where the system already has this function. Correct invariants
66579         on BSD systems.
66580         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66581         BSD systems.
66582
66583 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66584
66585         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66586         proposed by Sven Verdoolaege.
66587
66588         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66589         options.
66590         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66591         (usage and help tests): Update
66592
66593 2007-04-29  Bruno Haible  <bruno@clisp.org>
66594
66595         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66596         Print more information in case of failure. Disable a test on BeOS.
66597
66598 2007-04-29  Bruno Haible  <bruno@clisp.org>
66599
66600         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66601         This helps debugging on systems on which no gdb is available.
66602
66603 2007-04-29  Bruno Haible  <bruno@clisp.org>
66604
66605         * lib/freading.h: Improve comments.
66606         * lib/fwriting.h: Likewise.
66607         * tests/test-freading.c (main): Don't check freading immediately after
66608         repositioning. Needed for glibc.
66609
66610 2007-04-29  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/freading.c (freading): Trivial simplification.
66613
66614 2007-04-28  Bruno Haible  <bruno@clisp.org>
66615
66616         * tests/test-fwriting.c (main): Also test the interaction between
66617         fflush and fwriting.
66618         * modules/fwriting-tests (Depends-on): Add fflush.
66619
66620         * tests/test-freading.c (main): Also test the interaction between
66621         fflush and freading.
66622         * modules/freading-tests (Depends-on): Add fflush.
66623
66624 2007-04-28  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66627         fseeko and ftello.
66628         Suggested by Eric Blake.
66629
66630 2007-04-28  Jim Meyering  <jim@meyering.net>
66631
66632         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66633         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66634         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66635
66636 2007-04-27  Eric Blake  <ebb9@byu.net>
66637
66638         * doc/headers/assert.texi (assert.h): Document assert module use.
66639
66640 2007-04-27  Bruno Haible  <bruno@clisp.org>
66641
66642         * doc/headers/*.texi: New files.
66643         * doc/gnulib.texi (Header File Substitutes): New chapter.
66644         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66645         dependencies.
66646         (standards.info ,standards.html, standards.dvi): Update dependencies.
66647         (mostlyclean, clean): New targets.
66648
66649 2007-04-27  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66652         * modules/sysexits (Files, Makefile.am): Update.
66653
66654         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66655         * modules/sys_socket (Files, Makefile.am): Update.
66656
66657         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66658         * modules/sys_stat (Files, Makefile.am): Update.
66659
66660 2007-04-27  Eric Blake  <ebb9@byu.net>
66661
66662         * lib/freading.h: Improve comments.
66663         * lib/fwriting.h: Likewise.
66664         * lib/fflush.c: Likewise.
66665
66666         Fix closein for mingw.
66667         * modules/closein-tests: Add tests for closein.
66668         * tests/test-closein.c: New file.
66669         * tests/test-closein.sh: Likewise.
66670         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66671         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66672
66673 2007-04-27  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66676         version is < 6.
66677         * lib/math_.h [__DECC]: Likewise.
66678         * lib/stdio_.h [__DECC]: Likewise.
66679         * lib/stdlib_.h [__DECC]: Likewise.
66680         * lib/string_.h [__DECC]: Likewise.
66681         * lib/time_.h [__DECC]: Likewise.
66682         * lib/wchar_.h [__DECC]: Likewise.
66683         * lib/wctype_.h [__DECC]: Likewise.
66684
66685 2007-04-27  Bruno Haible  <bruno@clisp.org>
66686
66687         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66688
66689 2007-04-27  Bruno Haible  <bruno@clisp.org>
66690
66691         * lib/fflush.c: Add comments.
66692         * modules/fpurge-tests (Depends-on): Add fflush.
66693         * modules/freadable-tests (Depends-on): Likewise.
66694         * modules/fwritable-tests (Depends-on): Likewise.
66695
66696 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66697
66698         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66699         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66700         Report by Bruno Haible <bruno@clisp.org>.
66701
66702 2007-04-26  Eric Blake  <ebb9@byu.net>
66703
66704         Fix fflush on mingw.
66705         * modules/fflush (Depends-on): Add freading.
66706         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66707         but unread data.
66708
66709 2007-04-26  Eric Blake  <ebb9@byu.net>
66710         and Bruno Haible  <bruno@clisp.org>
66711
66712         Implement freading and fwriting.
66713         * lib/freading.c: New file.
66714         * lib/freading.h: Likewise.
66715         * m4/freading.m4: Likewise.
66716         * modules/freading: Likewise.
66717         * modules/freading-tests: Likewise.
66718         * tests/test-freading.c: Likewise.
66719         * lib/fwriting.c: New file.
66720         * lib/fwriting.h: Likewise.
66721         * m4/fwriting.m4: Likewise.
66722         * modules/fwriting: Likewise.
66723         * modules/fwriting-tests: Likewise.
66724         * tests/test-fwriting.c: Likewise.
66725         * MODULES.html.sh (File stream based Input/Output): Mention them.
66726
66727 2007-04-26  Bruno Haible  <bruno@clisp.org>
66728
66729         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66730         'long' when we assume it.
66731         Suggested by Eric Blake.
66732
66733 2007-04-26  Bruno Haible  <bruno@clisp.org>
66734
66735         Ensure fseeko, ftello are declared on glibc systems.
66736         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66737         * modules/fseeko (configure.ac-early): Likewise.
66738         * modules/ftello (configure.ac-early): Likewise.
66739         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66740         AC_FUNC_FSEEKO for this.
66741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66742         (gl_CHECK_FSEEKO): Remove macro.
66743
66744 2007-04-26  Bruno Haible  <bruno@clisp.org>
66745
66746         * tests/test-fflush.c (main): Also check the ftell result after
66747         fflush and fseek/fseeko.
66748         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66749         file descriptor position cache in the stream.
66750         * lib/fseeko.c (rpl_fseeko): Likewise.
66751
66752 2007-04-26  Bruno Haible  <bruno@clisp.org>
66753
66754         * modules/fflush-tests (Depends-on): Add fseeko.
66755
66756 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66757             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66758
66759         * lib/argz_.h: ensure error_t definition is obtained in same
66760         mechanism system argz.h would have.
66761         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66762         argz facilities are known bad.  Err on the side of caution if
66763         cross-compiling.
66764
66765 2007-04-25  Eric Blake  <ebb9@byu.net>
66766
66767         * lib/fpurge.c (includes): Use stdlib.h for free.
66768         * tests/test-fflush.c (main): Also test fflush-fseeko.
66769
66770 2007-04-25  Bruno Haible  <bruno@clisp.org>
66771
66772         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66773         * lib/fseeko.c: New file.
66774         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66775         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66776         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66777         gl_FUNC_FSEEKO.
66778         (gl_FUNC_FSEEKO): Invoke it.
66779         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66780         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66781         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66782
66783 2007-04-25  Bruno Haible  <bruno@clisp.org>
66784
66785         * modules/fflush (Depends-on): Add ftello.
66786
66787 2007-04-25  Bruno Haible  <bruno@clisp.org>
66788
66789         * modules/ftello-tests: New file.
66790         * tests/test-ftello.c: New file.
66791
66792         * modules/ftello: New file.
66793         * m4/ftello.m4: New file.
66794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66795         HAVE_FTELLO.
66796         * lib/stdio_.h (ftello): New declaration.
66797         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66798         HAVE_FTELLO.
66799
66800 2007-04-25  Bruno Haible  <bruno@clisp.org>
66801
66802         * modules/fseeko-tests: New file.
66803         * tests/test-fseeko.c: New file.
66804
66805         * modules/fseeko: New file.
66806         * m4/fseeko.m4: New file.
66807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66808         HAVE_FSEEKO.
66809         * lib/stdio_.h (fseeko): New declaration.
66810         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66811         HAVE_FSEEKO.
66812
66813 2007-04-25  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66816
66817 2007-04-25  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66820         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66821         * tests/test-unistd.c: Likewise.
66822         * tests/test-fcntl.c: Likewise.
66823
66824 2007-04-23  Eric Blake  <ebb9@byu.net>
66825
66826         * lib/fflush.c: Fix missing include.
66827         Reported by Bruno Haible.
66828
66829 2007-04-23  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66832         Reported by Eric Blake.
66833
66834 2007-04-23  Bruno Haible  <bruno@clisp.org>
66835
66836         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66837
66838 2007-04-23  Bruno Haible  <bruno@clisp.org>
66839
66840         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66841
66842 2007-04-23  Bruno Haible  <bruno@clisp.org>
66843
66844         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66845         Needed on HP-UX 11.
66846
66847 2007-04-16  Eric Blake  <ebb9@byu.net>
66848
66849         Make fflush rely on fpurge.
66850         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66851         open coding all variants.
66852         * modules/fflush (Depends-on): Add fpurge and unistd.
66853         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66854         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66855
66856         Fix --with-tests compilation on cygwin.
66857         * modules/argmatch-tests (Makefile.am): List gnulib library first
66858         in LDADD.
66859         * modules/argp-tests (Makefile.am): Likewise.
66860         * modules/array-list-tests (Makefile.am): Likewise.
66861         * modules/array-oset-tests (Makefile.am): Likewise.
66862         * modules/avltree-list-tests (Makefile.am): Likewise.
66863         * modules/avltree-oset-tests (Makefile.am): Likewise.
66864         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66865         * modules/carray-list-tests (Makefile.am): Likewise.
66866         * modules/dirname-tests (Makefile.am): Likewise.
66867         * modules/frexp-tests (Makefile.am): Likewise.
66868         * modules/isnanl-tests (Makefile.am): Likewise.
66869         * modules/linked-list-tests (Makefile.am): Likewise.
66870         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66871         * modules/lock-tests (Makefile.am): Likewise.
66872         * modules/rbtree-list-tests (Makefile.am): Likewise.
66873         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66874         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66875         * modules/tls-tests (Makefile.am): Likewise.
66876         * modules/tsearch-tests (Makefile.am): Likewise.
66877         * modules/xvasprintf-tests (Makefile.am): Likewise.
66878
66879         Fix fpurge for cygwin.
66880         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66881         value.
66882         * modules/fpurge-tests (Depends-on): Clean up trash.
66883
66884 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66885
66886         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66887
66888         * m4/autobuild.m4: Re-indent.
66889
66890 2007-04-13  Bruno Haible  <bruno@clisp.org>
66891
66892         * modules/fpurge-tests: New file.
66893         * tests/test-fpurge.c: New file.
66894
66895         * modules/fpurge: New file.
66896         * lib/fpurge.h: New file.
66897         * lib/fpurge.c: New file.
66898         * m4/fpurge.m4: New file.
66899
66900 2007-04-13  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/fbufmode-tests: New file.
66903         * tests/test-fbufmode.c: New file.
66904
66905         * modules/fbufmode: New file.
66906         * lib/fbufmode.h: New file.
66907         * lib/fbufmode.c: New file.
66908         * m4/fbufmode.m4: New file.
66909
66910 2007-04-13  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/fwritable-tests: New file.
66913         * tests/test-fwritable.c: New file.
66914
66915         * modules/fwritable: New file.
66916         * lib/fwritable.h: New file.
66917         * lib/fwritable.c: New file.
66918         * m4/fwritable.m4: New file.
66919
66920 2007-04-13  Bruno Haible  <bruno@clisp.org>
66921
66922         * modules/freadable-tests: New file.
66923         * tests/test-freadable.c: New file.
66924
66925         * modules/freadable: New file.
66926         * lib/freadable.h: New file.
66927         * lib/freadable.c: New file.
66928         * m4/freadable.m4: New file.
66929
66930 2007-04-13  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66933         MOSTLYCLEANFILES.
66934
66935 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66938         gzip bootstrap.conf to avoid dragging in i18n machinery.
66939         (gnulib_tool_option): Use it.
66940
66941 2007-04-13  Bruno Haible  <bruno@clisp.org>
66942
66943         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66944         %F directives.
66945         * tests/test-vasprintf-posix.c (test_function): Likewise.
66946         * tests/test-snprintf-posix.h (test_function): Likewise.
66947         * tests/test-sprintf-posix.h (test_function): Likewise.
66948         * tests/test-fprintf-posix.h (test_function): Likewise.
66949         * tests/test-printf-posix.h (test_function): Likewise.
66950         * tests/test-fprintf-posix.out: Likewise.
66951
66952 2007-04-13  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66955         * modules/tls-tests (configure.ac): Likewise.
66956         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66957
66958 2007-04-13  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/tls.c (glthread_tls_get): Fix return type.
66961         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66962
66963 2007-04-12  Eric Blake  <ebb9@byu.net>
66964
66965         * modules/gettime (Depends-on): Remove gettime.
66966         Reported by Dmitry V. Levin.
66967
66968 2007-04-12  Bruno Haible  <bruno@clisp.org>
66969
66970         * modules/fflush (Include): Mention <stdio.h>.
66971         * modules/strtoimax (Include): Mention <inttypes.h>.
66972         * modules/strtoumax (Include): Likewise.
66973
66974 2007-04-12  Eric Blake  <ebb9@byu.net>
66975
66976         * .cvsignore: New file.
66977         * .gitignore: Likewise.
66978
66979 2007-04-12  Bruno Haible  <bruno@clisp.org>
66980
66981         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66982         not before, since $(LDADD) often contains libgnu.a.
66983         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66984         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66985         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66986         Needed on Cygwin.
66987
66988 2007-04-12  Eric Blake  <ebb9@byu.net>
66989
66990         Work around glibc's failure to flush stdin on fclose.
66991         * lib/closein.c (close_stdin): Flush stdin before closing.
66992
66993         Work around glibc's failure to reset seekable stdin on exit.
66994         * modules/closein: New module.
66995         * lib/closein.c: New file.
66996         * lib/closein.h: Likewise.
66997         * m4/closein.m4: Likewise.
66998         * MODULES.html.sh (File stream based Input/Output): Document it.
66999
67000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67001
67002         * gnulib-tool: Rename generated 'autobuild' script to
67003         'do-autobuild' in --create-megatestdir output.
67004
67005         * doc/gnulib.texi (Build robot for gnulib): Fix.
67006
67007 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67008
67009         * modules/sysexits (Depends-on): Add absolute-header.
67010
67011 2007-04-12  Eric Blake  <ebb9@byu.net>
67012
67013         No need to preserve errno on success.
67014         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67015         Reported by Bruno Haible.
67016
67017 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67018
67019         * MODULES.html.sh (Support for maintaining and releasing
67020         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67021
67022 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67023
67024         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67025
67026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67027
67028         * modules/autobuild: New module.
67029
67030         * m4/autobuild.m4: New file.
67031
67032 2007-04-11  Bruno Haible  <bruno@clisp.org>
67033
67034         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67035         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67039         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67040         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67042         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67043         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67045         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67046         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67048         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67049         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67051         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67052         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67053         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67054         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67055         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67057         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67058         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67060         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67061         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67062         Reported by Eric Blake.
67063
67064 2007-04-11  Bruno Haible  <bruno@clisp.org>
67065
67066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67067
67068 2007-04-10  Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67071         for NaN and Infinity. Needed on FreeBSD 6.1.
67072         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67073         regarding results for "%010a" of Infinity and NaN.
67074         * tests/test-vasprintf-posix.c (test_function): Likewise.
67075         * tests/test-snprintf-posix.h (test_function): Likewise.
67076         * tests/test-sprintf-posix.h (test_function): Likewise.
67077         * tests/test-fprintf-posix.h (test_function): Likewise.
67078         * tests/test-printf-posix.h (test_function): Likewise.
67079         * tests/test-fprintf-posix.out: Likewise.
67080
67081 2007-04-10  Bruno Haible  <bruno@clisp.org>
67082
67083         * modules/locale-tests: New file.
67084         * tests/test-locale.c: New file.
67085
67086         * modules/locale: New file.
67087         * lib/locale_.h: New file.
67088         * m4/locale_h.m4: New file.
67089
67090 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67091             Bruno Haible  <bruno@clisp.org>
67092
67093         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67094         be determined, test for availability of the copysignf, copysign,
67095         copysignl functions.
67096         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67097         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67098         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67099
67100 2007-04-09  Eric Blake  <ebb9@byu.net>
67101
67102         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67103         * modules/stdio (Makefile.am): Support fflush.
67104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67105         * modules/fflush: New file.
67106         * lib/fflush.c: Likewise.
67107         * m4/fflush.m4: Likewise.
67108         * modules/fflush-tests: New test.
67109         * tests/test-fflush.c: Likewise.
67110         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67111
67112 2007-04-06  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67115         (VASNPRINTF): Use signbit for faster determination whether to print a
67116         minus sign.
67117         * modules/vasnprintf (Files): Remove lib/float+.h.
67118         * modules/fprintf-posix (Depends-on): Add signbit.
67119         * modules/snprintf-posix (Depends-on): Likewise.
67120         * modules/sprintf-posix (Depends-on): Likewise.
67121         * modules/vasnprintf-posix (Depends-on): Likewise.
67122         * modules/vasprintf-posix (Depends-on): Likewise.
67123         * modules/vfprintf-posix (Depends-on): Likewise.
67124         * modules/vsnprintf-posix (Depends-on): Likewise.
67125         * modules/vsprintf-posix (Depends-on): Likewise.
67126
67127 2007-04-06  Bruno Haible  <bruno@clisp.org>
67128
67129         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67130         * tests/test-frexpl.c (main): Likewise.
67131         * tests/test-ldexpl.c (main): Likewise.
67132         * modules/frexp-tests (Depends-on): Add signbit.
67133         * modules/frexpl-tests (Depdends-on): Likewise.
67134         * modules/ldexpl-tests (Depdends-on): Likewise.
67135
67136 2007-04-06  Bruno Haible  <bruno@clisp.org>
67137
67138         * modules/signbit-tests: New file.
67139         * tests/test-signbit.c: New file.
67140
67141         * modules/signbit: New file.
67142         * lib/signbitf.c: New file.
67143         * lib/signbitd.c: New file.
67144         * lib/signbitl.c: New file.
67145         * m4/signbit.m4: New file.
67146         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67147         (signbit): New macro.
67148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67149         REPLACE_SIGNBIT.
67150         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67151         REPLACE_FREXPL into math.h.
67152
67153 2007-04-06  Bruno Haible  <bruno@clisp.org>
67154
67155         * modules/isnanf-nolibm-tests: New file.
67156         * tests/test-isnanf.c: New file.
67157
67158         * modules/isnanf-nolibm: New file.
67159         * lib/isnanf.h: New file.
67160         * lib/isnanf.c: New file.
67161         * lib/isnan.c: Consider the USE_FLOAT macro.
67162         * m4/isnanf.m4: New file.
67163
67164 2007-04-06  Bruno Haible  <bruno@clisp.org>
67165
67166         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67167         (Link): New section.
67168
67169         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67170
67171 2007-04-06  Bruno Haible  <bruno@clisp.org>
67172
67173         Assume the 'long double' type.
67174         * m4/longdouble.m4: Remove file.
67175         * config/srclist.txt: Don't mention longdouble.m4.
67176         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67177         * lib/float+.h: Likewise.
67178         * lib/frexp.c: Likewise.
67179         * lib/printf-args.h: Likewise.
67180         * lib/printf-args.c: Likewise.
67181         * lib/printf-frexp.c: Likewise.
67182         * lib/printf-parse.c: Likewise.
67183         * lib/vasnprintf.c: Likewise.
67184         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67185         * m4/intl.m4: Likewise.
67186         * m4/isnanl.m4: Likewise.
67187         * m4/printf.m4: Likewise.
67188         * m4/printf-frexpl.m4: Likewise.
67189         * m4/vasnprintf.m4: Likewise.
67190         * modules/allocsa (Files): Remove m4/longdouble.m4.
67191         * modules/gettext (Files): Likewise.
67192         * modules/relocatable-prog-wrapper (Files): Likewise.
67193         * modules/vasnprintf (Files): Likewise.
67194         * modules/isnanl (Files): Likewise.
67195         (Include): Simplify.
67196         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67197         (Include): Simplify.
67198         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67199         (Include): Simplify.
67200         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67201         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67202         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67203         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67204         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67205         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67206         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67207         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67208         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67209         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67210         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67211         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67212         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67213         * tests/test-isnanl.c: Likewise.
67214         * tests/test-snprintf-posix.h: Likewise.
67215         * tests/test-sprintf-posix.h: Likewise.
67216         * tests/test-vasnprintf-posix.c: Likewise.
67217         * tests/test-vasnprintf-posix2.c: Likewise.
67218         * tests/test-vasprintf-posix.c: Likewise.
67219
67220 2007-04-06  Bruno Haible  <bruno@clisp.org>
67221
67222         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67223         * lib/math_.h [__DECC]: Include the overridden include file through
67224         #include_next, outside the double-inclusion guard.
67225         * lib/stdio_.h [__DECC]: Likewise.
67226         * lib/stdlib_.h [__DECC]: Likewise.
67227         * lib/string_.h [__DECC]: Likewise.
67228         * lib/time_.h [__DECC]: Likewise.
67229         * lib/wchar_.h [__DECC]: Likewise.
67230         * lib/wctype_.h [__DECC]: Likewise.
67231         * lib/inttypes_.h [__DECC]: Likewise.
67232         Reported by Albert Chin <china@thewrittenword.com> in
67233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67234
67235 2007-04-04  Eric Blake  <ebb9@byu.net>
67236
67237         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67238         1.5.x.
67239
67240 2007-04-04  Bruno Haible  <bruno@clisp.org>
67241
67242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67243         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67244
67245 2007-04-04  Bruno Haible  <bruno@clisp.org>
67246
67247         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67248         results for "%010a" of Infinity and NaN.
67249         * tests/test-vasprintf-posix.c (test_function): Likewise.
67250         * tests/test-snprintf-posix.h (test_function): Likewise.
67251         * tests/test-sprintf-posix.h (test_function): Likewise.
67252         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67253         * tests/test-printf-posix.h (test_function): Likewise.
67254         * tests/test-fprintf-posix.out: Update.
67255         Needed for FreeBSD 6.1.
67256
67257 2007-04-04  Bruno Haible  <bruno@clisp.org>
67258
67259         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67260         directly used by the gnulib modules nor by gnulib-tool.
67261
67262 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         * DEPENDENCIES: Give overall description of version dependency
67265         desirability.  Use more-typical names for apps.
67266         Add shell, coreutils, diffutils, grep, tar, gzip.
67267
67268 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67269
67270         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67271
67272 2007-04-04  Karl Berry  <karl@gnu.org>
67273
67274         * MODULES.html.sh (func_module): missing '.
67275
67276 2007-04-03  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/argmatch-tests (Makefile.am): New variable
67279         test_argmatch_LDADD.
67280         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67281         * modules/array-list-tests (Makefile.am): New variable
67282         test_array_list_LDADD.
67283         * modules/array-oset-tests (Makefile.am): New variable
67284         test_array_oset_LDADD.
67285         * modules/avltree-list-tests (Makefile.am): New variable
67286         test_avltree_list_LDADD.
67287         * modules/avltree-oset-tests (Makefile.am): New variable
67288         test_avltree_oset_LDADD.
67289         * modules/avltreehash-list-tests (Makefile.am): New variable
67290         test_avltreehash_list_LDADD.
67291         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67292         test_canonicalize_lgpl_LDADD.
67293         * modules/carray-list-tests (Makefile.am): New variable
67294         test_carray_list_LDADD.
67295         * modules/dirname-tests (Makefile.am): New variable
67296         test_dirname_LDADD.
67297         * modules/linked-list-tests (Makefile.am): New variable
67298         test_linked_list_LDADD.
67299         * modules/linkedhash-list-tests (Makefile.am): New variable
67300         test_linkedhash_list_LDADD.
67301         * modules/rbtree-list-tests (Makefile.am): New variable
67302         test_rbtree_list_LDADD.
67303         * modules/rbtree-oset-tests (Makefile.am): New variable
67304         test_rbtree_oset_LDADD.
67305         * modules/rbtreehash-list-tests (Makefile.am): New variable
67306         test_rbtreehash_list_LDADD.
67307         * modules/xvasprintf-tests (Makefile.am): New variable
67308         test_xvasprintf_LDADD.
67309         Reported by Eric Blake.
67310
67311 2007-04-03  Eric Blake  <ebb9@byu.net>
67312
67313         * DEPENDENCIES: Weaken m4 requirements.
67314
67315 2007-04-03  Bruno Haible  <bruno@clisp.org>
67316
67317         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67318         * modules/isnanl-tests (configure.ac): Likewise.
67319
67320 2007-04-03  Ben Pfaff  <blp@gnu.org>
67321
67322         * modules/iconv_open: Add $(srcdir)/ to source directory
67323         references in Makefile fragments that call gperf, to fix VPATH
67324         builds.
67325
67326 2007-04-03  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67329         * lib/ldexpl.c: Undo last change.
67330
67331 2007-04-03  Bruno Haible  <bruno@clisp.org>
67332
67333         * modules/printf-frexpl (Depends-on): Undo last change.
67334         (Files): Add m4/ldexpl.m4.
67335
67336 2007-04-03  Bruno Haible  <bruno@clisp.org>
67337
67338         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67339         * modules/isnanl (Link): New section.
67340
67341         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67342         * modules/frexp (Link): New section.
67343
67344         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67345         * modules/frexpl (Link): New section.
67346
67347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67348         * modules/ldexpl (Link): New section.
67349
67350 2007-04-03  Bruno Haible  <bruno@clisp.org>
67351
67352         * modules/TEMPLATE-EXTENDED: New file.
67353         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67354
67355 2007-04-03  Bruno Haible  <bruno@clisp.org>
67356
67357         * DEPENDENCIES: New file.
67358         Suggested by Simon Josefsson.
67359
67360 2007-04-03  Bruno Haible  <bruno@clisp.org>
67361
67362         * doc/gnulib.texi: Escape @.
67363
67364 2007-04-03  James Youngman  <jay@gnu.org>
67365         and Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67368         birthtime on all systems that have birthtime, not just those which
67369         use st_birthtimensec rather than st_birthtim.  Putting zero in
67370         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67371         that the birth time is not available for files on an NFS mount.
67372
67373 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67374
67375         * modules/memxor: Move back from crypto/, suggested by Bruno.
67376         * modules/crypto/hmac-sha1: Fix memxor dependency.
67377
67378         * modules/crypto/gc: Moved from ../.
67379
67380 2007-04-02  Eric Blake  <ebb9@byu.net>
67381
67382         * lib/ldexpl.c (includes): Avoid libm.
67383
67384         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67385
67386 2007-04-02  Bruno Haible  <bruno@clisp.org>
67387
67388         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67389         on IRIX.
67390
67391 2007-04-02  Bruno Haible  <bruno@clisp.org>
67392
67393         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67394         x86 or x86_64 platforms running MacOS X.
67395         Reported by Ryan Schmidt <@ryandesign.com>.
67396
67397 2007-04-02  Bruno Haible  <bruno@clisp.org>
67398
67399         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67400         i386.
67401
67402 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67403
67404         * modules/crypto/arcfour: Moved from ../.
67405         * modules/crypto/arcfour-tests: Moved from ../.
67406         * modules/crypto/arctwo: Moved from ../.
67407         * modules/crypto/arctwo-tests: Moved from ../.
67408         * modules/crypto/des: Moved from ../.
67409         * modules/crypto/des-tests: Moved from ../.
67410         * modules/crypto/gc-arcfour: Moved from ../.
67411         * modules/crypto/gc-arcfour-tests: Moved from ../.
67412         * modules/crypto/gc-arctwo: Moved from ../.
67413         * modules/crypto/gc-arctwo-tests: Moved from ../.
67414         * modules/crypto/gc-des: Moved from ../.
67415         * modules/crypto/gc-des-tests: Moved from ../.
67416         * modules/crypto/gc-hmac-md5: Moved from ../.
67417         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67418         * modules/crypto/gc-hmac-sha1: Moved from ../.
67419         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67420         * modules/crypto/gc-md2: Moved from ../.
67421         * modules/crypto/gc-md2-tests: Moved from ../.
67422         * modules/crypto/gc-md4: Moved from ../.
67423         * modules/crypto/gc-md4-tests: Moved from ../.
67424         * modules/crypto/gc-md5: Moved from ../.
67425         * modules/crypto/gc-md5-tests: Moved from ../.
67426         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67427         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67428         * modules/crypto/gc-random: Moved from ../.
67429         * modules/crypto/gc-rijndael: Moved from ../.
67430         * modules/crypto/gc-rijndael-tests: Moved from ../.
67431         * modules/crypto/gc-sha1: Moved from ../.
67432         * modules/crypto/gc-sha1-tests: Moved from ../.
67433         * modules/crypto/gc-tests: Moved from ../.
67434         * modules/crypto/hmac-md5: Moved from ../.
67435         * modules/crypto/hmac-md5-tests: Moved from ../.
67436         * modules/crypto/hmac-sha1: Moved from ../.
67437         * modules/crypto/hmac-sha1-tests: Moved from ../.
67438         * modules/crypto/md2: Moved from ../.
67439         * modules/crypto/md2-tests: Moved from ../.
67440         * modules/crypto/md4: Moved from ../.
67441         * modules/crypto/md4-tests: Moved from ../.
67442         * modules/crypto/md5: Moved from ../.
67443         * modules/crypto/md5-tests: Moved from ../.
67444         * modules/crypto/memxor: Moved from ../.
67445         * modules/crypto/rijndael: Moved from ../.
67446         * modules/crypto/rijndael-tests: Moved from ../.
67447         * modules/crypto/sha1: Moved from ../.
67448
67449 2007-03-30  James Youngman  <jay@gnu.org>
67450
67451         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67452         rename() to change the ctime of a file (because ctime is unaffected
67453         by rename on jfs2 on AIX 5.1).
67454         (main): Start by doing cleanup, in case a previous run failed leaving
67455         test files behind.
67456
67457 2007-03-31  Bruno Haible  <bruno@clisp.org>
67458
67459         Support old proprietary implementations of iconv.
67460         * modules/iconv_open: New file.
67461         * lib/iconv_.h: New file.
67462         * m4/iconv_h.m4: New file.
67463         * lib/iconv_open.c: New file.
67464         * lib/iconv_open-aix.gperf: New file.
67465         * lib/iconv_open-hpux.gperf: New file.
67466         * lib/iconv_open-irix.gperf: New file.
67467         * lib/iconv_open-osf.gperf: New file.
67468         * m4/iconv_open.m4: New file.
67469         * modules/linebreak (Depends-on): Add iconv_open.
67470         * modules/striconv (Depends-on): Likewise.
67471         * modules/striconveh (Depends-on): Likewise.
67472         * modules/unicodeio (Depends-on): Likewise.
67473         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67474         (iconv_t)(-1).
67475         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67476         conversion if cd is (iconv_t)(-1).
67477         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67478         is not possible.
67479
67480 2007-03-31  Bruno Haible  <bruno@clisp.org>
67481
67482         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67483         work on Solaris either. Protect also second use of "autodetect_jp".
67484
67485 2007-03-31  Bruno Haible  <bruno@clisp.org>
67486
67487         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67488         the function is not present.
67489
67490 2007-03-31  Bruno Haible  <bruno@clisp.org>
67491
67492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67493         the function is not present.
67494
67495 2007-03-31  Bruno Haible  <bruno@clisp.org>
67496
67497         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67498         a bug in HP-UX iconv_open().
67499
67500 2007-03-31  Bruno Haible  <bruno@clisp.org>
67501
67502         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67503         (Mathematics <math.h>): New section, add fpieee.
67504         (Input/output <stdio.h>): Add fseterr.
67505         (Mathematics <math.h>): New section, add printf-frexp.
67506         (Container data structures): Add sublist.
67507         (Core language properties): Add fpucw, inline.
67508         (Functions for greatest-width integer types <inttypes.h>): Add
67509         imaxabs, imaxdiv, inttypes.
67510         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67511         isnanl-nolibm, ldexp.
67512         (Mathematics <math.h>): New section, add printf-frexpl.
67513         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67514         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67515         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67516         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67517         (Unicode string functions): Add unistr/u*-mbtoucr.
67518         (Java): Add javacomp-script, javaexec-script.
67519         (C#): Add csharpcomp-script, csharpexec-script.
67520         (Support for building libraries and executables): Add havelib,
67521         relocatable-*.
67522         (Support for maintaining and releasing projects): Renamed from
67523         'Support for maintaining and release projects'. Add announce-gen.
67524
67525 2007-03-31  Bruno Haible  <bruno@clisp.org>
67526
67527         * README: Talk primarily about git.
67528         (git and CVS): Renamed from CVS.
67529         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67530         gnulib is available through git.
67531         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67532
67533 2007-03-30  Bruno Haible  <bruno@clisp.org>
67534
67535         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67536         * lib/poll_.h: Likewise.
67537         * lib/stat_.h: Likewise.
67538         * lib/sys_time_.h: Likewise.
67539         * lib/sysexit_.h: Likewise.
67540         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67541         * lib/stdbool_.h: Likewise.
67542         * lib/byteswap_.h: Add double-inclusion guard.
67543
67544 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67545
67546         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67547
67548 2007-03-30  Karl Berry  <karl@gnu.org>
67549
67550         * config/srclist-update: double space after USA in the license
67551         substitution, since that's how it's usually (?) written.
67552
67553 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67556         reported by Bruno Haible.
67557
67558 2007-03-29  Bruno Haible  <bruno@clisp.org>
67559
67560         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67561         a bug in AIX iconv().
67562
67563 2007-03-29  Bruno Haible  <bruno@clisp.org>
67564
67565         * modules/ldexpl-tests: New file.
67566         * tests/test-ldexpl.c: New file.
67567
67568 2007-03-29  Bruno Haible  <bruno@clisp.org>
67569
67570         * lib/ldexpl.c: Include fpucw.h.
67571         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67572         multiplication.
67573         * modules/ldexpl (Depends-on): Add fpucw.
67574
67575 2007-03-29  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/ldexpl: New file.
67578         * m4/ldexpl.m4: New file.
67579         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67580         set.
67581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67582         REPLACE_LDEXPL.
67583         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67584         REPLACE_LDEXPL.
67585         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67586         gl_FUNC_LDEXPL_WORKS.
67587         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67588         * modules/mathl (Files): Remove lib/ldexpl.c.
67589         (Depends-on): Add ldexpl.
67590
67591 2007-03-29  Bruno Haible  <bruno@clisp.org>
67592
67593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67594
67595 2007-03-29  Bruno Haible  <bruno@clisp.org>
67596
67597         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67598         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67599         and possibly also HP-UX.
67600         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67601         work on AIX, IRIX, HP-UX, OSF/1.
67602         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67603         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67604         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67605         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67606         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67607         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67608
67609 2007-03-29  Bruno Haible  <bruno@clisp.org>
67610
67611         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67612
67613 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67616         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67617
67618 2007-03-29  Eric Blake  <ebb9@byu.net>
67619
67620         * lib/acl-internal.h: Remove redundant include.
67621         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67622         Cygwin when a file is locked.
67623
67624 2007-03-29  Bruno Haible  <bruno@clisp.org>
67625
67626         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67627         file.
67628         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67629
67630 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67633         try to remove a parent directory if the child couldn't be removed
67634         (except for the first rmdir, which could fail because the child
67635         doesn't exist).  Problem reported by Jeff Blaine in
67636         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67637
67638 2007-03-28  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/striconveh.c (utf8conv_carefully): New function.
67641         (mem_cd_iconveh_internal): Invoke it.
67642
67643 2007-03-28  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67646         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67647         input.
67648         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67649         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67650         unistr/u8-uctomb.
67651
67652 2007-03-28  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/unistr/u8-mbtoucr: New file.
67655         * lib/unistr/u8-mbtoucr.c: New file.
67656         * modules/unistr/u16-mbtoucr: New file.
67657         * lib/unistr/u16-mbtoucr.c: New file.
67658         * modules/unistr/u16-mbtoucr: New file.
67659         * lib/unistr/u16-mbtoucr.c: New file.
67660         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67661
67662 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67663             Bruno Haible  <bruno@clisp.org>
67664
67665         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67666         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67667         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67668
67669         * m4/stdio_h.m4: Add stubs for vasprintf too.
67670
67671         * modules/stdio: Support vasprintf in sed command.
67672
67673         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67674         vasprintf.h.  Add stdio module indicator.
67675
67676         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67677         vasprintf.h.
67678
67679         * lib/vasprintf.h: File removed.
67680
67681         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67682         * lib/vasprintf.c: Ditto.
67683         * lib/xvasprintf.c: Ditto.
67684         * tests/test-vasprintf-posix.c: Ditto.
67685         * tests/test-vasprintf.c: Ditto.
67686
67687 2007-03-27  Bruno Haible  <bruno@clisp.org>
67688
67689         Make vasnprintf multithread-safe.
67690         * lib/vasnprintf.c (decimal_point_char): New function.
67691         (VASNPRINTF): Use it.
67692         Suggested by Simon Josefsson.
67693
67694 2007-03-27  Eric Blake  <ebb9@byu.net>
67695
67696         Support sub-second birthtime on cygwin.
67697         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67698         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67699         (get_stat_birthtime): Also work with st_birthtim.
67700
67701 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67702
67703         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67704         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67705         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67706         (get_stat_birthtime_ns): Simplify compile-time tests.
67707         (get_stat_birthtime): Change the API to look like
67708         get_stat_mtime etc., except return a negative tv_nsec on error.
67709         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67710         Don't check for "spare" fields.
67711         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67712         or for struct stat.st_birthtime, as these tests aren't used.
67713         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67714
67715 2007-03-27  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/stat-time.h: Include <sys/stat.h>.
67718
67719 2007-03-27  James Youngman  <jay@gnu.org>
67720
67721         * lib/stat-time.h (get_stat_birthtime): New function for
67722           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67723         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67724           and its variants.
67725         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67726         * modules/stat-time-test: New file.
67727         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67728
67729 2007-03-26  Bruno Haible  <bruno@clisp.org>
67730
67731         Better support of signalling NaNs.
67732         * lib/atanl.c: Include isnanl.h.
67733         (atanl): Perform test for NaN at the beginning of the function and
67734         through a call to isnanl.
67735         * lib/cosl.c: Include isnanl.h.
67736         (cosl): Perform test for NaN at the beginning of the function and
67737         through a call to isnanl.
67738         * lib/ldexpl.c: Include isnanl.h.
67739         (ldexpl): Perform test for NaN through a call to isnanl.
67740         * lib/logl.c: Include isnanl.h.
67741         (logl): Perform test for NaN at the beginning of the function and
67742         through a call to isnanl.
67743         * lib/sinl.c: Include isnanl.h.
67744         (sinl): Perform test for NaN at the beginning of the function and
67745         through a call to isnanl.
67746         * lib/sqrtl.c: Include isnanl.h.
67747         (sqrtl): Perform test for NaN at the beginning of the function and
67748         through a call to isnanl.
67749         * lib/tanl.c: Include isnanl.h.
67750         (tanl): Perform test for NaN at the beginning of the function and
67751         through a call to isnanl.
67752         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67753         * modules/mathl (Depends-on): Add isnanl.
67754
67755 2007-03-26  Eric Blake  <ebb9@byu.net>
67756
67757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67758         regression in logic sense of previous patch.
67759
67760 2007-03-26  Bruno Haible  <bruno@clisp.org>
67761
67762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67763         unportable shell command "if ! ...".
67764         Reported by Ralf Wildenhues.
67765
67766 2007-03-25  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67769         <sysexits.h> file, and only add EX_CONFIG.
67770         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67771         absolute file name and whether it is sufficient. Substitute also
67772         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67773         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67774         ABSOLUTE_SYSEXITS_H into sysexits.h.
67775
67776 2007-03-25  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67779         hints is NULL.
67780
67781 2007-03-25  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67784         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67785
67786 2007-03-25  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/vasnprintf.c: Include langinfo.h.
67789         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67790         multithread-safe.
67791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67800         Reported by Simon Josefsson.
67801
67802 2007-03-25  Bruno Haible  <bruno@clisp.org>
67803
67804         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67805         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67806         * modules/vasnprintf (Depends-on): Add stdint.
67807
67808 2007-03-25  Bruno Haible  <bruno@clisp.org>
67809
67810         * modules/fpieee: New file.
67811         * m4/fpieee.m4: New file.
67812         * modules/isnan-nolibm (Depends-on): Add fpieee.
67813         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67814         * modules/isnanl (Depends-on): Add fpieee.
67815
67816 2007-03-25  Bruno Haible  <bruno@clisp.org>
67817
67818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67819
67820 2007-03-25  Bruno Haible  <bruno@clisp.org>
67821
67822         Avoid test failures on IRIX 6.5.
67823         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67824         (main): Use it.
67825         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67826         macros.
67827         (main): Use them.
67828
67829 2007-03-25  Bruno Haible  <bruno@clisp.org>
67830
67831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67832         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67833         exists but doesn't work.
67834         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67835         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67837         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67838         math.h.
67839
67840 2007-03-25  Bruno Haible  <bruno@clisp.org>
67841
67842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67843         returns inf. Needed on IRIX 6.5.
67844
67845 2007-03-25  Bruno Haible  <bruno@clisp.org>
67846
67847         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67848         (main): Use isnanl instead of x != x idiom.
67849         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67850
67851         * tests/test-frexp.c: Include isnan.h.
67852         (main): Use isnan instead of x != x idiom.
67853         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67854
67855 2007-03-25  Bruno Haible  <bruno@clisp.org>
67856
67857         * tests/test-frexp.c (NaN): New function/macro.
67858         (main): Use it instead of 0.0 / 0.0.
67859         * tests/test-isnan.c (NaN): New function/macro.
67860         (main): Use it instead of 0.0 / 0.0.
67861         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67862         (test_function): Use it instead of 0.0 / 0.0.
67863         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67864         (test_function): Use it instead of 0.0 / 0.0.
67865         * tests/test-snprintf-posix.h (NaN): New function/macro.
67866         (test_function): Use it instead of 0.0 / 0.0.
67867         * tests/test-sprintf-posix.h (NaN): New function/macro.
67868         (test_function): Use it instead of 0.0 / 0.0.
67869         * tests/test-fprintf-posix.h (NaN): New function/macro.
67870         (test_function): Use it instead of 0.0 / 0.0.
67871         * tests/test-printf-posix.h (NaN): New function/macro.
67872         (test_function): Use it instead of 0.0 / 0.0.
67873
67874         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67875
67876 2007-03-25  Bruno Haible  <bruno@clisp.org>
67877
67878         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67879
67880 2007-03-25  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/regexec.c (merge_state_with_log): Make static.
67883
67884 2007-03-25  Bruno Haible  <bruno@clisp.org>
67885
67886         * lib/trigl.c (kernel_rem_pio2): Make static.
67887
67888 2007-03-25  Bruno Haible  <bruno@clisp.org>
67889
67890         * lib/sincosl.c (sincosl_table): Make static.
67891
67892 2007-03-25  Bruno Haible  <bruno@clisp.org>
67893
67894         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67895         if the compiler does not support C99.
67896
67897 2007-03-25  Bruno Haible  <bruno@clisp.org>
67898
67899         * modules/time (Makefile.am): Ensure all rule action lines start with a
67900         tab.
67901
67902 2007-03-24  Bruno Haible  <bruno@clisp.org>
67903
67904         * modules/tsearch-tests: New file.
67905         * tests/test-tsearch.sh: New file.
67906         * tests/test-tsearch.c: New file, mostly copied from glibc.
67907
67908         * modules/search-tests: New file.
67909         * tests/test-search.c: New file.
67910
67911         * modules/search: New file.
67912         * lib/search_.h: New file, incorporating lib/tsearch.h.
67913         * m4/search_h.m4: New file.
67914         * lib/tsearch.h: Remove file.
67915         * lib/tsearch.c: Include search.h instead of tsearch.h.
67916         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67917         HAVE_TSEARCH.
67918         * modules/tsearch (Files): Remove lib/tsearch.h.
67919         (Depends-on): Add search.
67920         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67921         (Include): Change tsearch.h into search.h.
67922
67923 2007-03-24  Bruno Haible  <bruno@clisp.org>
67924
67925         * modules/fpucw: New file.
67926         * lib/fpucw.h: New file.
67927         * lib/frexp.c: Include fpucw.h.
67928         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67929         (FUNC): Use them.
67930         * lib/printf-frexp.c: Include fpucw.h.
67931         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67932         (FUNC): Use them.
67933         * lib/vasnprintf.c: Include fpucw.h.
67934         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67935         'long double' calculations.
67936         * tests/test-frexpl.c: Include fpucw.h.
67937         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67938         * tests/test-printf-frexpl.c: Include fpucw.h.
67939         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67940         * modules/frexpl (Depends-on): Add fpucw.
67941         * modules/printf-frexpl (Depends-on): Likewise.
67942         * modules/fprintf-posix (Depends-on): Likewise.
67943         * modules/snprintf-posix (Depends-on): Likewise.
67944         * modules/sprintf-posix (Depends-on): Likewise.
67945         * modules/vasnprintf-posix (Depends-on): Likewise.
67946         * modules/vasprintf-posix (Depends-on): Likewise.
67947         * modules/vfprintf-posix (Depends-on): Likewise.
67948         * modules/vsnprintf-posix (Depends-on): Likewise.
67949         * modules/vsprintf-posix (Depends-on): Likewise.
67950         * modules/frexpl-tests (Depends-on): Likewise.
67951         * modules/printf-frexpl-tests (Depends-on): Likewise.
67952
67953 2007-03-24  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/float+.h: New file.
67956         * lib/isnan.c: Include float+.h.
67957         (SIZE): New macro.
67958         (FUNC): Compare only SIZE bytes of the value.
67959         * lib/vasnprintf.c: Include float+.h.
67960         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67961         SIZEOF_LDBL or SIZEOF_DBL bytes.
67962         * modules/isnan-nolibm (Files): Add lib/float+.h.
67963         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67964         * modules/isnanl (Files): Add lib/float+.h.
67965         * modules/vasnprintf (Files): Add lib/float+.h.
67966
67967 2007-03-24  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67970         include isnanl-nolibm.h.
67971
67972 2007-03-24  Bruno Haible  <bruno@clisp.org>
67973
67974         * tests/test-read-file.c (main): Don't produce spurious output for
67975         expected situations. Make the test fail if it encountered unexpected
67976         results.
67977
67978 2007-03-24  Bruno Haible  <bruno@clisp.org>
67979
67980         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67981         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67982
67983 2007-03-24  Bruno Haible  <bruno@clisp.org>
67984
67985         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67986
67987 2007-03-24  Bruno Haible  <bruno@clisp.org>
67988
67989         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67990         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67991
67992         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67993         * modules/utf8-ucs4: Turn into a symbolic link to module
67994         unistr/u8-mbtouc.
67995
67996         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67997         utf8-ucs4-unsafe.
67998         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67999         unistr/u8-mbtouc-unsafe.
68000
68001         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68002         * modules/utf16-ucs4: Turn into a symbolic link to module
68003         unistr/u16-mbtouc.
68004
68005         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68006         utf16-ucs4-unsafe.
68007         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68008         unistr/u16-mbtouc-unsafe.
68009
68010         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68011         * modules/ucs4-utf8: Turn into a symbolic link to module
68012         unistr/u8-ubtomb.
68013
68014         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68015         * modules/ucs4-utf16: Turn into a symbolic link to module
68016         unistr/u16-ubtomb.
68017
68018 2007-03-24  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68021         Enable the function only if HAVE_INLINE.
68022         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68023         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68024         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68025         Enable the function only if HAVE_INLINE.
68026         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68027         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68028         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68029         Enable the function only if HAVE_INLINE.
68030         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68031         Enable the function only if HAVE_INLINE.
68032         * modules/utf8-ucs4: Update.
68033         * modules/utf8-ucs4-unsafe: Update.
68034         * modules/utf16-ucs4: Update.
68035         * modules/utf16-ucs4-unsafe: Update.
68036         * modules/ucs4-utf8: Update.
68037         * modules/ucs4-utf16: Update.
68038
68039 2007-03-24  Bruno Haible  <bruno@clisp.org>
68040
68041         * lib/utf8-ucs4.h: Remove file.
68042         * lib/utf8-ucs4-unsafe.h: Remove file.
68043         * lib/utf16-ucs4.h: Remove file.
68044         * lib/utf16-ucs4-unsafe.h: Remove file.
68045         * lib/ucs4-utf8.h: Remove file.
68046         * lib/ucs4-utf16.h: Remove file.
68047         * lib/unistr.h: Include their previous contents.
68048         * m4/utf-ucs4.m4: Remove file.
68049         * m4/ucs4-utf.m4: Remove file.
68050         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68051         (Depends-on): Add unistr/base.
68052         (configure.ac): Remove gl_UTF_UCS4.
68053         (Makefile.am): Update.
68054         (Include): Change to unistr.h.
68055         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68056         (Depends-on): Add unistr/base.
68057         (configure.ac): Remove gl_UTF_UCS4.
68058         (Makefile.am): Update.
68059         (Include): Change to unistr.h.
68060         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68061         (Depends-on): Add unistr/base.
68062         (configure.ac): Remove gl_UTF_UCS4.
68063         (Makefile.am): Update.
68064         (Include): Change to unistr.h.
68065         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68066         (Depends-on): Add unistr/base.
68067         (configure.ac): Remove gl_UTF_UCS4.
68068         (Makefile.am): Update.
68069         (Include): Change to unistr.h.
68070         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68071         (Depends-on): Add unistr/base.
68072         (configure.ac): Remove gl_UCS4_UTF.
68073         (Makefile.am): Update.
68074         (Include): Change to unistr.h.
68075         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68076         (Depends-on): Add unistr/base.
68077         (configure.ac): Remove gl_UCS4_UTF.
68078         (Makefile.am): Update.
68079         (Include): Change to unistr.h.
68080         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68081         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68082         utf8-ucs4-unsafe.h.
68083         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68084         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68085         utf16-ucs4-unsafe.h.
68086         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68087         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68088         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68089         * lib/unistr/u8-strchr.c: Likewise.
68090         * lib/unistr/u8-strrchr.c: Likewise.
68091         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68092         * lib/unistr/u16-strchr.c: Likewise.
68093         * lib/unistr/u16-strrchr.c: Likewise.
68094         * lib/striconveh.c: Update.
68095         * lib/linebreak.c: Update.
68096
68097 2007-03-24  Bruno Haible  <bruno@clisp.org>
68098
68099         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68100         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68101
68102 2007-03-22  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68105
68106 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         * MODULES.html.sh (File system functions): New module write-any-file.
68109         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68110         * m4/write-any-file.m4: New files.
68111
68112 2007-03-23  Eric Blake  <ebb9@byu.net>
68113
68114         * gnulib-tool: Rearrange space-tab sequences, since some editors
68115         like to eat them.
68116
68117 2007-03-23  Eric Blake  <ebb9@byu.net>
68118
68119         * lib/version-etc.c (version_etc_va): Update license wording to
68120         be more concise.  Recommended by Richard Stallman.
68121
68122 2007-03-22  Bruno Haible  <bruno@clisp.org>
68123
68124         * lib/poll.c (MSG_PEEK): New fallback definition.
68125
68126 2007-03-22  Bruno Haible  <bruno@clisp.org>
68127
68128         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68129         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68130         (main): Update.
68131         Fixes a compilation error on BeOS.
68132
68133 2007-03-22  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/frexpl-tests: New file.
68136         * tests/test-frexpl.c: New file.
68137
68138         * modules/frexpl: New file.
68139         * m4/frexpl.m4: New file.
68140         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68141         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68143         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68144         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68145         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68146
68147 2007-03-22  Bruno Haible  <bruno@clisp.org>
68148
68149         * lib/frexpl.c: Share code with lib/frexp.c.
68150         * modules/mathl (Files): Add lib/frexp.c.
68151         (Depends-on): Add isnanl-nolibm.
68152
68153 2007-03-22  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/printf-frexp (Files): Add m4/frexp.m4.
68156         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68157         only if the found frexp function actually works.
68158
68159 2007-03-22  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/frexp.c: Remove older implementation that uses divisions.
68162
68163 2007-03-21  Bruno Haible  <bruno@clisp.org>
68164
68165         * modules/frexp-tests: New file.
68166         * tests/test-frexp.c: New file.
68167
68168         * modules/frexp: New file.
68169         * lib/frexp.c: New file.
68170         * m4/frexp.m4: New file.
68171         * lib/math_.h (frexp): New declaration.
68172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68173         REPLACE_FREXP.
68174         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68175
68176 2007-03-21  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/isnanl-tests: New file.
68179         * tests/test-isnanl.c: New file.
68180
68181         * modules/isnanl: New file.
68182         * lib/isnanl.h: New file.
68183         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68184         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68185         gl_FUNC_ISNANL_WORKS.
68186         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68187         New macros.
68188
68189 2007-03-21  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68192         lib/isnanl.h.
68193         (Include): Update.
68194         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68195         * lib/vasnprintf.c: Update.
68196         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68197         tests/test-isnanl.h, remove tests/test-isnanl.c.
68198         (Makefile.am): Update.
68199         * tests/test-isnanl-nolibm.c: New file.
68200         * tests/test-isnanl.h: New file.
68201         * tests/test-isnanl.c: Remove file.
68202
68203 2007-03-21  Jim Meyering  <jim@meyering.net>
68204
68205         When trying to open ".", treat ESTALE like EACCES.
68206         * lib/savewd.c (savewd_save): Resort to forking not just upon
68207         failure with EACCES, but also when errno is ESTALE.
68208
68209 2007-03-20  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68212         Needed on AIX 5.1. Reported by Matthew Woehlke.
68213
68214 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         Suggestions by Bruno Haible:
68217         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68218         our own.
68219         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68220         * modules/acl (Depends-on): Add gettext.
68221
68222 2007-03-19  Bruno Haible  <bruno@clisp.org>
68223
68224         * modules/iconvme: Remove file.
68225         * lib/iconvme.h: Remove file.
68226         * lib/iconvme.c: Remove file.
68227         * m4/iconvme.m4: Remove file.
68228
68229 2007-03-19  Bruno Haible  <bruno@clisp.org>
68230
68231         * doc/relocatable-maint.texi: Break long shell script line.
68232         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68233
68234 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68235
68236         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68237         handle file_has_acl.
68238         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68239         * lib/acl.c: Move header inclusions and related macro defns into
68240         lib/acl-internal.h.
68241         (S_ISLNK): Remove defn, since that's now done for us.
68242         (file_has_acl): Move to lib/file-has-acl.c.
68243         Call acl_trivial if available.  This is the crucial part of the fix.
68244         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68245         shared within the library.  Rewrite a bit, partly to make it compatible
68246         with the GNU coding style.
68247         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68248         Remove unnecessary double-quotes.
68249         Don't test for acl_to_text; the build will catch that.
68250         Replace acl_entries if it doesn't exist and it is needed.
68251         Check for -lsec and acl_trivial (as used on Solaris 10).
68252         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68253         lib/file-has-acl.c.
68254         (Depends-on): Add sys_stat, for S_ISLNK.
68255
68256 2007-03-19  Ben Pfaff  <blp@gnu.org>
68257
68258         * doc/gnulib.texi: Fix typos.
68259         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68260
68261 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68264         If size is zero here, buf must be zero.
68265
68266 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68267
68268         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68269         <bruno@clisp.org>.
68270
68271 2007-03-18  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68274         Suggested by Eric Blake.
68275
68276 2007-03-18  Ben Pfaff  <blp@gnu.org>
68277
68278         * doc/relocatable.texi: Recommend using as prefix a directory
68279         that does not exist and will never be created.  Based on
68280         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68281         and others.
68282
68283 2007-03-17  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/fchownat.c: Include lchown.h.
68286
68287 2007-03-17  Bruno Haible  <bruno@clisp.org>
68288
68289         Fix endless loop when the given allocated size was > INT_MAX.
68290         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68291         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68292         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68293         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68294         * lib/sprintf.c (sprintf): Likewise.
68295
68296 2007-03-17  Bruno Haible  <bruno@clisp.org>
68297
68298         * tests/test-argp-2.sh (func_compare): Output a context diff.
68299
68300 2007-03-17  Bruno Haible  <bruno@clisp.org>
68301
68302         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68303         locale's decimal-point character.
68304
68305 2007-03-17  Bruno Haible  <bruno@clisp.org>
68306
68307         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68308         before comparing it. Needed because on some platforms (e.g. x86) a
68309         'long double' occupies less bytes than sizeof (long double).
68310
68311 2007-03-17  Bruno Haible  <bruno@clisp.org>
68312
68313         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68314         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68315         * tests/test-getaddrinfo.c (simple): Likewise.
68316         * tests/test-read-file.c (main): Likewise.
68317
68318 2007-03-17  Bruno Haible  <bruno@clisp.org>
68319
68320         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68321
68322 2007-03-17  Bruno Haible  <bruno@clisp.org>
68323
68324         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68325         unused variable.
68326
68327 2007-03-17  Bruno Haible  <bruno@clisp.org>
68328
68329         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68330         * tests/test-c-strncasecmp.c: Likewise.
68331
68332 2007-03-17  Bruno Haible  <bruno@clisp.org>
68333
68334         * modules/stdlib (Depends-on): Add unistd.
68335         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68336         Needed for MacOS X 10.3.
68337
68338 2007-03-17  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68341
68342 2007-03-17  Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68345
68346 2007-03-17  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68349         to reflect files copied from gnulib (with or without modifications).
68350         Suggested by Jim Meyering.
68351
68352 2007-03-17  Eric Blake  <ebb9@byu.net>
68353
68354         * NEWS: Document stdlib change from 2007-02-18.
68355
68356 2007-03-17  Jim Meyering  <jim@meyering.net>
68357
68358         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68359         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68360         someone uses a name containing shell meta-characters.
68361         Reported by Alfred M. Szmidt.
68362
68363         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68364
68365 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68366
68367         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68368         and copy gettext configuration files only if configure.ac contains
68369         a use of AM_GNU_GETTEXT_VERSION.
68370
68371 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68372
68373         * build-aux/bootstrap (gnulib_name): New variable.
68374         (gnulib_tool_options): Use it.
68375
68376 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68377
68378         * tests/test-des.c: Use new namespace.
68379
68380 2007-03-15  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68383         Reported by James Youngman <jay@gnu.org>.
68384
68385 2007-03-15  Bruno Haible  <bruno@clisp.org>
68386
68387         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68388         declared prototype. Needed with cc on OSF/1 5.1.
68389
68390 2007-03-15  Bruno Haible  <bruno@clisp.org>
68391
68392         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68393         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68394         (struct gl_list_implementation): Add dispose_fn argument to the
68395         'create_empty', 'create' methods.
68396         (struct gl_list_impl_base): Add field 'dispose_fn'.
68397         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68398         argument.
68399         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68400         dispose_fn argument.
68401         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68402         dispose_fn on the dropped values.
68403         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68404         dispose_fn argument.
68405         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68406         dropped values.
68407         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68408         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68409         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68410         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68411         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68412         argument.
68413         (gl_tree_list_free): Call dispose_fn on the dropped values.
68414         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68415         the dropped values.
68416         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68417         Add dispose_fn argument.
68418         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68419         Call dispose_fn on the dropped values.
68420         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68421         Add dispose_fn argument.
68422         (gl_sublist_create): Initialize the 'dispose_fn' field.
68423         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68424         * tests/test-array_list.c (main): Update.
68425         * tests/test-carray_list.c (main): Update.
68426         * tests/test-avltree_list.c (main): Update.
68427         * tests/test-rbtree_list.c (main): Update.
68428         * tests/test-avltreehash_list.c (main): Update.
68429         * tests/test-rbtreehash_list.c (main): Update.
68430         * tests/test-linked_list.c (main): Update.
68431         * tests/test-linkedhash_list.c (main): Update.
68432         * tests/test-array_oset.c (main): Update.
68433
68434 2007-03-15  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68437         (gl_oset_create_empty): Add dispose_fn argument.
68438         (struct gl_oset_implementation): Add dispose_fn argument to
68439         'create_empty' method.
68440         (struct gl_oset_impl_base): Add dispose_fn field.
68441         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68442         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68443         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68444         values.
68445         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68446         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68447         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68448         dropped value.
68449         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68450         dropped value.
68451         * tests/test-array_oset.c (main): Update.
68452         * tests/test-avltree_oset.c (main): Update.
68453         * tests/test-rbtree_oset.c (main): Update.
68454         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68455
68456 2007-03-13  Bruno Haible  <bruno@clisp.org>
68457
68458         * tests/test-stdbool.c (i): Update after last patch.
68459
68460 2007-03-12  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68463         the iswprint macro. Needed on Solaris 2.5.1.
68464
68465 2007-03-12  Bruno Haible  <bruno@clisp.org>
68466
68467         * tests/test-printf-frexp.c (main): Declare x as volatile.
68468
68469 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68470
68471         * doc/gnulib.texi (Build robot for gnulib): New section.
68472
68473 2007-03-12  Jim Meyering  <jim@meyering.net>
68474
68475         * build-aux/bootstrap: New file.
68476         * build-aux/bootstrap.conf: New file, from coreutils.
68477
68478 2007-03-11  Bruno Haible  <bruno@clisp.org>
68479
68480         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68481
68482 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68483
68484         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68485         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68486         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68487
68488 2007-03-11  Bruno Haible  <bruno@clisp.org>
68489
68490         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68491         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68492
68493 2007-03-11  Bruno Haible  <bruno@clisp.org>
68494
68495         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68496         formula. Needed for SunPRO C 5.0.
68497
68498 2007-03-11  Bruno Haible  <bruno@clisp.org>
68499
68500         * modules/long-options (Depends-on): Add getopt.
68501
68502 2007-03-11  Bruno Haible  <bruno@clisp.org>
68503
68504         * modules/modechange (Depends-on): Add stdbool.
68505
68506 2007-03-11  Bruno Haible  <bruno@clisp.org>
68507
68508         * modules/i-ring (Depends-on): Add stdbool.
68509
68510 2007-03-11  Bruno Haible  <bruno@clisp.org>
68511
68512         * modules/gc-des (Depends-on): Add stdbool.
68513
68514 2007-03-11  Bruno Haible  <bruno@clisp.org>
68515
68516         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68517
68518 2007-03-11  Bruno Haible  <bruno@clisp.org>
68519
68520         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68521
68522 2007-03-11  Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68525
68526 2007-03-11  Bruno Haible  <bruno@clisp.org>
68527
68528         * lib/vasnprintf.c (sprintf): Undefine.
68529
68530 2007-03-11  Bruno Haible  <bruno@clisp.org>
68531
68532         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68533         initializers in SunPRO C and Compaq C compilers.
68534
68535 2007-03-11  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68538         decrementing code ANSI C compliant.
68539
68540 2007-03-11  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68543         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68544
68545 2007-03-11  Bruno Haible  <bruno@clisp.org>
68546
68547         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68548         <stdbool.h> substitute doesn't pass.
68549
68550 2007-03-11  Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68553
68554 2007-03-11  Bruno Haible  <bruno@clisp.org>
68555
68556         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68557         script, for submission to autobuild.josefsson.org.
68558
68559 2007-03-10  Bruno Haible  <bruno@clisp.org>
68560
68561         * modules/canonicalize-lgpl-tests: New file.
68562         * tests/test-canonicalize-lgpl.sh: New file.
68563         * tests/test-canonicalize-lgpl.c: New file.
68564
68565         * modules/c-strcase-tests: New file.
68566         * tests/test-c-strcase.sh: New file.
68567         * tests/test-c-strcasecmp.c: New file.
68568         * tests/test-c-strncasecmp.c: New file.
68569
68570         * modules/atexit-tests: New file.
68571         * tests/test-atexit.sh: New file.
68572         * tests/test-atexit.c: New file.
68573
68574 2007-03-10  Bruno Haible  <bruno@clisp.org>
68575
68576         * tests/test-binary-io.sh: Use temporary filenames that are not so
68577         likely to clash with those of other tests (in a parallel make).
68578         * tests/test-binary-io.c: Likewise.
68579
68580 2007-03-10  Bruno Haible  <bruno@clisp.org>
68581
68582         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68583         fallback; use #error instead.
68584         Suggested by Simon Josefsson.
68585
68586 2007-03-10  Bruno Haible  <bruno@clisp.org>
68587
68588         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68589         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68590         first and the last.
68591
68592 2007-03-10  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68595
68596 2007-03-10  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68599         "make distcheck".
68600         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68601         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68602         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68603
68604 2007-03-10  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68607         variable.
68608         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68609         variable.
68610
68611 2007-03-09  Eric Blake  <ebb9@byu.net>
68612         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68613
68614         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68615         types are not being provided by gnulib.
68616         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68617         types are supported.
68618
68619 2007-03-10  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/stdio_.h (__attribute__): New macro.
68622         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68623         vsprintf): Specify __attribute__ __format__ for GCC.
68624         Suggested by Eric Blake.
68625
68626 2007-03-09  Bruno Haible  <bruno@clisp.org>
68627
68628         * modules/printf-posix-tests: New file.
68629         * tests/test-printf-posix.sh: New file.
68630         * tests/test-printf-posix.c: New file.
68631
68632         * modules/printf-posix: New file.
68633         * lib/printf.c: New file.
68634         * m4/printf-posix-rpl.m4: New file.
68635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68636         REPLACE_PRINTF.
68637         * lib/stdio_.h (printf): New declaration.
68638         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68639         ____strfmon____): New macros.
68640         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68641         REPLACE_PRINTF.
68642
68643 2007-03-09  Bruno Haible  <bruno@clisp.org>
68644
68645         * tests/test-vasnprintf-posix2.sh: New file.
68646         * tests/test-vasnprintf-posix2.c: New file.
68647         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68648         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68649         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68650
68651         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68652         a locale dependent decimal point, rather than always '.'.
68653
68654 2007-03-09  Eric Blake  <ebb9@byu.net>
68655
68656         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68657         spite of platforms like Tandem/NSK that define it to -1.
68658
68659 2007-03-08  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/vprintf-posix-tests: New file.
68662         * tests/test-vprintf-posix.sh: New file.
68663         * tests/test-vprintf-posix.c: New file.
68664         * tests/test-printf-posix.h: New file.
68665
68666         * modules/vprintf-posix: New file.
68667         * lib/vprintf.c: New file.
68668         * m4/vprintf-posix.m4: New file.
68669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68670         REPLACE_VPRINTF.
68671         * lib/stdio_.h (vprintf): New declaration.
68672         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68673         REPLACE_VPRINTF.
68674
68675 2007-03-08  Bruno Haible  <bruno@clisp.org>
68676
68677         * modules/fprintf-posix-tests: New file.
68678         * tests/test-fprintf-posix.sh: New file.
68679         * tests/test-fprintf-posix.c: New file.
68680
68681         * modules/fprintf-posix: New file.
68682         * lib/fprintf.c: New file.
68683         * m4/fprintf-posix.m4: New file.
68684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68685         REPLACE_FPRINTF.
68686         * lib/stdio_.h (fprintf): New declaration.
68687         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68688         REPLACE_FPRINTF.
68689
68690 2007-03-08  Bruno Haible  <bruno@clisp.org>
68691
68692         * modules/vfprintf-posix-tests: New file.
68693         * tests/test-vfprintf-posix.sh: New file.
68694         * tests/test-vfprintf-posix.c: New file.
68695         * tests/test-fprintf-posix.h: New file.
68696         * tests/test-fprintf-posix.out: New file.
68697
68698         * modules/vfprintf-posix: New file.
68699         * lib/vfprintf.c: New file.
68700         * m4/vfprintf-posix.m4: New file.
68701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68702         REPLACE_VFPRINTF.
68703         * lib/stdio_.h (vfprintf): New declaration.
68704         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68705         REPLACE_VFPRINTF.
68706
68707 2007-03-08  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68710
68711 2007-03-08  Bruno Haible  <bruno@clisp.org>
68712
68713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68714         instead of 'expr' invocations.
68715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68720         Suggested by Paul Eggert.
68721
68722 2007-03-08  Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/fseterr-tests: New file.
68725         * tests/test-fseterr.c: New file.
68726
68727         * modules/fseterr: New file.
68728         * lib/fseterr.h: New file.
68729         * lib/fseterr.c: New file.
68730
68731 2007-03-08  Bruno Haible  <bruno@clisp.org>
68732
68733         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68734         * lib/getopt_.h: Likewise.
68735         * lib/mbswidth.h: Likewise.
68736         * lib/setenv.h: Likewise.
68737         * lib/vasnprintf.h: Likewise.
68738         * lib/vasprintf.h: Likewise.
68739         * lib/verror.h: Likewise.
68740         * lib/xsetenv.h: Likewise.
68741         * lib/xvasprintf.h: Likewise.
68742
68743 2007-03-08  Jim Meyering  <jim@meyering.net>
68744
68745         * users.txt: Add parted.
68746
68747         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68748
68749 2007-03-07  Bruno Haible  <bruno@clisp.org>
68750
68751         * m4/printf.m4: Make the shell script snippets copy&pastable.
68752
68753 2007-03-02  Bruno Haible  <bruno@clisp.org>
68754
68755         * lib/netinet_in_.h: New file.
68756         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68757         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68758         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68759         (Depends-on): Add absolute-header.
68760         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68761         into netinet/in.h.
68762
68763 2007-03-03  Bruno Haible  <bruno@clisp.org>
68764
68765         * lib/sys_select_.h: New file.
68766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68767         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68768         * modules/sys_select (Files): Add lib/sys_select_.h.
68769         (Depends-on): Add absolute-header.
68770         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68771         into sys/select.h.
68772
68773 2007-03-02  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68776         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68777         values.
68778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68779         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68780         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68781         * modules/sys_socket (Depends-on): Add absolute-header.
68782         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68783         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68784         (Include): Remove requirement of inclusion of <sys/types.h>.
68785
68786 2007-03-02  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/byteswap_.h (bswap_32): Fix formula.
68789
68790 2007-03-06  Bruno Haible  <bruno@clisp.org>
68791
68792         * modules/sprintf-posix-tests: New file.
68793         * tests/test-sprintf-posix.c: New file.
68794
68795         * modules/sprintf-posix: New file.
68796         * lib/sprintf.c: New file.
68797         * m4/sprintf-posix.m4: New file.
68798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68799         REPLACE_SPRINTF.
68800         * lib/stdio_.h (sprintf): New declaration.
68801         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68802         REPLACE_SPRINTF.
68803
68804 2007-03-06  Bruno Haible  <bruno@clisp.org>
68805
68806         * modules/vsprintf-posix-tests: New file.
68807         * tests/test-vsprintf-posix.c: New file.
68808         * tests/test-sprintf-posix.h: New file.
68809
68810         * modules/vsprintf-posix: New file.
68811         * lib/vsprintf.c: New file.
68812         * m4/vsprintf-posix.m4: New file.
68813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68814         REPLACE_VSPRINTF.
68815         * lib/stdio_.h (vsprintf): New declaration.
68816         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68817         REPLACE_VSPRINTF.
68818
68819 2007-03-06  Bruno Haible  <bruno@clisp.org>
68820
68821         * modules/vsnprintf (Depend-on): Remove minmax.
68822
68823 2007-03-06  Bruno Haible  <bruno@clisp.org>
68824
68825         * modules/snprintf-posix-tests: New file.
68826         * tests/test-snprintf-posix.c: New file.
68827
68828         * modules/snprintf-posix: New file.
68829         * m4/snprintf-posix.m4: New file.
68830         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68831         gl_FUNC_SNPRINTF.
68832         (gl_FUNC_SNPRINTF): Invoke it.
68833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68834         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68835         is set.
68836         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68837
68838 2007-03-06  Bruno Haible  <bruno@clisp.org>
68839
68840         * modules/vsnprintf-posix-tests: New file.
68841         * tests/test-vsnprintf-posix.c: New file.
68842         * tests/test-snprintf-posix.h: New file.
68843
68844         * modules/vsnprintf-posix: New file.
68845         * m4/vsnprintf-posix.m4: New file.
68846         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68847         gl_FUNC_VSNPRINTF.
68848         (gl_FUNC_VSNPRINTF): Invoke it.
68849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68850         * lib/stdio_.h (vsnprintf): Define as a replacement if
68851         REPLACE_VSNPRINTF is set.
68852         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68853
68854 2007-03-06  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68858
68859 2007-03-06  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68862         (asinl): Declare also if HAVE_DECL_ASINL is set.
68863         (atanl): Declare also if HAVE_DECL_ATANL is set.
68864         (ceill): Declare also if HAVE_DECL_CEILL is set.
68865         (cosl): Declare also if HAVE_DECL_COSL is set.
68866         (expl): Declare also if HAVE_DECL_EXPL is set.
68867         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68868         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68869         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68870         (logl): Declare also if HAVE_DECL_LOGL is set.
68871         (sinl): Declare also if HAVE_DECL_SINL is set.
68872         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68873         (tanl): Declare also if HAVE_DECL_TANL is set.
68874         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68876         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68877         declaration of frexpl, ldexpl.
68878         * modules/printf-frexpl (Depends-on): Add math.
68879         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68880
68881 2007-03-05  Bruno Haible  <bruno@clisp.org>
68882
68883         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68884         frexpl and ldexpl are declared.
68885         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68886
68887 2007-03-05  Bruno Haible  <bruno@clisp.org>
68888
68889         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68890         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68891
68892 2007-03-05  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/stdio_.h: Include <stddef.h>.
68895
68896 2007-03-05  Bruno Haible  <bruno@clisp.org>
68897
68898         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68899
68900 2007-03-05  Bruno Haible  <bruno@clisp.org>
68901
68902         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68903         NetBSD 4, from Ralf Wildenhues.
68904
68905 2007-03-04  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/vasprintf.h: Update #if logic for the case when the functions
68908         exist but are overridden.
68909
68910 2007-03-04  Bruno Haible  <bruno@clisp.org>
68911
68912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68913         implementations: glibc-2.4 and MacOS X 10.3.
68914         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68915         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68916         * tests/test-vasprintf-posix.c (test_function): Likewise.
68917
68918 2007-03-04  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/vasprintf-posix-tests: New file.
68921         * tests/test-vasprintf-posix.c: New file.
68922
68923         * modules/vasprintf-posix: New file.
68924         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68925         defined.
68926         * m4/vasprintf-posix.m4: New file.
68927         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68928         gl_FUNC_VASPRINTF.
68929         (gl_FUNC_VASPRINTF): Invoke it.
68930         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68931         here.
68932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68933
68934 2007-03-04  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68937         REPLACE_GETTIMEOFDAY.
68938         * modules/sys_time (Makefile.am): Likewise.
68939         * m4/sys_time_h.m4: Likewise.
68940         * m4/gettimeofday.m4: Likewise.
68941
68942 2007-03-04  Bruno Haible  <bruno@clisp.org>
68943
68944         * modules/vasnprintf-posix-tests: New file.
68945         * tests/test-vasnprintf-posix.c: New file.
68946
68947         * modules/vasnprintf-posix: New file.
68948         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68949         printf-frexpl.h.
68950         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68951         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68952         REPLACE_VASNPRINTF is defined.
68953         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68954         gl_FUNC_VASNPRINTF.
68955         (gl_FUNC_VASNPRINTF): Invoke it.
68956         * m4/vasnprintf-posix.m4: New file.
68957         * m4/printf.m4: New file.
68958
68959 2007-03-04  Bruno Haible  <bruno@clisp.org>
68960
68961         Compile progreloc.c only if --enable-relocatable is specified.
68962         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68963         if --enable-relocatable was specified.
68964         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68965         lib_SOURCES.
68966
68967 2007-03-04  Jim Meyering  <jim@meyering.net>
68968
68969         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68970         Use it consistently, rather than enumerating errno constants.
68971
68972 2007-03-04  Bruno Haible  <bruno@clisp.org>
68973
68974         * modules/xvasprintf-tests: New file.
68975         * tests/test-xvasprintf.c: New file.
68976
68977         * modules/vasprintf-tests: New file.
68978         * tests/test-vasprintf.c: New file.
68979
68980         * modules/vasnprintf-tests: New file.
68981         * tests/test-vasnprintf.c: New file.
68982
68983         * modules/vsnprintf-tests: New file.
68984         * tests/test-vsnprintf.c: New file.
68985
68986         * modules/snprintf-tests: New file.
68987         * tests/test-snprintf.c: New file.
68988
68989 2007-03-04  Bruno Haible  <bruno@clisp.org>
68990
68991         Compile relocatable.c only if --enable-relocatable is specified.
68992         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68993         gl_RELOCATABLE_LIBRARY.
68994         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68995         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68996         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68997         gl_RELOCATABLE_LIBRARY.
68998         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68999         (Makefile.am): Remove lib_SOURCES.
69000         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69001         gl_RELOCATABLE_LIBRARY.
69002         (Makefile.am): Remove lib_SOURCES.
69003         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69004         always.
69005         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69006         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69007
69008 2007-03-04  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/argmatch-tests: New file.
69011         * tests/test-argmatch.c: New file.
69012
69013         * tests/test-allocsa.c (main): Halve the number of loop runs.
69014
69015         * modules/alloca-opt-tests: New file.
69016         * tests/test-alloca-opt.c: New file.
69017
69018 2007-03-04  Jim Meyering  <jim@meyering.net>
69019
69020         Work around difference between Linux ACLs and Solaris 10 ZFS.
69021         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69022         for EINVAL.
69023
69024 2007-03-03  Bruno Haible  <bruno@clisp.org>
69025
69026         * modules/relocatable-prog (Depends-on): Add back progreloc's
69027         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69028
69029 2007-03-03  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69032         * modules/relocatable-lib: New file.
69033
69034 2007-03-03  Bruno Haible  <bruno@clisp.org>
69035
69036         * modules/relocatable-prog: Renamed from modules/relocatable.
69037         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69038
69039 2007-03-03  Bruno Haible  <bruno@clisp.org>
69040
69041         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69042         m4/relocatable-lib.m4.
69043         (Depends-on): Remove 'relocatable'.
69044         (configure.ac): Add gl_RELOCATABLE_NOP.
69045
69046 2007-03-03  Bruno Haible  <bruno@clisp.org>
69047
69048         * modules/relocatable-prog-wrapper: New file.
69049         * modules/relocatable (Depends-on): Add it. Remove all other
69050         dependencies except progname.
69051         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69052
69053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69054         (gl_FUNC_STRERROR): Nop.
69055         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69056
69057         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69058         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69059
69060         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69061         (gl_FUNC_READLINK): Update.
69062
69063         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69064
69065 2007-03-03  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69068         * modules/xreadlink (Depends-on): Add unistd.
69069         * modules/xreadlink-with-size (Depends-on): Likewise.
69070
69071 2007-03-03  Bruno Haible  <bruno@clisp.org>
69072
69073         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69074         extracted from gt_FUNC_SETENV.
69075         (gt_FUNC_SETENV): Remove macro.
69076         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69077         remove gt_FUNC_SETENV.
69078
69079 2007-03-03  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69082         ENABLE_RELOCATABLE here.
69083         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69084
69085 2007-03-03  Bruno Haible  <bruno@clisp.org>
69086
69087         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69088         * tests/test-rbtreehash_list.c: Include progname.h.
69089         (main): Call set_program_name.
69090
69091         * modules/rbtree-oset-tests (Depends-on): Add progname.
69092         * tests/test-rbtree_oset.c: Include progname.h.
69093         (main): Call set_program_name.
69094
69095         * modules/rbtree-list-tests (Depends-on): Add progname.
69096         * tests/test-rbtree_list.c: Include progname.h.
69097         (main): Call set_program_name.
69098
69099         * modules/linked-list-tests (Depends-on): Add progname.
69100         * tests/test-linked_list.c: Include progname.h.
69101         (main): Call set_program_name.
69102
69103 2007-03-03  Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69106         All uses of __restrict changed to _Restrict_.
69107         * lib/glob_.h (__restrict): Remove macro.
69108
69109 2007-03-02  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/gettext (configure.ac): Require gettext infrastructure
69112         from version 0.16.1.
69113
69114 2007-03-02  Bruno Haible  <bruno@clisp.org>
69115
69116         * modules/linkedhash-list-tests (Depends-on): Add progname.
69117         * tests/test-linkedhash_list.c: Include progname.h.
69118         (main): Call set_program_name.
69119
69120         * modules/carray-list-tests (Depends-on): Add progname.
69121         * tests/test-carray_list.c: Include progname.h.
69122         (main): Call set_program_name.
69123
69124         * modules/avltreehash-list-tests (Depends-on): Add progname.
69125         * tests/test-avltreehash_list.c: Include progname.h.
69126         (main): Call set_program_name.
69127
69128         * modules/avltree-oset-tests (Depends-on): Add progname.
69129         * tests/test-avltree_oset.c: Include progname.h.
69130         (main): Call set_program_name.
69131
69132         * modules/avltree-list-tests (Depends-on): Add progname.
69133         * tests/test-avltree_list.c: Include progname.h.
69134         (main): Call set_program_name.
69135
69136         * modules/array-oset-tests (Depends-on): Add progname.
69137         * tests/test-array_oset.c: Include progname.h.
69138         (main): Call set_program_name.
69139
69140         * modules/array-list-tests (Depends-on): Add progname.
69141         * tests/test-array_list.c: Include progname.h.
69142         (main): Call set_program_name.
69143
69144         * modules/argp-tests (Depends-on): Add progname.
69145         * tests/test-argp.c: Include argp.h first. Include progname.h.
69146         (main): Call set_program_name.
69147
69148 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * doc/gnulib-tool.texi (Initial import): Reword description of
69151         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69152         limited effect even if defined after the first system include.
69153
69154 2007-03-01  Bruno Haible  <bruno@clisp.org>
69155
69156         * build-aux/config.libpath: Update to libtool-1.5.22.
69157         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69158
69159 2007-03-01  Bruno Haible  <bruno@clisp.org>
69160
69161         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69162         foo_CFLAGS.
69163         Reported by Ralf Wildenhues.
69164
69165 2007-03-01  Bruno Haible  <bruno@clisp.org>
69166
69167         * build-aux/install-reloc: Remove object files left over by some
69168         compilers.
69169         Reported by Ralf Wildenhues.
69170
69171 2007-03-01  Bruno Haible  <bruno@clisp.org>
69172
69173         * build-aux/install-reloc: Break long lines.
69174
69175 2007-03-01  Bruno Haible  <bruno@clisp.org>
69176
69177         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69178         Reported by Ralf Wildenhues.
69179
69180 2007-03-01  Bruno Haible  <bruno@clisp.org>
69181
69182         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69183         include ordering constraints.
69184
69185 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69189         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69190         as another example.
69191         * lib/time_.h: Fix misspelling.
69192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69193         Require gl_HEADER_TIME_H_DEFAULTS.
69194         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69195         * m4/time_r.m4 (gl_TIME_R): Likewise.
69196         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69197
69198 2007-03-01  Bruno Haible  <bruno@clisp.org>
69199
69200         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69201         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69202
69203 2007-03-01  Jim Meyering  <jim@meyering.net>
69204
69205         * modules/xreadlink (Maintainer): Add my name.
69206         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69207
69208 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69209             Bruno Haible  <bruno@clisp.org>
69210
69211         * build-aux/install-reloc: Compile also c-ctype.c.
69212         * build-aux/relocatable.sh.in: New file.
69213         * doc/relocatable.texi: New file.
69214         * doc/relocatable-maint.texi: New file.
69215         * doc/gnulib.texi: Include relocatable-maint.texi.
69216         * lib/progreloc.c: Include unistd.h unconditionally.
69217         * lib/relocwrapper.c: Include unistd.h unconditionally.
69218         Include c-ctype.h.
69219         (add_dotbin): Use c_tolower.
69220         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69221         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69222         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69223         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69224         to m4/relocatable-lib.m4.
69225         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69226         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69227         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69228         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69229         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69230         * modules/relocatable: New file.
69231         * modules/relocatable-lib: New file.
69232         * modules/relocatable-script: New file.
69233
69234 2007-02-28  Bruno Haible  <bruno@clisp.org>
69235
69236         Import --enable-relocatable infrastructure.
69237         * build-aux/config.libpath: New file, from GNU gettext.
69238         * build-aux/install-reloc: New file, from GNU gettext.
69239         * build-aux/reloc-ldflags: New file, from GNU gettext.
69240         * lib/relocatable.h: New file, from GNU gettext.
69241         * lib/relocatable.c: New file, from GNU gettext.
69242         * lib/relocwrapper.c: New file, from GNU gettext.
69243         * m4/relocatable.m4: New file, from GNU gettext.
69244
69245 2007-02-28  Bruno Haible  <bruno@clisp.org>
69246
69247         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69248
69249         * modules/xreadlink: New file, from GNU gettext with modifications.
69250         * lib/xreadlink.c: New file, from GNU gettext.
69251         * lib/xreadlink.h: Add comments.
69252         (xreadlink): New declaration.
69253
69254         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69255         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69256         lib/xreadlink-with-size.c.
69257         (configure.ac): Remove gl_XREADLINK invocation.
69258         (Makefile.am): Augment lib_SOURCES.
69259         * m4/xreadlink.m4: Remove file.
69260         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69261         (xreadlink_with_size): Renamed from xreadink.
69262         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69263         * modules/canonicalize (Depends-on): Replace xreadlink with
69264         xreadlink-with-size.
69265         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69266
69267 2007-02-25  Jim Meyering  <jim@meyering.net>
69268
69269         * build-aux/announce-gen: When complaining about excess arguments,
69270         list them.
69271
69272 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * README: Document signed integer overflow situation more
69275         accurately.
69276
69277 2007-02-25  Bruno Haible  <bruno@clisp.org>
69278
69279         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69280         'a' or 'A' conversion.
69281
69282 2007-02-25  Bruno Haible  <bruno@clisp.org>
69283
69284         * modules/filename: Renamed from modules/pathname.
69285         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69286         lib/concatpath.c with lib/concat-filename.c.
69287         (Makefile.am): Update.
69288         (Include): Replace pathname.h with filename.h.
69289         * lib/filename.h: Renamed from lib/pathname.h.
69290         (concatenated_filename): Renamed from concatenated_pathname.
69291         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69292         (concatenated_filename): Renamed from concatenated_pathname.
69293         * lib/findprog.c: Include filename.h instead of pathname.h.
69294         (find_in_path): Update.
69295         * lib/javacomp.c: Include filename.h instead of pathname.h.
69296         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69297         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69298         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69299         is_oldgcj_14_13_usable, is_javac_usable): Update.
69300         * lib/javaexec.c: Include filename.h instead of pathname.h.
69301         (execute_java_class): Update.
69302         * modules/findprog: Update.
69303         * modules/javacomp: Update.
69304         * modules/javaexec: Update.
69305         * MODULES.html.sh (File system functions): Add 'filename', remove
69306         'pathname'.
69307
69308 2007-02-25  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/printf-frexpl-tests: New file.
69311         * tests/test-printf-frexpl.c: New file.
69312
69313         * modules/printf-frexpl: New file.
69314         * lib/printf-frexpl.h: New file.
69315         * lib/printf-frexpl.c: New file.
69316         * m4/printf-frexpl.m4: New file.
69317
69318 2007-02-25  Bruno Haible  <bruno@clisp.org>
69319
69320         * modules/printf-frexp-tests: New file.
69321         * tests/test-printf-frexp.c: New file.
69322
69323         * modules/printf-frexp: New file.
69324         * lib/printf-frexp.h: New file.
69325         * lib/printf-frexp.c: New file.
69326         * m4/printf-frexp.m4: New file.
69327
69328 2007-02-25  Bruno Haible  <bruno@clisp.org>
69329
69330         Assume automake >= 1.10 for the tests.
69331         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69332         * modules/arctwo-tests: Likewise.
69333         * modules/argp-tests: Likewise.
69334         * modules/avltree-list-tests: Likewise.
69335         * modules/avltree-oset-tests: Likewise.
69336         * modules/avltreehash-list-tests: Likewise.
69337         * modules/carray-list-tests: Likewise.
69338         * modules/crc-tests: Likewise.
69339         * modules/des-tests: Likewise.
69340         * modules/gc-arcfour-tests: Likewise.
69341         * modules/gc-arctwo-tests: Likewise.
69342         * modules/gc-des-tests: Likewise.
69343         * modules/gc-hmac-md5-tests: Likewise.
69344         * modules/gc-hmac-sha1-tests: Likewise.
69345         * modules/gc-md2-tests: Likewise.
69346         * modules/gc-md4-tests: Likewise.
69347         * modules/gc-md5-tests: Likewise.
69348         * modules/gc-pbkdf2-sha1-tests: Likewise.
69349         * modules/gc-rijndael-tests: Likewise.
69350         * modules/gc-sha1-tests: Likewise.
69351         * modules/gc-tests: Likewise.
69352         * modules/getaddrinfo-tests: Likewise.
69353         * modules/hmac-md5-tests: Likewise.
69354         * modules/hmac-sha1-tests: Likewise.
69355         * modules/linked-list-tests: Likewise.
69356         * modules/linkedhash-list-tests: Likewise.
69357         * modules/lock-tests: Likewise.
69358         * modules/md2-tests: Likewise.
69359         * modules/md4-tests: Likewise.
69360         * modules/md5-tests: Likewise.
69361         * modules/rbtree-list-tests: Likewise.
69362         * modules/rbtree-oset-tests: Likewise.
69363         * modules/rbtreehash-list-tests: Likewise.
69364         * modules/read-file-tests: Likewise.
69365         * modules/rijndael-tests: Likewise.
69366         * modules/stdint-tests: Likewise.
69367         * modules/tls-tests: Likewise.
69368
69369 2007-02-24  Bruno Haible  <bruno@clisp.org>
69370
69371         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69372         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69373         function; instead check whether isnan with a double argument links.
69374         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69375         function; instead check whether isnan with a 'long double' argument
69376         links.
69377         Reported by Eric Blake <ebb9@byu.net>.
69378
69379 2007-02-24  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69382         defined.
69383         * lib/isnanl.c: Remove all code. Just include isnan.c.
69384         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69385
69386 2007-02-25  Jim Meyering  <jim@meyering.net>
69387
69388         Avoid conflicting types for 'unsetenv' on FreeBSD.
69389         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69390         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69391         in stdlib.h.
69392
69393 2007-02-24  Bruno Haible  <bruno@clisp.org>
69394
69395         * modules/isnanl-nolibm-tests: New file.
69396         * tests/test-isnanl.c: New file.
69397
69398         * modules/isnanl-nolibm: New file.
69399         * lib/isnanl.h: New file.
69400         * lib/isnanl.c: New file.
69401         * m4/isnanl.m4: New file.
69402
69403 2007-02-24  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/isnan-nolibm-tests: New file.
69406         * tests/test-isnan.c: New file.
69407
69408         * modules/isnan-nolibm: New file.
69409         * lib/isnan.h: New file.
69410         * lib/isnan.c: New file.
69411         * m4/isnan.m4: New file.
69412
69413 2007-02-24  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69416         assume that an exponent fits in 20 bits.
69417
69418 2007-02-24  Jim Meyering  <jim@meyering.net>
69419
69420         * m4/regex.m4: Update the description of the configure-time option,
69421         --without-included-regex, to state accurately what the defaults are,
69422         and perhaps to give people an idea why using this option is risky.
69423
69424 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69427         loops on small arguments.  This attempts to avoid the problem
69428         Bruno Haible reported for AIX 4.3.2 in
69429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69430
69431 2007-02-23  Bruno Haible  <bruno@clisp.org>
69432
69433         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69434         Needed for help2man.
69435
69436 2007-02-23  Karl Berry  <karl@gnu.org>
69437
69438         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69439         exists, foo.h should be cvs-ignored, not committed.
69440
69441 2007-02-23  Eric Blake  <ebb9@byu.net>
69442
69443         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69444         * lib/stat-time.h (includes): Likewise.
69445         * lib/utimecmp.c (includes): Likewise.
69446         * lib/utimens.h (includes): Likewise.
69447         * lib/getdate.y (includes): Also include "timespec.h" for use
69448         internal to the module.
69449         * modules/utimens (Depends-on): Revert yesterday's patch.
69450         * modules/nanosleep (Depends-on): Add missing dependency.
69451
69452 2007-02-22  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/glob.c: Don't include getlogin_r.h.
69455
69456 2007-02-22  Jim Meyering  <jim@meyering.net>
69457
69458         * modules/utimens (Depends-on): Add timespec, required for
69459         utimens.h's inclusion of timespec.h.
69460
69461 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69464         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69465         Schwab in
69466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69467         I'll try to think of a better way to fix the Solaris problem.
69468
69469         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69470         like glibc; on Solaris 10, it fails with errno == EINVAL.
69471         POSIX says the behavior is unspecified if the first argument is NULL,
69472         so play it safe and never pass NULL to the system getcwd.
69473
69474 2007-02-21  Jim Meyering  <jim@meyering.net>
69475
69476         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69477         of gettimeofday.  It would conflict with the one now always
69478         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69479         an IRIX 6.5 build failure.
69480
69481 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69482
69483         Minor fixups to port to Solaris 10 with Sun C 5.8.
69484         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69485         * modules/getcwd (Depends-on): Add dirfd.
69486         * lib/putenv.c (putenv): #undef it.
69487         (rpl_putenv): New decl.
69488         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69489
69490 2007-02-20  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/stdio-tests: New file.
69493         * tests/test-stdio.c: New file.
69494
69495         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69496         (Depends-on): Add stdio.
69497         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69498         (Include): Use <stdio.h> instead of vsnprintf.h.
69499         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69500         HAVE_DECL_VSNPRINTF.
69501         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69502
69503         * modules/snprintf (Files): Remove lib/snprintf.h.
69504         (Depends-on): Add stdio.
69505         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69506         (Include): Use <stdio.h> instead of snprintf.h.
69507         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69508         HAVE_DECL_SNPRINTF.
69509         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69510         * lib/getaddrinfo.c: Likewise.
69511
69512         * modules/stdio: New file.
69513         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69514         * lib/snprintf.h: Remove file.
69515         * lib/vsnprintf.h: Remove file.
69516         * lib/.cppi-disable: Remove snprintf.h.
69517         * m4/stdio_h.m4: New file.
69518         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69519
69520 2007-02-20  Jim Meyering  <jim@meyering.net>
69521
69522         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69523         used by e.g., mingw.  From Bruno Haible.
69524
69525 2007-02-19  Bruno Haible  <bruno@clisp.org>
69526
69527         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69528         warnings.
69529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69530
69531 2007-02-19  Bruno Haible  <bruno@clisp.org>
69532
69533         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69534         from mingw users.
69535
69536 2007-02-19  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69539         warnings.
69540         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69541
69542 2007-02-19  Jim Meyering  <jim@meyering.net>
69543
69544         Don't use FD after a successful "fdopendir (fd)".
69545         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69546         Reset it by calling dirfd on the just-obtained DIR*.
69547
69548         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69549         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69550
69551 2007-02-18  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/readlink.c: Include <unistd.h>.
69554         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69555         HAVE_READLINK.
69556         * modules/readlink (Depends-on): Add unistd.
69557         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69558         (Include): Add <unistd.h>.
69559
69560         * lib/getlogin_r.h: Remove file.
69561         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69562         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69563         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69564         HAVE_DECL_GETLOGIN_R.
69565         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69567         (Include): Use <unistd.h> instead of getlogin_r.h.
69568
69569         * lib/getcwd.h: Remove file.
69570         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69571         * lib/xgetcwd.c: Likewise.
69572         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69573         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69574         * modules/getcwd (Files): Remove lib/getcwd.h.
69575         (Depends-on): Add unistd.
69576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69577         (Include): Use <unistd.h> instad of getcwd.h.
69578
69579         * lib/ftruncate.c: Include <unistd.h> first.
69580         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69581         Set HAVE_FTRUNCATE.
69582         * modules/ftruncate (Depends-on): Add unistd.
69583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69584
69585         * lib/fchdir.c: Include <unistd.h> first.
69586         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69588         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69589         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69590         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69591
69592         * lib/dup2.c: Include <unistd.h> first.
69593         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69594         HAVE_DUP2.
69595         * modules/dup2 (Depends-on): Add unistd.
69596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69597
69598         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69599         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69600         REPLACE_CHOWN. Don't define chown as a macro here.
69601         * modules/chown (Depends-on): Add unistd.
69602         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69603
69604         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69605         Add definition for GL_LINK_WARNING.
69606         (chown, dup2): New declarations.
69607         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69608         link warning.
69609         (ftruncate): New declaration.
69610         (getcwd): New declaration, taken from old getcwd.h.
69611         (getlogin_r): New declaration, taken from old getlogin_r.h.
69612         (readlink): New declaration.
69613         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69614         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69615         (gl_PREREQ_UNISTD): Remove macro.
69616         (gl_UNISTD_MODULE_INDICATOR): New macro.
69617         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69618         many new variables. Don't set UNISTD_H.
69619         * modules/unistd (Description): Change.
69620         (Depends-on): Add link-warning.
69621         (configure.ac): Update.
69622         (Makefile.am): Create unistd.h always. Substitute many new variables
69623         into it.
69624
69625 2007-02-18  Bruno Haible  <bruno@clisp.org>
69626
69627         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69628         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69629         HAVE_GETSUBOPT.
69630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69631         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69632         * lib/getsubopt.h: Remove file.
69633         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69634         (Depends-on): Add stdlib.
69635         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69636         (Includes): Use <stdlib.h> instead of getsubopt.h.
69637         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69638         Set HAVE_GETSUBOPT.
69639         * lib/getsubopt.c: Don't include getsubopt.h.
69640
69641 2007-02-18  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/fchdir (Depends-on): Add dup2.
69644
69645 2007-02-18  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/stdlib_.h: Handle glibc's special invocation convention
69648         specially.
69649
69650 2007-02-18  Bruno Haible  <bruno@clisp.org>
69651
69652         * modules/stdlib-tests: New file.
69653         * tests/test-stdlib.c: New file.
69654
69655         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69656         (Depends-on): Add stdlib.
69657         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69658         (Includes): Use <stdlib.h> instead of mkstemp.h.
69659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69660         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69661         * lib/mkstemp.c: Don't include mkstemp.h.
69662         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69663         * lib/stdlib--.h: Don't include mkstemp.h.
69664
69665         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69666         (Depends-on): Add stdlib.
69667         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69668         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69669         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69670         HAVE_MKDTEMP.
69671         * lib/mkdtemp.c: Don't include mkdtemp.h.
69672         * lib/clean-temp.c: Don't include mkdtemp.h.
69673
69674         * modules/exit (Files): Remove lib/exit.h.
69675         (Depends-on): Add stdlib.
69676         (Makefile.am): Remove lib_SOURCES.
69677         (Include): Use <stdlib.h> instead of exit.h.
69678         * lib/argmatch.c: Don't include exit.h.
69679         * lib/execute.c: Likewise.
69680         * lib/pagealign_alloc.c: Likewise.
69681         * lib/pipe.c: Likewise.
69682         * lib/wait-process.c: Likewise.
69683         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69684         * lib/exitfail.c: Likewise.
69685         * lib/savewd.c: Likewise.
69686         * lib/xsetenv.c: Likewise.
69687
69688         * modules/stdlib: New file.
69689         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69690         and extra comments about mkstemp().
69691         * lib/exit.h: Remove file.
69692         * lib/mkdtemp.h: Remove file.
69693         * lib/mkstemp.h: Remove file.
69694         * m4/stdlib_h.m4: New file.
69695         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69696
69697 2007-02-18  Bruno Haible  <bruno@clisp.org>
69698
69699         * modules/math-tests: New file.
69700         * tests/test-math.c: New file.
69701
69702         * modules/math: New file.
69703         * modules/mathl (Files): Remove lib/mathl.h.
69704         (Depends-on): Add math.
69705         (Makefile.am): Don't mention mathl.h.
69706         (Include): Use <math.h> instead of mathl.h.
69707         * lib/math_.h: New file.
69708         * lib/mathl.h: Remove file.
69709         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69710         mathl.h.
69711         * lib/asinl.c: Likewise.
69712         * lib/atanl.c: Likewise.
69713         * lib/ceill.c: Likewise.
69714         * lib/cosl.c: Likewise.
69715         * lib/expl.c: Likewise.
69716         * lib/floorl.c: Likewise.
69717         * lib/frexpl.c: Likewise.
69718         * lib/ldexpl.c: Likewise.
69719         * lib/logl.c: Likewise.
69720         * lib/sincosl.c: Likewise.
69721         * lib/sinl.c: Likewise.
69722         * lib/sqrtl.c: Likewise.
69723         * lib/tanl.c: Likewise.
69724         * lib/trigl.c: Likewise.
69725         * m4/math_h.m4: New file.
69726         * MODULES.html.sh (Mathematics): Add math.
69727
69728 2007-02-17  Bruno Haible  <bruno@clisp.org>
69729
69730         * modules/wctype-tests: New file.
69731         * tests/test-wctype.c: New file.
69732
69733         * modules/wchar-tests: New file.
69734         * tests/test-wchar.c: New file.
69735
69736         * modules/unistd-tests: New file.
69737         * tests/test-unistd.c: New file.
69738
69739         * modules/time-tests: New file.
69740         * tests/test-time.c: New file.
69741
69742         * modules/sysexits-tests: New file.
69743         * tests/test-sysexits.c: New file.
69744
69745         * modules/sys_time-tests: New file.
69746         * tests/test-sys_time.c: New file.
69747
69748         * modules/sys_stat-tests: New file.
69749         * tests/test-sys_stat.c: New file.
69750
69751         * modules/sys_socket-tests: New file.
69752         * tests/test-sys_socket.c: New file.
69753
69754         * modules/sys_select-tests: New file.
69755         * tests/test-sys_select.c: New file.
69756
69757         * modules/string-tests: New file.
69758         * tests/test-string.c: New file.
69759
69760         * modules/stdbool-tests: New file.
69761         * tests/test-stdbool.c: New file.
69762
69763         * modules/netinet_in-tests: New file.
69764         * tests/test-netinet_in.c: New file.
69765
69766         * modules/inttypes-tests: New file.
69767         * tests/test-inttypes.c: New file.
69768
69769         * modules/fcntl-tests: New file.
69770         * tests/test-fcntl.c: New file.
69771
69772         * modules/byteswap-tests: New file.
69773         * tests/test-byteswap.c: New file.
69774
69775         * modules/arpa_inet-tests: New file.
69776         * tests/test-arpa_inet.c: New file.
69777
69778 2007-02-17  Bruno Haible  <bruno@clisp.org>
69779
69780         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69781         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69782         if the corresponding module is not enabled. Emit link warnings if
69783         the function is used nevertheless.
69784         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69785         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69786         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69787         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69788         * modules/inttypes (Depends-on): Add link-warning.
69789         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69790         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69791         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69792         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69793         * modules/imaxdiv (configure.ac): Likewise.
69794         * modules/strtoimax (configure.ac): Likewise.
69795         * modules/strtoumax (configure.ac): Likewise.
69796
69797 2007-02-17  Bruno Haible  <bruno@clisp.org>
69798
69799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69800         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69801         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69802         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69803
69804 2007-02-17  Bruno Haible  <bruno@clisp.org>
69805
69806         * modules/link-warning: New file.
69807         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69808         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69809         * modules/string (Depends-on): Add link-warning.
69810         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69811         string.h.
69812         * MODULES.html.sh (Support for building libraries and executables): Add
69813         link-warning.
69814
69815 2007-02-17  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69818         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69819         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69820         long lines.
69821
69822 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69823             Bruno Haible  <bruno@clisp.org>
69824
69825         * modules/tmpfile: New file.
69826         * lib/tmpfile.c: New file.
69827         * m4/tmpfile.m4: New file.
69828         * MODULES.html.sh (func_all_modules): New section "Input/output".
69829
69830 2007-02-15  Bruno Haible  <bruno@clisp.org>
69831
69832         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69833         (supports_delete_on_close): New function.
69834         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69835
69836 2007-02-14  Bruno Haible  <bruno@clisp.org>
69837
69838         * modules/mbspcasecmp-tests: New file.
69839         * tests/test-mbspcasecmp.sh: New file.
69840         * tests/test-mbspcasecmp.c: New file.
69841
69842         New module mbspcasecmp.
69843         * modules/mbspcasecmp: New file.
69844         * lib/mbspcasecmp.c: New file.
69845         * lib/string_.h (strncasecmp): Change warning message.
69846         (mbspcasecmp): New declaration.
69847         * m4/mbspcasecmp.m4: New file.
69848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69849         GNULIB_MBSPCASECMP.
69850         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69851         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69852
69853 2007-02-14  Bruno Haible  <bruno@clisp.org>
69854
69855         * modules/mbsncasecmp-tests: New file.
69856         * tests/test-mbsncasecmp.sh: New file.
69857         * tests/test-mbsncasecmp.c: New file.
69858
69859         New module mbsncasecmp.
69860         * modules/mbsncasecmp: New file.
69861         * lib/mbsncasecmp.c: New file.
69862         * lib/string_.h (mbsncasecmp): New declaration.
69863         * m4/mbsncasecmp.m4: New file.
69864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69865         GNULIB_MBSNCASECMP.
69866         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69867         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69868
69869 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69872         Verify that it doesn't overlap with our flags.
69873         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69874         do not have the desired effect in multibyte locales; instead, use
69875         mbscasecmp.
69876         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69877         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69878         we don't require GNU fnmatch ourselves (if our users require it, they
69879         should do so explicitly).
69880
69881         Fix regex code so it doesn't rely on strcasecmp.
69882         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69883         Otherwise, include gnulib's langinfo.h.
69884         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69885         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69886         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69887         * modules/regex (FILES): Remove m4/codeset.m4.
69888         (Depends-on): Add localcharset.  Remove strcase.
69889
69890 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69891
69892         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69893         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69894
69895 2007-02-13  Bruno Haible  <bruno@clisp.org>
69896
69897         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69899
69900 2007-02-12  Bruno Haible  <bruno@clisp.org>
69901
69902         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69903         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69904         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69905         time warning rather than a link error.
69906
69907 2007-02-12  Bruno Haible  <bruno@clisp.org>
69908
69909         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69910         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69912
69913 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69916         args, not 2.
69917
69918 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         New module 'time', so that apps can include <time.h> as per
69921         POSIX and GNU instead of separate include files like time_r.h
69922         and timegm.h.  This implementation tries out a simpler approach
69923         for replacing decls in standard include files (as compared to
69924         the string module), somewhat as an experiment.
69925
69926         * config/srclist.txt: Comment out mktime.c for now.
69927         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69928         since it doesn't apply any more.  Use generic wording instead.
69929         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69930         'time'.
69931         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69932         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69933         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69934         Don't include <sys/types.h>; no longer needed since we assume C89.
69935         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69936         * lib/strftime.c: Likewise.
69937         * lib/time_r.c: Likewise.
69938         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69939         * lib/nanosleep.c: Include <time.h> first, to check interface.
69940         * lib/strptime.c: Likewise.
69941         * lib/time_r.c: Likewise.
69942         * lib/timegm.c: Likewise.
69943         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69944         needed.
69945         * lib/timegm.c: Don't include timegm.h; no longer needed.
69946         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69947         time.h now handles any problems in that area.
69948         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69949         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69950         that time.h defines struct timespec.
69951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69952         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69953         handles that.
69954         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69955         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69956         needed.  Set REPLACE_LOCALTIME.
69957         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69958         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69959         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69960         nanosleep; time_h.m4 now does that.  Don't require
69961         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69962         module handles this now.
69963         * modules/getdate (Depends-on): Remove timespec.  Add time.
69964         * modules/nanosleep (Depends-on): Likewise.
69965         * modules/stat-time (Depends-on): Likewise.
69966         * modules/nanosleep (Include): Include time.h, not timespec.h.
69967         * modules/strptime (Files): Remove lib/strptime.h.
69968         (Depends-on): Add extensions, time.
69969         (Include): Include time.h, not strptime.h.
69970         * modules/time_r (Files): Remove lib/time_r.h.
69971         (Depends-on): Add time.
69972         (Include): Include time.h, not time_r.h.
69973         * modules/timegm: Likewise.
69974         * modules/timespec (Description): Now does timespec-related decls
69975         of our own, instead of struct timespec itself.
69976         (Depends-on): Add time; remove extensions.
69977         (Maintainer): Add self.
69978         * modules/utimecmp (Depends-on): Add time; remove timespec.
69979         * modules/utimens (Depends-on): Likewise.
69980         * modules/xnanosleep (Depends-on): Likewise.
69981
69982 2007-02-11  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/c-strstr.c: Include allocsa.h.
69985         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69986         * lib/c-strcasestr.c: Include allocsa.h.
69987         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69988         * lib/strcasestr.c: Include allocsa.h.
69989         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69990         * lib/mbsstr.c: Include allocsa.h.
69991         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69992         allocsa/freesa instead of malloc/free.
69993         * lib/mbscasestr.c: Include allocsa.h.
69994         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69995         allocsa/freesa instead of malloc/free.
69996         * modules/c-strstr (Depends-on): Add allocsa.
69997         * modules/c-strcasestr (Depends-on): Likewise.
69998         * modules/strcasestr (Depends-on): Likewise.
69999         * modules/mbsstr (Depends-on): Likewise.
70000         * modules/mbscasestr (Depends-on): Likewise.
70001
70002 2007-02-11  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70005
70006         * modules/mbsspn-tests: New file.
70007         * tests/test-mbsspn.sh: New file.
70008         * tests/test-mbsspn.c: New file.
70009
70010 2007-02-11  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70013
70014         * modules/mbspbrk-tests: New file.
70015         * tests/test-mbspbrk.sh: New file.
70016         * tests/test-mbspbrk.c: New file.
70017
70018 2007-02-11  Bruno Haible  <bruno@clisp.org>
70019
70020         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70021         unneeded cast.
70022
70023         * modules/mbscspn-tests: New file.
70024         * tests/test-mbscspn.sh: New file.
70025         * tests/test-mbscspn.c: New file.
70026
70027 2007-02-11  Bruno Haible  <bruno@clisp.org>
70028
70029         * modules/mbscasecmp-tests: New file.
70030         * tests/test-mbscasecmp.sh: New file.
70031         * tests/test-mbscasecmp.c: New file.
70032
70033 2007-02-11  Bruno Haible  <bruno@clisp.org>
70034
70035         Ensure O(n) worst-case complexity of mbscasestr.
70036         * lib/mbscasestr.c: Include stdbool.h.
70037         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70038         functions.
70039         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70040         the bookkeeping indicates that it's worth it.
70041         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70042
70043         * modules/mbscasestr-tests: New file.
70044         * tests/test-mbscasestr1.c: New file.
70045         * tests/test-mbscasestr2.sh: New file.
70046         * tests/test-mbscasestr2.c: New file.
70047         * tests/test-mbscasestr3.sh: New file.
70048         * tests/test-mbscasestr3.c: New file.
70049         * tests/test-mbscasestr4.sh: New file.
70050         * tests/test-mbscasestr4.c: New file.
70051         * m4/locale-tr.m4: New file.
70052
70053 2007-02-11  Bruno Haible  <bruno@clisp.org>
70054
70055         Ensure O(n) worst-case complexity of mbsstr.
70056         * lib/mbsstr.c: Include stdbool.h.
70057         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70058         functions.
70059         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70060         bookkeeping indicates that it's worth it.
70061         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70062
70063         * modules/mbsstr-tests: New file.
70064         * tests/test-mbsstr1.c: New file.
70065         * tests/test-mbsstr2.sh: New file.
70066         * tests/test-mbsstr2.c: New file.
70067         * tests/test-mbsstr3.sh: New file.
70068         * tests/test-mbsstr3.c: New file.
70069         * m4/locale-fr.m4: New file.
70070
70071 2007-02-11  Bruno Haible  <bruno@clisp.org>
70072
70073         * lib/mbsrchr.c (mbsrchr): Fix bug.
70074
70075         * modules/mbsrchr-tests: New file.
70076         * tests/test-mbsrchr.sh: New file.
70077         * tests/test-mbsrchr.c: New file.
70078
70079 2007-02-11  Bruno Haible  <bruno@clisp.org>
70080
70081         * lib/mbschr.c (mbschr): Fix bug.
70082
70083         * modules/mbschr-tests: New file.
70084         * tests/test-mbschr.sh: New file.
70085         * tests/test-mbschr.c: New file.
70086         * m4/locale-zh.m4: New file.
70087
70088 2007-02-11  Bruno Haible  <bruno@clisp.org>
70089
70090         Support for copying multibyte string iterators.
70091         * lib/mbiter.h: Include <string.h>.
70092         (mbiter_multi_copy): New function.
70093         (mbi_copy): New macro.
70094         * lib/mbuiter.h: Include <string.h>.
70095         (mbuiter_multi_copy): New function.
70096         (mbui_copy): New macro.
70097
70098 2007-02-11  Bruno Haible  <bruno@clisp.org>
70099
70100         New module mbslen.
70101         * modules/mbslen: New file.
70102         * lib/mbslen.c: New file.
70103         * lib/string_.h (mbslen): New declaration.
70104         * m4/mbslen.m4: New file.
70105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70106         GNULIB_MBSLEN.
70107         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70108         * MODULES.html.sh (Internationalization functions): Add mbslen.
70109
70110 2007-02-11  Bruno Haible  <bruno@clisp.org>
70111
70112         Ensure O(n) worst-case complexity of strcasestr substitute.
70113         * lib/strcasestr.c: Include stdbool.h.
70114         (knuth_morris_pratt): New function.
70115         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70116         bookkeeping indicates that it's worth it.
70117         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70118
70119         * modules/strcasestr-tests: New file.
70120         * tests/test-strcasestr.c: New file.
70121
70122 2007-02-11  Bruno Haible  <bruno@clisp.org>
70123
70124         Ensure O(n) worst-case complexity of c_strcasestr.
70125         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70126         (knuth_morris_pratt): New function.
70127         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70128         the bookkeeping indicates that it's worth it.
70129         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70130
70131         * modules/c-strcasestr-tests: New file.
70132         * tests/test-c-strcasestr.c: New file.
70133
70134 2007-02-11  Bruno Haible  <bruno@clisp.org>
70135
70136         Ensure O(n) worst-case complexity of c_strstr.
70137         * lib/c-strstr.c: Include stdbool.h, string.h.
70138         (knuth_morris_pratt): New function.
70139         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70140         bookkeeping indicates that it's worth it.
70141         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70142
70143         * lib/c-strstr.c: Complete rewrite for maintainability.
70144
70145         * modules/c-strstr-tests: New file.
70146         * tests/test-c-strstr.c: New file.
70147
70148 2007-02-11  Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70151         5.2.1 and earlier, whereby \055 was treated just like the range
70152         delimiter '-'.
70153         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70154
70155 2007-02-08  Bruno Haible  <bruno@clisp.org>
70156
70157         * modules/regex (Depends-on): Add stdbool.
70158         Reported by Dalibor Topic <robilad@kaffe.org>.
70159
70160 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70163         Prefer returning from main to exiting from it.
70164         Remove unnecessary parens after sizeof.
70165
70166 2007-02-05  Bruno Haible  <bruno@clisp.org>
70167
70168         New module mbssep.
70169         * modules/mbssep: New file.
70170         * lib/mbssep.c: New file.
70171         * lib/string_.h (strsep): Add a conditional link warning.
70172         (mbssep): New declaration.
70173         * m4/mbssep.m4: New file.
70174         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70175         GNULIB_MBSSEP.
70176         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70177         * MODULES.html.sh (Internationalization functions): Add mbssep.
70178
70179 2007-02-05  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70182         Optimize search in case of 1 delimiter.
70183
70184 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70185
70186         * lib/acl.h: Include sys/types.h before sys/acl.h.
70187
70188 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70189
70190         Merge upstream fix for glibc bugzilla #3957:
70191
70192         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70193
70194         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70195         bit for RE_HAT_LISTS_NOT_NEWLINE.
70196         (build_charclass_op): Remove bogus comment.
70197
70198 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70199
70200         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70201
70202 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70205         * lib/memmem.c [!defined _LIBC]: Include config.h.
70206
70207 2007-02-04  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70210         warning message.
70211
70212 2007-02-04  Bruno Haible  <bruno@clisp.org>
70213
70214         New module mbstok_r.
70215         * modules/mbstok_r: New file.
70216         * lib/mbstok_r.c: New file.
70217         * lib/string_.h (strtok_r): Change argument names to match the
70218         comments. Add a conditional link warning.
70219         (mbstok_r): New declaration.
70220         * m4/mbstok_r.m4: New file.
70221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70222         GNULIB_MBSTOK_R.
70223         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70224         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70225
70226 2007-02-04  Bruno Haible  <bruno@clisp.org>
70227
70228         New module mbsspn.
70229         * modules/mbsspn: New file.
70230         * lib/mbsspn.c: New file.
70231         * lib/string_.h (strspn): Add a conditional link warning.
70232         (mbsspn): New declaration.
70233         * m4/mbsspn.m4: New file.
70234         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70235         GNULIB_MBSSPN.
70236         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70237         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70238
70239 2007-02-04  Bruno Haible  <bruno@clisp.org>
70240
70241         New module mbspbrk.
70242         * modules/mbspbrk: New file.
70243         * lib/mbspbrk.c: New file.
70244         * lib/string_.h (strpbrk): Add a conditional link warning.
70245         (mbspbrk): New declaration.
70246         * m4/mbspbrk.m4: New file.
70247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70248         GNULIB_MBSPBRK.
70249         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70250         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70251
70252 2007-02-04  Bruno Haible  <bruno@clisp.org>
70253
70254         New module mbscspn.
70255         * modules/mbscspn: New file.
70256         * lib/mbscspn.c: New file.
70257         * lib/string_.h (strcspn): Add a conditional link warning.
70258         (mbscspn): New declaration.
70259         * m4/mbscspn.m4: New file.
70260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70261         GNULIB_MBSCSPN.
70262         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70263         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70264
70265 2007-02-04  Bruno Haible  <bruno@clisp.org>
70266
70267         New module mbscasestr, reduced goal of strcasestr.
70268         * modules/mbscasestr: New file.
70269         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70270         (mbscasestr): Renamed from strcasestr.
70271         * lib/strcasestr.c: Don't include mbuiter.h.
70272         (strcasestr): Remove support for multibyte locales.
70273         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70274         Change the conditional link warning.
70275         (mbscasestr): New declaration.
70276         * m4/mbscasestr.m4: New file.
70277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70278         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70279         REPLACE_STRCASESTR.
70280         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70282         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70283         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70284         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70285         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70286         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70287         (Depends-on): Remove mbuiter.
70288         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70289
70290 2007-02-04  Bruno Haible  <bruno@clisp.org>
70291
70292         Simplify handling of strncasecmp.
70293         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70294         the conditional link warning.
70295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70296         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70297         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70298         * modules/strcase (configure.ac): Don't invoke
70299         gl_STRING_MODULE_INDICATOR.
70300         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70301
70302 2007-02-04  Bruno Haible  <bruno@clisp.org>
70303
70304         New module mbscasecmp, reduced goal of strcasecmp.
70305         * modules/mbscasecmp: New file.
70306         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70307         (mbscasecmp): Renamed from strcasecmp.
70308         * lib/strcasecmp.c: Don't include mbuiter.h.
70309         (strcasecmp): Remove support for multibyte locales.
70310         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70311         Change the conditional link warning.
70312         (mbscasecmp): New declaration.
70313         * m4/mbscasecmp.m4: New file.
70314         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70315         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70316         REPLACE_STRCASECMP.
70317         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70319         GNULIB_MBSCASECMP.
70320         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70321         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70322         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70323         (Depends-on): Remove mbuiter.
70324         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70325
70326 2007-02-04  Bruno Haible  <bruno@clisp.org>
70327
70328         New module mbsstr. Remove module strstr.
70329         * modules/mbsstr: New file.
70330         * modules/strstr: Remove file.
70331         * lib/mbsstr.c: Renamed from lib/strstr.c.
70332         (mbsstr): Renamed from strstr.
70333         * lib/string_.h (strstr): Remove declaration. Change the conditional
70334         link warning.
70335         (mbsstr): New declaration.
70336         * m4/mbsstr.m4: New file.
70337         * m4/strstr.m4: Remove file.
70338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70339         REPLACE_STRSTR.
70340         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70341         Don't initialize GNULIB_STRSTR.
70342         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70343         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70344         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70345         (Support for systems lacking ANSI C 89): Remove strstr.
70346
70347 2007-02-04  Bruno Haible  <bruno@clisp.org>
70348
70349         New module mbsrchr.
70350         * modules/mbsrchr: New file.
70351         * lib/mbsrchr.c: New file.
70352         * lib/string_.h (strrchr): Add a conditional link warning.
70353         (mbsrchr): New declaration.
70354         * m4/mbsrchr.m4: New file.
70355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70356         GNULIB_MBSRCHR.
70357         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70358         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70359
70360 2007-02-04  Bruno Haible  <bruno@clisp.org>
70361
70362         New module mbschr.
70363         * modules/mbschr: New file.
70364         * lib/mbschr.c: New file.
70365         * lib/string_.h (strchr): Add a conditional link warning.
70366         (mbschr): New declaration.
70367         * m4/mbschr.m4: New file.
70368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70369         GNULIB_MBSCHR.
70370         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70371         * MODULES.html.sh (Internationalization functions): Add mbschr.
70372
70373 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70376
70377         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70378
70379 2007-02-04  Bruno Haible  <bruno@clisp.org>
70380
70381         New module description section 'configure.ac-early'.
70382         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70383         (func_get_autoconf_early_snippet): New function.
70384         (func_import, func_create_testdir): Use it. Remove special cases for
70385         modules 'extensions' and 'lock'.
70386         * modules/extensions (configure.ac-early): Require
70387         gl_USE_SYSTEM_EXTENSIONS.
70388         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70389
70390 2007-02-04  Bruno Haible  <bruno@clisp.org>
70391
70392         Make use of gcj-4.3's -fsource and -ftarget option.
70393         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70394         and if so try the options -fsource and -ftarget.
70395         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70396         source_version, ftarget_option, target_version arguments.
70397         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70398         (is_envjavac_oldgcj_14_14_usable): Renamed from
70399         is_envjavac_gcj_14_14_usable.
70400         (is_envjavac_oldgcj_14_13_usable): Renamed from
70401         is_envjavac_gcj_14_13_usable.
70402         (is_gcj_present): Update.
70403         (is_gcj_43, is_gcj43_usable): New functions.
70404         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70405         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70406         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70407         try the options -fsource and -ftarget.
70408
70409 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70412         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70413         larger value.
70414
70415 2007-02-03  Jim Meyering  <jim@meyering.net>
70416
70417         Give tools a better chance to allocate space for very large buffers.
70418         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70419
70420         Make pwd and readlink work also when run with an unreadable parent dir
70421         on systems with openat support.
70422         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70423         provided getcwd function, even when we have openat support.
70424         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70425
70426 2007-02-02  Bruno Haible  <bruno@clisp.org>
70427
70428         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70429         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70430         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70431         portability problems if one of these functions is only used on specific
70432         platforms.
70433         Reported by Paul Eggert.
70434
70435 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70438         is causing more trouble than it's curing.
70439         * lib/regex_internal.h (__mempcpy): Remove.
70440         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70441         (and make the code a tad smaller to boot).
70442         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70443
70444 2007-02-02  Jim Meyering  <jim@meyering.net>
70445
70446         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70447         section, not in the Makefile.am: one.
70448
70449 2007-02-02  Eric Blake  <ebb9@byu.net>
70450
70451         * lib/strchrnul.c: Always include config.h first.
70452
70453         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70454         gnulib strstr is not necessary here.
70455
70456 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70457
70458         * m4/socklen.m4: Fix typo.
70459
70460 2007-02-02  Eric Blake  <ebb9@byu.net>
70461
70462         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70463         * modules/netinet_in (Makefile.am): Likewise.
70464
70465 2007-02-01  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/string_.h (GL_LINK_WARNING): New macro.
70468         (strcasecmp, strstr, strcasestr): If provided by the system,
70469         conditionally define as a macro that leads to a warning instead of to
70470         an error.
70471         (strncasecmp): Conditionally define as a macro that leads to a warning.
70472
70473 2007-02-01  Karl Berry  <karl@gnu.org>
70474
70475         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70476
70477 2007-02-01  Bruno Haible  <bruno@clisp.org>
70478
70479         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70480         renamings.
70481
70482 2007-02-01  Eric Blake  <ebb9@byu.net>
70483
70484         * modules/regex (Depends-on): Revert dependence on mempcpy.
70485         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70486         module's definition of mempcpy.
70487         Reported by Paul Eggert.
70488
70489 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70492         the symbol XYZ before redefining it.  This fixes a problem with
70493         programs that don't use XYZ, when compiled on systems that define
70494         XYZ to something else.
70495
70496 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70499         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70500         writeable to group or other and (2) is intended to have a special
70501         mode bit that is set or cleared.  In such a case, the directory
70502         should be neither group- nor other-writeable until the special
70503         mode bits are right.
70504
70505 2007-01-31  Eric Blake  <ebb9@byu.net>
70506
70507         * modules/mountlist (Depends-on): Add strstr.
70508
70509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70510         bug.
70511         * modules/string (Makefile.am): Remove redundant replacement.
70512         * modules/regex (Depends-on): Add mempcpy.
70513
70514 2007-01-31  Bruno Haible  <bruno@clisp.org>
70515
70516         New module description field 'Link'.
70517         * gnulib-tool (func_usage): Document --extract-link-directive.
70518         (sed_extract_prog): Recognize 'Link' directive.
70519         (func_get_link_directive): New function.
70520         (func_import): Show summary of link directives.
70521         Handle --extract-link-directive option.
70522         * modules/acl (Link): New section.
70523         * modules/clock-time (Link): New section.
70524         * modules/euidaccess (Link): New section.
70525         * modules/gettext (Link): New section.
70526         * modules/iconv (Link): New section.
70527         * modules/lock (Link): New section.
70528         * modules/nanosleep (Link): New section.
70529         * modules/readline (Link): New section.
70530
70531 2007-01-27  Bruno Haible  <bruno@clisp.org>
70532
70533         Enforce the use of gnulib modules for unportable <string.h> functions.
70534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70535         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70536         (gl_HEADER_STRING_H_BODY): Require it.
70537         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70538         the symbol XYZ to one that gives a link error.
70539         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70540         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70541         * modules/mempcpy (configure.ac): Likewise.
70542         * modules/memrchr (configure.ac): Likewise.
70543         * modules/stpcpy (configure.ac): Likewise.
70544         * modules/stpncpy (configure.ac): Likewise.
70545         * modules/strcase (configure.ac): Likewise.
70546         * modules/strcasestr (configure.ac): Likewise.
70547         * modules/strchrnul (configure.ac): Likewise.
70548         * modules/strdup (configure.ac): Likewise.
70549         * modules/strndup (configure.ac): Likewise.
70550         * modules/strnlen (configure.ac): Likewise.
70551         * modules/strpbrk (configure.ac): Likewise.
70552         * modules/strsep (configure.ac): Likewise.
70553         * modules/strstr (configure.ac): Likewise.
70554         * modules/strtok_r (configure.ac): Likewise.
70555
70556 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70557
70558         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70559
70560 2007-01-30  Jim Meyering  <jim@meyering.net>
70561
70562         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70563
70564 2007-01-29  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70567         * lib/execute.c: Likewise.
70568         * lib/pipe.c: Likewise.
70569         * lib/printf-args.h: Likewise.
70570         * lib/printf-args.c: Likewise.
70571         * lib/printf-parse.c: Likewise.
70572         * lib/vasnprintf.c: Likewise.
70573
70574 2007-01-29  Eric Blake  <ebb9@byu.net>
70575
70576         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70577         declaration.
70578
70579 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * lib/strptime.h (strptime): Use 'restrict' for args where
70582         POSIX requires this.
70583         * lib/strptime.c (strptime): Likewise.
70584         Change license notice from LGPL to GPL, since gnulib-tool will
70585         change this as needed.
70586         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70587         defined.
70588         Include "strptime.h" first, to check interface.
70589         Do not #undef _LIBC and _NL_CURRENT.
70590         Do not include <stdlib.h>; no longer needed.
70591         Include "time_r.h" and declare ptime_locale_status
70592         only if _LIBC is not defined.
70593         (__P): Remove unused macro.
70594         (match_string): Bring back glibc version, but use it only if _LIBC
70595         is defined.
70596         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70597         Remove unnecessary assertion and abort() call.
70598         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70599         * m4/strptime.m4: Fix serial number comment.
70600         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70601         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70602         (Depends-on): Add time_r.
70603
70604 2007-01-29  Bruno Haible  <bruno@clisp.org>
70605
70606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70607         strptime.
70608         * modules/strptime (Depends-on): Add stdbool.
70609         * lib/strptime.h: Include <time.h> always. Add comments.
70610
70611 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70612
70613         * modules/strptime: New file.
70614         * lib/strptime.h: New file.
70615         * lib/strptime.c: New file.
70616         * m4/strptime.m4: New file.
70617
70618 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         * MODULES.html.sh: New module mpsort.
70621         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70622
70623         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70624         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70626         All uses changed.
70627         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70628         All uses changed.
70629         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70630         to _Restrict_.
70631         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70632         the parameter matches the prototype.
70633
70634 2007-01-28  Jim Meyering  <jim@meyering.net>
70635
70636         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70637         sys/time.h here, reverting that part of the previous patch:
70638         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70639
70640 2007-01-28  Bruno Haible  <bruno@clisp.org>
70641
70642         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70643         value of $(SYS_TIME_H).
70644         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70645         remove it conditionally, too. [added by Jim Meyering]
70646         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70648         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70649         GETTIMEOFDAY_REPLACEMENT to 1.
70650
70651 2007-01-28  Bruno Haible  <bruno@clisp.org>
70652
70653         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70654         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70656         Set UNISTD_H instead of UNISTD_H2.
70657         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70658
70659 2007-01-28  Bruno Haible  <bruno@clisp.org>
70660
70661         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70662         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70663
70664 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70665
70666         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70667         (func_create_testdir): Ensure C locale for `grep' and `tr'
70668         character ranges.
70669         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70670         ACLOCAL_AMFLAGS parsing state machine.
70671
70672 2007-01-27  Bruno Haible  <bruno@clisp.org>
70673
70674         * modules/unistr/base: Update.
70675
70676 2007-01-27  Bruno Haible  <bruno@clisp.org>
70677
70678         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70679         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70680         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70681         modules/unistr/u32-mbtouc.
70682         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70683         * lib/unistr.h: Update.
70684         * lib/linebreak.c: Update.
70685         * modules/unistr/u32-mbtouc: Renamed from
70686         modules/unistr/u32-mbtouc-safe.
70687         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70688         * lib/unistr.h: Update.
70689         * lib/unistr/u32-to-u8.c: Update.
70690         * lib/unistr/u32-to-u16.c: Update.
70691
70692 2007-01-27  Bruno Haible  <bruno@clisp.org>
70693
70694         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70695         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70696         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70697         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70698         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70699         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70700         modules/unistr/u16-mbtouc.
70701         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70702         * lib/unistr.h: Update.
70703         * lib/linebreak.c: Update.
70704         * modules/linebreak: Update.
70705         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70706         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70707         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70708         * modules/unistr/u16-mbtouc: Renamed from
70709         modules/unistr/u16-mbtouc-safe.
70710         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70711         * lib/unistr.h: Update.
70712         * lib/unistr/u16-to-u8.c: Update.
70713         * modules/unistr/u16-to-u8: Update.
70714         * lib/unistr/u16-to-u32.c: Update.
70715         * modules/unistr/u16-to-u32: Update.
70716
70717 2007-01-27  Bruno Haible  <bruno@clisp.org>
70718
70719         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70720         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70721         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70722         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70723         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70724         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70725         modules/unistr/u8-mbtouc.
70726         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70727         * lib/unistr.h: Update.
70728         * lib/striconveh.c: Update.
70729         * modules/striconveh: Update.
70730         * lib/linebreak.c: Update.
70731         * modules/linebreak: Update.
70732         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70733         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70734         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70735         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70736         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70737         * lib/unistr.h: Update.
70738         * lib/striconveh.c: Update.
70739         * modules/striconveh: Update.
70740         * lib/unistr/u8-to-u16.c: Update.
70741         * modules/unistr/u8-to-u16: Update.
70742         * lib/unistr/u8-to-u32.c: Update.
70743         * modules/unistr/u8-to-u32: Update.
70744
70745 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70746
70747         Sync from Libtool.
70748         * lib/argz.c: Do not include strings.h nor memory.h, include
70749         string.h unconditionally.  Patch by Simon Josefsson.
70750
70751 2007-01-27  Bruno Haible  <bruno@clisp.org>
70752
70753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70754         from gl_HEADER_STRING_H_BODY.
70755         (gl_HEADER_STRING_H_BODY): Require it.
70756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70757         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70759         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70761         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70763         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70764         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70767         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70768         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70769         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70771
70772 2007-01-27  Bruno Haible  <bruno@clisp.org>
70773
70774         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70775         check_PROGRAMS into noinst_PROGRAMS.
70776         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70777         check_PROGRAMS in this case.
70778         (func_import): Set for_test to false.
70779         (func_create_testdir): Set for_test to true.
70780
70781 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70782             Bruno Haible  <bruno@clisp.org>
70783
70784         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70785         (Depends-on): Add string.
70786         (Includes): Use <string.h> instead of strcasestr.h.
70787         * modules/string (Makefile.am): Also substitute the value of
70788         REPLACE_STRCASESTR.
70789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70790         assume strcasestr is declared in <string.h> not <strings.h>. Also
70791         set REPLACE_STRCASESTR.
70792         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70793         REPLACE_STRCASESTR.
70794         * lib/strcasestr.h: Remove file.
70795         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70796         * lib/string_.h (strcasestr): New declaration.
70797
70798 2007-01-27  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/string_.h: Use 'extern'.
70801
70802 2007-01-27  Jim Meyering  <jim@meyering.net>
70803
70804         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70805         of set-but-not-used local, "q".
70806
70807         * lib/mempcpy.c: Include <config.h> before <string.h>.
70808         This fixes a compilation error on HP-UX, due to the system's
70809         "restrict"-using mempcpy prototype.
70810
70811 2007-01-26  Bruno Haible  <bruno@clisp.org>
70812
70813         Small optimization.
70814         * lib/javacomp.c: Include c-strstr.h.
70815          (is_envjavac_gcj): Use c_strstr instead of strstr.
70816         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70817
70818 2007-01-26  Bruno Haible  <bruno@clisp.org>
70819
70820         * MODULES.html.sh (Unicode string functions): Add the new modules.
70821
70822         * modules/uniconv/u32-strconv-to-locale: New file.
70823         * lib/uniconv/u32-strconv-to-locale.c: New file.
70824
70825         * modules/uniconv/u16-strconv-to-locale: New file.
70826         * lib/uniconv/u16-strconv-to-locale.c: New file.
70827
70828         * modules/uniconv/u8-strconv-to-locale: New file.
70829         * lib/uniconv/u8-strconv-to-locale.c: New file.
70830
70831         * modules/uniconv/u32-strconv-from-locale: New file.
70832         * lib/uniconv/u32-strconv-from-locale.c: New file.
70833
70834         * modules/uniconv/u16-strconv-from-locale: New file.
70835         * lib/uniconv/u16-strconv-from-locale.c: New file.
70836
70837         * modules/uniconv/u8-strconv-from-locale: New file.
70838         * lib/uniconv/u8-strconv-from-locale.c: New file.
70839
70840         * modules/uniconv/u32-strconv-to-enc: New file.
70841         * lib/uniconv/u32-strconv-to-enc.c: New file.
70842         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70843         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70844
70845         * modules/uniconv/u16-strconv-to-enc: New file.
70846         * lib/uniconv/u16-strconv-to-enc.c: New file.
70847         * lib/uniconv/u-strconv-to-enc.h: New file.
70848         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70849         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70850
70851         * modules/uniconv/u8-strconv-to-enc: New file.
70852         * lib/uniconv/u8-strconv-to-enc.c: New file.
70853         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70854         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70855
70856         * modules/uniconv/u32-strconv-from-enc: New file.
70857         * lib/uniconv/u32-strconv-from-enc.c: New file.
70858         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70859         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70860
70861         * modules/uniconv/u16-strconv-from-enc: New file.
70862         * lib/uniconv/u16-strconv-from-enc.c: New file.
70863         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70864         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70865
70866         * modules/uniconv/u8-strconv-from-enc: New file.
70867         * lib/uniconv/u8-strconv-from-enc.c: New file.
70868         * lib/uniconv/u-strconv-from-enc.h: New file.
70869         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70870         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70871
70872         * modules/uniconv/u32-conv-from-enc: New file.
70873         * lib/uniconv/u32-conv-from-enc.c: New file.
70874         * modules/uniconv/u32-conv-from-enc-tests: New file.
70875         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70876
70877         * modules/uniconv/u16-conv-from-enc: New file.
70878         * lib/uniconv/u16-conv-from-enc.c: New file.
70879         * lib/uniconv/u-conv-from-enc.h: New file.
70880         * modules/uniconv/u16-conv-from-enc-tests: New file.
70881         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70882
70883         * modules/uniconv/u8-conv-from-enc: New file.
70884         * lib/uniconv/u8-conv-from-enc.c: New file.
70885         * modules/uniconv/u8-conv-from-enc-tests: New file.
70886         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70887
70888         * modules/uniconv/base: New file.
70889         * lib/uniconv.h: New file.
70890
70891 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * doc/gnulib-tool.texi (Initial import): Update to match current
70894         behavior with strdup module.
70895         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70896         * lib/memmem.h: Remove; all uses removed.  This is now done
70897         by <string.h>.
70898         * lib/mempcpy.h: Likewise.
70899         * lib/memrchr.h: Likewise.
70900         * lib/stpcpy.h: Likewise.
70901         * lib/stpncpy.h: Likewise.
70902         * lib/strcase.h: Likewise.
70903         * lib/strchrnul.h: Likewise.
70904         * lib/strdup.h: Likewise.
70905         * lib/strndup.h: Likewise.
70906         * lib/strnlen.h: Likewise.
70907         * lib/strpbrk.h: Likewise.
70908         * lib/strsep.h: Likewise.
70909         * lib/strstr.h: Likewise.
70910         * lib/strtok_r.h: Likewise.
70911         * lib/string_.h: New file.
70912         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70913         Rely on <string.h> instead.
70914         * lib/canon-host.c: Likewise.
70915         * lib/chdir-long.c: Likewise.
70916         * lib/concatpath.c: Likewise.
70917         * lib/exclude.c: Likewise.
70918         * lib/fchdir.c: Likewise.
70919         * lib/getaddrinfo.c: Likewise.
70920         * lib/getcwd.c: Likewise.
70921         * lib/getsubopt.c: Likewise.
70922         * lib/glob.c: Likewise.
70923         * lib/hard-locale.c: Likewise.
70924         * lib/iconvme.c: Likewise.
70925         * lib/javacomp.c: Likewise.
70926         * lib/mempcpy.c: Likewise.
70927         * lib/memrchr.c: Likewise.
70928         * lib/regex_internal.h: Likewise.
70929         * lib/stpncpy.c: Likewise.
70930         * lib/strcasecmp.c: Likewise.
70931         * lib/strchrnul.c: Likewise.
70932         * lib/strdup.c: Likewise.
70933         * lib/striconv.c: Likewise.
70934         * lib/striconveh.c: Likewise.
70935         * lib/striconveha.c: Likewise.
70936         * lib/strncasecmp.c: Likewise.
70937         * lib/strndup.c: Likewise.
70938         * lib/strnlen.c: Likewise.
70939         * lib/strsep.c: Likewise.
70940         * lib/strstr.c: Likewise.
70941         * lib/strtok_r.c: Likewise.
70942         * lib/userspec.c: Likewise.
70943         * lib/w32spawn.h: Likewise.
70944         * lib/xstrndup.c: Likewise.
70945         * lib/mountlist.c (strstr): Remove decl.
70946         * m4/string_h.m4: New file.
70947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70950         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70951         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70952         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70953         Set REPLACE_STRCASECMP if necessary.
70954         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70955         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70956         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70957         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70958         HAVE_DECL_STRDUP if necessary.
70959         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70960         since gl_FUNC_STRNDUP does that now.
70961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70962         Check for decl here...
70963         (gl_PREREQ_STRNLEN): ... not here.
70964         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70965         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70966         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70968         necessary.
70969         * modules/string: New file.
70970         * modules/memmem (Files): Remove special-purpose include file.
70971         (Depends-on): Add string.
70972         (Include): Include <string.h>, not the removed file.
70973         * modules/mempcpy: Likewise.
70974         * modules/memrchr: Likewise.
70975         * modules/stpcpy: Likewise.
70976         * modules/stpncpy: Likewise.
70977         * modules/strcase: Likewise.
70978         * modules/strchrnul: Likewise.
70979         * modules/strdup: Likewise.
70980         * modules/strndup: Likewise.
70981         * modules/strnlen: Likewise.
70982         * modules/strpbrk: Likewise.
70983         * modules/strsep: Likewise.
70984         * modules/strstr: Likewise.
70985         * modules/strtok_r: Likewise.
70986         * tests/test-dirname.c: Don't include "strdup.h", since
70987         <string.h> now suffices.
70988         * tests/test-memmem.c: Don't include "memmem.h", since
70989         <string.h> now suffices.
70990
70991 2007-01-25  Bruno Haible  <bruno@clisp.org>
70992
70993         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70994         *resultp is 0.
70995
70996         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70997         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70998         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70999         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71000
71001         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71002         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71003         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71004         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71005         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71006         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71007
71008 2007-01-24  Bruno Haible  <bruno@clisp.org>
71009
71010         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71012         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71013         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71014         gl_FUNC_FTS_CORE.
71015         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71016         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71018         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71019         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71020         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71021         gl_FUNC_FCHOWNAT.
71022         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71023         gl_FUNC_STRFTIME.
71024         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71025         Reported by Ralf Wildenhues.
71026
71027 2007-01-24  Bruno Haible  <bruno@clisp.org>
71028
71029         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71030         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71031         gl_GETADDRINFO.
71032         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71033         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71034         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71035
71036 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71039         Don't use 'exit'; just return from 'main'.
71040         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71041
71042         * lib/fnmatch_.h: Readjust white space and comments to match
71043         glibc, to avoid spurious diffs.
71044
71045 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71048         2004-12-01 change by Jakub Jelinek, since this code won't compile
71049         if !LIBC.  Problem reported by Bob Proulx.
71050
71051 2007-01-23  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/striconveh.c: Include c-strcaseeq.h.
71054         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71055         * modules/striconveh (Depends-on): Add c-strcaseeq.
71056
71057 2007-01-23  Bruno Haible  <bruno@clisp.org>
71058
71059         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71060
71061         * modules/c-strcaseeq: New file.
71062         * lib/c-strcaseeq.h: New file.
71063
71064         * modules/streq: New file.
71065         * lib/streq.h: New file.
71066
71067 2007-01-23  Bruno Haible  <bruno@clisp.org>
71068
71069         * modules/striconveha-tests: New file.
71070         * tests/test-striconveha.c: New file.
71071
71072         * lib/striconveha.h: Include <stdbool.h>.
71073         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71074         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71075         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71076         (mem_iconveha): New function.
71077         (str_iconveha_notranslit): Renamed from str_iconveha.
71078         (str_iconveha): New function.
71079         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71080         c-strcase.
71081
71082 2007-01-23  Bruno Haible  <bruno@clisp.org>
71083
71084         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71085         encodings without forgiving before trying any encoding with handler.
71086         (str_iconveha): Try all encodings without forgiving before trying any
71087         encoding with handler.
71088
71089 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         Import the following changes from libc.
71092
71093         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71094
71095         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71096
71097         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71098
71099         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71100         normal_bracket label.
71101
71102         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71103
71104         [BZ #361]
71105         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71106         to normal_bracket after fetching the next character.
71107
71108 2007-01-22  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71111         argument.
71112         * lib/striconveh.c (iconv_carefully_1): New function.
71113         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71114         argument.
71115         (str_cd_iconveh): Update.
71116         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71117         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71118         * tests/test-striconveh.c (MAGIC): New macro.
71119         (new_offsets): New function.
71120         (main): Test call with and without offsets.
71121
71122 2007-01-22  Bruno Haible  <bruno@clisp.org>
71123
71124         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71125         * modules/sys_select (Makefile.am): Likewise.
71126         * modules/sys_socket (Makefile.am): Likewise.
71127         * modules/sys_time (Makefile.am): Likewise.
71128
71129 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * modules/gettimeofday (License): Change from GPL to LGPL, since
71132         gettimeofday is a library function.
71133
71134 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71135
71136         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71137
71138 2007-01-21  Bruno Haible  <bruno@clisp.org>
71139
71140         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71141
71142 2007-01-21  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/striconveha: New file.
71145         * lib/striconveha.h: New file.
71146         * lib/striconveha.c: New file.
71147         * MODULES.html.sh (Internationalization functions): Add striconveha.
71148         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71149         string.
71150         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71151
71152 2007-01-21  Bruno Haible  <bruno@clisp.org>
71153
71154         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71155         * lib/striconveh.c (str_iconveh): Likewise.
71156
71157 2007-01-21  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/striconveh.h (mem_iconveh): New declaration.
71160         * lib/striconveh.c (mem_iconveh): New function.
71161         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71162
71163 2007-01-21  Bruno Haible  <bruno@clisp.org>
71164
71165         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71166
71167         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71168         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71169         original result buffer.
71170         (str_cd_iconveh): Update.
71171         * tests/test-striconveh.c (main): Update.
71172
71173         * lib/striconv.h (mem_cd_iconv): Change specification.
71174         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71175         result buffer.
71176         (str_cd_iconv): Update.
71177         * tests/test-striconv.c (main): Update.
71178
71179 2007-01-21  Bruno Haible  <bruno@clisp.org>
71180
71181         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71182
71183 2007-01-20  Jim Meyering  <jim@meyering.net>
71184
71185         * lib/userspec.c (parse_with_separator): If a user or group string
71186         starts with "+", skip the corresponding name-to-ID look-up, since
71187         such a look-up must fail: user and group names may not include "+".
71188
71189 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71192         since we now assume the sys_time module.
71193         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71194         check for sys/time.h; no longer needed.
71195         * modules/poll (Depends-on): Depend on sys_time.
71196
71197 2007-01-18  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71200         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71201
71202         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71203         gettimeofday.
71204
71205         * tests/test-gettimeofday.c: Include <time.h>.
71206         (dummy): Remove variable.
71207
71208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71209         gl_HEADER_SYS_TIME_H.
71210         (gl_HEADER_SYS_TIME_H): New macro.
71211
71212         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71213         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71214         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71215         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71216         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71217         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71218         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71219         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71220         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71221         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71222         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71223
71224         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71225         last change; it caused a compilation error when cross-compiling to
71226         Cygwin.
71227
71228 2007-01-18  Jim Meyering  <jim@meyering.net>
71229
71230         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71231         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71232         than the race-prone "test -d sys || mkdir sys".
71233         (configure.ac): Use AC_PROG_MKDIR_P.
71234         * modules/sys_select: Likewise.
71235         * modules/sys_socket: Likewise.
71236         * modules/sys_time: Likewise.
71237
71238 2007-01-18  Eric Blake  <ebb9@byu.net>
71239
71240         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71241         replace gettimeofday.
71242         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71243         name, to avoid infinite recursion.
71244
71245 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71248         module sys_time.
71249         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71250         assume timespec.h defines struct timeval.
71251         * lib/settime.c: Likewise.
71252         * lib/utimens.c: Likewise.
71253         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71254         since we now assume the gettimeofday module.
71255         * lib/tempname.c (__gen_tempname): Likewise.
71256         * lib/gettimeofday.h: Remove.
71257         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71258         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71259         Include <time.h>, for 'time()'.
71260         (localtime_buffer_addr): Also use this workaround if
71261         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71262         to simplify the uses.  All uses changed.
71263         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71264         that #undef is inside {}, and 'const' follows type name consistently.
71265         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71266         (gettimeofday): Do not use the maximum possible value for
71267         tv->tv_usec, since that might break usages other than ls.c.
71268         Instead, we'll leave ls.c alone.  This undoes today's patch
71269         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71270         we've never observed the problem but might as well keep the
71271         canary.
71272         * lib/nanosleep.c: Include timespec.h first, for interface check.
71273         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71274         now assume the sys_time module.
71275         * lib/tempname.c: Likewise.
71276         * lib/timespec.h: Likewise.
71277         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71278         needed.
71279         * lib/strftime.c: Likewise.
71280         * lib/timespec.h: Likewise.
71281         * lib/posixtm.c: Include posixtm.h first, for interface check.
71282         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71283         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71284         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71285         * lib/sys_time_.h: New file.
71286         * lib/timespec.h (struct timespec): Use long int, not long.
71287         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71288         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71289         Remove obsolescent call to AC_HEADER_TIME.
71290         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71292         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71293         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71294         Likewise.
71295         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71296         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71298         into the sys_time module.  Check for gettimeofday just once.
71299         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71300         for gettimeofday signature to just check the signature.  Merely
71301         compile it, since linking doesn't test signature.  Improve test for
71302         whether gettimeofday.o is actually needed.
71303         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71304         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71305         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71306         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71307         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71308         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71309         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71310         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71311         than worrying about sys/time.h.
71312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71313         Don't bother worrying about TIME_WITH_SYS_TIME.
71314         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71315         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71316         * m4/sys_time_h.m4: New file.
71317         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71318         Don't include sys/time.h.  Return from main rather than exiting.
71319         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71320         all uses changed.
71321         * modules/gethrxtime (Depends-on): Add sys_time.
71322         * modules/gettime (Depends-on): Likewise.
71323         * modules/gettimeofday (Depends-on): Likewise.
71324         * modules/nanosleep (Depends-on): Likewise.
71325         * modules/settime (Depends-on): Likewise.
71326         * modules/tempname (Depends-on): Likewise.
71327         * modules/utimens (Depends-on): Likewise.
71328         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71329         (Include): Change back to <sys/time.h>.
71330         (Maintainer): Add self.
71331         * modules/sys_time: New file.
71332         * modules/tempname (Depends-on): Add gettimeofday.
71333         * tests/test-gettimeofday.c: Include <sys/time.h>
71334         rather than gettimeofday.h.
71335
71336 2007-01-17  Bruno Haible  <bruno@clisp.org>
71337
71338         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71339         the license default to GPL.
71340         (func_create_testdir): Don't complain if a module is LGPL and its
71341         tests module depends on GPLed modules.
71342
71343 2007-01-17  Bruno Haible  <bruno@clisp.org>
71344
71345         * lib/gettimeofday.c (gettimeofday): Add code for the case
71346         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71347         maximum possible value for tv->tv_usec, rather than the minimum one.
71348
71349 2005-10-08  Martin Lambers  <marlam@marlam.de>
71350 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71351 2007-01-16  Bruno Haible  <bruno@clisp.org>
71352
71353         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71354         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71355         gl_FUNC_GETTIMEOFDAY.
71356         (Include): Add gettimeofday.h.
71357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71358         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71359         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71360         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71361         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71362         * lib/gettimeofday.h: New file.
71363         * lib/gettimeofday.c: Include <sys/timeb.h>.
71364         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71365         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71366         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71367         fall back on time().
71368
71369         * tests/test-gettimeofday.c: New file.
71370         * modules/gettimeofday-tests: New file.
71371
71372 2007-01-16  Eric Blake  <ebb9@byu.net>
71373
71374         * modules/fnmatch (Depends-on): Depend on wchar.
71375         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71376         * m4/fnmatch.m4: Likewise.
71377         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71378         * m4/mbchar.m4: Likewise.
71379         * modules/mbswidth (Depends-on): Depend on wchar.
71380         * lib/mbswidth.c: Assume <wchar.h>.
71381         * m4/mbswidth.m4: Likewise.
71382         * modules/quotearg (Depends-on): Depend on wchar.
71383         * lib/quotearg.c: Assume <wchar.h>.
71384         * m4/quotearg.m4: Likewise.
71385         * modules/regex (Depends-on): Depend on wchar.
71386         * lib/regex_internal.h: Assume <wchar.h>.
71387         * m4/regex.m4: Likewise.
71388         * modules/stdint (Depends-on): Depend on wchar.
71389         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71390         * m4/stdint.m4: Likewise.
71391         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71392         * modules/strftime (Depends-on): Depend on wchar.
71393         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71394         * modules/strtol (Depends-on): Depend on wchar.
71395         * lib/strtol.c: Assume <wchar.h>.
71396         * modules/wcwidth (Depends-on): Depend on wchar.
71397         * lib/wcwidth.h: Assume <wchar.h>.
71398         * m4/wcwidth.m4: Likewise.
71399
71400 2007-01-16  Bruno Haible  <bruno@clisp.org>
71401
71402         * modules/csharpexec-script: New, created from...
71403         * modules/csharpexec: ... this.
71404
71405 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71406
71407         * modules/javaexec-script: New, created from...
71408         * modules/javaexec: ... this.
71409
71410 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71411
71412         * modules/poll (Dependencies): Add sys_select.
71413
71414 2007-01-15  Jim Meyering  <jim@meyering.net>
71415
71416         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71417         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71418         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71419         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71420
71421 2007-01-15  Bruno Haible  <bruno@clisp.org>
71422
71423         * modules/striconveh: New file.
71424         * lib/striconveh.h: New file.
71425         * lib/striconveh.c: New file.
71426         * MODULES.html.sh (Internationalization functions): Add striconveh.
71427
71428         * modules/striconveh-tests: New file.
71429         * tests/test-striconveh.c: New file.
71430
71431 2007-01-15  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71434         not from GNU libiconv or GNU libc.
71435
71436 2007-01-15  Bruno Haible  <bruno@clisp.org>
71437
71438         * doc/gnulib-intro.texi (Copyright): Explain the different license
71439         terms for module descriptions, autoconf macros, tests, documentation.
71440
71441 2007-01-14  Bruno Haible  <bruno@clisp.org>
71442
71443         * modules/striconv-tests: New file.
71444         * tests/test-striconv.c: New file.
71445
71446 2007-01-14  Bruno Haible  <bruno@clisp.org>
71447
71448         * modules/iconv-tests: New file.
71449         * tests/test-iconv.c: New file.
71450
71451 2007-01-14  Bruno Haible  <bruno@clisp.org>
71452
71453         * gnulib-tool (func_get_license): For test modules, use the license of
71454         the main module.
71455
71456 2007-01-14  Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71459         if iconv is found to exist.
71460
71461 2007-01-14  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/c-ctype-tests: New file.
71464         * tests/test-c-ctype.c: New file.
71465
71466 2007-01-14  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/binary-io-tests: New file.
71469         * tests/test-binary-io.sh: New file.
71470         * tests/test-binary-io.c: New file.
71471
71472 2007-01-14  Bruno Haible  <bruno@clisp.org>
71473
71474         * modules/array-oset-tests: New file.
71475         * tests/test-array_oset.c: New file.
71476
71477 2007-01-14  Bruno Haible  <bruno@clisp.org>
71478
71479         * modules/array-list-tests: New file.
71480         * tests/test-array_list.c: New file.
71481
71482 2007-01-14  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71485         and make.
71486         Reported by Simon Josefsson in
71487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71488
71489 2007-01-14  Bruno Haible  <bruno@clisp.org>
71490
71491         * modules/allocsa-tests: New file.
71492         * tests/test-allocsa.c: New file.
71493
71494 2007-01-14  Bruno Haible  <bruno@clisp.org>
71495
71496         * modules/fchdir (Depends-on): Add absolute-header.
71497         * modules/unistd (Depends-on): Likewise.
71498
71499 2006-12-30  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/fchdir: New file.
71502         * modules/unistd (Files): Add lib/unistd_.h.
71503         (Makefile.am): Generate unistd.h from unistd_.h.
71504         * lib/fchdir.c: New file.
71505         * lib/dirent_.h: New file.
71506         * lib/unistd_.h: New file.
71507         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71508         * m4/fchdir.m4: New file.
71509         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71510         (gl_HEADER_UNISTD): Invoke it.
71511         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71512         function.
71513         * lib/backupfile.c (opendir, closedir): Undefine.
71514         * lib/chown.c (open, close): Undefine.
71515         * lib/clean-temp.c (open, close): Undefine.
71516         * lib/copy-file.c (open, close): Undefine.
71517         * lib/execute.c (open, close): Undefine.
71518         * lib/fsusage.c (open, close): Undefine.
71519         * lib/gc-gnulib.c (open, close): Undefine.
71520         * lib/getcwd.c (opendir, closedir): Undefine.
71521         * lib/glob.c (opendir, closedir): Undefine.
71522         * lib/javacomp.c (open, close): Undefine.
71523         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71524         * lib/openat-proc.c (open, close): Undefine.
71525         * lib/pagealign_alloc.c (open, close): Undefine.
71526         * lib/pipe.c (open, close): Undefine.
71527         * lib/progreloc.c (open, close): Undefine.
71528         * lib/savedir.c (opendir, closedir): Undefine.
71529         * lib/utime.c (open, close): Undefine.
71530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71531
71532 2007-01-10  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71535
71536 2007-01-12  Eric Blake  <ebb9@byu.net>
71537
71538         Provide a robust <wchar.h>.  Further simplifications are now
71539         possible in other modules, but not included here.
71540         * modules/wchar: New module.
71541         * m4/wchar.m4: New file.
71542         * lib/wchar_.h: Likewise.
71543         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71544         of the new module.
71545         * MODULES.html.sh (Extended multibyte and wide character utilities):
71546         New section.
71547
71548 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71551         to a reasonable default for memory allocation.
71552         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71553         file system that reports garbage st_size values for symlinks.
71554         Problem reported by Liyang Hu.
71555
71556 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71557
71558         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71559         Emacs .#* auto-save files).
71560
71561 2007-01-11  Bruno Haible  <bruno@clisp.org>
71562
71563         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71564         directory.
71565
71566 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         Use @...@ consistently in lib/wctype_.h.
71569         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71570         on it being set to 1 or 0.
71571         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71572         go back to AC_SUBSTing it.
71573         * modules/wctype (Makefile.am): Undo previous change.
71574
71575 2007-01-10  Eric Blake  <ebb9@byu.net>
71576
71577         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71578         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71579         * modules/wctype (Makefile.am): Likewise.
71580         Reported by Chris McGuire.
71581
71582 2007-01-10  Jim Meyering  <jim@meyering.net>
71583
71584         fts.c: a small readability/maintainability improvement
71585         * lib/fts.c (fts_read): Make this code slightly more readable and
71586         maintainable by hoisting the "sp->fts_cur = p" assignments to
71587         immediately follow the statements that set P.  Derived from
71588         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71589
71590 2007-01-10  Eric Blake  <ebb9@byu.net>
71591
71592         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71593         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71595         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71596         Reported by Chris McGuire.
71597
71598 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71599
71600         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71601         in sed script.
71602
71603 2007-01-09  Bruno Haible  <bruno@clisp.org>
71604
71605         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71606         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71607         variables.
71608         (func_module): Use them.
71609
71610 2007-01-09  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/unistr/base: New file.
71613         * lib/unistr.h: New file.
71614
71615         * modules/unistr/u8-to-u16: New file.
71616         * lib/unistr/u8-to-u16.c: New file.
71617
71618         * modules/unistr/u8-to-u32: New file.
71619         * lib/unistr/u8-to-u32.c: New file.
71620
71621         * modules/unistr/u16-to-u8: New file.
71622         * lib/unistr/u16-to-u8.c: New file.
71623
71624         * modules/unistr/u16-to-u32: New file.
71625         * lib/unistr/u16-to-u32.c: New file.
71626
71627         * modules/unistr/u32-to-u8: New file.
71628         * lib/unistr/u32-to-u8.c: New file.
71629
71630         * modules/unistr/u32-to-u16: New file.
71631         * lib/unistr/u32-to-u16.c: New file.
71632
71633         * modules/unistr/u8-check: New file.
71634         * modules/unistr/u16-check: New file.
71635         * modules/unistr/u32-check: New file.
71636         * lib/unistr/u8-check.c: New file.
71637         * lib/unistr/u16-check.c: New file.
71638         * lib/unistr/u32-check.c: New file.
71639
71640         * modules/unistr/u8-chr: New file.
71641         * modules/unistr/u16-chr: New file.
71642         * modules/unistr/u32-chr: New file.
71643         * lib/unistr/u8-chr.c: New file.
71644         * lib/unistr/u16-chr.c: New file.
71645         * lib/unistr/u32-chr.c: New file.
71646
71647         * modules/unistr/u8-cmp: New file.
71648         * modules/unistr/u16-cmp: New file.
71649         * modules/unistr/u32-cmp: New file.
71650         * lib/unistr/u8-cmp.c: New file.
71651         * lib/unistr/u16-cmp.c: New file.
71652         * lib/unistr/u32-cmp.c: New file.
71653
71654         * modules/unistr/u8-cpy: New file.
71655         * modules/unistr/u16-cpy: New file.
71656         * modules/unistr/u32-cpy: New file.
71657         * lib/unistr/u8-cpy.c: New file.
71658         * lib/unistr/u16-cpy.c: New file.
71659         * lib/unistr/u32-cpy.c: New file.
71660         * lib/unistr/u-cpy.h: New file.
71661
71662         * modules/unistr/u8-cpy-alloc: New file.
71663         * modules/unistr/u16-cpy-alloc: New file.
71664         * modules/unistr/u32-cpy-alloc: New file.
71665         * lib/unistr/u8-cpy-alloc.c: New file.
71666         * lib/unistr/u16-cpy-alloc.c: New file.
71667         * lib/unistr/u32-cpy-alloc.c: New file.
71668         * lib/unistr/u-cpy-alloc.h: New file.
71669
71670         * modules/unistr/u8-endswith: New file.
71671         * modules/unistr/u16-endswith: New file.
71672         * modules/unistr/u32-endswith: New file.
71673         * lib/unistr/u8-endswith.c: New file.
71674         * lib/unistr/u16-endswith.c: New file.
71675         * lib/unistr/u32-endswith.c: New file.
71676         * lib/unistr/u-endswith.h: New file.
71677
71678         * modules/unistr/u8-mblen: New file.
71679         * modules/unistr/u16-mblen: New file.
71680         * modules/unistr/u32-mblen: New file.
71681         * lib/unistr/u8-mblen.c: New file.
71682         * lib/unistr/u16-mblen.c: New file.
71683         * lib/unistr/u32-mblen.c: New file.
71684
71685         * modules/unistr/u8-mbtouc: New file.
71686         * modules/unistr/u16-mbtouc: New file.
71687         * modules/unistr/u32-mbtouc: New file.
71688         * lib/unistr/u8-mbtouc.c: New file.
71689         * lib/unistr/u16-mbtouc.c: New file.
71690         * lib/unistr/u32-mbtouc.c: New file.
71691
71692         * modules/unistr/u8-mbtouc-safe: New file.
71693         * modules/unistr/u16-mbtouc-safe: New file.
71694         * modules/unistr/u32-mbtouc-safe: New file.
71695         * lib/unistr/u8-mbtouc-safe.c: New file.
71696         * lib/unistr/u16-mbtouc-safe.c: New file.
71697         * lib/unistr/u32-mbtouc-safe.c: New file.
71698
71699         * modules/unistr/u8-move: New file.
71700         * modules/unistr/u16-move: New file.
71701         * modules/unistr/u32-move: New file.
71702         * lib/unistr/u8-move.c: New file.
71703         * lib/unistr/u16-move.c: New file.
71704         * lib/unistr/u32-move.c: New file.
71705         * lib/unistr/u-move.h: New file.
71706
71707         * modules/unistr/u8-next: New file.
71708         * modules/unistr/u16-next: New file.
71709         * modules/unistr/u32-next: New file.
71710         * lib/unistr/u8-next.c: New file.
71711         * lib/unistr/u16-next.c: New file.
71712         * lib/unistr/u32-next.c: New file.
71713
71714         * modules/unistr/u8-prev: New file.
71715         * modules/unistr/u16-prev: New file.
71716         * modules/unistr/u32-prev: New file.
71717         * lib/unistr/u8-prev.c: New file.
71718         * lib/unistr/u16-prev.c: New file.
71719         * lib/unistr/u32-prev.c: New file.
71720
71721         * modules/unistr/u8-set: New file.
71722         * modules/unistr/u16-set: New file.
71723         * modules/unistr/u32-set: New file.
71724         * lib/unistr/u8-set.c: New file.
71725         * lib/unistr/u16-set.c: New file.
71726         * lib/unistr/u32-set.c: New file.
71727         * lib/unistr/u-set.h: New file.
71728
71729         * modules/unistr/u8-startswith: New file.
71730         * modules/unistr/u16-startswith: New file.
71731         * modules/unistr/u32-startswith: New file.
71732         * lib/unistr/u8-startswith.c: New file.
71733         * lib/unistr/u16-startswith.c: New file.
71734         * lib/unistr/u32-startswith.c: New file.
71735         * lib/unistr/u-startswith.h: New file.
71736
71737         * modules/unistr/u8-stpcpy: New file.
71738         * modules/unistr/u16-stpcpy: New file.
71739         * modules/unistr/u32-stpcpy: New file.
71740         * lib/unistr/u8-stpcpy.c: New file.
71741         * lib/unistr/u16-stpcpy.c: New file.
71742         * lib/unistr/u32-stpcpy.c: New file.
71743         * lib/unistr/u-stpcpy.h: New file.
71744
71745         * modules/unistr/u8-stpncpy: New file.
71746         * modules/unistr/u16-stpncpy: New file.
71747         * modules/unistr/u32-stpncpy: New file.
71748         * lib/unistr/u8-stpncpy.c: New file.
71749         * lib/unistr/u16-stpncpy.c: New file.
71750         * lib/unistr/u32-stpncpy.c: New file.
71751         * lib/unistr/u-stpncpy.h: New file.
71752
71753         * modules/unistr/u8-strcat: New file.
71754         * modules/unistr/u16-strcat: New file.
71755         * modules/unistr/u32-strcat: New file.
71756         * lib/unistr/u8-strcat.c: New file.
71757         * lib/unistr/u16-strcat.c: New file.
71758         * lib/unistr/u32-strcat.c: New file.
71759         * lib/unistr/u-strcat.h: New file.
71760
71761         * modules/unistr/u8-strchr: New file.
71762         * modules/unistr/u16-strchr: New file.
71763         * modules/unistr/u32-strchr: New file.
71764         * lib/unistr/u8-strchr.c: New file.
71765         * lib/unistr/u16-strchr.c: New file.
71766         * lib/unistr/u32-strchr.c: New file.
71767
71768         * modules/unistr/u8-strcmp: New file.
71769         * modules/unistr/u16-strcmp: New file.
71770         * modules/unistr/u32-strcmp: New file.
71771         * lib/unistr/u8-strcmp.c: New file.
71772         * lib/unistr/u16-strcmp.c: New file.
71773         * lib/unistr/u32-strcmp.c: New file.
71774
71775         * modules/unistr/u8-strcpy: New file.
71776         * modules/unistr/u16-strcpy: New file.
71777         * modules/unistr/u32-strcpy: New file.
71778         * lib/unistr/u8-strcpy.c: New file.
71779         * lib/unistr/u16-strcpy.c: New file.
71780         * lib/unistr/u32-strcpy.c: New file.
71781         * lib/unistr/u-strcpy.h: New file.
71782
71783         * modules/unistr/u8-strcspn: New file.
71784         * modules/unistr/u16-strcspn: New file.
71785         * modules/unistr/u32-strcspn: New file.
71786         * lib/unistr/u8-strcspn.c: New file.
71787         * lib/unistr/u16-strcspn.c: New file.
71788         * lib/unistr/u32-strcspn.c: New file.
71789         * lib/unistr/u-strcspn.h: New file.
71790
71791         * modules/unistr/u8-strdup: New file.
71792         * modules/unistr/u16-strdup: New file.
71793         * modules/unistr/u32-strdup: New file.
71794         * lib/unistr/u8-strdup.c: New file.
71795         * lib/unistr/u16-strdup.c: New file.
71796         * lib/unistr/u32-strdup.c: New file.
71797         * lib/unistr/u-strdup.h: New file.
71798
71799         * modules/unistr/u8-strlen: New file.
71800         * modules/unistr/u16-strlen: New file.
71801         * modules/unistr/u32-strlen: New file.
71802         * lib/unistr/u8-strlen.c: New file.
71803         * lib/unistr/u16-strlen.c: New file.
71804         * lib/unistr/u32-strlen.c: New file.
71805         * lib/unistr/u-strlen.h: New file.
71806
71807         * modules/unistr/u8-strmblen: New file.
71808         * modules/unistr/u16-strmblen: New file.
71809         * modules/unistr/u32-strmblen: New file.
71810         * lib/unistr/u8-strmblen.c: New file.
71811         * lib/unistr/u16-strmblen.c: New file.
71812         * lib/unistr/u32-strmblen.c: New file.
71813
71814         * modules/unistr/u8-strmbtouc: New file.
71815         * modules/unistr/u16-strmbtouc: New file.
71816         * modules/unistr/u32-strmbtouc: New file.
71817         * lib/unistr/u8-strmbtouc.c: New file.
71818         * lib/unistr/u16-strmbtouc.c: New file.
71819         * lib/unistr/u32-strmbtouc.c: New file.
71820
71821         * modules/unistr/u8-strncat: New file.
71822         * modules/unistr/u16-strncat: New file.
71823         * modules/unistr/u32-strncat: New file.
71824         * lib/unistr/u8-strncat.c: New file.
71825         * lib/unistr/u16-strncat.c: New file.
71826         * lib/unistr/u32-strncat.c: New file.
71827         * lib/unistr/u-strncat.h: New file.
71828
71829         * modules/unistr/u8-strncmp: New file.
71830         * modules/unistr/u16-strncmp: New file.
71831         * modules/unistr/u32-strncmp: New file.
71832         * lib/unistr/u8-strncmp.c: New file.
71833         * lib/unistr/u16-strncmp.c: New file.
71834         * lib/unistr/u32-strncmp.c: New file.
71835
71836         * modules/unistr/u8-strncpy: New file.
71837         * modules/unistr/u16-strncpy: New file.
71838         * modules/unistr/u32-strncpy: New file.
71839         * lib/unistr/u8-strncpy.c: New file.
71840         * lib/unistr/u16-strncpy.c: New file.
71841         * lib/unistr/u32-strncpy.c: New file.
71842         * lib/unistr/u-strncpy.h: New file.
71843
71844         * modules/unistr/u8-strnlen: New file.
71845         * modules/unistr/u16-strnlen: New file.
71846         * modules/unistr/u32-strnlen: New file.
71847         * lib/unistr/u8-strnlen.c: New file.
71848         * lib/unistr/u16-strnlen.c: New file.
71849         * lib/unistr/u32-strnlen.c: New file.
71850         * lib/unistr/u-strnlen.h: New file.
71851
71852         * modules/unistr/u8-strpbrk: New file.
71853         * modules/unistr/u16-strpbrk: New file.
71854         * modules/unistr/u32-strpbrk: New file.
71855         * lib/unistr/u8-strpbrk.c: New file.
71856         * lib/unistr/u16-strpbrk.c: New file.
71857         * lib/unistr/u32-strpbrk.c: New file.
71858         * lib/unistr/u-strpbrk.h: New file.
71859
71860         * modules/unistr/u8-strrchr: New file.
71861         * modules/unistr/u16-strrchr: New file.
71862         * modules/unistr/u32-strrchr: New file.
71863         * lib/unistr/u8-strrchr.c: New file.
71864         * lib/unistr/u16-strrchr.c: New file.
71865         * lib/unistr/u32-strrchr.c: New file.
71866
71867         * modules/unistr/u8-strspn: New file.
71868         * modules/unistr/u16-strspn: New file.
71869         * modules/unistr/u32-strspn: New file.
71870         * lib/unistr/u8-strspn.c: New file.
71871         * lib/unistr/u16-strspn.c: New file.
71872         * lib/unistr/u32-strspn.c: New file.
71873         * lib/unistr/u-strspn.h: New file.
71874
71875         * modules/unistr/u8-strstr: New file.
71876         * modules/unistr/u16-strstr: New file.
71877         * modules/unistr/u32-strstr: New file.
71878         * lib/unistr/u8-strstr.c: New file.
71879         * lib/unistr/u16-strstr.c: New file.
71880         * lib/unistr/u32-strstr.c: New file.
71881         * lib/unistr/u-strstr.h: New file.
71882
71883         * modules/unistr/u8-strtok: New file.
71884         * modules/unistr/u16-strtok: New file.
71885         * modules/unistr/u32-strtok: New file.
71886         * lib/unistr/u8-strtok.c: New file.
71887         * lib/unistr/u16-strtok.c: New file.
71888         * lib/unistr/u32-strtok.c: New file.
71889         * lib/unistr/u-strtok.h: New file.
71890
71891         * modules/unistr/u8-uctomb: New file.
71892         * modules/unistr/u16-uctomb: New file.
71893         * modules/unistr/u32-uctomb: New file.
71894         * lib/unistr/u8-uctomb.c: New file.
71895         * lib/unistr/u16-uctomb.c: New file.
71896         * lib/unistr/u32-uctomb.c: New file.
71897
71898         * MODULES.html.sh (Unicode string functions): Add the new modules.
71899
71900 2007-01-08  Bruno Haible  <bruno@clisp.org>
71901
71902         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71903         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71904         subdirectories.
71905
71906 2007-01-08  Karl Berry  <karl@gnu.org>
71907
71908         * doc/error.texi: mention that main() fns must set program_name
71909         when progname is used.
71910
71911 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71914         WCTYPE_H is empty, for the benefit of builds from non-distclean
71915         directories.  Problem reported by Eric Blake in
71916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71917
71918 2007-01-08  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71921         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71922         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71923         PROVIDE_CANONICALIZE_FILENAME_MODE.
71924         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71925
71926 2007-01-08  Bruno Haible  <bruno@clisp.org>
71927
71928         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71929         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71930         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71931         * lib/fts.c: Likewise.
71932         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71933
71934 2006-12-25  Bruno Haible  <bruno@clisp.org>
71935
71936         * modules/utf8-ucs4-safe: New file.
71937         * lib/utf8-ucs4-safe.h: New file.
71938         * lib/unistr/utf8-ucs4-safe.c: New file.
71939
71940         * modules/utf16-ucs4-safe: New file.
71941         * lib/utf16-ucs4-safe.h: New file.
71942         * lib/unistr/utf16-ucs4-safe.c: New file.
71943
71944         * MODULES.html.sh (Unicode string functions): Add the new modules.
71945
71946 2007-01-08  Bruno Haible  <bruno@clisp.org>
71947
71948         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71949         (Depends-on): Add unitypes.
71950         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71951         (u8_mbtouc_aux): Move out to separate file.
71952         (u8_mbtouc): Use ucs4_t, uint8_t types.
71953         * lib/unistr/utf8-ucs4.c: New file.
71954
71955         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71956         (Depends-on): Add unitypes.
71957         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71958         (u16_mbtouc_aux): Move out to separate file.
71959         (u16_mbtouc): Use ucs4_t, uint16_t types.
71960         * lib/unistr/utf16-ucs4.c: New file.
71961
71962         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71963         (Depends-on): Add unitypes.
71964         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71965         (u8_uctomb_aux): Move out to separate file.
71966         (u8_uctomb): Use ucs4_t, uint8_t types.
71967         * lib/unistr/ucs4-utf8.c: New file.
71968
71969         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71970         (Depends-on): Add unitypes.
71971         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71972         (u16_uctomb_aux): Move out to separate file.
71973         (u16_uctomb): Use ucs4_t, uint16_t types.
71974         * lib/unistr/ucs4-utf16.c: New file.
71975
71976 2006-12-25  Bruno Haible  <bruno@clisp.org>
71977
71978         * modules/unitypes: New file.
71979         * lib/unitypes.h: New file.
71980         * MODULES.html.sh (func_all_modules): New section "Unicode string
71981         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71982         this section. Add unitypes.
71983
71984 2007-01-08  Bruno Haible  <bruno@clisp.org>
71985
71986         Avoid variable names that conflict with those from libtool.
71987         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71988         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71989         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71990         library_names_spec to acl_library_names_spec, hardcode_* to
71991         acl_hardcode_*.
71992         Reported by Ralf Wildenhues.
71993
71994 2007-01-08  Bruno Haible  <bruno@clisp.org>
71995
71996         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71997         definition.
71998         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71999         definition.
72000         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72001         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72002         definition.
72003         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72004         definition.
72005         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72006         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72007         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72008         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72009         definition.
72010         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72011         definition.
72012         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72013         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72014         GC_USE_<algorithm>.
72015         * lib/gc-libgcrypt.c: Likewise.
72016         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72017         * modules/gc-arctwo (configure.ac): Likewise.
72018         * modules/gc-des (configure.ac): Likewise.
72019         * modules/gc-hmac-md5 (configure.ac): Likewise.
72020         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72021         * modules/gc-md2 (configure.ac): Likewise.
72022         * modules/gc-md4 (configure.ac): Likewise.
72023         * modules/gc-md5 (configure.ac): Likewise.
72024         * modules/gc-random (configure.ac): Likewise.
72025         * modules/gc-rijndael (configure.ac): Likewise.
72026         * modules/gc-sha1 (configure.ac): Likewise.
72027
72028 2007-01-08  Bruno Haible  <bruno@clisp.org>
72029
72030         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72031         macro definition.
72032         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72033         definition.
72034         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72035         definition.
72036         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72037         * modules/fcntl-safer (configure.ac): Likewise.
72038         * modules/fopen-safer (configure.ac): Likewise.
72039         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72040         GNULIB_FWRITEERROR macro definition.
72041
72042 2007-01-08  Bruno Haible  <bruno@clisp.org>
72043
72044         * m4/gnulib-common.m4: New file.
72045         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72046         (func_get_filelist): Add m4/gnulib-common.m4.
72047
72048 2007-01-08  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72051         command.
72052
72053 2007-01-08  Jim Meyering  <jim@meyering.net>
72054
72055         Use a more robust test for a "can't happen" condition.
72056         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72057         narrowed the st_size value.  Presuming the "can't happen" condition
72058         is true, that narrowing could conceivably convert an invalid st_size
72059         value into a valid one.  Instead, use a change based on Matthew
72060         Woehlke's original patch.
72061
72062         Slight readability improvement: use an assert-like macro
72063         in place of literal "abort ()" uses.
72064         * lib/fts.c (fts_assert): Define.
72065         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72066         Use this macro instead of a bare 'abort'.
72067
72068 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72071         simply work around them.
72072         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72073         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72074         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72075         declaring.
72076         Don't bother to define as macros, since the standard doesn't require it.
72077         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72078         longer worry about IRIX 5.3.
72079         (HAVE_WCTYPE_CTMP_BUG): Remove.
72080
72081 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72084         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72085         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72086         Problems reported by Georg Schwarz for IRIX 5.3.
72087
72088         * gnulib-tool (autoconf_minversion): Take the maximum version number
72089         found, not the minimum.  Problem reported by James Youngman.
72090
72091 2007-01-03  Karl Berry  <karl@gnu.org>
72092
72093         * doc/error.texi: new file, explaining interaction with progname.
72094         * doc/gnulib.texi: include it.  Update copyright.
72095
72096 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72097
72098         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72099         AC_CANONICAL_HOST, to improve autobuild outputs.
72100
72101 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72102             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72103
72104         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72105         sockets, server sockets, and other file descriptors.  Count errors
72106         to compute the return value.  Reorder the code a bit to be easier
72107         to follow.  Don't set event bits that were not requested (except
72108         POLLERR and POLLHUP).
72109
72110 2007-01-01  Bruno Haible  <bruno@clisp.org>
72111
72112         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72113
72114 2007-01-03  Jim Meyering  <jim@meyering.net>
72115
72116         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72117
72118 2007-01-02  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/settime (Include): Require timespec.h.
72121         * modules/nanosleep (Include): Likewise.
72122
72123 2007-01-01  Bruno Haible  <bruno@clisp.org>
72124
72125         * gnulib-tool (func_emit_copyright_notice): Bump year.
72126         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72127
72128 2007-01-01  Bruno Haible  <bruno@clisp.org>
72129
72130         Improve support for OpenBSD.
72131         * build-aux/config.rpath (libname_spec): Export.
72132         (library_names_spec): New variable. Export.
72133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72134         library_names_spec from the config.rpath output. Locate shared library
72135         through the name pattern in library_names_spec.
72136
72137 2007-01-01  Eric Blake  <ebb9@byu.net>
72138
72139         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72140
72141 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72144         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72145         assume the C locale, and avoid an "eval" that could cause trouble.
72146         Problem with SORT reported by Bob Proulx.
72147
72148         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72149         Define.  Trivial patch from Henning Nielsen Lund, originally
72150         sent to bug-grep@gnu.org today.
72151
72152 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72155         struct stat.  Problem reported by Henning Nielsen Lund.
72156         * lib/acl.c: Include acl.h first, to check interface.  Don't
72157         bother to include sys/types.h and sys/stat.h again.
72158
72159 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         Import the following change from libc; problem reported by
72162         Sven Verdoolaege.
72163
72164         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72165
72166         [BZ #1373]
72167         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72168
72169 2006-12-28  Jim Meyering  <jim@meyering.net>
72170
72171         * build-aux/announce-gen: Do not assume that the package
72172         builds any of tar.gz, tar.bz2, and .xdelta files.
72173         Suggestion from Simon Josefsson.
72174
72175 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72176
72177         * modules/announce-gen: New file.
72178
72179 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72182         handles its gotchas now.
72183         * lib/mbswidth.c: Likewise.
72184         * lib/wcwidth.h: Likewise.
72185         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72186         and iswcntrl; the wctype module does this stuff now.
72187         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72189         * modules/mbchar (Depends-on): Add wctype.
72190         * modules/mbswidth (Depends-on): Likewise.
72191         * modules/wcwidth (Depends-on): Likewise.
72192
72193 2006-12-27  Eric Blake  <ebb9@byu.net>
72194
72195         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72196         module uses more than what <wctype.h> is required to provide.
72197
72198 2006-12-26  Eric Blake  <ebb9@byu.net>
72199
72200         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72201
72202 2006-12-26  Eric Blake  <ebb9@byu.net>
72203
72204         * modules/absolute-header: New module.
72205         * modules/fcntl (Depends-on): Depend on it.
72206         * modules/inttypes (Depends-on): Likewise.
72207         * modules/stdint (Depends-on): Likewise.
72208         * modules/sys_stat (Depends-on): Likewise.
72209         * modules/wctype (Depends-on): Likewise.
72210         * MODULES.html.sh (Support for building libraries and
72211         executables): Document it.
72212
72213 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * gnulib-tool (SED): Remove, undoing previous change.
72216         The problem was that it broke coreutils on Solaris, because
72217         "sed --posix" leaked into a makefile.
72218         (sed): New alias, if 'alias' and GNU sed.
72219
72220 2006-12-24  Jim Meyering  <jim@meyering.net>
72221
72222         Work around an fchownat bug in glibc-2.4:
72223         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72224         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72225         in spite of the -P option.
72226         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72227         New macros.
72228         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72229         * modules/openat (Files): Add lib/fchownat.c.
72230         * lib/openat.c (fchownat): Don't define here.  Move to...
72231         * lib/fchownat.c: ...this new file.
72232
72233 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         Fix bug reported by Bruno Haible in
72236         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72237         where quotearg.c didn't compile on Mac OS X 10.2 because it
72238         lacks <wchar.h> and wint_t.
72239         * lib/wctype_.h (__wctype_wint_t): New type.
72240         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72241         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72242         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72243         Arg is now of type __wctype_wint_t, not wint_t.
72244         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72245         substitute HAVE_WINT_T.
72246         * modules/wctype (Files): Add m4/wint_t.m4.
72247         (wctype.h): Substitute HAVE_WINT_T.
72248
72249 2006-12-23  Bruno Haible  <bruno@clisp.org>
72250
72251         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72252
72253 2006-12-23  Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72256         S_ISLNK.
72257         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72258         mingw.
72259
72260 2006-12-22  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/copy-file.c: Include acl.h.
72263         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72264         Close the file descriptors only after being done with copy_acl.
72265         * modules/copy-file (Depends-on): Add acl.
72266
72267 2006-12-22  Bruno Haible  <bruno@clisp.org>
72268
72269         * gnulib-tool (SED): New variable.
72270         Use $SED instead of sed everywhere.
72271
72272 2006-12-22  Bruno Haible  <bruno@clisp.org>
72273
72274         * modules/no-c++: New file.
72275         * m4/no-c++.m4: New file.
72276         * MODULES.html.sh (Support for building libraries and executables):
72277         Add no-c++.
72278
72279 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72282         Include <limits.h>, and use its INT_MAX to rewrite the
72283         j loop so that it does not overflow 'int'.  Problem reported by
72284         Ralf Wildenhues in
72285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72286         Play it safe by shifting left by 1 rather than multiplying by 2,
72287         as GCC is less likely to optimize this away when the value
72288         is signed (when it assumes overflow leads to undefined behavior).
72289         Also, don't assume time_t uses two's complement.
72290
72291 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * MODULES.html.sh: New module wctype.
72294         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72295         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72296         <wctype.h>, since the new wctype module should fix this.
72297         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72298         the wctype module should arrange for it.
72299         * lib/regex_internal.h: Likewise.
72300         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72301         since the wctype module should handle this now.
72302         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72303         * modules/fnmatch (Depends-on): Add wctype.
72304         * modules/quotearg (Depends-on): Likewise.
72305         * modules/regex (Depends-on): Likewise.
72306
72307 2006-12-19  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72310         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72311
72312 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72313
72314         * modules/savewd (Depends-on): Fix dependency on fcntl.
72315
72316 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72319         conforms to C99, rather than relying on the user's environment
72320         setting of STDINT_H.
72321
72322 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72323         and Eric Blake  <ebb9@byu.net>
72324
72325         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72326         This is more consistent with the other defines here.
72327         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72328         Port to z/OS.  Problem reported by Paul Gilmartin.
72329         Change local vars to use gl_ prefix rather than ac_.
72330         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72331         with other defines.
72332         * modules/double-slash-root: New module.
72333         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72334         (Depends-on): Add double-slash-root.
72335         * MODULES.html.sh (File system functions): Mention new module.
72336
72337 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72340         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72341         This is for the benefit of gzip, which doesn't do i18n.
72342
72343 2006-12-12  Jim Meyering  <jim@meyering.net>
72344
72345         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72346         Reported by Andreas Schwab <schwab@suse.de>.
72347
72348 2006-12-12  Bruno Haible  <bruno@clisp.org>
72349
72350         Merge these changes.
72351         2006-09-05  Bruno Haible  <bruno@clisp.org>
72352         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72353         iconv_alloc succeeded.
72354         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72355         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72356         test for " && dest " at the end - dest is always != NULL there. Call
72357         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72358         with 2xNULL arguments, also to flush the state storage. Handle the
72359         IRIX iconv behaviour. Realloc the final result, to throw away unused
72360         memory.
72361
72362 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72365         and fchmodat unconditionally, since glibc 2.4 has them.
72366         Problem reported by Arkadiusz Miskiewicz.
72367
72368 2006-12-10  Bruno Haible  <bruno@clisp.org>
72369
72370         * gnulib-tool (func_import): Show the include files only for those
72371         modules that are copied and specified.
72372         Reported by Karl Berry.
72373
72374 2006-12-08  Jim Meyering  <jim@meyering.net>
72375
72376         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72377         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72378
72379         * build-aux/announce-gen: Add two new options, both optional:
72380         --bootstrap-tools=TOOL_LIST
72381               a comma-separated list of tools, e.g.,
72382               autoconf,automake,bison,gnulib
72383         --gnulib-snapshot-date=DATE
72384               if gnulib is in the bootstrap tool list,
72385               then report this as the snapshot date.
72386               If not specified, use the current date/time.
72387               If you specify a date here, be sure it's UTC.
72388
72389 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72390
72391         * tests/test-argp-2.sh: Fix test to match actual output.
72392         (func_compare): Fix sed script to be portable.
72393
72394 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72395
72396         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72397         workaround for this case.  It is not autoconfigured now; offhand
72398         it's hard to see how to autoconfigure it.
72399
72400 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72401
72402         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72403         a directory that is about to be chowned.  Such a directory's
72404         initial file permissions should permit the owner only and this
72405         should not be changed until after the chown, since the group and
72406         other bits would be incorrect if they granted permission before
72407         the chown.
72408
72409         Fix porting problem for iswctype reported by Georg Schwarz in:
72410         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72411         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72412         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72413         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72414         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72415
72416 2006-12-03  Jim Meyering  <jim@meyering.net>
72417
72418         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72419         p->fts_statp may not yet be defined.
72420         (fts_read): Instead, set it in the caller, once p->fts_statp is
72421         sure to be defined, and corresponds to a top-level directory.
72422         This bug made du -x fail.  Here's the coreutils test case:
72423         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72424         Reported by Mike Frysinger.
72425
72426 2006-12-01  Jim Meyering  <jim@meyering.net>
72427
72428         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72429         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72430         Reported by Simon Josefsson.
72431
72432 2006-11-30  Jim Meyering  <jim@meyering.net>
72433
72434         * m4/warning.m4: Use the all-permissive copyright notice
72435         recommended by RMS (rather than LGPL).
72436         * m4/vararrays.m4: Likewise.
72437         * m4/flexmember.m4: Likewise.
72438
72439 2006-11-29  Bruno Haible  <bruno@clisp.org>
72440
72441         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72442         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72443         using +=.
72444         Reported by Simon Josefsson <simon@josefsson.org>.
72445
72446 2006-11-28  James Youngman <jay@gnu.org>
72447
72448         * README: Advise users that they might find the bug-gnulib@gnu.org
72449         and autotools-announce@gnu.org mailing lists useful.
72450
72451 2006-11-28  Bruno Haible  <bruno@clisp.org>
72452
72453         * m4/ptrdiff_max.m4: Remove file.
72454
72455 2006-11-21  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72458         _AC_COMPUTE_INT.
72459         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72460         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72461         _AC_COMPUTE_INT.
72462         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72463         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72464         _AC_COMPUTE_INT.
72465         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72466
72467 2006-11-28  Jim Meyering  <jim@meyering.net>
72468
72469         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72470         warning from "gcc -Wshadow" about shadowing the builtin.
72471
72472 2006-11-27  Bruno Haible  <bruno@clisp.org>
72473
72474         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72475         _AC_COMPUTE_INT.
72476         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72477
72478 2006-11-27  Bruno Haible  <bruno@clisp.org>
72479             Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72482
72483 2006-11-26  Bruno Haible  <bruno@clisp.org>
72484
72485         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72486         noinst_LTLIBRARIES.
72487
72488 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72489             Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72492         if compiling with "gcc -ansi".
72493
72494 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72495
72496         Fix some incompatibilities with gcc -ansi -pedantic.
72497         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72498         if compiling pedantically with GCC, unless it's C99 or later.
72499         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72500         it mishandles gcc -ansi -pedantic as well.
72501         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72502         if gcc -pedantic.
72503         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72504         initializers for struct if -pedantic, unless it's C99 or later.
72505
72506 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72507
72508         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72509         Don't close an fd more than once. Identical atimes indicate
72510         success, not failure.
72511
72512 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72513
72514         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72515
72516 2006-11-23  Jim Meyering  <jim@meyering.net>
72517
72518         * build-aux/announce-gen: New file.  From coreutils.
72519
72520 2006-11-22  Jim Meyering  <jim@meyering.net>
72521
72522         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72523         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72524         (fts_read): Use a temporary to narrow the overused st_size member
72525         before using it in a switch statement.  Reported by Matthew Woehlke.
72526
72527         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72528         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72529
72530 2006-11-20  Bruno Haible  <bruno@clisp.org>
72531
72532         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72533         changequote instead of pairs of brackets.
72534         Reported by Andreas Schwab <schwab@suse.de>.
72535
72536 2006-11-21  Jim Meyering  <jim@meyering.net>
72537
72538         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72539         so as to remain compatible with older compilers.
72540         Patch from Michael Deutschmann.
72541
72542 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * MODULES.html.sh (File system functions): Add openat.
72545
72546         * lib/openat.h (rpl_fstatat): New macro, if
72547         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72548         (fstatat): Define to rpl_fstatat under the same conditions,
72549         unless COMPILING_FSTATAT.
72550         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72551         seems to have the bug.
72552         * lib/fstatat.c: New file.
72553         * modules/openat (Files): Add it.
72554
72555 2006-11-20  Bruno Haible  <bruno@clisp.org>
72556
72557         * Makefile: New file.
72558
72559 2006-11-20  Jim Meyering  <jim@meyering.net>
72560
72561         The beginnings of syntax-related checks for gnulib.
72562         * lib/Makefile: New file.
72563         * lib/t-idcache: New script.  Ensure that the two halves of
72564         idcache.c stay in sync.
72565
72566         * lib/idcache.c: Adjust comments in user- and group- portions to
72567         be more accurate, and to be consistent with one another.
72568
72569 2006-11-20  Jim Meyering  <jim@meyering.net>
72570
72571         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72572         continue using the flexible array member (thus, this module performs
72573         half as many malloc calls), with the addition that...
72574         (getgroup, getuser): Consistently record a non-match via an empty
72575         "name" string, and map an empty string match to a NULL return value.
72576         * modules/idcache (Depends-on): Re-add flexmember.
72577
72578         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72579         (getuidbyname, getgroup, getgidbyname): Likewise.
72580
72581         Use cleaner syntax: NULL rather than 0.
72582         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72583
72584 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72587         It mishandled the case where the group was missing.
72588         Problem reported by Greg Schafer.
72589         * modules/idcache: Likewise.
72590
72591 2006-11-18  Jim Meyering  <jim@meyering.net>
72592
72593         * check-module (%exempt_header): Add exception for some
72594         conditionally-included headers.
72595
72596         * modules/i-ring (Depends-on): Add verify.
72597         (License): Change to LGPL.
72598
72599 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72602         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72603         and inttostr.h.  Use snprintf rather than uinttostr, so that
72604         LGPLed code doesn't depend on GPLed.
72605
72606 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * modules/inline (License): Change from GPL to LGPL.
72609
72610 2006-11-17  Jim Meyering  <jim@meyering.net>
72611
72612         * modules/d-type (License): Switch to LGPL.
72613
72614 2006-11-15  Bruno Haible  <bruno@clisp.org>
72615
72616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72617
72618 2006-11-15  Eric Blake  <ebb9@byu.net>
72619
72620         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72621         the module dependency.
72622
72623 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72624             Bruno Haible  <bruno@clisp.org>
72625
72626         * gnulib-tool (func_create_testdir): Add license consistency check.
72627
72628 2006-11-15  Eric Blake  <ebb9@byu.net>
72629
72630         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72631         random "(cached)" in configure output.
72632
72633 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72634
72635         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72636         test for conforming inttypes.h is both announced and cached.
72637
72638         * MODULES.html.sh (seen_modules, seen_files): New variables.
72639         (func_module): Rewrite to use a few less gnulib-tool and sed
72640         invocations.  Avoid a couple of quadratic algorithms for ...
72641         (missed_modules, missed_files): ... these, with ...
72642         (func_append, func_tmpdir): ... these new functions, from
72643         gnulib-tool.  Analogously, install traps for cleanup.
72644
72645         * tests/test-gc.c (main): Remove unused variables.
72646         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72647
72648 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * modules/inttostr (License): Change to LGPL.
72651
72652 2006-11-14  Eric Blake  <ebb9@byu.net>
72653
72654         * modules/tempname (License): Change to LGPL.
72655
72656 2006-11-14  Eric Blake  <ebb9@byu.net>
72657
72658         * doc/functions.texi (Function Portability): *printf functions on
72659         Cygwin now understand all POSIX size specifiers.
72660
72661 2006-11-14  Bruno Haible  <bruno@clisp.org>
72662
72663         * modules/c-ctype (License): Change to LGPL.
72664
72665 2006-11-12  Bruno Haible  <bruno@clisp.org>
72666
72667         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72668         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72669         for GNOME libraries, for which the include files are installed in
72670         subdirectories of $prefix/include.
72671
72672 2006-11-12  Bruno Haible  <bruno@clisp.org>
72673
72674         * m4/lib-link.m4: Require at least autoconf-2.54.
72675         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72676         name to underscores for the --with option.
72677
72678 2006-11-13  Bruno Haible  <bruno@clisp.org>
72679
72680         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72681         the tests directory.
72682         Reported by Ralf Wildenhues.
72683
72684 2006-11-13  Bruno Haible  <bruno@clisp.org>
72685
72686         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72687         (func_emit_initmacro_end): Undo the override here.
72688         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72689         Works around the famous automake error in coreutils.
72690
72691 2006-11-13  Eric Blake  <ebb9@byu.net>
72692
72693         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72694         element, not its node.
72695
72696 2006-11-12  Bruno Haible  <bruno@clisp.org>
72697
72698         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72699         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72700
72701 2006-11-12  Bruno Haible  <bruno@clisp.org>
72702
72703         * gnulib-tool: New option --local-symlink.
72704         (func_usage): Document it.
72705         (lsymbolic): New variable.
72706         (func_import, func_create_testdir): If --symlink was not specified,
72707         test whether --local-symlink was specified and the file comes from
72708         the local_gnulib_dir.
72709
72710 2006-11-12  Bruno Haible  <bruno@clisp.org>
72711
72712         * gnulib-tool (func_ln): New function.
72713         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72714
72715 2006-11-12  Bruno Haible  <bruno@clisp.org>
72716
72717         Finish support for source files in subdirectories.
72718         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72719         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72720         AUTOMAKE_OPTIONS.
72721         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72722
72723 2006-11-12  Bruno Haible  <bruno@clisp.org>
72724
72725         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72726         EXTRA_lib_SOURCES augmentation.
72727         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72728
72729 2006-11-12  Jim Meyering  <jim@meyering.net>
72730
72731         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72732         file descriptors.  This also averts a failure on systems with
72733         native openat support when a traversed directory lacks "x" access.
72734         * lib/fts_.h: Include "i-ring.h"
72735         (struct FTS) [fts_fd_ring]: New member.
72736         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72737         (FCHDIR): Add parentheses.
72738         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72739         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72740         When descending, rather than simply closing the previous
72741         fts_cwd_fd value, push that file descriptor onto the ring.
72742         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72743         (fts_open): Initialize the new fd_ring member.
72744         (fts_close): Clear the ring.
72745         (fts_safe_changedir): When possible, use our new fd_ring to skip
72746         the diropen and fstat and dev/ino comparison that would normally
72747         accompany a virtual `chdir ("..")'.
72748
72749         * modules/fts (Depends-on): Add i-ring.
72750         * modules/i-ring: New module.
72751         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72752         * m4/i-ring.m4: New file.
72753
72754 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72755
72756         * gnulib-tool (func_create_testdir): Fix replacement of
72757         `build-aux' in configure.ac.  Run autotools in gltests
72758         subdirectory.
72759         (func_create_testdir, func_create_megatestdir, test): There is
72760         no need for '--force' in most autotool invocations in a new
72761         tree.  Actually fail the whole test if any of the tools, or the
72762         configure or make stages fail.
72763
72764         Sync from Automake.
72765         * build-aux/gnupload: Revert last change.  Add pointer to upload
72766         instructions of the GNU Maintenance Instructions.
72767         Suggestion by Karl Berry.
72768
72769 2006-11-10  Jim Meyering  <jim@meyering.net>
72770
72771         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72772
72773 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72774
72775         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72776         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72777         (bind_textdomain_codeset) [! ENABLE_NLS]:
72778         Evaluate all the arguments.  That way, callers get compatible behavior
72779         if the arguments have side effects.  Also, it avoids some GCC
72780         diagnostics in some cases; Joel E. Denny reported problems when Bison
72781         was configured with --enable-gcc-warnigs.
72782
72783 2006-11-10  Jim Meyering  <jim@meyering.net>
72784
72785         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72786         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72787         account.
72788
72789 2006-11-10  Jim Meyering  <jim@meyering.net>
72790
72791         * modules/inline: New file/module.
72792         * modules/xalloc (Files): Remove m4/inline.m4.
72793         (Depends-on): Add inline, instead.
72794         * modules/oset: Likewise.
72795         * modules/list: Likewise.
72796
72797 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72800         Problem reported by Matthew Woehlke.
72801
72802 2006-11-09  Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/tempname.c (gen_tempname): Remove variant that invokes
72805         __gen_tempname.
72806         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72807         __gen_tempname.
72808
72809 2006-11-08  Bruno Haible  <bruno@clisp.org>
72810
72811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72812         to 'yes' instead of 'cross-compiling'.
72813
72814 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * lib/quotearg.h (quotearg_free): New decl.
72817         * lib/quotearg.c (quotearg_free): New function.
72818         (slot0, nslots, slotvec0, slotvec):
72819         Now file-scope so that quotearg_free can get at them.
72820
72821 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72822
72823         Sync from Automake.
72824         * build-aux/gnupload: Add missing 'gnu' to example URL.
72825         Report by Karl Berry.
72826
72827 2006-11-08  Bruno Haible  <bruno@clisp.org>
72828
72829         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72830         Suggested by Paul Eggert.
72831
72832 2006-11-08  Jim Meyering  <jim@meyering.net>
72833
72834         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72835         It's already included if !_LIBC.
72836         (fts_safe_changedir): Add a comment.
72837
72838 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72841         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72842         Matthew Woehlke.
72843
72844         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72845         definitions up, to avoid colliding with change below.
72846         (static_inline) [HAVE_INLINE]: New macro.
72847         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72848         Provide extern decls when !HAVE_INLINE.  Do not define unless
72849         static_inline is defined, either by us or by xmalloc.c.  Use
72850         static_inline rather than static inline.
72851         (XCALLOC): Optimize sizeof(T) = 1 case.
72852         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72853
72854 2006-11-07  Bruno Haible  <bruno@clisp.org>
72855
72856         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72857         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72858         AC_C_INLINE.
72859         * modules/xalloc (Files): Add m4/inline.m4.
72860
72861 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72862
72863         * README: Fix typo.
72864         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72865         (Miscellanous Notes): ...from this.
72866
72867 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72868
72869         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72870         Mention that offsetof should be used instead of sizeof.
72871         From Bruno Haible.
72872
72873 2006-11-07  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72876
72877 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72880         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72881         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72882         (gl_tree_add_before, gl_tree_add_after):
72883         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72884         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72885         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72886         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72887         (gl_linked_add_after, gl_linked_add_at): Likewise.
72888         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72889         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72890         (gl_tree_add_before, gl_tree_add_after): Likewise.
72891         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72892         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72893         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72894
72895 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72896
72897         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72898
72899 2006-11-06  Bruno Haible  <bruno@clisp.org>
72900
72901         * m4/inline.m4: New file.
72902         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72903         * modules/list (Files): Add m4/inline.m4.
72904         * modules/oset (Files): Likewise.
72905
72906 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * lib/idcache.c: Include <stddef.h>, for offsetof.
72909         (struct userid.name): Change from char * to a flexible array member.
72910         All uses changed.
72911         * modules/idcache (Depends-on): Add flexmember.
72912
72913         * MODULES.html.sh (Core language properties): New module flexmember.
72914         * modules/flexmember, m4/flexmember.m4: New files.
72915
72916         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72917         inline functions that are identical with the old xnmalloc_inline,
72918         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72919         that we can avoid some unnecessary integer multiplications and
72920         divisions in the common case where the element size is known at
72921         compile time.
72922         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72923         needed.
72924         (xnboundedmalloc): Remove.
72925         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72926         arguments, for consistency with rest of this header.
72927         (xcharalloc): Rewrite using XNMALLOC.
72928         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72929         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72930         versions have been moved to lib/xalloc.h and renamed to be the
72931         non-*_inline versions.
72932         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72933         and xnrealloc functions, since those functions are now inline and
72934         now call us.
72935         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72936         renaming described above.
72937         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72938         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72939         captures the dependency in AC_C_INLINE.
72940
72941         New module canonicalize-lgpl, proposed by Charles Wilson in
72942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72943         with a few small changes afterwards.
72944         * MODULES.html.sh (File system functions): New module
72945         canonicalize-lgpl.
72946         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72947         and canonicalize_file_name.
72948         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72949         * modules/canonicalize-lgpl: New files.
72950
72951 2006-11-05  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (func_import, func_create_testdir): Create directories
72954         also for files in subdirectories of lib/.
72955
72956 2006-11-05  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72959         ANSI C compliant.
72960
72961 2006-11-03  Bruno Haible  <bruno@clisp.org>
72962
72963         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72964         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72965         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72966         (xnboundedmalloc): New inline function.
72967         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72968         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72969         xmalloc.
72970         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72971         xmalloc.
72972         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72973         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72974         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72975         xmalloc.
72976         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72977         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72978         xmalloc.
72979         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72980         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72981         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72982         xmalloc.
72983         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72984         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72985         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72986         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72987         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72988         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72989         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72990
72991 2006-11-03  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/c-ctype.h [C++]: Define functions without name mangling.
72994         * lib/fwriteerror.h [C++]: Likewise.
72995         * lib/gcd.h [C++]: Likewise.
72996         * lib/linebreak.h [C++]: Likewise.
72997
72998 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73001         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73002         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73003         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73004         Check for functions and headers just once.
73005         Check for declaration of canonicalize_file_name.
73006         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73007
73008 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73009
73010         * gnulib-tool (func_import): Fix typo in actioncmd.
73011
73012 2006-11-02  Bruno Haible  <bruno@clisp.org>
73013
73014         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73015         newline sequence in the Makefile.am snippet as a space, like "make"
73016         does.
73017         Reported by Roger Persson <perrog@gmail.com>.
73018
73019 2006-11-01  Bruno Haible  <bruno@clisp.org>
73020
73021         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73022         already declared in <string.h>.
73023         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73024
73025 2006-11-01  Bruno Haible  <bruno@clisp.org>
73026
73027         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73028         * lib/strcase.h: Include <string.h>.
73029         (strcasecmp): Define to rpl_strcasecmp here.
73030
73031 2006-11-01  Bruno Haible  <bruno@clisp.org>
73032
73033         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73034
73035 2006-11-01  Eric Blake  <ebb9@byu.net>
73036
73037         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73038
73039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73040
73041 2006-10-29  Bruno Haible  <bruno@clisp.org>
73042
73043         Make it compile in C++ mode.
73044         * lib/full-write.c (full_rw): Add a cast.
73045
73046 2006-11-01  Bruno Haible  <bruno@clisp.org>
73047
73048         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73049         be POSIX compliant.
73050         Reported by Roger Persson <perrog@gmail.com>.
73051
73052 2006-11-01  Eric Blake  <ebb9@byu.net>
73053
73054         * lib/getopt_.h: Fix comments.
73055
73056 2006-10-31  Eric Blake  <ebb9@byu.net>
73057
73058         * modules/tmpdir (Depends-on): Add sys_stat.
73059         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73060         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73061         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73062         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73063         tempname.
73064
73065 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         Avoid some C++ diagnostics reported by Bruno Haible.
73068         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73069         xmalloc.
73070         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73071         (struct slotvec): Move to top level.
73072         (quotearg_n_options): Rewrite to avoid xmalloc.
73073         * lib/xalloc.h (xcharalloc): New function.
73074         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73075         [defined __cplusplus]: Add function template that provides result
73076         type propagation.  This part of the change is from Bruno Haible.
73077
73078 2006-10-29  Bruno Haible  <bruno@clisp.org>
73079
73080         Make it compile in C++ mode.
73081         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73082         * lib/strnlen1.c (strnlen1): Cast memchr result.
73083         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73084         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73085         (create_temp_dir): Rename local variable 'template'.
73086         (compile_csharp_using_sscli): Add cast.
73087         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73088         * lib/findprog.c (find_in_path): Likewise.
73089         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73090         * lib/wait-process.c (register_slave_subprocess): Likewise.
73091
73092 2006-10-22  Bruno Haible  <bruno@clisp.org>
73093
73094         * modules/tsearch: New file.
73095         * lib/tsearch.h: New file.
73096         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73097         * m4/tsearch.m4: New file.
73098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73099
73100 2006-10-29  Eric Blake  <ebb9@byu.net>
73101
73102         * lib/arcfour.c: Assume config.h.
73103         * lib/arctwo.c: Likewise.
73104         * lib/base64.c: Likewise.
73105         * lib/check-version.c: Likewise.
73106         * lib/crc.c: Likewise.
73107         * lib/des.c: Likewise.
73108         * lib/gc-gnulib.c: Likewise.
73109         * lib/gc-libgcrypt.c: Likewise.
73110         * lib/gc-pbkdf2-sha1.c: Likewise.
73111         * lib/getaddrinfo.c: Likewise.
73112         * lib/getdelim.c: Likewise.
73113         * lib/getline.c: Likewise.
73114         * lib/hmac-md5.c: Likewise.
73115         * lib/hmac-sha1.c: Likewise.
73116         * lib/iconvme.c: Likewise.
73117         * lib/md2.c: Likewise.
73118         * lib/md4.c: Likewise.
73119         * lib/memxor.c: Likewise.
73120         * lib/read-file.c: Likewise.
73121         * lib/readline.c: Likewise.
73122         * lib/rijndael-alg-fst.c: Likewise.
73123         * lib/rijndael-api-fst.c: Likewise.
73124         * lib/xgetdomainname.c: Likewise.
73125
73126 2006-10-28  Eric Blake  <ebb9@byu.net>
73127
73128         * lib/xstrndup.c: Assume config.h.
73129
73130 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73133         stat-macros.h is now for our own macros, whereas stat_h is for
73134         macros in the <sys/stat.h> name space.
73135         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73136         (STAT_MACROS_H): Remove.
73137         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73138         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73139         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73140         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73141         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73142         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73143         Move these macros to ...
73144         * lib/stat_.h: here.  Don't include stat-macros.h.
73145         * lib/canonicalize.c: Don't include stat-macros.h.
73146         * lib/chown.c: Likewise.
73147         * lib/euidaccess.c: Likewise.
73148         * lib/file-type.c: Likewise.
73149         * lib/filemode.c: Likewise.
73150         * lib/glob.c: Likewise.
73151         * lib/isapipe.c: Likewise.
73152         * lib/lchown.c: Likewise.
73153         * lib/lstat.c: Likewise.
73154         * lib/mkdir-p.c: Likewise.
73155         * lib/rmdir.c: Likewise.
73156         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73157         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73158         unless mkdir isn't declared, to speed up 'configure'.
73159         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73160         would define all the S_* symbols.
73161         * modules/canonicalize (Depends-on):
73162         Depend on sys_stat, not stat-macros.
73163         * modules/chown: Likewise.
73164         * modules/euidaccess: Likewise.
73165         * modules/filemode: Likewise.
73166         * modules/file-type: Likewise.
73167         * modules/glob: Likewise.
73168         * modules/isapipe: Likewise.
73169         * modules/lchown: Likewise.
73170         * modules/lstat: Likewise.
73171         * modules/mkancesdirs: Likewise.
73172         * modules/rmdir: Likewise.
73173         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73174         * modules/modechange: Likewise.
73175         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73176         (configure.ac): Remove gl_STAT_MACROS.
73177         * modules/sys_stat (Depends-on): Remove stat-macros.
73178
73179 2006-10-27  Bruno Haible  <bruno@clisp.org>
73180
73181         * m4/signed.m4: Remove file.
73182         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73183         invocation.
73184         * modules/vasnprintf (Files): Remove m4/signed.m4.
73185
73186 2006-10-27  Bruno Haible  <bruno@clisp.org>
73187
73188         Update to GNU gettext 0.16.
73189         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73190         m4/inttypes-h.m4, m4/signed.m4.
73191         * m4/gettext.m4: Update to GNU gettext 0.16.
73192         * m4/intl.m4: New file, from GNU gettext.
73193         * m4/intldir.m4: New file, from GNU gettext.
73194         * config/srclist.txt: Update
73195
73196 2006-10-27  Eric Blake  <ebb9@byu.net>
73197
73198         * MODULES.html.sh: Document tempname.
73199         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73200         dependencies.
73201         (Files): Move lib/tempname.c...
73202         * modules/tempname: ...to this new module.
73203         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73204         (gl_PREREQ_TEMPNAME): Move...
73205         * m4/tempname.m4: ...to this new file.
73206         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73207         * modules/sys_stat (Depends-on): Add stat-macros.
73208         * lib/stat_.h (includes): Pick up stat macros.
73209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73210         if stat macros are broken.
73211         * lib/tempname.c (includes): No need to include "stat-macros.h".
73212         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73213         (direxists, __path_search) [!_LIBC]: Don't compile these in
73214         gnulib; the tmpdir module covers that.
73215         * lib/tempname.h: New file.
73216
73217 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * COPYING: Explain how gnulib-tool converts licence headers.
73220         Almost all wording by Eric Blake.
73221
73222 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * lib/mbchar.h (is_basic_table): Make read-only.
73225         * lib/mbchar.c (is_basic_table): Likewise.
73226         Reported by John Darrington.
73227
73228 2006-10-25  Bruno Haible  <bruno@clisp.org>
73229
73230         * lib/progname.h (set_program_name): Undefine before defining.
73231
73232 2006-10-25  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73235         false for non-gcc C++ compilers.
73236         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73237
73238 2006-10-24  Bruno Haible  <bruno@clisp.org>
73239
73240         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73241         iconv implementations like Irix iconv.
73242
73243 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * modules/vararrays: New file.
73246         * m4/vararrays.m4: New file, taken from diffutils.
73247         * MODULES.html.sh: New module vararrays.
73248
73249 2006-10-24  Karl Berry  <karl@gnu.org>
73250
73251         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73252         Don't call GNU Unix.
73253
73254 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73255
73256         * users.txt: Add Libtool.
73257
73258         Sync from Libtool:
73259
73260         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73263         to gnulib's policy of including config.h unconditionally.
73264
73265 2006-10-24  Bruno Haible  <bruno@clisp.org>
73266
73267         * modules/wcwidth (Files): Add m4/wint_t.m4.
73268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73269         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73270
73271 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73272
73273         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73274         to pacify GCC with some -W flags enabled.  Problem reported by
73275         Bruno Haible.
73276
73277 2006-10-24  Jim Meyering  <jim@meyering.net>
73278
73279         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73280         Reported by Karl Berry.
73281
73282 2006-10-23  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73285
73286 2006-10-24  Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/gl_list.h: Use C comment style, not C++ comment style.
73289
73290 2006-10-23  Eric Blake  <ebb9@byu.net>
73291
73292         * lib/getaddrinfo.c (includes): Add missing include.
73293
73294 2006-10-23  Bruno Haible  <bruno@clisp.org>
73295             Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         Ability to rename obstack_free.
73298         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73299         obstack_free.
73300         (obstack_free): Invoke the __obstack_free macro.
73301         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73302
73303 2006-10-23  Bruno Haible  <bruno@clisp.org>
73304             Paul Eggert  <eggert@cs.ucla.edu>
73305
73306         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73307         __argc, __argv from the declaration. (They are defined as macros on
73308         mingw.)
73309
73310 2006-10-22  Bruno Haible  <bruno@clisp.org>
73311
73312         * doc/gnulib-intro.texi: New file.
73313         * doc/gnulib.texi: Include it.
73314
73315 2006-10-21  Bruno Haible  <bruno@clisp.org>
73316
73317         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73318         "Introduction", "Miscellanous Notes", "Particular Modules".
73319
73320 2006-10-21  Bruno Haible  <bruno@clisp.org>
73321
73322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73323         Change mostlyclean-local rule to avoid sh syntax error from bash
73324         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73325
73326 2006-10-23  Jim Meyering  <jim@meyering.net>
73327
73328         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73329         in place of snprintf.
73330
73331         * modules/inttostr (Files): Add lib/uinttostr.c.
73332         * lib/uinttostr.c (inttostr): New file/function.
73333         * lib/inttostr.h (uinttostr): Declare.
73334         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73335         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73336         Add uinttostr.
73337         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73338
73339 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * lib/canonicalize.c (ELOOP): Define if not already defined.
73342         Problem reported by Bruno Haible in
73343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73344
73345 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73346
73347         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73348         Problem reported by Perry Smith and Ville Laurikari.
73349
73350         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73351         uses.
73352
73353 2006-10-19  Bruno Haible  <bruno@clisp.org>
73354
73355         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73356         for mingw.
73357
73358 2006-10-19  Bruno Haible  <bruno@clisp.org>
73359
73360         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73361         Needed for mingw.
73362
73363 2006-10-19  Bruno Haible  <bruno@clisp.org>
73364
73365         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73366
73367 2006-10-19  Bruno Haible  <bruno@clisp.org>
73368
73369         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73370         it.
73371
73372 2006-10-19  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73375         invocation.
73376
73377 2006-10-19  Bruno Haible  <bruno@clisp.org>
73378
73379         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73380         mountlist by default.
73381
73382 2006-10-16  Bruno Haible  <bruno@clisp.org>
73383
73384         * lib/c-strstr.c: Include c-strstr.h.
73385
73386 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73387
73388         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73389         in a slash.
73390
73391 2006-10-18  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/lock.h [C++]: Wrap definitions in extern "C".
73394
73395 2006-10-18  Bruno Haible  <bruno@clisp.org>
73396
73397         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73398         gl_LIBOBJS list.
73399
73400 2006-10-18  Bruno Haible  <bruno@clisp.org>
73401
73402         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73403
73404 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         * lib/xstrtol.h: Include gettext.h.
73407         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73408         Problem reported by Eric Blake.
73409         * modules/xstrtol (Depends-on): Add gettext-h.
73410
73411 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73412
73413         * lib/strftime.c (advance): New macro.
73414         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73415         incomplete type, so you can't add 0 to it.  Problem and patch
73416         reported by Eelco Dolstra for dietlibc.
73417
73418 2006-10-18  Jim Meyering  <jim@meyering.net>
73419
73420         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73421         type for a local, and rename it: s/up/user_proc/.
73422
73423 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73424
73425         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73426         READ_UTMP_USER_PROCESS.
73427         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73428
73429 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73432         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73433
73434 2006-10-17  Eric Blake  <ebb9@byu.net>
73435
73436         * lib/sigprocmask.c (sigprocmask): Fix typo.
73437
73438         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73439
73440         * modules/clean-temp (Makefile.am): Don't add to make output...
73441         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73442         config.h.
73443
73444 2006-10-17  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73447         differently if DEFAULT_TEXT_DOMAIN is set.
73448
73449 2006-10-16  Bruno Haible  <bruno@clisp.org>
73450
73451         * lib/clean-temp.c: Include fwriteerror.h.
73452
73453 2006-10-16  Bruno Haible  <bruno@clisp.org>
73454
73455         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73456
73457 2006-10-16  Bruno Haible  <bruno@clisp.org>
73458
73459         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73460         * lib/sigprocmask.h: Include <sys/types.h>.
73461         (sigset_t): Use the system's definition if present.
73462
73463 2006-10-17  Eric Blake  <ebb9@byu.net>
73464
73465         * lib/xvasprintf.c (includes): Assume config.h.
73466         * lib/xasprintf.c (includes): Likewise.
73467
73468 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73471         at least as wide as intmax_t.
73472
73473 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73474
73475         (Imported from Automake.)
73476         * build-aux/gnupload: Update to version 1.1 of directive file.
73477
73478 2006-10-16  Eric Blake  <ebb9@byu.net>
73479
73480         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73481         match Automake 1.10a.
73482
73483 2006-10-14  Bruno Haible  <bruno@clisp.org>
73484
73485         * modules/sigprocmask: New file.
73486         * lib/sigprocmask.h: New file.
73487         * lib/sigprocmask.c: New file.
73488         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73489         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73490         request sigprocmask.o.
73491         (gl_PREREQ_SIGPROCMASK): New macro.
73492         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73493         (Depends-on): Add sigprocmask.
73494         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73495         gt_SIGNALBLOCKING. Test for 'raise' only once.
73496         * lib/fatal-signal.c: Include sigprocmask.h.
73497         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73498         unblock_fatal_signals): Define always.
73499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73500         sigprocmask.
73501
73502 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         Sync from Automake.
73505         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73506         which incorrectly sets the mode of an existing destination
73507         directory.  In some cases the unpatched install-sh could do the
73508         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73509         system.  We hope this is rare in practice, but it's clearly worth
73510         fixing.  Problem reported by Alex Unleashed in
73511         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73512         Also, don't bother to check for -m bugs unless we're using -m;
73513         suggested by Stepan Kasal.
73514
73515 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73516
73517         Sync from Automake.
73518         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73519         `-c' flag, so they appear at the same position as in %FASTDEP%
73520         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73521         which ignores unknown options only after the first non-option.
73522         Bug report against M4 by Nelson H. F. Beebe.
73523
73524 2006-10-13  Jim Meyering  <jim@meyering.net>
73525
73526         Fix a bug in yesterday's change.
73527         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73528         p->fts_statp->st_dev would be used uninitialized.
73529         Ensures that we always call fts_stat on the very first entry.
73530         Miklos Szeredi reported that find -xdev stopped working.
73531
73532 2006-10-12  Bruno Haible  <bruno@clisp.org>
73533
73534         * gnulib-tool (func_get_automake_snippet): Append an automatically
73535         computed EXTRA_DIST augmentation.
73536         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73537         * modules/alloca-opt (Makefile.am): Likewise.
73538         * modules/allocsa (Makefile.am): Likewise.
73539         * modules/arcfour (Makefile.am): Likewise.
73540         * modules/arctwo (Makefile.am): Likewise.
73541         * modules/argmatch (Makefile.am): Likewise.
73542         * modules/argz (Makefile.am): Likewise.
73543         * modules/atexit (Makefile.am): Likewise.
73544         * modules/backupfile (Makefile.am): Likewise.
73545         * modules/byteswap (Makefile.am): Likewise.
73546         * modules/c-strtod (Makefile.am): Likewise.
73547         * modules/c-strtold (Makefile.am): Likewise.
73548         * modules/calloc (Makefile.am): Likewise.
73549         * modules/canon-host (Makefile.am): Likewise.
73550         * modules/canonicalize (Makefile.am): Likewise.
73551         * modules/chdir-long (Makefile.am): Likewise.
73552         * modules/chdir-safer (Makefile.am): Likewise.
73553         * modules/check-version (Makefile.am): Likewise.
73554         * modules/chown (Makefile.am): Likewise.
73555         * modules/cloexec (Makefile.am): Likewise.
73556         * modules/close-stream (Makefile.am): Likewise.
73557         * modules/closeout (Makefile.am): Likewise.
73558         * modules/crc (Makefile.am): Likewise.
73559         * modules/csharpexec (Makefile.am): Likewise.
73560         * modules/cycle-check (Makefile.am): Likewise.
73561         * modules/des (Makefile.am): Likewise.
73562         * modules/dev-ino (Makefile.am): Likewise.
73563         * modules/dirfd (Makefile.am): Likewise.
73564         * modules/dirname (Makefile.am): Likewise.
73565         * modules/dup2 (Makefile.am): Likewise.
73566         * modules/eealloc (Makefile.am): Likewise.
73567         * modules/error (Makefile.am): Likewise.
73568         * modules/euidaccess (Makefile.am): Likewise.
73569         * modules/exclude (Makefile.am): Likewise.
73570         * modules/exitfail (Makefile.am): Likewise.
73571         * modules/fcntl-safer (Makefile.am): Likewise.
73572         * modules/fcntl (Makefile.am): Likewise.
73573         * modules/file-type (Makefile.am): Likewise.
73574         * modules/fileblocks (Makefile.am): Likewise.
73575         * modules/filemode (Makefile.am): Likewise.
73576         * modules/filenamecat (Makefile.am): Likewise.
73577         * modules/fnmatch (Makefile.am): Likewise.
73578         * modules/fopen-safer (Makefile.am): Likewise.
73579         * modules/fpending (Makefile.am): Likewise.
73580         * modules/fprintftime (Makefile.am): Likewise.
73581         * modules/free (Makefile.am): Likewise.
73582         * modules/fsusage (Makefile.am): Likewise.
73583         * modules/ftruncate (Makefile.am): Likewise.
73584         * modules/fts (Makefile.am): Likewise.
73585         * modules/gc-arcfour (Makefile.am): Likewise.
73586         * modules/gc-des (Makefile.am): Likewise.
73587         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73588         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73589         * modules/gc-md4 (Makefile.am): Likewise.
73590         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73591         * modules/gc-sha1 (Makefile.am): Likewise.
73592         * modules/gc (Makefile.am): Likewise.
73593         * modules/getaddrinfo (Makefile.am): Likewise.
73594         * modules/getcwd (Makefile.am): Likewise.
73595         * modules/getdelim (Makefile.am): Likewise.
73596         * modules/getdomainname (Makefile.am): Likewise.
73597         * modules/getgroups (Makefile.am): Likewise.
73598         * modules/gethostname (Makefile.am): Likewise.
73599         * modules/gethrxtime (Makefile.am): Likewise.
73600         * modules/getline (Makefile.am): Likewise.
73601         * modules/getloadavg (Makefile.am): Likewise.
73602         * modules/getlogin_r (Makefile.am): Likewise.
73603         * modules/getndelim2 (Makefile.am): Likewise.
73604         * modules/getopt (Makefile.am): Likewise.
73605         * modules/getpagesize (Makefile.am): Likewise.
73606         * modules/getpass-gnu (Makefile.am): Likewise.
73607         * modules/getpass (Makefile.am): Likewise.
73608         * modules/getsubopt (Makefile.am): Likewise.
73609         * modules/gettime (Makefile.am): Likewise.
73610         * modules/gettimeofday (Makefile.am): Likewise.
73611         * modules/getugroups (Makefile.am): Likewise.
73612         * modules/getusershell (Makefile.am): Likewise.
73613         * modules/glob (Makefile.am): Likewise.
73614         * modules/group-member (Makefile.am): Likewise.
73615         * modules/hard-locale (Makefile.am): Likewise.
73616         * modules/hash (Makefile.am): Likewise.
73617         * modules/hmac-md5 (Makefile.am): Likewise.
73618         * modules/hmac-sha1 (Makefile.am): Likewise.
73619         * modules/human (Makefile.am): Likewise.
73620         * modules/idcache (Makefile.am): Likewise.
73621         * modules/imaxabs (Makefile.am): Likewise.
73622         * modules/imaxdiv (Makefile.am): Likewise.
73623         * modules/inet_ntop (Makefile.am): Likewise.
73624         * modules/inet_pton (Makefile.am): Likewise.
73625         * modules/intprops (Makefile.am): Likewise.
73626         * modules/inttostr (Makefile.am): Likewise.
73627         * modules/inttypes (Makefile.am): Likewise.
73628         * modules/isapipe (Makefile.am): Likewise.
73629         * modules/javaversion (Makefile.am): Likewise.
73630         * modules/lchmod (Makefile.am): Likewise.
73631         * modules/lchown (Makefile.am): Likewise.
73632         * modules/localcharset (Makefile.am): Likewise.
73633         * modules/long-options (Makefile.am): Likewise.
73634         * modules/lstat (Makefile.am): Likewise.
73635         * modules/malloc (Makefile.am): Likewise.
73636         * modules/mathl (Makefile.am): Likewise.
73637         * modules/mbchar (Makefile.am): Likewise.
73638         * modules/md2 (Makefile.am): Likewise.
73639         * modules/md4 (Makefile.am): Likewise.
73640         * modules/md5 (Makefile.am): Likewise.
73641         * modules/memcasecmp (Makefile.am): Likewise.
73642         * modules/memchr (Makefile.am): Likewise.
73643         * modules/memcmp (Makefile.am): Likewise.
73644         * modules/memcoll (Makefile.am): Likewise.
73645         * modules/memcpy (Makefile.am): Likewise.
73646         * modules/memmem (Makefile.am): Likewise.
73647         * modules/memmove (Makefile.am): Likewise.
73648         * modules/mempcpy (Makefile.am): Likewise.
73649         * modules/memrchr (Makefile.am): Likewise.
73650         * modules/memset (Makefile.am): Likewise.
73651         * modules/memxor (Makefile.am): Likewise.
73652         * modules/mkancesdirs (Makefile.am): Likewise.
73653         * modules/mkdir-p (Makefile.am): Likewise.
73654         * modules/mkdir (Makefile.am): Likewise.
73655         * modules/mkdtemp (Makefile.am): Likewise.
73656         * modules/mkstemp (Makefile.am): Likewise.
73657         * modules/mktime (Makefile.am): Likewise.
73658         * modules/modechange (Makefile.am): Likewise.
73659         * modules/mountlist (Makefile.am): Likewise.
73660         * modules/nanosleep (Makefile.am): Likewise.
73661         * modules/obstack (Makefile.am): Likewise.
73662         * modules/openat (Makefile.am): Likewise.
73663         * modules/pagealign_alloc (Makefile.am): Likewise.
73664         * modules/pathmax (Makefile.am): Likewise.
73665         * modules/physmem (Makefile.am): Likewise.
73666         * modules/poll (Makefile.am): Likewise.
73667         * modules/posixtm (Makefile.am): Likewise.
73668         * modules/posixver (Makefile.am): Likewise.
73669         * modules/putenv (Makefile.am): Likewise.
73670         * modules/quote (Makefile.am): Likewise.
73671         * modules/quotearg (Makefile.am): Likewise.
73672         * modules/raise (Makefile.am): Likewise.
73673         * modules/read-file (Makefile.am): Likewise.
73674         * modules/readline (Makefile.am): Likewise.
73675         * modules/readlink (Makefile.am): Likewise.
73676         * modules/readtokens (Makefile.am): Likewise.
73677         * modules/readutmp (Makefile.am): Likewise.
73678         * modules/realloc (Makefile.am): Likewise.
73679         * modules/regex (Makefile.am): Likewise.
73680         * modules/rename-dest-slash (Makefile.am): Likewise.
73681         * modules/rename (Makefile.am): Likewise.
73682         * modules/rijndael (Makefile.am): Likewise.
73683         * modules/rmdir (Makefile.am): Likewise.
73684         * modules/rpmatch (Makefile.am): Likewise.
73685         * modules/safe-read (Makefile.am): Likewise.
73686         * modules/safe-write (Makefile.am): Likewise.
73687         * modules/same-inode (Makefile.am): Likewise.
73688         * modules/same (Makefile.am): Likewise.
73689         * modules/save-cwd (Makefile.am): Likewise.
73690         * modules/savedir (Makefile.am): Likewise.
73691         * modules/setenv (Makefile.am): Likewise.
73692         * modules/settime (Makefile.am): Likewise.
73693         * modules/sha1 (Makefile.am): Likewise.
73694         * modules/sig2str (Makefile.am): Likewise.
73695         * modules/snprintf (Makefile.am): Likewise.
73696         * modules/stat-macros (Makefile.am): Likewise.
73697         * modules/stat-time (Makefile.am): Likewise.
73698         * modules/stdbool (Makefile.am): Likewise.
73699         * modules/stdint (Makefile.am): Likewise.
73700         * modules/stdlib-safer (Makefile.am): Likewise.
73701         * modules/stpcpy (Makefile.am): Likewise.
73702         * modules/stpncpy (Makefile.am): Likewise.
73703         * modules/strcase (Makefile.am): Likewise.
73704         * modules/strcasestr (Makefile.am): Likewise.
73705         * modules/strchrnul (Makefile.am): Likewise.
73706         * modules/strcspn (Makefile.am): Likewise.
73707         * modules/strdup (Makefile.am): Likewise.
73708         * modules/strerror (Makefile.am): Likewise.
73709         * modules/strftime (Makefile.am): Likewise.
73710         * modules/strndup (Makefile.am): Likewise.
73711         * modules/strnlen (Makefile.am): Likewise.
73712         * modules/strpbrk (Makefile.am): Likewise.
73713         * modules/strsep (Makefile.am): Likewise.
73714         * modules/strstr (Makefile.am): Likewise.
73715         * modules/strtod (Makefile.am): Likewise.
73716         * modules/strtoimax (Makefile.am): Likewise.
73717         * modules/strtok_r (Makefile.am): Likewise.
73718         * modules/strtol (Makefile.am): Likewise.
73719         * modules/strtoll (Makefile.am): Likewise.
73720         * modules/strtoul (Makefile.am): Likewise.
73721         * modules/strtoull (Makefile.am): Likewise.
73722         * modules/strtoumax (Makefile.am): Likewise.
73723         * modules/strverscmp (Makefile.am): Likewise.
73724         * modules/sys_socket (Makefile.am): Likewise.
73725         * modules/sys_stat (Makefile.am): Likewise.
73726         * modules/sysexits (Makefile.am): Likewise.
73727         * modules/time_r (Makefile.am): Likewise.
73728         * modules/timegm (Makefile.am): Likewise.
73729         * modules/timespec (Makefile.am): Likewise.
73730         * modules/tmpfile-safer (Makefile.am): Likewise.
73731         * modules/trim (Makefile.am): Likewise.
73732         * modules/unistd-safer (Makefile.am): Likewise.
73733         * modules/unlinkdir (Makefile.am): Likewise.
73734         * modules/unlocked-io (Makefile.am): Likewise.
73735         * modules/userspec (Makefile.am): Likewise.
73736         * modules/utime (Makefile.am): Likewise.
73737         * modules/utimecmp (Makefile.am): Likewise.
73738         * modules/utimens (Makefile.am): Likewise.
73739         * modules/vasnprintf (Makefile.am): Likewise.
73740         * modules/vasprintf (Makefile.am): Likewise.
73741         * modules/vsnprintf (Makefile.am): Likewise.
73742         * modules/xalloc (Makefile.am): Likewise.
73743         * modules/xgetcwd (Makefile.am): Likewise.
73744         * modules/xnanosleep (Makefile.am): Likewise.
73745         * modules/xreadlink (Makefile.am): Likewise.
73746         * modules/xstrtod (Makefile.am): Likewise.
73747         * modules/xstrtol (Makefile.am): Likewise.
73748         * modules/xstrtold (Makefile.am): Likewise.
73749         * modules/yesno (Makefile.am): Likewise.
73750         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73751
73752 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * modules/error (Makefile.am): Distribute files through
73755         EXTRA_DIST, not lib_SOURCES.
73756
73757 2006-10-12  Eric Blake  <ebb9@byu.net>
73758
73759         * modules/error (Makefile.am): Distribute files in /lib.
73760         * modules/obstack (Makefile.am): Likewise.
73761
73762 2006-10-12  Bruno Haible  <bruno@clisp.org>
73763
73764         * modules/acl (Makefile.am): Distribute all files in lib/ through
73765         EXTRA_DIST.
73766         * modules/arcfour (Makefile.am): Likewise.
73767         * modules/arctwo (Makefile.am): Likewise.
73768         * modules/argmatch (Makefile.am): Likewise.
73769         * modules/argz (Makefile.am): Likewise.
73770         * modules/atexit (Makefile.am): Likewise.
73771         * modules/backupfile (Makefile.am): Likewise.
73772         * modules/c-strtod (Makefile.am): Likewise.
73773         * modules/c-strtold (Makefile.am): Likewise.
73774         * modules/calloc (Makefile.am): Likewise.
73775         * modules/canon-host (Makefile.am): Likewise.
73776         * modules/canonicalize (Makefile.am): Likewise.
73777         * modules/chdir-long (Makefile.am): Likewise.
73778         * modules/chdir-safer (Makefile.am): Likewise.
73779         * modules/check-version (Makefile.am): Likewise.
73780         * modules/chown (Makefile.am): Likewise.
73781         * modules/cloexec (Makefile.am): Likewise.
73782         * modules/close-stream (Makefile.am): Likewise.
73783         * modules/closeout (Makefile.am): Likewise.
73784         * modules/crc (Makefile.am): Likewise.
73785         * modules/cycle-check (Makefile.am): Likewise.
73786         * modules/des (Makefile.am): Likewise.
73787         * modules/dirfd (Makefile.am): Likewise.
73788         * modules/dirname (Makefile.am): Likewise.
73789         * modules/dup2 (Makefile.am): Likewise.
73790         * modules/euidaccess (Makefile.am): Likewise.
73791         * modules/exclude (Makefile.am): Likewise.
73792         * modules/exitfail (Makefile.am): Likewise.
73793         * modules/fcntl-safer (Makefile.am): Likewise.
73794         * modules/file-type (Makefile.am): Likewise.
73795         * modules/fileblocks (Makefile.am): Likewise.
73796         * modules/filemode (Makefile.am): Likewise.
73797         * modules/filenamecat (Makefile.am): Likewise.
73798         * modules/fnmatch (Makefile.am): Likewise.
73799         * modules/fopen-safer (Makefile.am): Likewise.
73800         * modules/fpending (Makefile.am): Likewise.
73801         * modules/fprintftime (Makefile.am): Likewise.
73802         * modules/free (Makefile.am): Likewise.
73803         * modules/fsusage (Makefile.am): Likewise.
73804         * modules/ftruncate (Makefile.am): Likewise.
73805         * modules/fts (Makefile.am): Likewise.
73806         * modules/gc (Makefile.am): Likewise.
73807         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73808         * modules/getaddrinfo (Makefile.am): Likewise.
73809         * modules/getcwd (Makefile.am): Likewise.
73810         * modules/getdelim (Makefile.am): Likewise.
73811         * modules/getdomainname (Makefile.am): Likewise.
73812         * modules/getgroups (Makefile.am): Likewise.
73813         * modules/gethostname (Makefile.am): Likewise.
73814         * modules/gethrxtime (Makefile.am): Likewise.
73815         * modules/getline (Makefile.am): Likewise.
73816         * modules/getloadavg (Makefile.am): Likewise.
73817         * modules/getlogin_r (Makefile.am): Likewise.
73818         * modules/getopt (Makefile.am): Likewise.
73819         * modules/getpass (Makefile.am): Likewise.
73820         * modules/getpass-gnu (Makefile.am): Likewise.
73821         * modules/getsubopt (Makefile.am): Likewise.
73822         * modules/gettime (Makefile.am): Likewise.
73823         * modules/gettimeofday (Makefile.am): Likewise.
73824         * modules/getugroups (Makefile.am): Likewise.
73825         * modules/getusershell (Makefile.am): Likewise.
73826         * modules/glob (Makefile.am): Likewise.
73827         * modules/group-member (Makefile.am): Likewise.
73828         * modules/hard-locale (Makefile.am): Likewise.
73829         * modules/hash (Makefile.am): Likewise.
73830         * modules/hmac-md5 (Makefile.am): Likewise.
73831         * modules/hmac-sha1 (Makefile.am): Likewise.
73832         * modules/human (Makefile.am): Likewise.
73833         * modules/idcache (Makefile.am): Likewise.
73834         * modules/imaxabs (Makefile.am): Likewise.
73835         * modules/imaxdiv (Makefile.am): Likewise.
73836         * modules/inet_ntop (Makefile.am): Likewise.
73837         * modules/inet_pton (Makefile.am): Likewise.
73838         * modules/inttostr (Makefile.am): Likewise.
73839         * modules/isapipe (Makefile.am): Likewise.
73840         * modules/lchown (Makefile.am): Likewise.
73841         * modules/long-options (Makefile.am): Likewise.
73842         * modules/lstat (Makefile.am): Likewise.
73843         * modules/malloc (Makefile.am): Likewise.
73844         * modules/mathl (Makefile.am): Likewise.
73845         * modules/mbchar (Makefile.am): Likewise.
73846         * modules/md2 (Makefile.am): Likewise.
73847         * modules/md4 (Makefile.am): Likewise.
73848         * modules/md5 (Makefile.am): Likewise.
73849         * modules/memcasecmp (Makefile.am): Likewise.
73850         * modules/memchr (Makefile.am): Likewise.
73851         * modules/memcmp (Makefile.am): Likewise.
73852         * modules/memcoll (Makefile.am): Likewise.
73853         * modules/memcpy (Makefile.am): Likewise.
73854         * modules/memmem (Makefile.am): Likewise.
73855         * modules/memmove (Makefile.am): Likewise.
73856         * modules/mempcpy (Makefile.am): Likewise.
73857         * modules/memrchr (Makefile.am): Likewise.
73858         * modules/memset (Makefile.am): Likewise.
73859         * modules/memxor (Makefile.am): Likewise.
73860         * modules/mkancesdirs (Makefile.am): Likewise.
73861         * modules/mkdir (Makefile.am): Likewise.
73862         * modules/mkdir-p (Makefile.am): Likewise.
73863         * modules/mkdtemp (Makefile.am): Likewise.
73864         * modules/mkstemp (Makefile.am): Likewise.
73865         * modules/mktime (Makefile.am): Likewise.
73866         * modules/modechange (Makefile.am): Likewise.
73867         * modules/mountlist (Makefile.am): Likewise.
73868         * modules/nanosleep (Makefile.am): Likewise.
73869         * modules/openat (Makefile.am): Likewise.
73870         * modules/pagealign_alloc (Makefile.am): Likewise.
73871         * modules/physmem (Makefile.am): Likewise.
73872         * modules/poll (Makefile.am): Likewise.
73873         * modules/posixtm (Makefile.am): Likewise.
73874         * modules/posixver (Makefile.am): Likewise.
73875         * modules/putenv (Makefile.am): Likewise.
73876         * modules/quote (Makefile.am): Likewise.
73877         * modules/quotearg (Makefile.am): Likewise.
73878         * modules/raise (Makefile.am): Likewise.
73879         * modules/read-file (Makefile.am): Likewise.
73880         * modules/readline (Makefile.am): Likewise.
73881         * modules/readlink (Makefile.am): Likewise.
73882         * modules/readtokens (Makefile.am): Likewise.
73883         * modules/readutmp (Makefile.am): Likewise.
73884         * modules/realloc (Makefile.am): Likewise.
73885         * modules/regex (Makefile.am): Likewise.
73886         * modules/rename (Makefile.am): Likewise.
73887         * modules/rename-dest-slash (Makefile.am): Likewise.
73888         * modules/rijndael (Makefile.am): Likewise.
73889         * modules/rmdir (Makefile.am): Likewise.
73890         * modules/rpmatch (Makefile.am): Likewise.
73891         * modules/safe-read (Makefile.am): Likewise.
73892         * modules/safe-write (Makefile.am): Likewise.
73893         * modules/same (Makefile.am): Likewise.
73894         * modules/save-cwd (Makefile.am): Likewise.
73895         * modules/savedir (Makefile.am): Likewise.
73896         * modules/setenv (Makefile.am): Likewise.
73897         * modules/settime (Makefile.am): Likewise.
73898         * modules/sha1 (Makefile.am): Likewise.
73899         * modules/sig2str (Makefile.am): Likewise.
73900         * modules/snprintf (Makefile.am): Likewise.
73901         * modules/stdlib-safer (Makefile.am): Likewise.
73902         * modules/stpcpy (Makefile.am): Likewise.
73903         * modules/stpncpy (Makefile.am): Likewise.
73904         * modules/strcase (Makefile.am): Likewise.
73905         * modules/strcasestr (Makefile.am): Likewise.
73906         * modules/strchrnul (Makefile.am): Likewise.
73907         * modules/strcspn (Makefile.am): Likewise.
73908         * modules/strdup (Makefile.am): Likewise.
73909         * modules/strerror (Makefile.am): Likewise.
73910         * modules/strftime (Makefile.am): Likewise.
73911         * modules/strndup (Makefile.am): Likewise.
73912         * modules/strnlen (Makefile.am): Likewise.
73913         * modules/strpbrk (Makefile.am): Likewise.
73914         * modules/strsep (Makefile.am): Likewise.
73915         * modules/strstr (Makefile.am): Likewise.
73916         * modules/strtod (Makefile.am): Likewise.
73917         * modules/strtoimax (Makefile.am): Likewise.
73918         * modules/strtok_r (Makefile.am): Likewise.
73919         * modules/strtol (Makefile.am): Likewise.
73920         * modules/strtoll (Makefile.am): Likewise.
73921         * modules/strtoul (Makefile.am): Likewise.
73922         * modules/strtoull (Makefile.am): Likewise.
73923         * modules/strtoumax (Makefile.am): Likewise.
73924         * modules/strverscmp (Makefile.am): Likewise.
73925         * modules/time_r (Makefile.am): Likewise.
73926         * modules/timegm (Makefile.am): Likewise.
73927         * modules/tmpfile-safer (Makefile.am): Likewise.
73928         * modules/unistd-safer (Makefile.am): Likewise.
73929         * modules/unlinkdir (Makefile.am): Likewise.
73930         * modules/userspec (Makefile.am): Likewise.
73931         * modules/utime (Makefile.am): Likewise.
73932         * modules/utimecmp (Makefile.am): Likewise.
73933         * modules/utimens (Makefile.am): Likewise.
73934         * modules/vasnprintf (Makefile.am): Likewise.
73935         * modules/vasprintf (Makefile.am): Likewise.
73936         * modules/vsnprintf (Makefile.am): Likewise.
73937         * modules/xalloc (Makefile.am): Likewise.
73938         * modules/xgetcwd (Makefile.am): Likewise.
73939         * modules/xnanosleep (Makefile.am): Likewise.
73940         * modules/xreadlink (Makefile.am): Likewise.
73941         * modules/xstrtod (Makefile.am): Likewise.
73942         * modules/xstrtol (Makefile.am): Likewise.
73943         * modules/xstrtold (Makefile.am): Likewise.
73944         * modules/yesno (Makefile.am): Likewise.
73945
73946 2006-10-12  Jim Meyering  <jim@meyering.net>
73947
73948         * m4/getloadavg.m4: Revert the change below.
73949
73950         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73951         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73952         fail with a symlink, which is what coreutils' ./bootstrap now
73953         creates by default.
73954
73955 2006-10-12  Bruno Haible  <bruno@clisp.org>
73956
73957         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73958         mingw.
73959         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73960         MSVC and mingw explicitly.
73961
73962 2006-10-11  Simon Josefsson  <jas@extundo.com>
73963             Bruno Haible  <bruno@clisp.org>
73964
73965         Add support for multiple gnulib-tool invocations in the scope of a
73966         single configure.ac file.
73967         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73968         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73969         with the same contents as the _LIBADD variable.
73970         (func_emit_initmacro_start, func_emit_initmacro_end,
73971         func_emit_initmacro_done): New functions.
73972         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73973         gl_LIBOBJS and gl_LTLIBOBJS.
73974
73975 2006-10-11  Bruno Haible  <bruno@clisp.org>
73976
73977         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73978         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73979         autoreconf. Instead, invoke autopoint explicitly but move back the
73980         *.m4 files from gnulib.
73981
73982 2006-10-11  Bruno Haible  <bruno@clisp.org>
73983
73984         * gnulib-tool (func_usage): Make module names after --create-testdir
73985         optional.
73986         (func_create_testdir): If no module was specified, use nearly all
73987         modules.
73988
73989 2006-10-12  Jim Meyering  <jim@meyering.net>
73990
73991         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73992         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73993         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73994         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73995         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73996         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73997         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73998         (fts_set_stat_required): New function.
73999         (fts_open): Defer the calls to fts_stat, if possible or requested.
74000         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74001         into fts_stat itself.
74002         (fts_read): Perform any required (deferred) fts_stat call.
74003         (fts_build): Likewise, for the directory we're about to open and read.
74004         In the readdir loop, carefully decide whether each entry will require
74005         an eventual call to fts_stat, using dirent.d_type info if available.
74006         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74007         a command line argument into this function.  Update all callers.
74008         Map a return value of FTS_DOT to FTS_D for a command line argument.
74009         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74010         Thanks to Miklos Szeredi for his tenacity and for the initial
74011         bug report about "find" failing on a FUSE-based file system.
74012
74013         * lib/fts.c (fts_open): Use consistent indentation.
74014
74015 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74018         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74019         reported by Jim Meyering.  All uses of cache variables renamed
74020         to match Autoconf's.
74021         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74022         the other one.
74023
74024         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74025         Fix misspelling in diagnostic.
74026
74027 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74030         defined.  Problem reported by Matthew Woehlke.
74031
74032         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74033         Add support for Tandem NonStop R series.
74034         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74035         Use new macro.
74036
74037         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74038         (has_trailing_slash): Omit size arg; all callers changed.
74039         Omit 'inline', since it doesn't help performance and we'd
74040         need to configure it.
74041         Don't count //, ///, etc. as having a trailing slash.
74042         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74043         (rpl_rename_dest_slash): On failure, use rename's errno rather
74044         than (in some cases) an incorrect or junk errno.
74045         Simplify code by removing need to compute length; this does
74046         cause it to make two passes instead of one over the file name,
74047         but it's worth it.
74048
74049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74050         change, since Autoconf's version may no longer be appropriate now
74051         that we are using CVS Autoconf's version.  Add support for Tandem.
74052
74053 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74054             Bruno Haible  <bruno@clisp.org>
74055
74056         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74057         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74058         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74059         gl_AC_TYPE_LONG_LONG.
74060
74061         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74062         instead of HAVE_LONG_LONG.
74063         * lib/printf-args.c (printf_fetchargs): Likewise.
74064         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74065         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74066         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74067         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74068         gl_AC_TYPE_LONG_LONG.
74069
74070 2006-10-11  Bruno Haible  <bruno@clisp.org>
74071
74072         * m4/longlong.m4: Add comments.
74073         * m4/ulonglong.m4: Likewise.
74074
74075 2006-10-10  Bruno Haible  <bruno@clisp.org>
74076
74077         Make it possible to #define stpcpy, strdup to aliases.
74078         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74079         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74080
74081 2006-10-10  Bruno Haible  <bruno@clisp.org>
74082
74083         Make it possible to #define gcd to an alias.
74084         * lib/gcd.c: Include config.h.
74085
74086 2006-10-10  Bruno Haible  <bruno@clisp.org>
74087
74088         Make it possible to #define c_isascii to an alias.
74089         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74090         defined. Undefine the macros before defining them, to avoid gcc
74091         warnings.
74092         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74093         define NO_C_CTYPE_MACROS early.
74094
74095 2006-10-10  Bruno Haible  <bruno@clisp.org>
74096
74097         Make it possible to #define set_program_name to an alias.
74098         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74099         ENABLE_RELOCATABLE early.
74100
74101 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74104         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74105         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74106         More generally, don't assume that 64-bit signed int is available
74107         if unsigned int is, and vice versa.
74108         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74109         unsigned symbols, not on their signed counterparts.
74110         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74111         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74112         (UINT64_C, UINTMAX_C):
74113         Likewise.
74114         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74115         unsigned counterparts.
74116         (Have_long_long, Unsigned): New macros.
74117         (Int): Renamed from INT.
74118         (strtoimax): Use the new macros.
74119         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74120         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74121         * modules/inttypes (inttypes.h): Substitute
74122         HAVE_UNSIGNED_LONG_LONG_INT.
74123         * modules/stdint (stdint.h): Likewise.
74124         (Files): Add m4/ulonglong.m4.
74125
74126 2006-10-10  Bruno Haible  <bruno@clisp.org>
74127
74128         Fix a gcc -Wshadow warning.
74129         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74130         to 'bucket'.
74131         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74132         gl_linked_indexof_from_to): Likewise.
74133         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74134         Likewise.
74135         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74136         Likewise.
74137         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74138         Reported by Eric Blake.
74139
74140 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74141
74142         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74143         for NetBSD.  Problem reported by Bruno Haible.
74144
74145 2006-10-09  Jim Meyering  <jim@meyering.net>
74146
74147         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74148         Patch from Bruno Haible.
74149
74150 2006-10-09  Jim Meyering  <jim@meyering.net>
74151
74152         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74153         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74154         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74155
74156 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         Don't include <config.h> twice; this doesn't work in some cases,
74159         e.g., when config.h has "#define intmax_t long long int" and
74160         we include <config.h>, <inttypes.h>, <config.h> in that order.
74161         Problem reported by Matthew Woehlke in:
74162         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74163         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74164         * lib/fts-cycle.c: Don't include config.h.
74165         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74166         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74167         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74168         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74169         inttypes.h.
74170         * lib/xstrtoumax.c: Likewise.
74171         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74172         __strtol and the like, so that this module is more like its siblings.
74173         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74174         Remove; no longer needed now that we assume gnulib inttypes.h.
74175
74176 2006-10-08  Bruno Haible  <bruno@clisp.org>
74177
74178         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74179         option.
74180
74181 2006-10-07  Jim Meyering  <jim@meyering.net>
74182
74183         * modules/inttypes (inttypes.h): Revert what seems to have been
74184         an inadvertent part of today's change: use "|", not "/" in the
74185         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74186
74187 2006-10-07  Bruno Haible  <bruno@clisp.org>
74188
74189         * modules/sublist: New file.
74190
74191 2006-10-07  Bruno Haible  <bruno@clisp.org>
74192
74193         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74194         * modules/argz (argz.h): Likewise.
74195         * modules/arpa_inet (arpa/inet.h): Likewise.
74196         * modules/byteswap (byteswap.h): Likewise.
74197         * modules/configmake (configmake.h): Likewise.
74198         * modules/fcntl (fcntl.h): Likewise.
74199         * modules/fnmatch (fnmatch.h): Likewise.
74200         * modules/getopt (getopt.h): Likewise.
74201         * modules/glob (glob.h): Likewise.
74202         * modules/inttypes (inttypes.h): Likewise.
74203         * modules/netinet_in (netinet/in.h): Likewise.
74204         * modules/poll (poll.h): Likewise.
74205         * modules/stdbool (stdbool.h): Likewise.
74206         * modules/stdint (stdint.h): Likewise.
74207         * modules/sys_select (sys/select.h): Likewise.
74208         * modules/sys_socket (sys/socket.h): Likewise.
74209         * modules/sys_stat (sys/stat.h): Likewise.
74210         * modules/sysexits (sysexits.h): Likewise.
74211         * modules/unistd (unistd.h): Likewise.
74212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74213         Add a "DO NOT EDIT" comment to the generated file.
74214         (func_import): Likewise for gnulib-comp.m4.
74215
74216 2006-10-07  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/gl_sublist.h: New file.
74219         * lib/gl_sublist.c: New file.
74220
74221 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74222
74223         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74224         name (relative to the original working directory) and the file
74225         name component (relative to the temporary working directory).  All
74226         callers changed.
74227         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74228         * lib/mkdir-p.c (make_dir_parents): Likewise.
74229         * lib/mkdir-p.h (make_dir_parents): Likewise.
74230
74231 2006-10-06  Eric Blake  <ebb9@byu.net>
74232
74233         Define several macros for use by the clean-temp module.
74234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74235         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74236         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74237
74238         * lib/clean-temp.h (close_stream_temp): New declaration.
74239         * lib/clean-temp.c (includes): Pull in headers according to what
74240         other modules are in use.
74241         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74242
74243 2006-10-06  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74246         instead of fopen, fwriteerror.
74247
74248 2006-10-06  Bruno Haible  <bruno@clisp.org>
74249
74250         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74251         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74252         int.
74253         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74254         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74255         Return an error indicator.
74256         Suggested by Eric Blake.
74257
74258 2006-10-06  Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74261         Reported by Eric Blake.
74262
74263 2006-10-06  Bruno Haible  <bruno@clisp.org>
74264
74265         * modules/closeout (Description): Mention stderr too.
74266
74267 2006-10-06  Bruno Haible  <bruno@clisp.org>
74268         and Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * lib/closeout.c (close_stdout): Also close stderr.
74271         * lib/closeout.h: Update comment.
74272
74273 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74276         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74277         * lib/dirchownmod.c: Include lchown.h.
74278         * lib/lchown.c: Don't include files that lchown.h now includes.
74279         Don't declare chown, since lchown.h now does that.
74280         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74281         (lchown): Define to rpl_chown if lchown is declared but
74282         does not exist.  Declare using a prototype if lchown is not
74283         declared.  Add a copyright notice.
74284         * lib/mkstemp.h: Include <unistd.h>.
74285         * lib/openat.c: Include lchown.h.
74286
74287         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74288         we now test for that separately.
74289         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74290         rather than O_NOFOLLOW, when testing whether it's possible to
74291         avoid a race condition reliably.
74292         * lib/savewd.c (savewd_chdir): Likewise.
74293
74294         Remove macros that are no longer needed now that stdint.h is
74295         reliable.
74296         * lib/fsusage.c (UINTMAX_MAX): Remove.
74297         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74298         * lib/utimecmp.c (SIZE_MAX): Remove.
74299
74300         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74301
74302         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74303         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74304         O_NOATIME works.
74305
74306 2006-10-05  Bruno Haible  <bruno@clisp.org>
74307
74308         * lib/gl_list.h (gl_sortedlist_search_from_to,
74309         gl_sortedlist_indexof_from_to): New declarations.
74310         (gl_list_implementation): New fields sortedlist_search_from_to,
74311         sortedlist_indexof_from_to.
74312         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74313         inline functions.
74314         * lib/gl_list.c (gl_sortedlist_search_from_to,
74315         gl_sortedlist_indexof_from_to): New functions.
74316         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74317         function.
74318         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74319         (gl_array_sortedlist_search_from_to): New function.
74320         (gl_array_list_implementation): Update.
74321         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74322         function.
74323         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74324         (gl_carray_sortedlist_search_from_to): New function.
74325         (gl_carray_list_implementation): Update.
74326         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74327         gl_linked_sortedlist_indexof_from_to): New functions.
74328         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74329         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74330         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74331         gl_tree_sortedlist_indexof_from_to): New functions.
74332         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74333         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74334         Update.
74335         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74336         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74337         Update.
74338
74339 2006-10-05  Bruno Haible  <bruno@clisp.org>
74340
74341         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74342         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74343         (struct gl_list_implementation): Add fields search_from_to,
74344         indexof_from_to. Remove fields search, indexof.
74345         (gl_list_search): Use the search_from_to method.
74346         (gl_list_search_from, gl_list_search_from_to): New functions.
74347         (gl_list_indexof): Use the indexof_from_to method.
74348         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74349         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74350         (gl_list_search_from, gl_list_search_from_to): New functions.
74351         (gl_list_indexof): Use the indexof_from_to method.
74352         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74353         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74354         gl_array_indexof. Add start_index, end_index arguments.
74355         (gl_array_search_from_to): Renamed from gl_array_search. Add
74356         start_index, end_index arguments.
74357         (gl_array_remove, gl_array_list_implementation): Update.
74358         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74359         gl_carray_indexof. Add start_index, end_index arguments.
74360         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74361         start_index, end_index arguments.
74362         (gl_carray_remove, gl_carray_list_implementation): Update.
74363         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74364         gl_linked_search. Add start_index, end_index arguments.
74365         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74366         start_index, end_index arguments.
74367         (gl_linked_remove): Update.
74368         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74369         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74370         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74371         field to 'size_t'.
74372         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74373         gl_tree_search. Add start_index, end_index arguments.
74374         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74375         start_index, end_index arguments.
74376         (gl_tree_remove): Update.
74377         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74378         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74379         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74380         function.
74381         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74382         gl_tree_search. Add start_index, end_index arguments.
74383         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74384         start_index, end_index arguments.
74385         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74386         Update.
74387         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74388
74389 2006-10-05  Bruno Haible  <bruno@clisp.org>
74390
74391         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74392
74393         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74394         fwriteerror_temp): New declarations.
74395         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74396         (descriptors): New variable.
74397         (cleanup): First, close the descriptors.
74398         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74399         fclose_temp, fwriteerror_temp): New functions.
74400
74401 2006-10-04  Jim Meyering  <jim@meyering.net>
74402
74403         * lib/fts.c (fts_open): Tiny comment change.
74404
74405 2006-10-04  Bruno Haible  <bruno@clisp.org>
74406
74407         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74408         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74409         gl_LOCK_BODY.
74410         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74411         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74412         gl_LOCK_EARLY_BODY.
74413         (gl_LOCK): Require gl_LOCK_BODY.
74414
74415 2006-10-04  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74418         (gl_oset_search_atleast): New declaration.
74419         (struct gl_oset_implementation): Add field 'search_atleast'.
74420         (gl_oset_search_atleast): New inline function.
74421         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74422         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74423         (gl_array_oset_implementation): Update.
74424         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74425         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74426         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74427
74428 2006-10-04  Bruno Haible  <bruno@clisp.org>
74429
74430         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74431
74432 2006-10-03  Bruno Haible  <bruno@clisp.org>
74433
74434         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74435         from gl_avltreehash_list_implementation.
74436
74437 2006-10-03  Bruno Haible  <bruno@clisp.org>
74438
74439         * lib/gl_oset.c (gl_oset_add): Fix return type.
74440
74441 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74442
74443         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74444
74445 2006-10-02  Eric Blake  <ebb9@byu.net>
74446
74447         * modules/strnlen (Depends-on): Add extensions.
74448
74449 2006-10-02  Eric Blake  <ebb9@byu.net>
74450
74451         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74452         definition in 2.60+.
74453
74454 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74455
74456         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74457         checks.
74458
74459 2006-10-02  Bruno Haible  <bruno@clisp.org>
74460
74461         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74462         to the AUTOMAKE_OPTIONS.
74463         Reported by Jim Meyering.
74464
74465 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         Work around bug in Solaris 10 /proc file system:
74468         /proc/self/fd/NNN/.. isn't the parent directory of
74469         the directory whose file descriptor is NNN.  This needs to
74470         be worked around at run time, not compile time, since a
74471         program might be built on Solaris 8, where things work, and
74472         run on Solaris 10.
74473         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74474         to use the following interface instead:
74475         (OPENAT_BUFFER_SIZE): New macro.
74476         (openat_proc_name): New function.
74477         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74478         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74479         Likewise.
74480         * lib/openat-proc.c: New file.
74481         * modules/openat (Files): Add lib/openat-proc.c.
74482         (Depends-on): Add same-inode, stdbool.
74483         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74484
74485 2006-09-29  Bruno Haible  <bruno@clisp.org>
74486
74487         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74488         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74489         argument. Set stdout_closed before testing for ferror, not after.
74490         (fwriteerror, fwriteerror_no_ebadf): New functions.
74491
74492 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74493
74494         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74495
74496 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74497
74498         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74499         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74500
74501 2006-09-28  Jim Meyering  <jim@meyering.net>
74502
74503         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74504         Include <unistd.h>.
74505
74506 2006-09-28  Bruno Haible  <bruno@clisp.org>
74507
74508         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74509         * modules/linkedhash-list (Depends-on): Likewise.
74510         * modules/rbtreehash-list (Depends-on): Likewise.
74511
74512 2006-09-28  Bruno Haible  <bruno@clisp.org>
74513
74514         * lib/strndup.h: Simplify the redefinition of strndup.
74515         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74516         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74517
74518 2006-09-28  Bruno Haible  <bruno@clisp.org>
74519
74520         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74521         * lib/gl_linkedhash_list.c: Likewise.
74522         * lib/gl_rbtreehash_list.c: Likewise.
74523
74524 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74527         getaddrinfo.
74528
74529         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74530         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74531         it causes <stdio_ext.h> to cause a compile-time error.
74532         Problem reported by Nelson H. F. Beebe.
74533         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74534         of HAVE_DECL___PENDING.
74535
74536         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74537         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74538         declaration.
74539
74540 2006-09-27  Jim Meyering  <jim@meyering.net>
74541
74542         This file could end up with a definition for a function
74543         named __strndup, rather than rpl_strndup on a system with
74544         incomplete weak_alias support.
74545         * lib/strndup.c (strndup): Rename from __strndup.
74546         Remove #defines that used to map __strndup to strndup.
74547         Don't use K&R prototypes.
74548         Remove LIBC-related code, since this file is not sync'd with glibc.
74549         * lib/strndup.h: Revamp, accordingly.
74550         * m4/strndup.m4: Modernize.
74551
74552 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * modules/savewd (Depends-on): Add 'raise'.
74555         * lib/savewd.c: Include <signal.h>, for 'raise'.
74556
74557 2006-09-26  Jim Meyering  <jim@meyering.net>
74558
74559         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74560         when we detect Darwin 8.7.0's acl_get_file bug.
74561         Rearrange to perform the new (below) run-test while $LIBS
74562         contains any acl-related library.  Set USE_ACL at the end.
74563         (gl_ACL_GET_FILE): New function.
74564
74565 2006-09-26  Eric Blake  <ebb9@byu.net>
74566
74567         * lib/verror.c: Include <config.h> unconditionally.
74568
74569 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * modules/clock-time (Maintainer): Add self.
74572         * modules/getlogin_r (Depends-on): Add extensions.
74573
74574 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74575
74576         * modules/clock-time: New module.
74577         * modules/nanosleep (Depends-on): Add clock-time.
74578         * modules/gethrxtime (Depends-on): Likewise.
74579         * modules/gettime (Depends-on): Likewise.
74580         * modules/settime (Depends-on): Likewise.
74581
74582         * modules/fts-lgpl: Depend on openat.
74583         * modules/mkancesdirs: Depend on savewd.
74584         * modules/mkdir-p: Likewise.
74585
74586 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74587
74588         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74589
74590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74591         `gl_have_arbitrary_file_name_length_limit' to
74592         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74593         actually works between configure runs.
74594
74595 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74596             Bruno Haible  <bruno@clisp.org>
74597
74598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74599
74600 2006-09-25  Jim Meyering  <jim@meyering.net>
74601
74602         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74603         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74604
74605 2006-09-25  Eric Blake  <ebb9@byu.net>
74606
74607         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74608         exec's in 2006-09-18 patch when shuffling fds.
74609
74610 2006-09-25  Bruno Haible  <bruno@clisp.org>
74611
74612         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74613         Reported by Jim Meyering.
74614
74615 2006-09-24  Jim Meyering  <jim@meyering.net>
74616
74617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74618         compare a pointer against a literal "0".  That caused failures with
74619         at least HP-UX's hpcc.
74620
74621 2006-09-22  Simon Josefsson  <jas@extundo.com>
74622
74623         * modules/gc-sha1:
74624         * modules/gc-md4:
74625         * modules/gc-hmac-sha1:
74626         * modules/gc-hmac-md5:
74627         * modules/gc-des:
74628         * modules/gc-arcfour: Distribute more files.
74629
74630 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74631
74632         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74633         (gl_linked_iterator_from_to): Initialize struct completely.
74634         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74635         (gl_tree_iterator_from_to): Likewise
74636         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74637         * lib/gl_array_list.c [lint] (gl_array_iterator)
74638         (gl_array_iterator_from_to): Likewise.
74639         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74640         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74641         (gl_carray_iterator_from_to): Likewise.
74642
74643         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74644         * lib/md4.c (md4_process_block): Remove unused variable.
74645         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74646         parentheses for clarity.
74647
74648 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74649
74650         * modules/bison-i18n (Depends-on): Add gettext.
74651
74652 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74653
74654         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74655         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74656         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74657         also add missing comma that caused broken test.
74658         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74659         stdlib.h, for `abort'.
74660         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74661         variables.
74662         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74663         include unistd.h if present, for `rmdir'.
74664         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74665         variables.
74666         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74667         in the process include standard headers for prototypes.
74668         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74669         gets declared on GNU/Linux.
74670         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74671         unistd.h, for `rmdir'.
74672         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74673
74674         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74675         always true.
74676         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74677
74678         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74679
74680 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74681
74682         * gnulib-tool (func_version): Create output all at once.  This
74683         may help avoid triggering unnecessary SIGPIPEs, and at any
74684         rate it doesn't hurt.
74685
74686 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74687             Bruno Haible  <bruno@clisp.org>
74688
74689         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74690         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74691         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74692
74693         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74694         (gl_FUNC_VASPRINTF): Invoke it.
74695
74696 2006-09-22  Bruno Haible  <bruno@clisp.org>
74697
74698         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74699         getloadavg.c as first argument.
74700
74701 2006-09-22  Bruno Haible  <bruno@clisp.org>
74702
74703         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74704         at the beginning of the gl_INIT macro.
74705         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74706         gl_GETLOADAVG.
74707
74708 2006-09-22  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74711         module.
74712         Suggested by Ralf Wildenhues.
74713
74714 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         Import this patch from libc:
74717
74718         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74719
74720         * lib/regex_internal.c (re_string_reconstruct): Handle
74721         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74722         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74723         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74724         re_string_context_at.
74725
74726         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74727         now requires it.
74728         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74729         gl_REGEX now does it for us.
74730         (gl_REGEX): Add test taken from
74731         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74732
74733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74734         Check that large offsets work.  Modernize Autoconf usages.
74735         Prefer "yes" to mean a good thing rather than a bad.
74736         Don't put "#define mkstemp" in config.h, as this might interfere
74737         with standard system headers that "#define mkstemp mkstemp64".
74738
74739         * modules/mkstemp (Depends-on): Add extensions, so that
74740         mkstemp is visible on some platforms.
74741         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74742         (Include): Change to "mkstemp.h" from <stdlib.h>.
74743         (Files): Add mkstemp.h.
74744
74745         * lib/mkstemp.h: New file, since some standard headers
74746         #define mkstemp.
74747         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74748         Include "mkstemp.h".
74749         Make the _LIBC code resemble glibc original more,
74750         e.g., use K&R style.
74751         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74752         (mkstemp): Remove, since mkstemp.h does this for us.
74753         * lib/stdlib--.h: Include mkstemp.h.
74754
74755         Import this patch from libc:
74756
74757         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74758
74759         * lib/tempname.c (__gen_tempname): Change attempts_min
74760         into a macro.  Use preprocessor to decide how to initialize
74761         attempts [Coverity CID 67].
74762
74763 2006-09-20  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/mkdtemp.c: Import from libc.
74766         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74767                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74768                 attempts_min into a macro.  Use preprocessor to decide how to
74769                 initialize attempts [Coverity CID 67].
74770         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74771                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74772                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74773
74774 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74775
74776         * gnulib-tool (func_exit): New function, to allow to pass the
74777         exit status portably through the trap.  Use everywhere.
74778         (--help, --version): Signal a write error.
74779         (trap): catch SIGPIPE, for write errors.
74780         Exit at the end of the trap, with the correct exit status.
74781
74782 2006-09-19  Karl Berry  <karl@gnu.org>
74783
74784         * doc/gnulib.texi: note about the license texinfo files.
74785
74786 2006-09-19  Eric Blake  <ebb9@byu.net>
74787
74788         * gnulib-tool: Avoid space-tab.
74789
74790 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74793         that prevented coreutils 6.1 from building.  Problem reported
74794         by Petter Reinholdtsen.
74795
74796 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * gnulib-tool (avoidlist): Fix typo that broke options like
74799         --avoid=lock that are used by coreutils bootstrap.
74800
74801 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74802
74803         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74804         more systematically.
74805
74806 2006-09-18  Jim Meyering  <jim@meyering.net>
74807
74808         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74809
74810 2006-09-18  Bruno Haible  <bruno@clisp.org>
74811
74812         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74813
74814 2006-09-18  Bruno Haible  <bruno@clisp.org>
74815
74816         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74817         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74818         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74819         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74820         * m4/gettext.m4: Require autoconf >= 2.52.
74821         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74822         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74823         of gl_cv_header_inttypes_h.
74824
74825 2006-09-18  Bruno Haible  <bruno@clisp.org>
74826
74827         * lib/javaversion.c: Include configmake.h.
74828
74829 2006-09-18  Bruno Haible  <bruno@clisp.org>
74830
74831         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74832         avoid that the while loops be executed in a subshell.
74833
74834 2006-09-18  Bruno Haible  <bruno@clisp.org>
74835
74836         * MODULES.html.sh (func_module): Break long lines.
74837         Suggested by Bruce Korb <bkorb@gnu.org>.
74838
74839 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74840
74841         Speed up by a factor of 1.12.
74842         * gnulib-tool (nl): New variable.
74843         (func_import): Rewrite include directive extraction to only read each
74844         directive once.
74845
74846 2006-09-17  Bruno Haible  <bruno@clisp.org>
74847
74848         * modules/javaversion (Makefile.am): Remove DEFS setting.
74849         (Depends-on): Add configmake, for PKGDATADIR definition.
74850
74851 2006-09-17  Bruno Haible  <bruno@clisp.org>
74852
74853         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74854
74855 2006-09-17  Bruno Haible  <bruno@clisp.org>
74856
74857         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74858         (func_modules_transitive_closure, func_modules_add_dummy,
74859         func_modules_to_filelist, func_import, func_create_testdir,
74860         func_create_megatestdir, ...): Use it wherever possible.
74861         Suggested by Ralf Wildenhues.
74862
74863 2006-09-16  Karl Berry  <karl@gnu.org>
74864
74865         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74866         to avoid sectioning errors.
74867         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74868         [ifinfo]: blank line after @center-ed titles.
74869         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74870         Spell FSF address consistently with others.
74871         (These changes approved by rms.)
74872
74873 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74874
74875         Speed up by a factor of 1.61.
74876         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74877         already checked module names again.
74878
74879 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74880
74881         Speed up by a factor of 1.13.
74882         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74883         for new_files, and the input to func_add_or_update.
74884
74885 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74886
74887         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74888         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74889
74890 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * modules/mkancesdirs (Depends-on): Add fcntl.
74893         * modules/savewd: New file.
74894         * MODULES.html.sh (File system functions): Add savewd.
74895
74896         * modules/configmake (Makefile.am): Add support for the
74897         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74898
74899 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74900
74901         * m4/savewd.m4: New file.
74902
74903 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74906         (dirchownmod): New arg FD.  All callers changed.
74907         Use FD rather than opening the directory ourself, as opening is
74908         now the caller's responsibility.
74909         * lib/dirchownmod.h: Likewise.
74910         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74911         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74912         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74913         (test_dir): Remove.
74914         (mkancesdirs): Return length of prefix of FILE that has already
74915         been made, or -2 if there is a child doing the work.  Redo
74916         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74917         ".", and treat ".." specially since it might stray back into
74918         already-created areas.  Use a subprocess if necessary.  New arg
74919         WD; all users changed.  MAKE_DIR function should now return 1
74920         if it creates a directory that is not readable.  Return -2 if
74921         a child process is spun off.
74922         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74923         Adjust signature to match code.
74924         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74925         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74926         all users changed.
74927         * lib/savewd.c, lib/savewd.h: New files.
74928
74929 2006-09-15  Jim Meyering  <jim@meyering.net>
74930
74931         * modules/rename-dest-slash: New module.
74932         * MODULES.html.sh (posix_compat): Add it here.
74933
74934         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74935
74936 2006-09-15  Jim Meyering  <jim@meyering.net>
74937
74938         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74939         file.
74940
74941         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74942
74943 2006-09-15  Jim Meyering  <jim@meyering.net>
74944
74945         * lib/rename-dest-slash.c (has_trailing_slash): Use
74946         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74947         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74948         test before testing whether SRC is a directory.
74949         Suggestions from Bruno Haible.
74950
74951         Avoid a warning about an unused variable.
74952         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74953         into the #ifdef block where it's used.
74954
74955         * lib/rename-dest-slash.c: New file.
74956
74957 2006-09-14  Bruno Haible  <bruno@clisp.org>
74958
74959         * lib/allocsa.c: Include <config.h> unconditionally.
74960         * lib/asnprintf.c: Likewise.
74961         * lib/asprintf.c: Likewise.
74962         * lib/c-strcasecmp.c: Likewise.
74963         * lib/c-strcasestr.c: Likewise.
74964         * lib/c-strncasecmp.c: Likewise.
74965         * lib/c-strstr.c: Likewise.
74966         * lib/classpath.c: Likewise.
74967         * lib/clean-temp.c: Likewise.
74968         * lib/concatpath.c: Likewise.
74969         * lib/copy-file.c: Likewise.
74970         * lib/csharpcomp.c: Likewise.
74971         * lib/csharpexec.c: Likewise.
74972         * lib/execute.c: Likewise.
74973         * lib/fatal-signal.c: Likewise.
74974         * lib/findprog.c: Likewise.
74975         * lib/fwriteerror.c: Likewise.
74976         * lib/gl_array_list.c: Likewise.
74977         * lib/gl_array_oset.c: Likewise.
74978         * lib/gl_avltree_list.c: Likewise.
74979         * lib/gl_avltree_oset.c: Likewise.
74980         * lib/gl_avltreehash_list.c: Likewise.
74981         * lib/gl_carray_list.c: Likewise.
74982         * lib/gl_linked_list.c: Likewise.
74983         * lib/gl_linkedhash_list.c: Likewise.
74984         * lib/gl_list.c: Likewise.
74985         * lib/gl_oset.c: Likewise.
74986         * lib/gl_rbtree_list.c: Likewise.
74987         * lib/gl_rbtree_oset.c: Likewise.
74988         * lib/gl_rbtreehash_list.c: Likewise.
74989         * lib/imaxabs.c: Likewise.
74990         * lib/imaxdiv.c: Likewise.
74991         * lib/javacomp.c: Likewise.
74992         * lib/javaexec.c: Likewise.
74993         * lib/javaversion.c: Likewise.
74994         * lib/linebreak.c: Likewise.
74995         * lib/localcharset.c: Likewise.
74996         * lib/lock.c: Likewise.
74997         * lib/mbchar.c: Likewise.
74998         * lib/mbswidth.c: Likewise.
74999         * lib/mkdtemp.c: Likewise.
75000         * lib/pipe.c: Likewise.
75001         * lib/printf-args.c: Likewise.
75002         * lib/printf-parse.c: Likewise.
75003         * lib/progname.c: Likewise.
75004         * lib/progreloc.c: Likewise.
75005         * lib/readlink.c: Likewise.
75006         * lib/sh-quote.c: Likewise.
75007         * lib/stpcpy.c: Likewise.
75008         * lib/stpncpy.c: Likewise.
75009         * lib/strcasecmp.c: Likewise.
75010         * lib/strcasestr.c: Likewise.
75011         * lib/strcspn.c: Likewise.
75012         * lib/striconv.c: Likewise.
75013         * lib/strncasecmp.c: Likewise.
75014         * lib/strnlen1.c: Likewise.
75015         * lib/strstr.c: Likewise.
75016         * lib/strtok_r.c: Likewise.
75017         * lib/tls.c: Likewise.
75018         * lib/tmpdir.c: Likewise.
75019         * lib/unicodeio.c: Likewise.
75020         * lib/unsetenv.c: Likewise.
75021         * lib/vasnprintf.c: Likewise.
75022         * lib/vasprintf.c: Likewise.
75023         * lib/wait-process.c: Likewise.
75024         * lib/xallocsa.c: Likewise.
75025         * lib/xsetenv.c: Likewise.
75026         * lib/xstriconv.c: Likewise.
75027
75028 2006-09-13  Simon Josefsson  <jas@extundo.com>
75029
75030         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75031         that internally, suggested by Ralf Wildenhues
75032         <Ralf.Wildenhues@gmx.de>.
75033
75034 2006-09-13  Simon Josefsson  <jas@extundo.com>
75035
75036         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75037         @LIBOBJS@.
75038         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75039
75040 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75043         longer worry about uses that don't define HAVE_CONFIG_H.
75044         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75045         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75046         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75047         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75048         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75049         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75050         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75051         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75052         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75053         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75054         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75055         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75056         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75057         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75058         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75059         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75060         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75061         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75062         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75063         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75064         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75065         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75066         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75067         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75068         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75069         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75070         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75071         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75072         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75073         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75074         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75075         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75076         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75077         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75078         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75079         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75080         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75081         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75082         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75083         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75084         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75085         Likewise.
75086
75087 2006-09-13  Eric Blake  <ebb9@byu.net>
75088
75089         * lib/getopt.c: Fix typo in last commit.
75090
75091 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75092
75093         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75094         dgettext.
75095
75096 2006-09-12  Jim Meyering  <jim@meyering.net>
75097
75098         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75099         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75100         Reported by Nelson H. F. Beebe.
75101
75102 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75103
75104         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75105         program_invocation_name and program_invocation_short_name are
75106         initialized.
75107         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75108         and program_invocation_short_name to argp.h, so they are visible
75109         to user programs.
75110         * lib/argp.h: Likewise
75111
75112 2006-09-10  Bruno Haible  <bruno@clisp.org>
75113
75114         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75115         m4/inttypes_h.m4, m4/uintmax_t.m4.
75116
75117 2006-09-10  Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75120         gl_AC_TYPE_UINTMAX_T.
75121
75122 2006-09-10  Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75125
75126 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75127
75128         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75129         convention.  Text proposed by Bruno Haible.
75130         (struct argp_option): Document the use of N_() wrappers.
75131
75132         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75133         '\v', and translate the two parts separately, instead of feeding
75134         the whole string to gettext.  This allows to exclude
75135         '\v' from the strings visible to the translator by writing doc
75136         strings as N_("..") "\v" N_("..").
75137
75138 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * config/srclist.txt: Undo latest change; the bug was fixed.
75141
75142 2006-09-09  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75145         assignments if building a library without libtool.
75146         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75147         in func_emit_lib_Makefile_am.
75148         (func_import): When building a static library libfoo.a, arrange to
75149         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75150         (func_create_testdir): Likewise.
75151         * modules/gc (configure.ac, Makefile.am): If building statically,
75152         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75153         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75154         * modules/striconv (configure.ac, Makefile.am): Likewise.
75155         Based on a suggestion by Ralf Wildenhues.
75156
75157 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75160         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75161         Also:
75162
75163         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75164         Add year_2050_test to catch glibc bug 2821
75165         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75166
75167         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75168         Prefer #ifdef to #if.
75169
75170         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75171         Return from 'main' instead of calling 'exit'.
75172
75173 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75176         returned the maximum time_t value rather than (time_t) -1.
75177         Problem originally reported by William Bardwell
75178         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75179
75180         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75181         Moved to here ...
75182         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75183         ... from here.
75184
75185 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75188         2821 is fixed.
75189
75190 2006-09-08  Jim Meyering  <jim@meyering.net>
75191
75192         Don't make generated files read-only.  That would bother too many
75193         people.  However, do retain the ability to work when targets are
75194         read-only: remove the destination and temporary files before writing
75195         them (when generated via sed or echo), or by using the -f option for
75196         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75197         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75198         * modules/byteswap, modules/configmake, modules/fcntl:
75199         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75200         * modules/localcharset, modules/netinet_in, modules/poll:
75201         * modules/stdbool, modules/stdint, modules/sys_select:
75202         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75203
75204 2006-09-08  Jim Meyering  <jim@meyering.net>
75205
75206         Avoid new build failure on FreeBSD 6.0.
75207         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75208         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75209         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75210
75211 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75212
75213         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75214
75215 2006-09-07  Jim Meyering  <jim@meyering.net>
75216
75217         Fix global typo in last change: use chmod u-w, not chmod u-x.
75218         Spotted by Paul Eggert and Bruce Korb.
75219         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75220         * modules/byteswap, modules/configmake, modules/fcntl:
75221         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75222         * modules/localcharset, modules/netinet_in, modules/poll:
75223         * modules/stdbool, modules/stdint, modules/sys_select:
75224         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75225
75226 2006-09-06  Jim Meyering  <jim@meyering.net>
75227
75228         Make generated files be read-only.
75229         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75230         Ensure that each generated file is now read-only.
75231         * modules/argz: Likewise.
75232         * modules/arpa_inet: Likewise.
75233         * modules/byteswap: Likewise.
75234         * modules/configmake: Likewise.
75235         * modules/fcntl: Likewise.
75236         * modules/fnmatch: Likewise.
75237         * modules/getopt: Likewise.
75238         * modules/glob: Likewise.
75239         * modules/inttypes: Likewise.
75240         * modules/netinet_in: Likewise.
75241         * modules/poll: Likewise.
75242         * modules/stdbool: Likewise.
75243         * modules/stdint: Likewise.
75244         * modules/sys_select: Likewise.
75245         * modules/sys_socket: Likewise.
75246         * modules/sys_stat: Likewise.
75247         * modules/sysexits: Likewise.
75248         * modules/localcharset: Same as above, but continue using temporary
75249         file named "t-$@" (why different?) rather than the "$@-t" used
75250         everywhere else.
75251
75252         * modules/sysexits (Makefile.am): Replace literal occurrences
75253         of "sysexit.h" more readable, and more consistent, "$@".
75254
75255 2006-09-06  Bruno Haible  <bruno@clisp.org>
75256
75257         * modules/striconv: New file.
75258         * modules/xstriconv: New file.
75259         * MODULES.html.sh (Internationalization functions): Add striconv,
75260         xstriconv.
75261
75262 2006-09-06  Bruno Haible  <bruno@clisp.org>
75263
75264         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75265         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75266         not using libtool correctly.
75267
75268 2006-09-06  Bruno Haible  <bruno@clisp.org>
75269
75270         * lib/striconv.h: New file.
75271         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75272         iconvstring.c.
75273         * lib/xstriconv.h: New file.
75274         * lib/xstriconv.c: New file.
75275
75276 2006-09-06  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75279         lib_..._LDFLAGS.
75280
75281 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75282
75283         * lib/argz_.h: Sync from Libtool.
75284
75285         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75286                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75287
75288         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75289
75290 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75291
75292         * modules/trim: New file.
75293
75294 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75295
75296         * lib/trim.h: New file.
75297         * lib/trim.c: New file.
75298
75299 2006-09-05  Bruno Haible  <bruno@clisp.org>
75300
75301         * MODULES.html.sh (String handling): Add trim.
75302
75303 2006-09-04  Karl Berry  <karl@gnu.org>
75304
75305         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75306         until next release.
75307
75308 2006-09-03  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75311         correctly.
75312
75313 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75316         not gl_GETLOADAVG.  Omit unneeded semicolons.
75317         Problems reported by Ralf Wildenhues in
75318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75319         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75320         at the end, which is the usual gnulib style.
75321
75322         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75323         of doing all the work ourselves.
75324         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75325         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75326
75327 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75330         Problem reported by Ralf Wildenhues in
75331         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75332
75333         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75334         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75335
75336 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75339         yesterday's patch by changing test -n to test -z.
75340
75341 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75344         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75345         the former is now obsolescent.
75346
75347         * modules/chdir-long (Depends-on): Add fcntl.
75348
75349 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75352         obsolescent, and programs should use gnulib instead.
75353         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75354         but with prefixes changed.
75355
75356 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75359         or stdbool.h, because they might not exist while configuring.
75360
75361         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75362         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75363         does that for us.
75364         (O_DIRECTORY): Remove.
75365
75366 2006-08-31  Eric Blake  <ebb9@byu.net>
75367
75368         * gnulib-tool: Don't let emacs change spaces to TAB.
75369
75370 2006-08-31  Bruno Haible  <bruno@clisp.org>
75371
75372         * gnulib-tool: When calling func_import more than once, do it in a
75373         subshell.
75374         Reported by Eric Blake <ebb9@byu.net>.
75375
75376 2006-08-31  Bruno Haible  <bruno@clisp.org>
75377
75378         * gnulib-tool (nl): Remove variable.
75379         (sed_transform_lib_file): Use more robust test for config-h module.
75380         (func_import): Fix typo in 2006-08-25 patch.
75381
75382 2006-08-31  Bruno Haible  <bruno@clisp.org>
75383
75384         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75385         specified, augment Makefile.am variables instead of assigning them.
75386
75387 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         Work around a bug in both the Linux and SunOS 64-bit kernels:
75390         nanosleep mishandles sleeps for longer than 2**31 seconds.
75391         Problem reported by Frank v Waveren in
75392         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75394         Check for nanosleep bug.
75395         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75396
75397 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         Work around a bug in both the Linux and SunOS 64-bit kernels:
75400         nanosleep mishandles sleeps for longer than 2**31 seconds.
75401         Problem reported by Frank v Waveren in
75402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75403         * lib/nanosleep.c (BILLION): New constant.
75404         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75405         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75406         implementation.
75407
75408 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * modules/nanosleep (Depends-on): Add gettime.
75411
75412 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75413         and Simon Josefsson  <jas@extundo.com>
75414         and Oskar Liljeblad  <oskar@osk.mine.nu>
75415
75416         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75417         * gnulib-tool (func_import): New license type 'unmodifiable license
75418         text'.
75419         * modules/fdl: Use it.  Longer description.
75420         * module/gpl, module/lgpl: New files.
75421
75422 2006-08-30  Jim Meyering  <jim@meyering.net>
75423
75424         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75425         shadowing the parameter.
75426
75427 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75428
75429         Sync from Libtool:
75430
75431         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75432
75433         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75434         sharing with gnulib.  Report by Eric Blake.
75435
75436 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * modules/isapipe: New file.
75439         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75440
75441 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75442
75443         * modules/configmake (Makefile.am): Add a comment, and omit
75444         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75445         by Bruno Haible.
75446
75447 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * m4/isapipe.m4: New file.
75450
75451 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * lib/isapipe.c, lib/isapipe.h: New files.
75454
75455 2006-08-29  Jim Meyering  <jim@meyering.net>
75456
75457         * modules/configmake (Makefile.am): Make configmake.h depend on
75458         Makefile.  Otherwise, a stale configmake.h could hang around.
75459
75460 2006-08-29  Eric Blake  <ebb9@byu.net>
75461
75462         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75463         resolution of upstream bug 3044.
75464
75465 2006-08-29  Bruno Haible  <bruno@clisp.org>
75466
75467         * modules/localcharset (Depends-on): Add configmake.
75468         (Makefile.am): Remove setting of LIBDIR through DEFS.
75469
75470 2006-08-29  Bruno Haible  <bruno@clisp.org>
75471
75472         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75473         defined.
75474
75475 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * modules/fcntl: New file.
75478         * modules/chdir-safer (Depends-on): Add fcntl.
75479         * modules/fts: Likewise.
75480         * modules/mkdir-p: Likewise.
75481
75482         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75483         This undoes the most recent change, since we're now addressing the
75484         problem in a different way.
75485
75486         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75487         into output, since the output might be called Makefile.am even
75488         if $makefile_name is something different.
75489         (func_import): Use $makefile_am rather than
75490         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75491         empty.
75492
75493         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75494
75495 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75498         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75499         recent change to stdint.m4, since we're now addressing the problem in a
75500         different way.
75501
75502 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * m4/fcntl_h.m4: New file.
75505
75506 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         * lib/fcntl_.h: New file.
75509         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75510         the fcntl module.
75511         * lib/dirchownmod.c: Likewise.
75512         * lib/fts.c: Likewise.
75513
75514         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75515         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75516         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75517         just before including <inttypes.h>, to avoid circular inclusion.
75518
75519 2006-08-28  Jim Meyering  <jim@meyering.net>
75520
75521         * doc/visibility.texi: Actually read and correct the grammar of the
75522         sentence affected by yesterday's change.
75523
75524 2006-08-28  Eric Blake  <ebb9@byu.net>
75525
75526         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75527         needs wrapper.
75528
75529 2006-08-28  Eric Blake  <ebb9@byu.net>
75530
75531         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75532
75533 2006-08-28  Eric Blake  <ebb9@byu.net>
75534
75535         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75536
75537 2006-08-28  Bruno Haible  <bruno@clisp.org>
75538
75539         * modules/c-strstr: New file, from GNU gettext.
75540         * MODULES.html.sh (String handling): Add c-strstr.
75541
75542 2006-08-28  Bruno Haible  <bruno@clisp.org>
75543
75544         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75545         macros.
75546         Reported by Eric Blake.
75547
75548 2006-08-28  Bruno Haible  <bruno@clisp.org>
75549
75550         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75551         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75552         * lib/vasprintf.c: Include errno.h, limits.h.
75553         (EOVERFLOW): New fallback definition.
75554         (vasprintf): Test here whether the string length is > INT_MAX.
75555         * lib/vsnprintf.c: Include errno.h, limits.h.
75556         (EOVERFLOW): New fallback definition.
75557         (vsnprintf): Fix bug when generated string was too long for the buffer.
75558         Test here whether the string length is > INT_MAX.
75559
75560 2006-08-28  Bruno Haible  <bruno@clisp.org>
75561
75562         * lib/inttypes_.h (SCNX*): Remove definitions.
75563         Reported by Eric Blake.
75564
75565 2006-08-28  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/c-strstr.h: New file, from GNU gettext.
75568         * lib/c-strstr.c: New file, from GNU gettext.
75569
75570 2006-08-28  Bruno Haible  <bruno@clisp.org>
75571
75572         * gnulib-tool: Reorder some statements.
75573
75574 2006-08-28  Bruno Haible  <bruno@clisp.org>
75575
75576         * gnulib-tool: New option --makefile-name.
75577         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75578         $makefile_name.
75579         (func_import): Write $makefile_name to the cache file, and read it from
75580         there unless explicitly specified. Use $makefile_name as file name
75581         instead of Makefile.am. Adjust the recommendations accordingly.
75582
75583 2006-08-28  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_verify_module): Check against misapplying patch.
75586
75587 2006-08-28  Bruno Haible  <bruno@clisp.org>
75588
75589         * gnulib-tool (func_relativize, func_relconcat): New functions.
75590         Give an error if --local-dir is given with --update.
75591         Remove trailing slashes from $local_gnulib_dir.
75592         (func_import): Store the relativized $local_gnulib_dir in
75593         gnulib-cache.m4, and read it from there if not specified explicitly.
75594
75595 2006-08-28  Bruno Haible  <bruno@clisp.org>
75596
75597         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75598         is the current directory. Respect also $local_gnulib_dir.
75599
75600 2006-08-28  Bruno Haible  <bruno@clisp.org>
75601             Simon Josefsson  <jas@extundo.com>
75602
75603         BeOS portability.
75604         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75605
75606 2006-08-27  Jim Meyering  <jim@meyering.net>
75607
75608         * doc/visibility.texi: Remove duplicate word: "pointer".
75609
75610 2006-08-26  Bruno Haible  <bruno@clisp.org>
75611
75612         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75613         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75614         (Makefile.am): Create inttypes.h from inttypes_.h.
75615         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75616
75617         * modules/imaxabs: New file.
75618
75619         * modules/imaxdiv: New file.
75620
75621 2006-08-26  Bruno Haible  <bruno@clisp.org>
75622
75623         * m4/inttypes.m4: New file.
75624         * m4/_inttypes_h.m4: Remove file.
75625         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75626         PRI_MACROS_BROKEN.
75627         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75628
75629         * m4/imaxabs.m4: New file.
75630
75631         * m4/imaxdiv.m4: New file.
75632
75633 2006-08-26  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/inttypes_.h: New file.
75636         * lib/inttypes.h: Remove file.
75637         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75638
75639         * lib/imaxabs.c: New file.
75640
75641         * lib/imaxdiv.c: New file.
75642
75643 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         New config-h module, so that "make" output needn't be cluttered
75646         by -DHAVE_CONFIG_H.
75647         * MODULES.html.sh (Support for building libraries and executables):
75648         Add config-h.
75649         * modules/config-h: New file.
75650         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75651         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75652         the config-h module is used.
75653
75654         New configmake module, so that "make" output needn't be cluttered
75655         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75656         * MODULES.html.sh (Support for building libraries and executables):
75657         Add configmake.
75658         * modules/configmake: New file.
75659
75660 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * m4/config-h.m4: New file.
75663
75664 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * config/srclist.txt: Add elisp-comp.
75667
75668 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * MODULES.html.sh (Support for building libraries and executables):
75671         Add elisp-comp.
75672         * build-aux/elisp-comp: New file.
75673         * modules/elisp-comp: New file.
75674
75675 2006-08-24  Bruno Haible  <bruno@clisp.org>
75676
75677         * gnulib-tool (func_create_testdir): Use non-default values of
75678         sourcebase and m4base.
75679
75680 2006-08-24  Bruno Haible  <bruno@clisp.org>
75681
75682         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75683         HTML structure.
75684
75685 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * modules/openat (Depends-on): Add lchown.
75688
75689 2006-08-23  Bruno Haible  <bruno@clisp.org>
75690
75691         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75692         of gl_LOCK_EARLY instead of gl_LOCK.
75693
75694 2006-08-23  Bruno Haible  <bruno@clisp.org>
75695
75696         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75697         on OSF/1 to no.
75698         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75699
75700 2006-08-23  Bruno Haible  <bruno@clisp.org>
75701
75702         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75703         as unusable.
75704
75705         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75706         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75707         (gl_LOCK): New macro.
75708
75709 2006-08-22  Simon Josefsson  <jas@extundo.com>
75710
75711         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75712         to md5 module.
75713
75714 2006-08-22  Simon Josefsson  <jas@extundo.com>
75715
75716         * MODULES.html.sh: Add "Support for maintaining and release
75717         projects".
75718
75719         * build-aux/gnupload: New file, from coreutils.
75720
75721 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         Avoid the need for AC_LIBSOURCES in m4 macros.
75724         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75725         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75726         * modules/check-version (EXTRA_DIST): Add check-version.h.
75727         * modules/crc (EXTRA_DIST): Add crc.h.
75728         * modules/des (EXTRA_DIST): Add des.h.
75729         * modules/gc (EXTRA_DIST): Add gc.h.
75730         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75731         * modules/getline (EXTRA_DIST): Add getline.h.
75732         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75733         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75734         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75735         * modules/md2 (EXTRA_DIST): Add md2.h.
75736         * modules/md4 (EXTRA_DIST): Add md4.h.
75737         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75738         * modules/read-file (EXTRA_DIST): Add read-file.h.
75739         * modules/readline (EXTRA_DIST): Add readline.h.
75740         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75741         rijndael-api-fst.h.
75742
75743 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * m4/rijndael.m4 (gl_ARCFOUR):
75746         * m4/arctwo.m4 (gl_ARCTWO):
75747         * m4/check-version.m4 (gl_CHECK_VERSION):
75748         * m4/crc.m4 (gl_CRC):
75749         * m4/des.m4 (gl_DES):
75750         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75751         * m4/gc.m4 (gl_GC):
75752         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75753         * m4/getline.m4 (gl_FUNC_GETLINE):
75754         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75755         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75756         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75757         * m4/md2.m4 (gl_MD2):
75758         * m4/md4.m4 (gl_MD4):
75759         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75760         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75761         * m4/readline.m4 (gl_FUNC_READLINE):
75762         * m4/rijndael.m4 (gl_RIJNDAEL):
75763         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75764         to get the necessary .h files and whatnot.
75765
75766 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75769         gnulib rather than the other way around.
75770         * config/srclistvars.sh (COREUTILS): Remove.
75771
75772 2006-08-22  Jim Meyering  <jim@meyering.net>
75773
75774         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75775
75776         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75777
75778 2006-08-22  Eric Blake  <ebb9@byu.net>
75779
75780         * modules/regexprops-generic: New file.
75781         * MODULES.html.sh (Support for building documentation): List it.
75782
75783 2006-08-22  Eric Blake  <ebb9@byu.net>
75784
75785         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75786         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75787         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75788         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75789
75790 2006-08-22  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75793         and lib_LTLIBRARIES like the other lib_* variables.
75794
75795 2006-08-22  Bruno Haible  <bruno@clisp.org>
75796
75797         * build-aux/x-to-1.in: New file, from GNU gettext.
75798
75799 2006-08-22  Bruno Haible  <bruno@clisp.org>
75800
75801         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75802         <utmpx.h> exists.
75803
75804 2006-08-22  Bruno Haible  <bruno@clisp.org>
75805
75806         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75807         <utmpx.h> exists.
75808
75809 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         BeOS portability.
75812         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75813         exist.
75814         Problem reported by Bruno Haible.
75815
75816 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         Avoid the need for AC_LIBSOURCES in m4 macros.
75819         * modules/acl (EXTRA_DIST): Add acl.h.
75820         * modules/argmatch (Files): Add m4/argmatch.m4.
75821         (configure.ac): Add gl_ARGMATCH.
75822         (EXTRA_DIST): Renamed from lib_SOURCES, for
75823         consistency with the other modules.  Remove argmatch.c.
75824         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75825         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75826         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75827         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75828         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75829         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75830         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75831         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75832         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75833         * modules/closeout (EXTRA_DIST): Add closeout.h.
75834         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75835         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75836         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75837         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75838         dirname.h; remove basename.c and stripslash.c.
75839         * modules/exclude (EXTRA_DIST): Add exclude.h.
75840         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75841         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75842         * modules/file-type (EXTRA_DIST): Add file-type.h.
75843         * modules/filemode (EXTRA_DIST): Add filemode.h.
75844         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75845         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75846         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75847         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75848         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75849         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75850         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75851         * modules/getdate (EXTRA_DIST): Add getdate.c.
75852         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75853         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75854         * modules/getpass (EXTRA_DIST): Add getpass.h.
75855         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75856         * modules/group-member (EXTRA_DIST): Add group-member.h.
75857         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75858         * modules/hash (EXTRA_DIST): Add hash.h.
75859         * modules/human (EXTRA_DIST): Add human.h.
75860         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75861         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75862         * modules/lchown (EXTRA_DIST): Add lchown.h.
75863         * modules/long-options (EXTRA_DIST): Add long-options.h.
75864         * modules/lstat (EXTRA_DIST): Add lstat.h.
75865         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75866         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75867         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75868         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75869         * modules/memxor (EXTRA_DIST): Add memxor.h.
75870         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75871         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75872         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75873         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75874         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75875         * modules/physmem (EXTRA_DIST): Add physmem.h.
75876         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75877         * modules/posixver (EXTRA_DIST): Add posixver.h.
75878         * modules/quote (EXTRA_DIST): Add quote.h.
75879         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75880         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75881         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75882         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75883         regex_internal.h regexec.c.
75884         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75885         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75886         * modules/same (EXTRA_DIST): Add same.h.
75887         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75888         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75889         * modules/savedir (EXTRA_DIST): Add savedir.h.
75890         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75891         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75892         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75893         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75894         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75895         * modules/strdup (EXTRA_DIST): Add strdup.h.
75896         * modules/strftime (EXTRA_DIST): Add strftime.h.
75897         * modules/strndup (EXTRA_DIST): Add strndup.h.
75898         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75899         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75900         * modules/time_r (EXTRA_DIST): Add time_r.h.
75901         * modules/timespec (EXTRA_DIST): Add timespec.h.
75902         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75903         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75904         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75905         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75906         * modules/userspec (EXTRA_DIST): Add userspec.h.
75907         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75908         * modules/utimens (EXTRA_DIST): Add utimens.h.
75909         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75910         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75911         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75912         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75913         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75914         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75915         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75916         * modules/yesno (EXTRA_DIST): Add yesno.h.
75917
75918 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75921
75922         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75923         * m4/dev-ino.m4, same-inode.m4: Remove.
75924
75925         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75926         * m4/acl.m4 (AC_FUNC_ACL):
75927         * m4/backupfile.m4 (gl_BACKUPFILE):
75928         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75929         * m4/canon-host.m4 (gl_CANON_HOST):
75930         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75931         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75932         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75933         * m4/cloexec.m4 (gl_CLOEXEC):
75934         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75935         * m4/closeout.m4 (gl_CLOSEOUT):
75936         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75937         * m4/dirname.m4 (gl_DIRNAME):
75938         * m4/exclude.m4 (gl_EXCLUDE):
75939         * m4/exitfail.m4 (gl_EXITFAIL):
75940         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75941         * m4/file-type.m4 (gl_FILE_TYPE):
75942         * m4/filemode.m4 (gl_FILEMODE):
75943         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75944         * m4/fpending.m4 (gl_FUNC_FPENDING):
75945         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75946         * m4/fts.m4 (gl_FUNC_FTS):
75947         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75948         * m4/getdate.m4 (gl_GETDATE):
75949         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75950         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75951         * m4/getpass.m4 (gl_FUNC_GETPASS):
75952         * m4/gettime.m4 (gl_GETTIME):
75953         * m4/getugroups.m4 (gl_GETUGROUPS):
75954         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75955         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75956         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75957         * m4/hash.m4 (gl_HASH):
75958         * m4/idcache.m4 (gl_IDCACHE):
75959         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75960         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75961         * m4/long-options.m4 (gl_LONG_OPTIONS):
75962         * m4/lstat.m4 (gl_FUNC_LSTAT):
75963         * m4/md5.m4 (gl_MD5):
75964         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75965         * m4/memcoll.m4 (gl_MEMCOLL):
75966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75967         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75968         * m4/memxor.m4 (gl_MEMXOR):
75969         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75970         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75971         * m4/modechange.m4 (gl_MODECHANGE):
75972         * m4/mountlist.m4 (gl_MOUNTLIST):
75973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75974         * m4/openat.m4 (gl_FUNC_OPENAT):
75975         * m4/pathmax.m4 (gl_PATHMAX):
75976         * m4/physmem.m4 (gl_PHYSMEM):
75977         * m4/posixtm.m4 (gl_POSIXTM):
75978         * m4/posixver.m4 (gl_POSIXVER):
75979         * m4/quote.m4 (gl_QUOTE):
75980         * m4/quotearg.m4 (gl_QUOTEARG):
75981         * m4/readtokens.m4 (gl_READTOKENS):
75982         * m4/readutmp.m4 (gl_READUTMP):
75983         * m4/regex.m4 (gl_REGEX):
75984         * m4/safe-read.m4 (gl_SAFE_READ):
75985         * m4/safe-write.m4 (gl_SAFE_WRITE):
75986         * m4/same.m4 (gl_SAME):
75987         * m4/save-cwd.m4 (gl_SAVE_CWD):
75988         * m4/savedir.m4 (gl_SAVEDIR):
75989         * m4/settime.m4 (gl_SETTIME):
75990         * m4/sha1.m4 (gl_SHA1):
75991         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75992         * m4/stat-macros.m4 (gl_STAT_MACROS):
75993         * m4/stat-time.m4 (gl_STAT_TIME):
75994         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75995         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75996         * m4/strdup.m4 (gl_FUNC_STRDUP):
75997         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75998         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75999         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76000         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76001         * m4/time_r.m4 (gl_TIME_R):
76002         * m4/timespec.m4 (gl_TIMESPEC):
76003         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76004         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76005         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76006         * m4/userspec.m4 (gl_USERSPEC):
76007         * m4/utimecmp.m4 (gl_UTIMECMP):
76008         * m4/utimens.m4 (gl_UTIMENS):
76009         * m4/xalloc.m4 (gl_XALLOC):
76010         * m4/xgetcwd.m4 (gl_XGETCWD):
76011         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76012         * m4/xreadlink.m4 (gl_XREADLINK):
76013         * m4/xstrtod.m4 (gl_XSTRTOD):
76014         * m4/yesno.m4 (gl_YESNO):
76015         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76016         to get the necessary .h files and whatnot.
76017
76018 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76019             Bruno Haible  <bruno@clisp.org>
76020
76021         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76022         /bin/sh understanding of '!' conditional negation.
76023
76024 2006-08-21  Jim Meyering  <jim@meyering.net>
76025
76026         * modules/openat (Depends-on): Really alphabetize.
76027
76028         * modules/acl (Depends-on): Add error and quote.
76029
76030         * check-module (find_included_lib_files): Add at-func.c to the
76031         ok-to-include-more-than-once white list.
76032
76033         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76034
76035 2006-08-21  Bruno Haible  <bruno@clisp.org>
76036
76037         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76038         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76039         Reported by Martin Lambers <marlam@marlam.de>.
76040
76041 2006-08-21  Bruno Haible  <bruno@clisp.org>
76042
76043         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76044         specify an installation location, don't emit a noinst_LIBRARIES or
76045         noinst_LTLIBRARIES assignment.
76046
76047 2006-08-21  Bruno Haible  <bruno@clisp.org>
76048
76049         BeOS portability.
76050         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76051         BeOS has mbrtowc() but no <wctype.h>.
76052
76053 2006-08-21  Bruno Haible  <bruno@clisp.org>
76054
76055         BeOS portability.
76056         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76057         exist.
76058
76059 2006-08-21  Bruno Haible  <bruno@clisp.org>
76060
76061         BeOS portability.
76062         * lib/mbchar.h: Include <wctype.h> only if it exists.
76063
76064 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         Remove files that are no longer needed by their respective modules.
76067         * m4/obstack.m4: Remove.
76068         * m4/strerror_r.m4: Remove.
76069         * m4/uint32_t.m4: Remove.
76070         * m4/uintptr_t.m4: Remove.
76071         * m4/ullong_max.m4: Remove.
76072         * m4/xstrtoimax.m4: Remove.
76073         * m4/xstrtoumax.m4: Remove.
76074
76075         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76076         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76077         dependencies now capture this.
76078
76079         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76080         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76081         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76082         * m4/human.m4 (gl_HUMAN): Likewise.
76083         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76084         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76085
76086         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76087
76088         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76089         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76090         stdint.
76091         * m4/human.m4 (gl_HUMAN): Likewise.
76092         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76093         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76094         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76095         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76096         * m4/xstrtol (gl_XSTRTOL): Likewise.
76097
76098         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76099         AC_TYPE_LONG_LONG_INT.
76100         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76101         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76102         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76103         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76104
76105         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76106         on stdbool.
76107
76108         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76109         (gl_PREREQ_XSTRTOUL): Remove.
76110
76111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76112
76113         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76114         mode.
76115
76116 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         Add and change modules to make it easier for coreutils to use
76119         gnulib-tool.
76120         * modules/backupfile (Files): Remove m4/d-ino.m4.
76121         (Depends-on): Add d-ino.
76122         * modules/cycle-check (Depends-on): Add stdint.
76123         (lib_SOURCES): Add cycle-check.h.
76124         * modules/d-ino: New module.
76125         * modules/d-type: New module.
76126         * modules/error (Files): Remove m4/strerror_r.m4.
76127         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76128         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76129         m4/inttypes_h.m4, m4/uintmax_t.m4.
76130         (Depends-on): Add stdint.
76131         (lib_SOURCES): Add fsusage.h.
76132         * modules/getcwd (Files): Remove d-ino.m4.
76133         (Depends-on): Add d-ino.
76134         * modules/getndelim2 (Depends-on): Add stdint.
76135         * modules/glob (Files): Remove m4/d-type.m4.
76136         (Depends-on): Add d-type.
76137         * modules/host-os: New module.
76138         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76139         m4/inttypes_h.m4, m4/uintmax_t.m4.
76140         * Depends-on: Add stdint.
76141         (lib_SOURCES): Add human.h.
76142         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76143         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76144         m4/uintmax_t.m4, m4/ulonglong.m4.
76145         (Depends-on): Add stdint.
76146         (EXTRA_DIST): Add inttostr.h.
76147         * modules/lchmod: New module.
76148         * modules/link-follow: New module.
76149         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76150         (Depends-on): Add lchmod.
76151         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76152         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76153         (Depends-on): Add stdint.
76154         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76155         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76156         (Depends-on): Add stdint.
76157         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76158         * modules/perl: New module.
76159         * modules/regex (Depends-on): Add stdint.
76160         * modules/rmdir-errno: New module.
76161         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76162         m4/intmax_t.m4.
76163         (Depends-on): Add stdint.
76164         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76165         m4/uintmax_t.m4.
76166         (Depends-on): Add stdint.
76167         * modules/unlink-busy: New module.
76168         * modules/utimecmp (Depends-on): Add stdint.
76169         * modules/uptime: New module.
76170         * modules/winsz-ioctl: New module.
76171         * modules/winsz-termios: New module.
76172         * modules/xnanosleep (Depends-on): Add nanosleep.
76173         * modules/ullong_max: Remove.
76174         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76175         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76176         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76177         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76178         (Depends-on): Add inttypes.
76179         (lib_SOURCES): Add xstrtol.h.
76180         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76181         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76182         * MODULES.html.sh: Move 'assert' into the assert section.
76183         Move 'dummy' into the linking section.
76184         Remove ullong_max.
76185         Add section for compatibility checks for POSIX:2001 functions,
76186         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76187         winsz-ioctl, and winsz-termios into it.
76188         Add lchmod.
76189         Add top-level Misc section and put host-os, perl, and uptime
76190         into it.
76191
76192 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76193
76194         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76195         now assume the stdint module.  Do not include inttypes.h.
76196         * lib/fsusage.h: Likewise.
76197         * lib/getndelim2.c: Likewise.
76198         * lib/human.h: Likewise.
76199         * lib/inttostr.h: Likewise.
76200         * lib/obstack.c: Likewise.
76201         * lib/regex_internal.h: Likewise.
76202         * lib/tempname.c: Likewise.
76203         * lib/utimecmp.c: Likewise.
76204         * lib/xstrtol.h: Likewise.
76205
76206         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76207
76208         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76209         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76210         * lib/xtime.h: Likewise.
76211
76212 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76213
76214         * modules/openat (Files): Add lib/fchmodat.c.
76215         Fixes problem reported by Jay Youngman.
76216
76217 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76220         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76221
76222 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76223             Bruno Haible  <bruno@clisp.org>
76224
76225         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76226         and is a script that invokes bison. Tighten the code. Add comments.
76227
76228 2006-08-18  Jim Meyering  <jim@meyering.net>
76229
76230         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76231         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76232         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76233         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76234
76235 2006-08-18  Bruno Haible  <bruno@clisp.org>
76236
76237         * modules/bison-i18n: New file.
76238         * MODULES.html.sh (Internationalization functions): Add it.
76239
76240 2006-08-18  Bruno Haible  <bruno@clisp.org>
76241
76242         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76243         sys/statvfs.h. When getmntinfo was found, check its declaration and
76244         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76245
76246 2006-08-18  Bruno Haible  <bruno@clisp.org>
76247
76248         * m4/bison-i18n.m4: New file, from bison.
76249
76250 2006-08-18  Bruno Haible  <bruno@clisp.org>
76251
76252         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76253         (ME_DUMMY): Treat "kernfs" as a dummy.
76254         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76255
76256 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         Update from coreutils.
76259
76260         2006-08-15  Jim Meyering  <jim@meyering.net>
76261
76262         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76263
76264         2006-01-17  Jim Meyering  <jim@meyering.net>
76265
76266         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76267
76268         2006-01-11  Jim Meyering  <jim@meyering.net>
76269
76270         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76271         Check for the lchmod function.
76272
76273 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         Update from coreutils.
76276
76277         * lib/__fpending.h: Add copyright notice.
76278         * lib/fprintftime.h: Likewise.
76279         * lib/savedir.c: Use (C) in copyright notice.
76280         * lib/savedir.h: Likewise.
76281
76282         2006-08-15  Jim Meyering  <jim@meyering.net>
76283
76284         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76285         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76286         in support of the EXPECTED_ERRNO macro.
76287         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76288         definitions.  Instead, define the appropriate symbols and include
76289         "at-func.c".
76290         * lib/mkdirat.c (mkdirat): Likewise.
76291         * lib/fchmodat.c (fchmodat): Likewise.
76292         (ENOSYS): Remove definition.
76293         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76294         it.  Don't include "unistd--.h" -- it wasn't ever used.
76295
76296         2006-01-17  Jim Meyering  <jim@meyering.net>
76297
76298         Rewrite fts.c not to change the current working directory,
76299         by using openat, fstatat, fdopendir, etc..
76300
76301         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76302         (HAVE_OPENAT_SUPPORT): Define.
76303         [_LIBC] (fchdir): Don't undef or define; no longer used.
76304         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76305         Now, this `function' always succeeds, and consumes its file descriptor
76306         parameter -- so callers must not close such FDs.  Update callers.
76307         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76308         (diropen): Add parameter, SP.  Adjust all callers.
76309         Implement using diropen_fd, rather than open.
76310         (fts_open): Initialize new member, fts_cwd_fd.
76311         Remove fts_rft-setting code.
76312         (fts_close): Close fts_cwd_fd, if necessary.
76313         (__opendir2): Define in terms of opendir or opendirat,
76314         depending on whether the FST_NOCHDIR flag is set.
76315         (fts_build): Since fts_safe_changedir consumes its FD, and since
76316         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76317         and close the dup'd file descriptor upon failure.
76318         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76319         (fts_safe_changedir): Tweak semantics to reflect that this function
76320         now calls cwd_advance_fd and hence consumes its FD argument.
76321         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76322         [struct FTS] (fts_rft): Remove now-unused member.
76323         [struct FTS] (fts_cycle.state): Improve comment.
76324
76325         * lib/openat.c (openat_needs_fchdir): New function.
76326         * lib/openat.h (openat_needs_fchdir): Declare it.
76327
76328 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76329
76330         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76331         Problem and fix reported by Pádraig Brady in
76332         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76333
76334 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76337
76338 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * lib/memcoll.c (memcoll): Optimize for the common case where the
76341         arguments are bytewise equal.
76342
76343 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * doc/regexprops-generic.texi: Add a copyright notice.
76346
76347 2006-08-15  Bruno Haible  <bruno@clisp.org>
76348
76349         * modules/tmpdir (License): Change to LGPL.
76350
76351 2006-08-15  Bruno Haible  <bruno@clisp.org>
76352
76353         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76354         module.
76355
76356 2006-08-14  Simon Josefsson  <jas@extundo.com>
76357
76358         * config/srclist.txt: Add gnupload.
76359
76360 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76361
76362         Change copyright notice from LGPL 2 to GPL 2, since that's the
76363         standard form used in the gnulib repository.
76364         * tests/test-lock.c: Likewise.
76365         * tests/test-stdint.c: Likewise.
76366         * tests/test-tls.c: Likewise.
76367
76368         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76369         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76370         Add copyright notice.
76371
76372         * check-module: Add copyright notice.  Output a copyright
76373         notice if "--version" is specified.
76374         * modules/COPYING: New file.
76375         * tests/test-getaddrinfo.c: Add copyright notice.
76376         * tests/test-verify.c: Likewise.
76377
76378 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         Change copyright notice from LGPL 2 to GPL 2, since that's the
76381         standard form used in the gnulib repository.
76382         * lib/lock.c: LGPL -> GPL.
76383         * lib/lock.h: Likewise.
76384         * lib/strnlen1.c: Likewise.
76385         * lib/strnlen1.h: Likewise.
76386         * lib/tls.c: Likewise.
76387         * lib/tls.h: Likewise.
76388         * lib/tmpdir.c: Likewise.
76389
76390         * lib/TODO: Remove; this belongs only in coreutils.
76391
76392 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         Add copyright notices to long-enough files that lack them, since
76395         otherwise the files aren't clearly free.  Use the same notice that
76396         getdate.texi already uses.
76397         * doc/alloca-opt.texi: Add copyright notice.
76398         * doc/alloca.texi: Likewise.
76399         * doc/ctime.texi: Likewise.
76400         * doc/functions.texi: Likewise.
76401         * doc/gcd.texi: Likewise.
76402         * doc/gnulib-tool.texi: Likewise.
76403         * doc/inet_ntoa.texi: Likewise.
76404         * doc/visibility.texi: Likewise.
76405
76406         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76407         * doc/quote.texi: Add copyright notice.
76408
76409         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76410         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76411         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76412         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76413         is now obsolete, and give a pointer to the Sun list.
76414         Add copyright notice.
76415
76416 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * config/srclistvars.sh: Add copyright notice.
76419
76420 2006-08-14  Eric Blake  <ebb9@byu.net>
76421
76422         Import the following change from libc:
76423
76424         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76425
76426         Upstream bug 2997.
76427         * lib/misc/error.c: Add space between program name and message if file
76428         name is missing.
76429
76430 2006-08-12  Karl Berry  <karl@gnu.org>
76431
76432         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76433         remove, these originate in gnulib now.
76434
76435 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76436
76437         * doc/Makefile (standards.info standards.html standards.dvi):
76438         Also depend on make-stds.texi.
76439
76440 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76441
76442         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76443         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76444
76445         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76446         in wchar_t.  Problem reported by Eric Blake.
76447
76448         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76449         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76450         Also, help the compiler to keep LEN in a register.
76451
76452 2006-08-11  Eric Blake  <ebb9@byu.net>
76453
76454         * users.txt: Sort.  Add tar.
76455
76456 2006-08-11  Bruno Haible  <bruno@clisp.org>
76457
76458         * users.txt: New file.
76459
76460 2006-08-11  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76463         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76464
76465 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * modules/snprintf (Depends-on): Remove minmax.
76468         (Maintainer): Add self and Bruno.
76469
76470 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76473         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76474         (EOVERFLOW): Define if the system does not.
76475         Do not include "minmax.h"; it wasn't used.
76476         (snprintf): Don't assume size_t promotes to an unsigned type.
76477         Fix bug when generated string was too long for the buffer: the
76478         buffer's contents are supposed to be the initial prefix of the
76479         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76480         exceeds INT_MAX; do the check ourselves.
76481
76482         Import the following changes from libc:
76483
76484         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76485
76486         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76487         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76488         set wc to the byte which couldn't be converted.
76489         (re_string_reconstruct): Don't clear valid_raw_len before calling
76490         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76491         tip_context using re_string_context_at.
76492
76493         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76494
76495         * lib/posix/regex.h: g++ still cannot handled [restrict].
76496
76497         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76498
76499         * lib/posix/regex.h: Remove special handling for VMS.
76500
76501 2006-08-10  Jim Meyering  <jim@meyering.net>
76502
76503         * modules/same-inode: New module.
76504         * modules/dev-ino: New module.
76505         * modules/cycle-check: Depend on these modules, rather than simply
76506         including their .h files.
76507         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76508         required via m4/cycle-check.m4.
76509         * modules/same: Depend on new same-inode module, rather than
76510         including same-inode.h.
76511         * modules/chdir-safer: New file.
76512
76513         * modules/chown (Depends-on): Add stat-macros.
76514
76515 2006-08-10  Jim Meyering  <jim@meyering.net>
76516
76517         * m4/cycle-check.m4: New file.
76518         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76519         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76520
76521 2006-08-10  Eric Blake  <ebb9@byu.net>
76522
76523         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76524         in from original proposal.
76525
76526 2006-08-10  Eric Blake  <ebb9@byu.net>
76527         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76528
76529         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76530         namespace.
76531
76532 2006-08-10  Bruno Haible  <bruno@clisp.org>
76533
76534         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76535         as well.
76536
76537 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         Sync from coreutils.
76540
76541         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76542
76543         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76544         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76545
76546 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * modules/restrict: Remove; no longer needed now that we assume
76549         Autoconf 2.59 or later.
76550         * MODULES.html.sh: Remove 'restrict'.
76551         * modules/argp (Depends-on): Remove 'restrict'.
76552         * modules/base64 (Depends-on): Likewise.
76553         * modules/gc (Depends-on): Likewise.
76554         * modules/getaddrinfo (Depends-on): Likewise.
76555         * modules/glob (Depends-on): Likewise.
76556         * modules/inet_ntop (Depends-on): Likewise.
76557         * modules/inet_pton (Depends-on): Likewise.
76558         * modules/memxor (Depends-on): Likewise.
76559         * modules/regex (Depends-on): Likewise.
76560         * modules/strtok_r (Depends-on): Likewise.
76561         * modules/time_r (Depends-on): Likewise.
76562
76563 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76566         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76567         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76568         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76569         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76570         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76571         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76572         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76573
76574         Merge from coreutils.
76575         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76576         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76577         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76578         * m4/time_r.m4 (gl_TIME_R): Likewise.
76579
76580 2006-08-09  Karl Berry  <karl@gnu.org>
76581
76582         * config/srclist.txt: no more gettext-tools, per Bruno.
76583
76584 2006-08-08  Eric Blake  <ebb9@byu.net>
76585
76586         * modules/verror: New module.
76587         * MODULES.html.sh: Document it.
76588
76589 2006-08-08  Eric Blake  <ebb9@byu.net>
76590
76591         * lib/verror.h, lib/verror.c: New files.
76592
76593 2006-08-08  Eric Blake  <ebb9@byu.net>
76594
76595         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76596         verror_at_line output complies with GNU Coding Standards even when
76597         file is NULL.
76598
76599 2006-08-07  Bruno Haible  <bruno@clisp.org>
76600
76601         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76602         versions of AIX.
76603         Reported by Ralf Wildenhues.
76604
76605 2006-08-07  Bruno Haible  <bruno@clisp.org>
76606
76607         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76608         in an AC_DEFUN. Needed so that the autoconf snippets can use
76609         AC_REQUIRE.
76610
76611 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76612
76613         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76614         Initialize pkgdata_DATA.
76615         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76616         overriding it.
76617
76618 2006-08-06  Eric Blake  <ebb9@byu.net>
76619
76620         * lib/error.h: Fold in some upstream changes from glibc.
76621         * lib/error.c: Likewise.
76622
76623 2006-08-04  Bruno Haible  <bruno@clisp.org>
76624
76625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76626         Make the mostlyclean-local rule depend on mostlyclean-generic.
76627         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76628
76629 2006-07-31  Bruno Haible  <bruno@clisp.org>
76630
76631         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76632         <stdlib.h>, <string.h>.
76633
76634 2006-07-30  Bruno Haible  <bruno@clisp.org>
76635
76636         * modules/readlink (License): Change to LGPL.
76637
76638 2006-07-30  Bruno Haible  <bruno@clisp.org>
76639
76640         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76641         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76642         set PKGDATADIR to point to it.
76643
76644 2006-07-30  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/csharpexec (configure.ac): Comment out macro invocation.
76647         * modules/javaexec (configure.ac): Likewise.
76648         * modules/javacomp-script (configure.ac): Likewise.
76649
76650         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76651
76652 2006-07-30  Bruno Haible  <bruno@clisp.org>
76653
76654         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76655         linked-list.
76656
76657 2006-07-30  Bruno Haible  <bruno@clisp.org>
76658
76659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76660
76661 2006-07-30  Bruno Haible  <bruno@clisp.org>
76662
76663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76664         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76665         get removed.
76666
76667 2006-07-29  Bruno Haible  <bruno@clisp.org>
76668
76669         Make it possible for gnulib-tool to work with locally modified or
76670         augmented gnulib repositories.
76671         * gnulib-tool (func_usage): Document --local-dir option.
76672         (local_gnulib_dir): New variable.
76673         Handle --local-dir option.
76674         (func_lookup_file): New function.
76675         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76676         (func_get_description, func_get_filelist, func_get_description,
76677         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76678         func_get_automake_snippet, func_get_include_directive,
76679         func_get_license, func_get_maintainer): Use func_lookup_file.
76680         (func_import, func_create_testdir): Use func_lookup_file.
76681
76682 2006-07-29  Bruno Haible  <bruno@clisp.org>
76683
76684         * modules/setenv (Depends-on): Add unistd.
76685
76686 2006-07-29  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76689
76690 2006-07-29  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76693
76694 2006-07-29  Bruno Haible  <bruno@clisp.org>
76695
76696         * gnulib-tool (import, update): If there is no Makefile.am, look at
76697         aclocal.m4, instead of bailing out.
76698
76699 2006-07-29  Bruno Haible  <bruno@clisp.org>
76700
76701         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76702         Categorize the options by when they are useful.
76703
76704 2006-07-29  Bruno Haible  <bruno@clisp.org>
76705
76706         * gnulib-tool (func_usage): Document option --no-libtool.
76707         Handle option --no-libtool.
76708         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76709         for changed semantics of $libtool variable.
76710         (func_import): Likewise. If libtool is not used, show this through
76711         an option --no-libtool.
76712         (func_create_testdir): Update.
76713
76714 2006-07-29  Bruno Haible  <bruno@clisp.org>
76715
76716         * gnulib-tool (func_import): Extend error message about missing
76717         --doc-base.
76718
76719 2006-07-29  Bruno Haible  <bruno@clisp.org>
76720
76721         * gnulib-tool (func_import): Don't create the $docbase directory if
76722         there is no file to store there.
76723
76724 2006-07-29  Bruno Haible  <bruno@clisp.org>
76725
76726         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76727         relevant, look for configure.ac there, not in the current directory.
76728         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76729
76730 2006-07-29  Bruno Haible  <bruno@clisp.org>
76731
76732         * gnulib-tool (SORT): New variable.
76733         (func_usage): Undocument --assume-autoconf option.
76734         Remove --assume-autoconf option handling.
76735         (autoconf_minversion): Determine from the contents of configure.ac.
76736         (func_import): Remove autoconf_minversion handling.
76737         Suggested by Eric Blake.
76738
76739 2006-07-29  Bruno Haible  <bruno@clisp.org>
76740
76741         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76742
76743 2006-07-29  Bruno Haible  <bruno@clisp.org>
76744
76745         * config/srclist.txt (*setenv.[ch]): Remove rules.
76746
76747 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76748
76749         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76750
76751 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76752
76753         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76754         arpa/inet.h.
76755
76756 2006-07-28  Simon Josefsson  <jas@extundo.com>
76757
76758         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76759         * modules/inet_pton (Depends-on): Likewise.
76760
76761 2006-07-28  Simon Josefsson  <jas@extundo.com>
76762
76763         * m4/netinet_in_h.m4: New file.
76764
76765 2006-07-28  Simon Josefsson  <jas@extundo.com>
76766
76767         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76768         #include's.
76769
76770 2006-07-28  Simon Josefsson  <jas@extundo.com>
76771
76772         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76773         #include's.
76774
76775 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76778         setgid on directories only if they set these bits.
76779         * lib/modechange.h: Remove obsolete comment about masks.
76780
76781 2006-07-28  Eric Blake  <ebb9@byu.net>
76782
76783         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76784         macro expansion.
76785
76786 2006-07-28  Bruno Haible  <bruno@clisp.org>
76787
76788         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76789
76790 2006-07-28  Bruno Haible  <bruno@clisp.org>
76791
76792         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76793
76794 2006-07-28  Bruno Haible  <bruno@clisp.org>
76795
76796         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76797         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76798         Define fallbacks.
76799         Avoids link error on FreeBSD 4.x.
76800         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76801
76802         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76803         encoding.
76804         * lib/mbswidth.c (iswcntrl): Likewise.
76805
76806 2006-07-27  Bruno Haible  <bruno@clisp.org>
76807
76808         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76809         test.
76810
76811 2006-07-27  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76814         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76815         defined.
76816
76817 2006-07-26  Eric Blake  <ebb9@byu.net>
76818
76819         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76820
76821 2006-07-26  Eric Blake  <ebb9@byu.net>
76822
76823         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76824         like mingw that lack mkstemp.
76825         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76826         avoid compilation warning on mingw.
76827
76828 2006-07-26  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76831         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76832         INT_FAST*_MIN, INTPTR_MIN.
76833
76834 2006-07-25  Bruno Haible  <bruno@clisp.org>
76835
76836         * modules/version-etc (Depends-on): Add stdarg.
76837
76838 2006-07-25  Bruno Haible  <bruno@clisp.org>
76839
76840         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76841         complex commands.
76842
76843 2006-07-25  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76846         defined in <stdarg.h> or config.h.
76847
76848 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76851         (gl_STDIO_SAFER): Remove.
76852
76853 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * MODULES.html.sh (File stream based Input/Output):
76856         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76857         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76858         * modules/fopen-safer, modules/tmpfile-safer: New files.
76859         * modules/stdio-safer: Remove.
76860
76861 2006-07-24  Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/tmpdir: New file.
76864         * MODULES.html.sh (File system functions): Add it.
76865
76866 2006-07-24  Bruno Haible  <bruno@clisp.org>
76867
76868         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76869         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76870
76871 2006-07-24  Bruno Haible  <bruno@clisp.org>
76872
76873         * modules/clean-temp: New file.
76874
76875 2006-07-24  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/tmpdir.m4: New file, from GNU gettext.
76878
76879 2006-07-24  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/tmpdir.h: New file, from GNU gettext.
76882         * lib/tmpdir.c: New file, from GNU gettext.
76883
76884 2006-07-24  Bruno Haible  <bruno@clisp.org>
76885
76886         * lib/clean-temp.h: New file, from GNU gettext.
76887         * lib/clean-temp.c: New file, from GNU gettext.
76888
76889 2006-07-23  Eric Blake  <ebb9@byu.net>
76890
76891         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76892         (Depends-on): Add binary-io.
76893
76894 2006-07-23  Eric Blake  <ebb9@byu.net>
76895
76896         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76897
76898 2006-07-23  Eric Blake  <ebb9@byu.net>
76899
76900         * lib/tmpfile-safer.c: New file.
76901         * lib/stdio-safer.h (fopen_safer): Add prototype.
76902         * lib/stdio--.h (tmpfile): Make safer.
76903
76904 2006-07-23  Bruno Haible  <bruno@clisp.org>
76905
76906         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76907         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76908         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76909         gl_linked_remove_at): Use it.
76910
76911 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76912         and Simon Josefsson <jas@extundo.com>
76913
76914         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76915
76916         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76917
76918 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * modules/close-stream: New file.
76921         * modules/closeout (Description): Make it clear that it exits
76922         with a diagnostic on error.
76923         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76924         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76925
76926 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76927
76928         * m4/close-stream.m4: New file.
76929
76930 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * lib/close-stream.c, lib/close-stream.h: New files.
76933
76934 2006-07-22  Bruno Haible  <bruno@clisp.org>
76935
76936         Merge from GNU gettext 0.15.
76937
76938         2006-05-01  Bruno Haible  <bruno@clisp.org>
76939
76940                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76941
76942         2006-07-22  Bruno Haible  <bruno@clisp.org>
76943
76944                 * modules/javaversion: New file.
76945                 * MODULES.html.sh (Java): Add javaversion.
76946
76947         2006-03-12  Bruno Haible  <bruno@clisp.org>
76948
76949                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76950
76951         2005-12-04  Bruno Haible  <bruno@clisp.org>
76952
76953                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76954                 (untested).
76955
76956         2006-06-21  Bruno Haible  <bruno@clisp.org>
76957
76958                 Avoid warnings from recent versions of mcs.
76959                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76960                 -o, -L, -r any more. Use options documented since mcs-1.0
76961                 instead. Similarly for -g.
76962
76963         2005-12-04  Bruno Haible  <bruno@clisp.org>
76964
76965                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76966                 .resources, not .resource.
76967
76968         2005-07-09  Bruno Haible  <bruno@clisp.org>
76969
76970                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76971                 add a .dll suffix.
76972                 Reported by Mark Junker <mjscod@gmx.de>.
76973
76974         2006-07-22  Bruno Haible  <bruno@clisp.org>
76975
76976                 * modules/gettext: Upgrade to gettext-0.15.
76977                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76978                 m4/visibility.m4.
76979                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76980
76981 2006-07-22  Bruno Haible  <bruno@clisp.org>
76982
76983         Merge from GNU gettext 0.15.
76984
76985         2006-03-25  Bruno Haible  <bruno@clisp.org>
76986
76987                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76988
76989         2006-07-21  Bruno Haible  <bruno@clisp.org>
76990
76991                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76992                 "1.1".
76993
76994         2006-05-09  Bruno Haible  <bruno@clisp.org>
76995
76996                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76997                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76998                 for the conftestver execution.
76999
77000         2006-05-01  Bruno Haible  <bruno@clisp.org>
77001
77002                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77003                 optional target-version argument. Verify that the compiler
77004                 groks source of the specified source-version, or add -source
77005                 option as necessary. Verify that the compiler produces
77006                 bytecode in the specified target-version, or add -target and
77007                 -source options as necessary. Make the result of the test
77008                 available as variable CONF_JAVAC. Also log error output in
77009                 config.log.
77010
77011         2006-03-11  Bruno Haible  <bruno@clisp.org>
77012
77013                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77014
77015         2006-05-09  Bruno Haible  <bruno@clisp.org>
77016
77017                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77018                 CLASSPATH_SEPARATOR to a semicolon.
77019
77020         2006-03-12  Bruno Haible  <bruno@clisp.org>
77021
77022                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77023                 available as variable CONF_JAVA, for subsequent autoconf
77024                 tests. Also log error output in config.log.
77025
77026         2006-07-19  Bruno Haible  <bruno@clisp.org>
77027
77028                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77029                 that getline works on glibc2 systems. Needed to avoid trouble
77030                 in relocatable.c.
77031                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77032
77033         2005-12-04  Bruno Haible  <bruno@clisp.org>
77034
77035                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77036                 launcher (untested).
77037
77038         2005-12-04  Bruno Haible  <bruno@clisp.org>
77039
77040                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77041
77042         2006-07-22  Bruno Haible  <bruno@clisp.org>
77043
77044                 * gettext.m4: Update from GNU gettext-0.15.
77045                 * nls.m4: Likewise.
77046                 * po.m4: Likewise.
77047                 * inttypes-pri.m4: Likewise.
77048                 * inttypes-h.m4: Renamed from inttypes.m4.
77049                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77050
77051 2006-07-22  Bruno Haible  <bruno@clisp.org>
77052
77053         Merge from GNU gettext 0.15.
77054
77055         2005-07-05  Bruno Haible  <bruno@clisp.org>
77056
77057                 * printf-args.c (printf_fetchargs): Work around broken
77058                 definition of wint_t on mingw.
77059
77060         2005-02-12  Bruno Haible  <bruno@clisp.org>
77061
77062                 * xallocsa.h: Add extern "C" for C++.
77063
77064         2006-05-17  Bruno Haible  <bruno@clisp.org>
77065
77066                 Cygwin portability.
77067                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77068
77069         2006-04-30  Bruno Haible  <bruno@clisp.org>
77070
77071                 * progreloc.c: Include <mach-o/dyld.h> if available.
77072                 (find_executable): Use _NSGetExecutablePath when possible.
77073
77074         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77075
77076                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77077                 function.
77078
77079         2005-12-29  Bruno Haible  <bruno@clisp.org>
77080
77081                 * progreloc.c (set_program_name_and_installdir): Fix
77082                 compilation error.
77083
77084         2005-12-04  Bruno Haible  <bruno@clisp.org>
77085
77086                 Cygwin portability.
77087                 * progreloc.c: Include <windows.h> also on Cygwin.
77088                 (find_executable): Add support for Cygwin.
77089                 (set_program_name_and_installdir): Handle also platforms with
77090                 nonempty EXEEXT.
77091
77092         2006-07-11  Bruno Haible  <bruno@clisp.org>
77093
77094                 * javacomp.c: Fix a comment.
77095                 Reported by Jim Meyering.
77096
77097         2006-04-30  Bruno Haible  <bruno@clisp.org>
77098
77099                 * javacomp.h (compile_java_class): Add source_version,
77100                 target_version arguments.
77101                 * javacomp.c: Rewritten to choose only a compiler that
77102                 respects the specified source_version and target_version.
77103
77104         2006-06-27  Bruno Haible  <bruno@clisp.org>
77105
77106                 Assume correct S_ISDIR macro.
77107                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77108
77109         2006-07-22  Bruno Haible  <bruno@clisp.org>
77110
77111                 * javaversion.h: New file, from GNU gettext.
77112                 * javaversion.c: New file, from GNU gettext.
77113                 * javaversion.java: New file, from GNU gettext.
77114                 * javaversion.class: New file, from GNU gettext.
77115
77116         2006-05-17  Bruno Haible  <bruno@clisp.org>
77117
77118                 Cygwin portability.
77119                 * javaexec.c (execute_java_class): Test for jview program
77120                 also on Cygwin.
77121
77122         2006-04-09  Bruno Haible  <bruno@clisp.org>
77123
77124                 * fatal-signal.c: Don't include string.h.
77125                 (at_fatal_signal): Use a copying loop instead of memcpy.
77126
77127         2005-12-04  Bruno Haible  <bruno@clisp.org>
77128
77129                 * csharpexec.c: Add support for 'clix' launcher (untested).
77130                 (execute_csharp_using_sscli): New function.
77131                 (execute_csharp_program): Call it.
77132
77133         2006-06-21  Bruno Haible  <bruno@clisp.org>
77134
77135                 Avoid warnings from recent versions of mcs.
77136                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77137                 -o, -L, -r any more. Use options documented since mcs-1.0
77138                 instead. Similarly for -g.
77139
77140         2005-07-09  Bruno Haible  <bruno@clisp.org>
77141
77142                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77143                 add a .dll suffix.
77144                 Reported by Mark Junker <mjscod@gmx.de>.
77145
77146         2006-06-17  Bruno Haible  <bruno@clisp.org>
77147
77148                 * config.charset: Update for NetBSD 3.0.
77149
77150         2006-05-17  Bruno Haible  <bruno@clisp.org>
77151
77152                 Cygwin portability.
77153                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77154
77155         2006-05-16  Bruno Haible  <bruno@clisp.org>
77156
77157                 * localcharset.c [CYGWIN]: Include <windows.h>.
77158                 (get_charset_aliases): For Cygwin, return the same CPxxx
77159                 aliases list as under WIN32.
77160                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77161                 the environment variables. Fall back to GetACP().
77162
77163         2006-04-05  Bruno Haible  <bruno@clisp.org>
77164
77165                 * config.charset: Update Juan Manuel Guerrero's address.
77166
77167         2005-02-12  Bruno Haible  <bruno@clisp.org>
77168
77169                 * allocsa.h: Add extern "C" for C++.
77170
77171         2005-02-10  Bruno Haible  <bruno@clisp.org>
77172
77173                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77174                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77175
77176         2006-07-22  Bruno Haible  <bruno@clisp.org>
77177
77178                 * gettext.h: Update to GNU gettext-0.15.
77179
77180 2006-07-22  Bruno Haible  <bruno@clisp.org>
77181
77182         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77183         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77184         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77185
77186 2006-07-21  Eric Blake  <ebb9@byu.net>
77187
77188         * modules/stdlib-safer: New file.
77189         * MODULES.html.sh (File stream based Input/Output): Add
77190         stdlib-safer.
77191
77192 2006-07-21  Eric Blake  <ebb9@byu.net>
77193
77194         * lib/stdlib-safer.h: New file from coreutils, required by
77195         stdlib--.h.
77196
77197 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77200
77201 2006-07-20  Bruno Haible  <bruno@clisp.org>
77202
77203         * gnulib-tool: Recognize new option --assume-autoconf.
77204         (autoconf_minversion): New variable.
77205         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77206
77207 2006-07-20  Bruno Haible  <bruno@clisp.org>
77208
77209         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77210
77211 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77212
77213         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77214         Reindent and repaginate.
77215
77216 2006-07-19  Derek Price  <derek@ximbiot.com>
77217
77218         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77219         Correct grammar.
77220
77221 2006-07-17  Bruno Haible  <bruno@clisp.org>
77222
77223         * modules/list: New file.
77224         * modules/array-list: New file.
77225         * modules/carray-list, modules/carray-list-tests: New files.
77226         * modules/linked-list, modules/linked-list-tests: New files.
77227         * modules/avltree-list, modules/avltree-list-tests: New files.
77228         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77229         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77230         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77231         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77232         * modules/oset: New file.
77233         * modules/array-oset: New file.
77234         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77235         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77236         * tests/test-carray_list.c: New file.
77237         * tests/test-linked_list.c: New file.
77238         * tests/test-avltree_list.c: New file.
77239         * tests/test-rbtree_list.c: New file.
77240         * tests/test-linkedhash_list.c: New file.
77241         * tests/test-avltreehash_list.c: New file.
77242         * tests/test-rbtreehash_list.c: New file.
77243         * tests/test-avltree_oset.c: New file.
77244         * tests/test-rbtree_oset.c: New file.
77245         * MODULES.html.sh (Container data structures): New section.
77246
77247 2006-07-17  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/gl_list.m4: New file.
77250
77251 2006-07-17  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/gl_list.h: New file.
77254         * lib/gl_list.c: New file.
77255         * lib/gl_array_list.h: New file.
77256         * lib/gl_array_list.c: New file.
77257         * lib/gl_carray_list.h: New file.
77258         * lib/gl_carray_list.c: New file.
77259         * lib/gl_linked_list.h: New file.
77260         * lib/gl_linked_list.c: New file.
77261         * lib/gl_anylinked_list1.h: New file.
77262         * lib/gl_anylinked_list2.h: New file.
77263         * lib/gl_avltree_list.h: New file.
77264         * lib/gl_avltree_list.c: New file.
77265         * lib/gl_anyavltree_list1.h: New file.
77266         * lib/gl_anyavltree_list2.h: New file.
77267         * lib/gl_rbtree_list.h: New file.
77268         * lib/gl_rbtree_list.c: New file.
77269         * lib/gl_anyrbtree_list1.h: New file.
77270         * lib/gl_anyrbtree_list2.h: New file.
77271         * lib/gl_anytree_list1.h: New file.
77272         * lib/gl_anytree_list2.h: New file.
77273         * lib/gl_linkedhash_list.h: New file.
77274         * lib/gl_linkedhash_list.c: New file.
77275         * lib/gl_anyhash_list1.h: New file.
77276         * lib/gl_anyhash_list2.h: New file.
77277         * lib/gl_avltreehash_list.h: New file.
77278         * lib/gl_avltreehash_list.c: New file.
77279         * lib/gl_rbtreehash_list.h: New file.
77280         * lib/gl_rbtreehash_list.c: New file.
77281         * lib/gl_anytreehash_list1.h: New file.
77282         * lib/gl_anytreehash_list2.h: New file.
77283
77284         * lib/gl_oset.h: New file.
77285         * lib/gl_oset.c: New file.
77286         * lib/gl_array_oset.h: New file.
77287         * lib/gl_array_oset.c: New file.
77288         * lib/gl_avltree_oset.h: New file.
77289         * lib/gl_avltree_oset.c: New file.
77290         * lib/gl_rbtree_oset.h: New file.
77291         * lib/gl_rbtree_oset.c: New file.
77292         * lib/gl_anytree_oset.h: New file.
77293
77294 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         * m4/mkancesdirs.m4: New file.
77297         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77298         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77299         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77300         it.
77301
77302 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77305         * lib/mkancesdirs.h: New files.
77306         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77307         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77308         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77309         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77310         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77311         callers changed.  Revamp internals significantly, by not
77312         attempting to create directories that are temporarily more
77313         permissive than the final results.  Do not attempt to use
77314         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77315         This removes some race conditions, fixes some bugs, and simplifies
77316         things.  Use new dirchownmod function to do owner and mode changes.
77317         * lib/mkdir-p.h: Likewise.
77318         * lib/modechange.c (octal_to_mode): New function.
77319         (struct mode_change): New member mentioned.
77320         (make_node_op_equals): New arg mentioned.  All callers changed.
77321         (mode_compile): Keep track of which mode bits the user has explicitly
77322         mentioned.
77323         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77324         New arg PMODE_BITS, to keep track of which mode bits the user
77325         mentioned; it treats S_ISUID and S_ISGID speciall.
77326         All callers changed.
77327         * lib/modechange.h: Likewise.
77328
77329 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * MODULES.html.sh: Add mkancestors.
77332         * modules/mkancesdirs: New module.
77333         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77334         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77335         The chdir-safer and afs files are now orphans; I'll remove them
77336         unless someone speaks up.
77337         Add lib/dirchownmod.c, lib/dirchownmod.h.
77338         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77339         Add lchown, mkancesdirs.
77340         (Maintainer): Add self.
77341
77342 2006-07-15  Karl Berry  <karl@gnu.org>
77343
77344         * gnulib-tool: help message wording/arrangement.
77345
77346 2006-07-14  Simon Josefsson  <jas@extundo.com>
77347
77348         * doc/gnulib.texi (Libtool and Windows): New section.
77349
77350 2006-07-12  Simon Josefsson  <jas@extundo.com>
77351
77352         * modules/gendocs (License): Fix license, approved by Karl.
77353
77354 2006-07-12  Eric Blake  <ebb9@byu.net>
77355
77356         * MODULES.html.sh: Add gendocs.
77357
77358 2006-07-11  Eric Blake  <ebb9@byu.net>
77359
77360         * modules/fdl: New module, to install doc/fdl.texi.
77361         * MODULES.html.sh: Add new section for documentation modules.
77362         * gnulib-tool: Avoid space-tab.
77363         (--doc-base): New option, to manage files from doc.
77364
77365 2006-07-11  Eric Blake  <ebb9@byu.net>
77366
77367         * m4/absolute-header.m4: Fix comments to match recent change.
77368
77369 2006-07-11  Eric Blake  <ebb9@byu.net>
77370
77371         * gnulib-tool: List --doc-base before --tests-base.
77372
77373 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77374
77375         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77376
77377 2006-07-11  Bruno Haible  <bruno@clisp.org>
77378
77379         * README: Mention where to put documentation.
77380
77381 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77382
77383         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77384
77385 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77388         to stdint.m4.
77389
77390 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77393         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77394         "no/such/file/stdint.h" when there is no such file, so that
77395         the resulting C code can be parsed by dodgy compilers.
77396         Problems reported by Bob Proulx.
77397
77398 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77399
77400         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77401         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77402         macros into the GNU _D_EXACT_NAMLEN.
77403         * lib/savedir.c:  Likewise.
77404         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77405
77406 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77407         and Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77410         * m4/savedir.m4:
77411         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77412         macros into the GNU _D_EXACT_NAMLEN.
77413
77414 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77417         around the absolute name, to work around a problem with the HP-UX
77418         11.23 native C compiler, reported by Bob Proulx.
77419
77420 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * doc/maintain.texi, make-stds.texi: Sync from
77423         <http://savannah.gnu.org/projects/gnustandards>.
77424
77425 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77428
77429 2006-07-09  Jim Meyering  <jim@meyering.net>
77430
77431         * m4/glob.m4: Remove a doubled word in a comment.
77432
77433 2006-07-09  Jim Meyering  <jim@meyering.net>
77434
77435         * lib/argp-pv.c: Remove a doubled word in a comment.
77436         * lib/check-version.c (check_version): Likewise.
77437         * lib/javacomp.c (compile_java_class): Likewise.
77438
77439 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77442         for the benefit of people using Autoconf 2.60.  If you want to
77443         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77444         (or m4/onceonly.m4, if pre-2.57) manually.
77445
77446 2006-07-08  Jim Meyering  <jim@meyering.net>
77447
77448         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77449         comment.
77450         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77451         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77452         comment.
77453
77454 2006-07-08  Jim Meyering  <jim@meyering.net>
77455
77456         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77457
77458 2006-07-07  Simon Josefsson  <jas@extundo.com>
77459
77460         * tests/test-crc.c: Change expected crc value, the test vector
77461         were probably computed using the old broken crc.c?
77462
77463 2006-07-06  Simon Josefsson  <jas@extundo.com>
77464
77465         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77466         now the canonical place for the M4 file).
77467
77468         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77469         from the sys_socket dependency now.
77470
77471         * modules/inet_pton (Files): Ditto.
77472
77473         * modules/inet_ntop (Files): Ditto.
77474
77475 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77476
77477         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77478         not gl_PREREQ_GETUSERSHELL.
77479
77480 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77481
77482         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77483         with only one argument, for Autoconf 2.60.
77484         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77485         expand to nothing, so add a shell command to avoid syntax error.
77486         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77487
77488 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77489
77490         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77491
77492 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77495         no longer needed.  Check for isblank decl.
77496         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77497         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77498         of existence.
77499
77500 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * lib/getloadavg.c: Use __VMS, not VMS.
77503         * lib/getopt.c: Likewise.
77504         * lib/getpagesize.h: Likewise.
77505         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77506         and probably does not work.
77507
77508 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * lib/.cppi-disable: Add wcwidth.
77511         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77512         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77513         (ISGRAPH): Remove.  All uses changed to isgraph.
77514         (FOLD) [!defined _LIBC]: Remove special case.
77515         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77516         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77517         HAVE_ISBLANK.
77518         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77519         case.
77520
77521 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77522
77523         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77524         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77525         brackets.  Other minor changes to suppress some compiler
77526         warnings.
77527
77528 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77529         and Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77532         of invoking obsolescent AC_HEADER_DIRENT macro.
77533         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77534         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77537         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77538         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77539         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77540         * m4/readdir.m4: Remove; no longer needed.
77541
77542 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77543         and Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77546         Don't worry about this obsolete case any more.
77547         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77548         directories.
77549         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77550         worry about this obsolete case any more.
77551         * lib/fts.c: Likewise.
77552         * lib/getcwd.c: Likewise.
77553         * lib/glob.h: Likewise.
77554         * lib/savedir.c: Likewise.
77555
77556 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77559         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77560         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77561         needed.
77562         All uses removed.
77563         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77564         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77565         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77566         needed.
77567         * m4/getdate.m4 (gl_GETDATE): Likewise.
77568         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77569         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77570         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77571         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77572         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77574         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77575         needed.
77576
77577 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * lib/memcasecmp.c: Include <limits.h>.
77580         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77581         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77582         Don't assume isdigit succeeds only on '0' through '9'.
77583
77584 2006-07-05  Eric Blake  <ebb9@byu.net>
77585
77586         * modules/getaddrinfo (Depends-on): Add snprintf.
77587
77588 2006-07-05  Eric Blake  <ebb9@byu.net>
77589
77590         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77591         to avoid 'header present but could not be compiled' on cygwin.
77592
77593 2006-07-05  Eric Blake  <ebb9@byu.net>
77594
77595         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77596         missing from netdb.h.
77597         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77598
77599 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77600
77601         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77602         no longer needed.
77603         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77604         * m4/getdate.m4 (gl_GETDATE): Likewise.
77605         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77606         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77607         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77608         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77609         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77610
77611 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77612
77613         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77614         All uses of is_space replaced by isspace.
77615         * lib/exit.h: Don't talk about STDC_HEADERS.
77616         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77617         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77618         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77619         replaced by isprint etc.
77620         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77621         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77622         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77623         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77624         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77625         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77626
77627 2006-07-05  Bruno Haible  <bruno@clisp.org>
77628
77629         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77630         the function exists, before testing against AIX.
77631         Reported by Martin Lambers <marlam@marlam.de>.
77632
77633 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77636         From Mark D. Baushke.
77637
77638 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77641         to the absolute name, not just one, to bypass Sun C 5.8's
77642         "warning: #include of /usr/include/... may be non-portable".
77643
77644 2006-07-04  Eric Blake  <ebb9@byu.net>
77645
77646         * modules/dirname-tests: New test module.
77647         * tests/test-dirname.c: New file, replacing dirname.c
77648         TEST_DIRNAME section that was recently deleted.
77649
77650 2006-07-04  Bruno Haible  <bruno@clisp.org>
77651
77652         Assume ANSI C header files and <ctype.h> functions.
77653         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77654         (mbsnwidth): Use isprint, iscntrl instead.
77655
77656 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         Merge from coreutils.
77659         * MODULES.html.sh: Add xstrtold.
77660         * modules/xstrtold: New file.
77661         * modules/cycle-check (Files): Add lib/same-inode.h.
77662         * modules/dirname (Files): Add m4/double-slash-root.m4.
77663         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77664         * modules/mkdir-p (Files): Add lib/same-inode.h.
77665         * modules/same (Files): Add lib/same-inode.h.
77666
77667 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77670         This is to keep the terminology clean; POSIX talks about
77671         "absolute pathnames", not "full pathnames", but the GNU
77672         Coding Standards say to use "path" for something else;
77673         so use "absolute" to keep both sides happy.
77674         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77675         Set gl_absolute_header, not gl_full_header_path.
77676         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77677         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77678         All uses changed.
77679
77680         Merge from coreutils.
77681
77682         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77683
77684         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77685         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77686         want to require the building of c-strtod.o.
77687         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77688         needs -lm directly.
77689         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77690
77691         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77694         --as-needed option if available.  Problem reported by Albert Chin in
77695         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77696         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77697         cc merely issues a bunch of annoying warnings for --as-needed
77698         (this problem was reported by Bob Proulx).  Also, try linking with
77699         -lm to detect a bug in binutils 2.16 (this problem was reported
77700         by Ralf Wildenhues).
77701
77702         2006-06-18  Jim Meyering  <jim@meyering.net>
77703
77704         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77705         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77706         macro.
77707         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77708         also check for glibc-2.4's abort-inducing bug.
77709
77710         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77711         Low-probability clean-up should be to use rmdir to get rid of
77712         the just-created directory, not unlink.
77713
77714         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77715         configure fail, and request a bug report to inform us about it.
77716         Add a comment that, barring reports to the contrary, in 2007 we'll
77717         assume ftruncate is universally available.
77718
77719         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77722
77723         2006-03-12  Jim Meyering  <jim@meyering.net>
77724
77725         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77726         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77727         * m4/same.m4 (gl_SAME): Likewise.
77728         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77729
77730         2006-03-11  Eric Blake  <ebb9@byu.net>
77731
77732         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77733         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77734         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77735         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77736
77737 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77740         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77741         reported by Mark D. Baushke, one in
77742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77743
77744         Merge from coreutils.
77745
77746         * lib/.cppi-disable: Add stdint_.h.
77747         * lib/.cvsignore: Add stdint.h.
77748
77749         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77750
77751         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77752         both double and long double versions.
77753         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77754         * lib/xstrtold.c: New file.
77755         * lib/xstrtod.h (xstrtold): New decl.
77756
77757         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/filemode.c (setst): Remove.
77760         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77761         (arguably) clearer, and the generated code is a bit smaller on my
77762         Debian GNU/Linux stable x86 host.
77763
77764         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77767         Assume that filemode.h includes sys/types.h and sys/stat.h.
77768         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77769         (ftypelet): Reorder to put common cases first, for efficiency.
77770         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77771         to do 'M'.
77772         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77773         of 10, for compatibility with FreeBSD.  All callers changed.
77774         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77775         types that can't be deduced solely from st_mode.  First arg is now a
77776         const pointer.
77777         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77778         (strmode): Renamed from mode_string.
77779         (filemodestring): New decl.
77780         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77781         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77782         needed.
77783         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77784
77785         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77788         fsusage.h now does that.  Include fsusage.h first, to test interface.
77789         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77790         at most one method (the old code could have generated decls that
77791         didn't conform to C89, not that this was ever exercised).
77792         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77793
77794         2006-03-19  Jim Meyering  <jim@meyering.net>
77795
77796         Work even in a chroot where d_ino values for entries in "/"
77797         don't match the stat.st_ino values for the same names.
77798         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77799         number, iterate through all entries again, using lstat instead.
77800         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77801         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77802
77803         * lib/getcwd.c (__getcwd): Clarify a comment.
77804         Use memcpy in place of a call to strcpy.
77805
77806         2006-03-12  Jim Meyering  <jim@meyering.net>
77807
77808         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77809         matches that of the current directory (which we're about to chdir ".."
77810         out of), then save the dev-ino of the parent, instead.
77811
77812         * lib/same-inode.h (SAME_INODE): New file/macro.
77813         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77814         Include "same-inode.h", instead.
77815         * lib/same.c: Likewise.
77816         * lib/cycle-check.h: Include "same-inode.h".
77817         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77818         * lib/cycle-check.c (SAME_INODE): Remove definition.
77819         * lib/root-dev-ino.h: Include "same-inode.h".
77820
77821         2006-03-11  Eric Blake  <ebb9@byu.net>
77822
77823         * lib/same.c (same_name): s/base_name/last_component/
77824         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77825         * lib/filenamecat.c (file_name_concat): Likewise.
77826
77827         2006-03-11  Eric Blake  <ebb9@byu.net>,
77828                     Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77831         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77832         drive prefix.
77833         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77834         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77835         (last_component): New method.
77836         * lib/dirname.c (dir_len): Determine when drive letters need a
77837         subsequent slash.  Preserve // when it is special.
77838         (dir_name): Don't append dot when drive letter is absolute.
77839         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77840         * lib/basename.c (base_name): New semantics - malloc the result.
77841         Preserve // when it is special.  Preserve relative files that look
77842         like drive letters.
77843         (base_len): Preserve // when it is special.
77844         (last_component): New method, similar to old base_name semantics.
77845         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77846         base_name.  Strip redundant slashes from ///.
77847
77848 2006-07-03  Jim Meyering  <jim@meyering.net>
77849
77850         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77851         macro is used before the first cycle_check call.
77852
77853 2006-07-03  Eric Blake  <ebb9@byu.net>
77854
77855         * modules/dirname (Depends-on): Add xstrndup.
77856
77857 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77860         test cases, so that config.log is a bit easier to follow.
77861
77862 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77865         both are 64 bits, since this seems to be the tradition, and this
77866         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77867         we ever run into a host that prefers long long to long in this
77868         case, we'll need another configure-time test.  Problem reported by
77869         Jim Meyering.
77870
77871 2006-07-02  Eric Blake  <ebb9@byu.net>
77872
77873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77874
77875 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * modules/inttypes (Depends-on): No longer depends on stdint.
77878         * modules/stdint (Description): Say more about assumptions.
77879         Say that the fast types might differ.  Say macros are used.
77880         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77881         (Makefile.am): Revise list of substituted symbols to match
77882         new stdint.m4.
77883         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77884         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77885         * tests/test-stdint.c (verify_same_types)
77886         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77887         the code conforms to C99/C89.
77888         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77889         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77890
77891 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77894         but fix a bug, by requiring at least 64 bits.
77895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77896         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77897         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77898         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77899
77900         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77901         changes.  Make 2.59 a prerequisite.  Check and substitute for
77902         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77903         inttypes.h.  Do not use special include files; just use the
77904         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77905         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77906         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77907         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77908         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77909         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77910         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77911         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77912         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77913         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77914         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77915         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77916         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77917         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77918         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77919         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77920         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77921         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77922         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77923         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77924         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77925         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77926         not check for things that C99 does not require, e.g., int8_t.  If
77927         a test isn't needed unless <stdint.h> isn't working, and is
77928         unlikely to be needed for any other reason, then don't do it
77929         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77930         size_t, since we assume C89 freestanding at least.  Do not check
77931         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77932         the right thing even if the types are not defined.  Instead use:
77933         (gl_STDINT_TYPE_PROPERTIES): New macro.
77934         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77935         testing whether <sys/types.h> clashes, as Autoconf does this for
77936         us now.  All uses removed.
77937         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77938         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77939         (gl_CHECK_TYPE_SAME):
77940         Remove; no longer needed.
77941         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77942         exists, since we'll return 0 anyway in that case.
77943         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77944
77945 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77948         possible collision with system files.
77949         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77950         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77951         WCHAR_MIN and WCHAR_MAX in this case.
77952         (<stddef.h>): Do not include; no longer needed.
77953         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77954         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77955         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77956         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77957         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77958         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77959         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77960         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77961         !defined(__c99))]: Include in this case too, since it's harmless
77962         now.
77963         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77964         dangerous to do so.
77965         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77966         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77967         (_STDINT_MIN, _STDINT_MAX): New macros.
77968         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77969         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77970         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77971         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77972         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77973         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77974         macros, not typedefs; this simplifies things quite a bit.
77975         Use long int for all types narrower than int64_t.
77976         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77977         Define in terms of long long int or int64_t or long int,
77978         not int64_t or int32_t.  This saves some compile-time testing.
77979         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77980         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77981         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77982         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77983         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77984         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77985         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77986         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77987         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77988         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77989         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77990         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77991         undef any previous version and define our own version, for
77992         simplicity and consistency with the new macros for types.
77993         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77994         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77995         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77996         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77997         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77998         @WINT_T_SUFFIX@ to keep things simple here.
77999         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78000         Simplify by assuming typical 8/16/32/64 host, since we're
78001         already doing that elsewhere anyway.
78002         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78003         and assume long long int is 64 bits if available.  This
78004         speeds up 'configure'.
78005
78006 2006-07-01  Eric Blake  <ebb9@byu.net>
78007
78008         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78009         Reported by Andreas Buening.
78010
78011 2006-07-01  Eric Blake  <ebb9@byu.net>
78012
78013         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78014
78015 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78016
78017         * lib/getaddrinfo.c: fixed typo
78018
78019 2006-06-29  Jim Meyering  <jim@meyering.net>
78020
78021         * modules/strftime (Maintainer): Add my name, since with the
78022         FPRINTFTIME changes strftime.c has forked from glibc.
78023
78024 2006-06-29  Eric Blake  <ebb9@byu.net>
78025
78026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78027
78028 2006-06-29  Eric Blake  <ebb9@byu.net>
78029
78030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78031
78032 2006-06-29  Eric Blake  <ebb9@byu.net>
78033
78034         * lib/stat_.h: New file.
78035
78036 2006-06-29  Eric Blake  <ebb9@byu.net>
78037
78038         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78039         unused static function.
78040
78041 2006-06-29  Eric Blake  <ebb9@byu.net>
78042
78043         * doc/functions.texi (Function Portability): Document missing lstat
78044         on mingw.
78045
78046 2006-06-29  Eric Blake  <ebb9@byu.net>
78047
78048         * MODULES.html.sh: Add sys_stat.
78049         * modules/sys_stat: New module.
78050         * modules/mkstemp (Depends-on): Add sys_stat.
78051
78052 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78053
78054         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78055
78056 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78057
78058         * m4/c-bs-a.m4: Removed.
78059
78060 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78061
78062         * lib/strftime.c: Assume strftime() exists.
78063
78064 2006-06-29  Derek Price  <derek@ximbiot.com>
78065
78066         * modules/c-bs-a: Removed - \a is C89.
78067         * MODULES.html.sh: Remove c-bs-a.
78068
78069 2006-06-29  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/wcwidth (License): Change to LGPL.
78072
78073 2006-06-28  Simon Josefsson  <jas@extundo.com>
78074
78075         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78076         on _WIN32.
78077
78078         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78079         getnameinfo.
78080
78081 2006-06-28  Simon Josefsson  <jas@extundo.com>
78082
78083         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78084
78085 2006-06-28  Simon Josefsson  <jas@extundo.com>
78086
78087         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78088         functions there.  It will succeed on Windows XP, but on Windows
78089         2000 and (presumably) earlier, it will fail, and use the internal
78090         re-implementation.
78091         (use_win32_p): New function.
78092         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78093         Support AI_NUMERICSERV to disable getservbyname.
78094         (getnameinfo): New function, only supports
78095         NI_NUMERICHOST|NI_NUMERICSERV for now.
78096
78097         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78098         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78099         getnameinfo.
78100
78101 2006-06-28  Eric Blake  <ebb9@byu.net>
78102
78103         * modules/wcwidth: New file.
78104         * modules/mbchar (Depends-on): Add wcwidth.
78105         * modules/mbswidth (Depends-on): Add wcwidth.
78106         * MODULES.html.sh: Add wcwidth.
78107
78108 2006-06-28  Eric Blake  <ebb9@byu.net>
78109
78110         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78112
78113 2006-06-28  Eric Blake  <ebb9@byu.net>
78114
78115         * lib/xvasprintf.h: Fix comments.
78116
78117 2006-06-28  Eric Blake  <ebb9@byu.net>
78118
78119         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78120         * lib/mbswidth.c (wcwidth): Move from here...
78121         * lib/wcwidth.h: ...to this new file.
78122
78123 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78124
78125         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78126
78127         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78128         it's obsolete.
78129         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78130
78131 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78132
78133         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78134         Autoconf 2.60 says this stuff was obsolete.
78135
78136 2006-06-28  Bruno Haible  <bruno@clisp.org>
78137
78138         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78139
78140 2006-06-28  Bruno Haible  <bruno@clisp.org>
78141
78142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78143         gt_TYPE_WCHAR_T.
78144
78145 2006-06-28  Bruno Haible  <bruno@clisp.org>
78146
78147         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78148         declaration for wcwidth.
78149         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78150
78151 2006-06-28  Bruno Haible  <bruno@clisp.org>
78152
78153         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78154         (mkdir): Define using _mkdir.
78155
78156 2006-06-28  Bruno Haible  <bruno@clisp.org>
78157
78158         * lib/getaddrinfo.h: Fix POSIX URL.
78159         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78160         _WIN32.
78161         (use_win32_p): Make static.
78162         (getaddrinfo): Reject service name if it is empty or does not consist
78163         solely of decimal digits, or if its value is > 65535.
78164         (getnameinfo): Remove useless casts.
78165
78166 2006-06-27  Simon Josefsson  <jas@extundo.com>
78167
78168         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78169         Eggert and Martin Lambers.
78170
78171 2006-06-27  Simon Josefsson  <jas@extundo.com>
78172
78173         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78174         Eggert and Martin Lambers.
78175
78176 2006-06-27  Bruno Haible  <bruno@clisp.org>
78177
78178         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78179         result to 0, not to empty.
78180         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78181
78182 2006-06-27  Bruno Haible  <bruno@clisp.org>
78183
78184         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78185
78186 2006-06-26  Simon Josefsson  <jas@extundo.com>
78187
78188         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78189         present.
78190
78191 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78194         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78195         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78196
78197 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78198
78199         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78200
78201 2006-06-26  Bruno Haible  <bruno@clisp.org>
78202
78203         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78204
78205 2006-06-26  Bruno Haible  <bruno@clisp.org>
78206
78207         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78208
78209 2006-06-26  Bruno Haible  <bruno@clisp.org>
78210
78211         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78212         SGI C compiler in pre-C99 mode.
78213         Suggested by Mark D. Baushke and Larry Jones.
78214
78215 2006-06-26  Bruno Haible  <bruno@clisp.org>
78216
78217         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78218         WCHAR_MAX.
78219         Reported by Mark D. Baushke and Larry Jones.
78220
78221 2006-06-26  Bruno Haible  <bruno@clisp.org>
78222
78223         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78224         in pre-C99 mode.
78225         Suggested by Mark D. Baushke and Larry Jones.
78226
78227 2006-06-23  Simon Josefsson  <jas@extundo.com>
78228             Bruno Haible  <bruno@clisp.org>
78229
78230         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78231         Emit mostlyclean-local rule.
78232         (func_emit_tests_Makefile_am): Likewise.
78233         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78234
78235 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78236
78237         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78238
78239 2006-06-23  Bruno Haible  <bruno@clisp.org>
78240
78241         * tests/test-stdint.c: Update to match ISO C 99 Technical
78242         Corrigendum 1.
78243
78244 2006-06-23  Bruno Haible  <bruno@clisp.org>
78245
78246         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78247
78248 2006-06-23  Bruno Haible  <bruno@clisp.org>
78249
78250         * lib/stdint_.h: Treat IRIX like OpenBSD.
78251
78252 2006-06-23  Bruno Haible  <bruno@clisp.org>
78253
78254         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78255         ISO C 99 Technical Corrigendum 1.
78256
78257 2006-06-22  Simon Josefsson  <jas@extundo.com>
78258
78259         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78260         MinGW.
78261
78262 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78265         needed.  Some compiler complained about some of them.  Problem reported
78266         by Larry Jones in
78267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78268
78269 2006-06-21  Simon Josefsson  <jas@extundo.com>
78270
78271         * tests/test-getaddrinfo.c: New file.
78272
78273         * modules/getaddrinfo-tests: New file.
78274
78275         * MODULES.html.sh: Add inet_pton.
78276
78277         * modules/inet_pton: New file.
78278
78279 2006-06-21  Simon Josefsson  <jas@extundo.com>
78280
78281         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78282         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78283         of using the (limited) gnulib implementation on Windows XP.
78284
78285         * m4/inet_pton.m4: New file.
78286
78287 2006-06-21  Simon Josefsson  <jas@extundo.com>
78288
78289         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78290         variable.
78291
78292         * lib/socket_.h: Don't define WINVER.
78293
78294         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78295         slightly modified to work in gnulib.
78296
78297 2006-06-21  Simon Josefsson  <jas@extundo.com>
78298
78299         * doc/gnulib.texi (Windows sockets): Add.
78300
78301 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78302
78303         * lib/read-file.c (fread_file): Start with buffer allocation of
78304         0 bytes rather than 1 byte; this simplifies the code.
78305         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78306         code to free buffer and save/restore errno.
78307         (internal_read_file): Remove unused local.
78308
78309 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78310
78311         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78312         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78313         Problem reported by Denis Excoffier in
78314         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78315
78316 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78317
78318         * modules/sys_socket, modules/socklen: Include sys/types since
78319         FreeBSD 4.x's sys/socket.h needs it.
78320
78321 2006-06-19  Simon Josefsson  <jas@extundo.com>
78322
78323         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78324
78325 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78328
78329 2006-06-19  Bruno Haible  <bruno@clisp.org>
78330
78331         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78332         and FULL_PATH_INTTYPES_H in angle brackets.
78333         Reported by Mark D. Baushke <mdb@gnu.org>.
78334
78335 2006-06-17  Eric Blake  <ebb9@byu.net>
78336
78337         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78338         errno.
78339
78340 2006-06-17  Bruno Haible  <bruno@clisp.org>
78341
78342         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78343         <sys/inttypes.h>.
78344
78345 2006-06-17  Bruno Haible  <bruno@clisp.org>
78346
78347         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78348         whether errno is declared. Assume <errno.h> declares errno.
78349
78350 2006-06-17  Bruno Haible  <bruno@clisp.org>
78351
78352         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78353
78354 2006-06-17  Bruno Haible  <bruno@clisp.org>
78355
78356         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78357         problem on Solaris 2.5.1.
78358
78359 2006-06-16  Eric Blake  <ebb9@byu.net>
78360
78361         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78362         * lib/unicodeio.c [!defined errno]: Likewise.
78363         * lib/strtol.c [!defined errno]: Likewise.
78364         * lib/strtod.c [!defined errno]: Likewise.
78365
78366 2006-06-15  Eric Blake  <ebb9@byu.net>
78367
78368         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78369
78370 2006-06-15  Eric Blake  <ebb9@byu.net>
78371
78372         * config/srclist.txt (ssize_t.m4): Lose sync.
78373
78374 2006-06-15  Bruno Haible  <bruno@clisp.org>
78375
78376         * modules/stdint (Files): Include m4/full-header-path.m4,
78377         m4/size_max.m4, m4/wchar_t.m4.
78378         (Makefile.am): Many more substitutions.
78379         * modules/stdint-tests: New file.
78380         * tests/test-stdint.c: New file.
78381
78382 2006-06-15  Bruno Haible  <bruno@clisp.org>
78383
78384         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78385         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78386         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78387         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78388         gl_CHECK_TYPE_SAME): New macros.
78389
78390 2006-06-15  Bruno Haible  <bruno@clisp.org>
78391
78392         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78393
78394 2006-06-15  Bruno Haible  <bruno@clisp.org>
78395
78396         * lib/stdint_.h: Rewritten to be fully auto-configured.
78397         Fixes bug on HP-UX/IA64.
78398
78399 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * lib/getdate.y (__attribute__): Don't define if already defined.
78402         Problem reported by Larry Jones.
78403         * lib/utimens.c (__attribute__): Likewise.
78404
78405 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78408         reported by Andreas Schwab.
78409
78410 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78411             Bruno Haible  <bruno@clisp.org>
78412
78413         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78414         check for the declaration of strnlen and a run test that exposes the
78415         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78416         rpl_strndup.
78417
78418 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78419             Bruno Haible  <bruno@clisp.org>
78420
78421         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78422
78423 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78424
78425         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78426         compile test, for Tru64 4.0D.
78427
78428 2006-05-28  Karl Berry  <karl@gnu.org>
78429
78430         * config/srclist.txt (printf-args.c): lose sync.
78431
78432 2006-05-26  Martin Lambers  <marlam@marlam.de>
78433
78434         * lib/getpass.c: Updates the test for the native W32 API, and adds
78435         missing includes, thus fixing compilation warnings.
78436
78437 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78438
78439         * lib/exclude.c (exclude_fnmatch): New function.
78440         (excluded_file_name): Call exclude_fnmatch.
78441         * lib/exclude.h (excluded_file_name): New prototype
78442
78443 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/tempname.c (small_open, large_open): New macros.
78446         (__open, __open64) [!_LIBC]: Remove.
78447         (__gen_tempname): Use small_open and large_open instead of __open
78448         and __open64.  This fixes a portability bug on HP-UX 11.11i
78449         reported by Simon Wing-Tang in
78450         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78451
78452 2006-05-24  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78455         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78456         Reported by Thorsten Maerz <torte@netztorte.de> via
78457         Aaron Stone <aaron@serendipity.cx>.
78458
78459 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78462         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78463         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78464         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78465         not really conditional on the cache.
78466         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78467
78468 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78471         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78472         (my_usleep): Don't mishandle maximum value.
78473
78474 2006-05-19  Jim Meyering  <jim@meyering.net>
78475
78476         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78477
78478 2006-05-17  Bruno Haible  <bruno@clisp.org>
78479
78480         Cygwin portability.
78481         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78482
78483 2006-05-17  Bruno Haible  <bruno@clisp.org>
78484
78485         * lib/stdint_.h: Fix recognition of Cygwin.
78486
78487 2006-05-15  Bruno Haible  <bruno@clisp.org>
78488
78489         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78490         on libtool patch by Ralf Wildenhues.
78491
78492 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78495         test for C99 conformance; (bool) 0.5 is an integer constant
78496         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78497         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78498
78499 2006-05-11  Simon Josefsson  <jas@extundo.com>
78500
78501         * m4/xvasprintf.m4: Fix obvious typo.
78502
78503 2006-05-11  Jim Meyering  <jim@meyering.net>
78504
78505         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78506         James Lemley.
78507
78508 2006-05-10  Simon Josefsson  <jas@extundo.com>
78509
78510         * lib/md4.c: Typo fix, update copyright years.
78511         (K1, K2): Don't use L because it turn computations into 64-bit on
78512         64-bit platforms.
78513
78514 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78517         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78518         unwanted sign propagation, e.g., on hosts with 64-bit int.
78519         There still are some problems with reeelly weird theoretical hosts
78520         (e.g., 33-bit int) but it's not worth worrying about now.
78521         * lib/sha1.c (rol): Likewise.
78522         (K1, K2, K3, K4): Remove unnecessary L suffix.
78523
78524 2006-05-10  Bruno Haible  <bruno@clisp.org>
78525
78526         * lib/des.c: Cast to avoid warnings.
78527
78528 2006-05-09  Bruno Haible  <bruno@clisp.org>
78529
78530         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78531         (Depends-on): Depend also on xsize, stdarg.
78532         (configure.ac): Add gl_XVASPRINTF.
78533
78534 2006-05-09  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/xvasprintf.m4: New file.
78537
78538 2006-05-09  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78541         (EOVERFLOW): Define fallback value.
78542         (xstrcat): New function.
78543         (xvasprintf): Recognize the special case of a string concatenation.
78544
78545 2006-05-08  Eric Blake  <ebb9@byu.net>
78546
78547         * gnulib-tool (func_version): Base copyright year on CVS date.
78548         (func_emit_copyright_notice): New function.
78549         (func_emit_lib_Makefile_am): Use it.
78550         (func_emit_tests_Makefile_am): Likewise.
78551         (func_import): Likewise.
78552
78553 2006-05-08  Bruno Haible  <bruno@clisp.org>
78554
78555         * modules/stdarg: New file.
78556         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78557
78558 2006-05-08  Bruno Haible  <bruno@clisp.org>
78559
78560         * m4/stdarg.m4: New file, from GNU gettext.
78561
78562 2006-05-08  Bruno Haible  <bruno@clisp.org>
78563
78564         * config/srclist.txt (build-aux/config.rpath): different from latest
78565         release.
78566
78567 2006-05-08  Bruno Haible  <bruno@clisp.org>
78568
78569         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78570
78571 2006-05-05  Jim Meyering  <jim@meyering.net>
78572
78573         * m4/warning.m4: New file, derived from bison's file by the same name.
78574
78575 2006-05-03  Bruno Haible  <bruno@clisp.org>
78576
78577         * lib/stdint_.h: Shorter URL.
78578         * lib/inttypes.h: Likewise.
78579
78580 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78583
78584 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * lib/verify.h: Document the internals better.  Most of this change
78587         was written by Bruno Haible.
78588
78589 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78590
78591         * doc/verify.texi: New file, partly based on a proposal by
78592         Bruno Haible.
78593
78594 2006-05-02  Bruno Haible  <bruno@clisp.org>
78595
78596         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78597         test from here...
78598         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78599
78600 2006-04-29  Bruno Haible  <bruno@clisp.org>
78601
78602         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78603         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78604
78605 2006-04-29  Bruno Haible  <bruno@clisp.org>
78606
78607         * gnulib-tool: Make --update option actually work.
78608
78609 2006-04-29  Bruno Haible  <bruno@clisp.org>
78610
78611         * doc/gcd.texi: New file.
78612         * doc/gnulib.texi: Include it.
78613
78614 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * lib/getdate.y (get_date): When adding relative date, start with the
78617         initial time, not with the result of the first mktime call.
78618
78619 2006-04-25  Bruno Haible  <bruno@clisp.org>
78620
78621         * gnulib-tool (func_import): Output the include directives in three
78622         blocks, sorted separately.
78623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78624
78625 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78628         to define main with arguments, for C++.  Reported by Eric Blake.
78629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78630         Prefer 'int main ()' to 'int main (void)', for C++.
78631         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78632         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78633         for 'main', for C99 and C++.
78634
78635 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78638         Don't assume that exit status -1 is valid.
78639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78640         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78641         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78642         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78643         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78644         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78645         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78646         functions can be used without declaring them, or that you can
78647         exit with status -1.
78648         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78649
78650 2006-04-24  Karl Berry  <karl@gnu.org>
78651
78652         * config/srclist.txt (longdouble.m4): sync lost.
78653
78654 2006-04-24  Eric Blake  <ebb9@byu.net>
78655
78656         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78657
78658 2006-04-24  Bruno Haible  <bruno@clisp.org>
78659
78660         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78661         poll() implementation in AIX.
78662         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78663
78664 2006-04-24  Bruno Haible  <bruno@clisp.org>
78665
78666         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78667         assigned exactly once.
78668
78669 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78670             Bruno Haible  <bruno@clisp.org>
78671
78672         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78673         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78674         for AM_CPPFLAGS.
78675
78676 2006-04-23  Bruno Haible  <bruno@clisp.org>
78677
78678         * modules/copy-file: Depend on unistd.
78679         * modules/execute: Likewise.
78680         * modules/fatal-signal: Likewise.
78681         * modules/findprog: Likewise.
78682         * modules/mkdtemp : Likewise.
78683         * modules/pipe: Likewise.
78684         * modules/wait-process: Likewise.
78685
78686 2006-04-23  Bruno Haible  <bruno@clisp.org>
78687
78688         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78689         condition was already detected.
78690         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78691
78692 2006-04-23  Bruno Haible  <bruno@clisp.org>
78693
78694         * lib/copy-file.c: Include <unistd.h> unconditionally.
78695         * lib/execute.c: Likewise.
78696         * lib/fatal-signal.c: Likewise.
78697         * lib/findprog.c: Likewise.
78698         * lib/mkdtemp.c: Likewise.
78699         * lib/pipe.h: Likewise.
78700         * lib/pipe.c: Likewise.
78701         * lib/wait-process.h: Likewise.
78702
78703 2006-04-23  Bruno Haible  <bruno@clisp.org>
78704
78705         * gnulib-tool (func_usage): Fix --import description. Document
78706         --update.
78707         (func_import): Create temporary file in a temporary directory, if
78708         --dry-run is specified. Silence errors from 'grep' when there are no
78709         m4 files in $m4dir.
78710         (func_create_testdir): Silence errors from 'grep' when there are no
78711         m4 files in $m4dir.
78712         Reported by Karl Berry <karl@freefriends.org>.
78713
78714 2006-04-20  Bruno Haible  <bruno@clisp.org>
78715
78716         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78717         one argument, so that the code will be portable to Autoconf 2.60.
78718         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78719         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78720         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78721
78722 2006-04-19  Derek Price  <derek@ximbiot.com>
78723             Eric Blake  <ebb9@byu.net>
78724
78725         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78726         rather than "/full/path.h".  Update comment to match.  Shorten &
78727         generalize m4_translit call via AS_TR_CPP.
78728
78729 2006-04-19  Derek Price  <derek@ximbiot.com>
78730             Eric Blake  <ebb9@byu.net>
78731
78732         * lib/inttypes.h: Correct grammar in comment.
78733
78734 2006-04-18  Derek Price  <derek@ximbiot.com>
78735             Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         * modules/inttypes: New file.
78738         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78739
78740 2006-04-18  Derek Price  <derek@ximbiot.com>
78741             Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78744         New files.
78745
78746 2006-04-18  Derek Price  <derek@ximbiot.com>
78747             Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * lib/inttypes.h: New file.
78750         * lib/strtoimax.c: Assume <inttypes.h>.
78751
78752 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78755         isn't mounted.  Problem reported by Kir Kolyshkin.
78756
78757 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78760         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78761         Derek R. Price.
78762         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78763         implementation.
78764
78765 2006-04-12  Eric Blake  <ebb9@byu.net>
78766
78767         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78768         is now done automatically by the corresponding Autoconf macro.
78769
78770 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78773         time_r.h.
78774
78775 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         Merge regex changes from libc, removing some of our
78778         POSIX-conformance changes that were rejected and redoing them in a
78779         less-intrusive way.
78780
78781         * lib/regcomp.c (re_compile_internal, init_dfa):
78782         Length arg is now size_t, not Idx.  All uses changed.
78783         (peek_token): Forward decl now says internal_function.
78784         (__re_error_msgid, __re_error_msgid_idx):
78785         Now static rather than extern with attribute_hidden.
78786         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78787         For some reason libc prefers K&R style defns for external functions.
78788         (regerror) [!defined _LIBC]: Likewise.
78789         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78790         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78791         (build_range_exp, build_collating_symbol):
78792         Use K&R-style defn.
78793         (re_compile_fastmap): Use '\0' to memset, not 0.
78794         (utf8_sb_map): Make the calculations more obvious.
78795         (init_dfa, parse_bracket_exp, build_charclass_op):
78796         Call calloc and cast result, as glibc does.
78797         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78798         (build_range_exp, build_collating_symbol):
78799         Now internal functions.
78800
78801         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78802
78803         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78804         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78805         Don't depend on VMS; depend on __VMS instead, for POSIX
78806         namespace cleanness.
78807         (regoff_t): Define to ssize_t, not long int.
78808
78809         Remove the REG_ macros named below.  Instead, make the old names
78810         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78811         __USE_GNU_REGEX.
78812         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78813         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78814         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78815         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78816         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78817         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78818         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78819         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78820         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78821         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78822         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78823         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78824         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78825         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78826         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78827         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78828         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78829         (REG_NREGS):
78830         Remove.  All uses replaced by the old RE_* names.
78831         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78832         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78833         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78834         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78835         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78836         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78837         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78838         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78839         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78840         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78841         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78842         Don't bother having these macros be independent of each others'
78843         values, since they no longer exist in the POSIX name space.
78844
78845         Rename the following member names back to their old names,
78846         unless !__USE_GNU_REGEX.  All uses changed back.
78847         (buffer): Renamed from re_buffer.
78848         (allocated): Renamed from re_allocated.
78849         (used): Renamed from re_used.
78850         (syntax): Renamed from re_syntax.
78851         (fastmap): Renamed from re_fastmap.
78852         (translate): Renamed from re_translate.
78853         (can_be_null): Renamed from re_can_be_null.
78854         (regs_allocated): Renamed from re_regs_allocated.
78855         (fastmap_accurate): Renamed from re_fastmap_accurate.
78856         (no_sub): Renamed from re_no_sub.
78857         (not_bol): Renamed from re_not_bol.
78858         (not_eol): Renamed from re_not_eol.
78859         (newline_anchor): Renamed from re_newline_anchor.
78860         (num_regs): Renamed from rm_num_regs.
78861         (start): Renamed from rm_start.
78862         (end): Renamed from rm_end.
78863
78864         (free_state): Move up a bit.
78865
78866         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78867         #define to be empty.
78868         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78869         when that is what is intended.
78870         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78871         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78872         (MAX): New macro.
78873         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78874         All uses changed back to re_malloc, etc.  It's now the caller's
78875         responsibility to check for overflow; all callers changed.
78876         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78877         (re_x2nrealloc): Remove.
78878         (free_state): Remove decl.
78879
78880         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78881         (re_set_registers, re_exec):
78882         Use K&R-style defn.
78883
78884         2006-01-31  Roland McGrath  <roland@redhat.com>
78885
78886         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78887         Reported by Mike Frysinger <vapier@gentoo.org>.
78888
78889         2006-01-15  Andreas Jaeger  <aj@suse.de>
78890
78891         [BZ #1950]
78892         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78893         build_wcs_upper_buffer change.
78894         (build_wcs_upper_buffer): Change return type.
78895
78896         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78897
78898         * lib/regex_internal.h: Include <stdint.h> if available.
78899
78900         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78901
78902         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78903
78904         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78905
78906         * lib/regcomp.c: Adjust for changed secondary hash function.
78907
78908         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78909
78910         * lib/regex.h: Pretty printing.
78911         Clean up namespace a bit.
78912
78913         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78914
78915         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78916         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78917
78918         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78919                     Ulrich Drepper  <drepper@redhat.com>
78920
78921         [BZ #1302]
78922         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78923         changed.
78924         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78925
78926         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78927
78928         [BZ #281]
78929         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78930         * lib/regcomp.c: Remove unnecessary uses of
78931         unsigned RE_TRANSLATE_TYPE.
78932         * lib/regex_internal.h: Likewise.
78933         * lib/regex_internal.c: Likewise.
78934         * lib/regexec.c: Likewise.
78935         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78936
78937         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78938
78939         * lib/regexec.c (find_recover_state): Remove unnecessary
78940         initialization.
78941         (transit_state_bkref): Make DFA a const pointer.
78942         (get_subexp): Likewise.
78943         (check_arrival): Likewise.
78944         (update_cur_sifted_state): Likewise.
78945         (re_search_internal): Likewise.
78946         (prune_impossible_nodes): Likewise.
78947         (acquire_init_state_context): Likewise.
78948         (proceed_next_node): Likewise.
78949         (set_regs): Likewise.
78950         (free_fail_stack_return): Likewise.
78951         (check_arrival_expand_ecl): Mark DFA parameter as const.
78952         (check_arrival_expand_ecl_sub): Likewise.
78953         (check_subexp_limits): Likewise.
78954         (sub_epsilon_src_nodes):  Likewise.
78955         (add_epsilon_src_nodes):  Likewise.
78956         (merge_state_array): Likewise.
78957         (update_regs): Likewise.
78958         (build_trtable): Likewise.
78959         (sift_states_backward): Mark MCTX parameter as const.
78960         (build_sifted_states): Likewise.
78961         (update_cur_sifted_state): Likewise.
78962         (sift_states_mkref): Likewise.
78963         (check_arrival_expand_ecl): Mark eclosure as const.
78964         (check_dst_limits_calc_pos_1): Likewise.
78965         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78966         pointer.
78967
78968         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78969
78970         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78971         (transit_state_sb): Likewise.
78972         (transit_state_mb): Likewise.
78973         (sift_states_iter_mb): Likewise.
78974         (check_arrival_add_next_nodes): Likewise.
78975         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78976         [_LIBC] (re_search_2_stub): Use mempcpy.
78977
78978         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78979         mbrtowc for very simple UTF-8 case.
78980
78981         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78982         a pointer-to-const.
78983         (re_acquire_state_context): Likewise.
78984         * lib/regex_internal.h: Adjust prototypes.
78985
78986         * lib/regex.c: Prevent using C++ compilers.
78987
78988         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78989         (re_acquire_state_context): Likewise.
78990
78991 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * modules/regex (Depends-on): Add ssize_t.
78994
78995 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78998         translation table.
78999
79000 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79003
79004 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79005             Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79008         <sys/types.h> and <inttypes.h>.
79009
79010 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79011
79012         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79013         `__error_t_defined', so argp.h will not typedef the former.
79014
79015 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79018         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79019         glibc names.  Even if glibc is changed to conform to POSIX, the
79020         traditional names will be available anyway, since regex depends on
79021         the extensions module.  Also, fix a longstanding typo in the
79022         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79023         reported by Emanuele Giaquinta.  Also, change sense of cached
79024         variable, so that the message makes sense.
79025
79026 2006-03-24  Simon Josefsson  <jas@extundo.com>
79027
79028         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79029         including some doc fixes.
79030         (base64_encode_alloc): Fix +1 bug on allocation failures.
79031
79032 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79033
79034         * lib/base64.c (base64_encode): Do not read past end of array with
79035         unsanitized input on systems with CHAR_BIT > 8.
79036
79037 2006-03-24  Eric Blake  <ebb9@byu.net>
79038
79039         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79040
79041 2006-03-22  Karl Berry  <karl@gnu.org>
79042
79043         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79044         * config/srclistvars.sh (COREUTILS): new var.
79045
79046 2006-03-17  Jim Meyering  <jim@meyering.net>
79047
79048         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79049         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79050
79051 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79054         no longer needs it.  Instead, check that regoff_t is as least
79055         as wide as ptrdiff_t.
79056
79057         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79058         so that our regex.h stays compatible with the installed regex.
79059         This is helpful for installers who configure --without-included-regex.
79060         Problem reported by Emanuele Giaquinta.
79061
79062 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79065         Typedef to long int, not to off_, as POSIX will likely change
79066         in that direction.
79067
79068 2006-03-15  Eric Blake  <ebb9@byu.net>
79069
79070         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79071
79072 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79073
79074         * lib/argp-help.c (validate_uparams): Fix typo
79075         * lib/argp-parse.c (argp_default_options): Consistently begin help
79076         messages with a lowercase letter.
79077
79078 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79081         overrun buffers and shouldn't be used (much as gets shouldn't be
79082         used).
79083         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79084
79085 2006-03-08  Simon Josefsson  <jas@extundo.com>
79086
79087         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79088         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79089
79090 2006-03-08  Simon Josefsson  <jas@extundo.com>
79091
79092         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79093         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79094
79095 2006-03-08  Simon Josefsson  <jas@extundo.com>
79096
79097         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79098         signal that configure disabled the device.
79099
79100 2006-03-08  Simon Josefsson  <jas@extundo.com>
79101
79102         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79103         languages.
79104
79105 2006-03-07  Simon Josefsson  <jas@extundo.com>
79106
79107         * modules/getopt (Depends-on): Add unistd.
79108
79109         * modules/unistd: New file.
79110
79111 2006-03-07  Simon Josefsson  <jas@extundo.com>
79112
79113         * modules/gc-random: New file.
79114
79115 2006-03-07  Simon Josefsson  <jas@extundo.com>
79116
79117         * m4/unistd_h.m4: New file.
79118
79119 2006-03-07  Simon Josefsson  <jas@extundo.com>
79120
79121         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79122         test to be side-effect free by storing the result in the cache
79123         variable gl_cv_lib_readline, and moving the assignment of
79124         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79125         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79126
79127 2006-03-07  Simon Josefsson  <jas@extundo.com>
79128
79129         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79130         error on missing devices (the functions will return an error).
79131
79132         * m4/gc.m4: Move random stuff to gc-random.m4
79133
79134 2006-03-07  Simon Josefsson  <jas@extundo.com>
79135
79136         * lib/unistd_.h: New file.
79137
79138 2006-03-07  Simon Josefsson  <jas@extundo.com>
79139
79140         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79141
79142 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79145         Problem reported by Juan Manuel Guerrero.
79146
79147 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79150         the unistd module.
79151         * lib/getlogin_r.c: Likewise.
79152         * lib/getlogin_r.h: Likewise.
79153         * lib/glob.c: Likewise.
79154         * lib/pagealign_alloc.c: Likewise.
79155         * lib/unistd_.h: Remove; no longer needed.
79156
79157 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79160         Add unistd.
79161         * modules/c-stack (Depends-on): Add unistd.
79162         * modules/getlogin_r: Likewise.
79163         * modules/glob: Likewise.
79164         * modules/pagealign_alloc: Likewise.
79165         * modules/unistd (Files): Remove lib/unistd_.h.
79166         (EXTRA_DIST): Remove.
79167         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79168         need unistd_.h.
79169         (MOSTLYCLEANFILES): Remove unistd.h-t.
79170
79171 2006-03-03  Simon Josefsson  <jas@extundo.com>
79172
79173         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79174
79175 2006-03-03  Simon Josefsson  <jas@extundo.com>
79176
79177         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79178         libidn and bison.
79179
79180 2006-03-03  Simon Josefsson  <jas@extundo.com>
79181
79182         * build-aux/maint.mk: Add indent target.
79183
79184 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79185
79186         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79187         our replacement poll.h in any case, to avoid a differing
79188         declaration from a system header.  Seen on AIX.
79189
79190 2006-03-01  Simon Josefsson  <jas@extundo.com>
79191
79192         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79193         <kasal@ucw.cz>.
79194
79195 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * modules/gettime (Depends-on): Add extensions module.
79198         * modules/nanosleep (Depends-on): Likewise.
79199         * modules/settime (Depends-on): Likewise.
79200
79201 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79204         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79205         pedantically.
79206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79207         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79208
79209         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79210         not "==".  Reported by Ralf Wildenhues.
79211
79212 2006-03-01  Karl Berry  <karl@gnu.org>
79213
79214         * doc/Copyright/request-*: new files, synced from gnuorg.
79215
79216 2006-03-01  Karl Berry  <karl@gnu.org>
79217
79218         * config/srclist.txt (Copyright/*): new entries.
79219
79220 2006-02-28  Simon Josefsson  <jas@extundo.com>
79221
79222         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79223
79224 2006-02-27  Simon Josefsson  <jas@extundo.com>
79225
79226         * lib/base64.h: Indent #define's.  From Jim Meyering
79227         <jim@meyering.net>.
79228
79229 2006-02-27  Jim Meyering  <jim@meyering.net>
79230
79231         Revert the change of 2006-02-24, so these files can continue
79232         to be sync'd from gettext.
79233         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79234         of `config.h'.
79235
79236 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * modules/intprops: New file.
79239         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79240         Add intprops.
79241         * modules/getloadavg (Files): Remove lib/intprops.h.
79242         (Depends-on): Add intprops.
79243         * modules/human: Likewise.
79244         * modules/inttostr: Likewise.
79245         * modules/openat: Likewise.
79246         * modules/sig2str: Likewise.
79247         * modules/userspec: Likewise.
79248         * modules/utimecmp: Likewise.
79249         * modules/xnanosleep: Likewise.
79250         * modules/xstrtol: Likewise.
79251
79252 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79253
79254         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79255         * modules/lock-tests (TESTS): Use $(EXEEXT).
79256         * modules/tls-tests: Likewise.
79257         * modules/argp-tests: Likewise.
79258         (check_PROGRAMS): New var, replacing...
79259         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79260
79261 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79262
79263         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79264         `config.h'.
79265
79266 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79269
79270 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79271
79272         Sync from coreutils.
79273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79274         gl_CHDIR_SAFER.
79275
79276 2006-02-22  Jim Meyering  <jim@meyering.net>
79277
79278         Sync from coreutils.
79279         * m4/chdir-safer.m4: New file.
79280
79281 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79284         AT_FDCWD exceeds INT_MAX.
79285         * lib/openat.h (AT_FDCWD): Likewise.
79286
79287 2006-02-17  Eric Blake  <address@hidden>
79288
79289         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79290
79291 2006-02-16  Simon Josefsson  <jas@extundo.com>
79292
79293         * modules/getaddrinfo (Depends-on): Add sys_socket.
79294
79295 2006-02-15  Simon Josefsson  <jas@extundo.com>
79296
79297         * build-aux/maint.mk: Add dsyntax-check rule.
79298
79299 2006-02-15  Eric Blake  <ebb9@byu.net>
79300
79301         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79302         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79303         'present but cannot compile' warnings on cygwin.
79304         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79305         use ws2tcpip.h if sys/socket.h works.
79306         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79307         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79308
79309 2006-02-14  Simon Josefsson  <jas@extundo.com>
79310
79311         * modules/maintainer-makefile (Files): Rename.
79312
79313         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79314         and (the local) Makefile.cfg to maint-cfg.mk.
79315
79316         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79317         to the latter.
79318
79319         * modules/maintainer-makefile: New module.
79320
79321         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79322         severaly stripped to make it possible to build it up from scratch
79323         with reliable tests.
79324
79325         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79326         fixes to permit overriding the default actions when configure and
79327         makefile are not available.
79328
79329 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         Sync from coreutils.
79332         * modules/lstat (Depends-on): Don't depend on xalloc.
79333         (License): Change from GPL to LGPL, since this is now simply a
79334         replacement for a libc function.
79335
79336 2006-02-14  Jim Meyering  <jim@meyering.net>
79337
79338         Sync from coreutils.
79339
79340         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79341         failure on deficient systems, and simplify gnulib lgpl dependencies.
79342         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79343         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79344
79345         * lib/xalloc-die.c: Remove unused definition of N_.
79346
79347 2006-02-14  Jim Meyering  <jim@meyering.net>
79348
79349         Sync from coreutils.
79350         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79351         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79352         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79353         double-quote uses of that variable, to accommodate the rare case in
79354         which getmntent is available in none of the libraries checked.  This
79355         happens at least on FreeBSD 5.0.
79356
79357 2006-02-13  Simon Josefsson  <jas@extundo.com>
79358
79359         * gnulib-tool (Usage): Fix --import, from
79360         karl@freefriends.org (Karl Berry).
79361
79362 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79363
79364         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79365
79366 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79367
79368         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79369         "autoupdate" on 2005-12-12.
79370
79371 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * modules/closeout (Depends-on): Remove atexit.
79374
79375 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79378         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79379
79380 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79383         __EXTENSIONS__ if this causes compilation to fail.  Problem
79384         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79385         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79386
79387 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79390         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79392         All uses changed.
79393
79394 2006-01-26  Simon Josefsson  <jas@extundo.com>
79395
79396         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79397         prototype is visible on mingw32.
79398
79399         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79400         for mingw32.
79401
79402         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79403         mingw32).
79404
79405 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79408         attempt to open for write; this always fails, at least on POSIX
79409         hosts.  This reinstates the 2006-01-09 change, which was
79410         inadvertently removed.
79411
79412 2006-01-26  Bruno Haible  <bruno@clisp.org>
79413
79414         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79415         Reported by Paul Eggert.
79416
79417 2006-01-26  Bruno Haible  <bruno@clisp.org>
79418             Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * lib/stdbool_.h (_Bool)
79421         [(! (defined __cplusplus || defined __BEOS__)
79422           && !defined __GNUC__
79423           && !(defined __HP_cc || defined __xlc__
79424                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79425                || defined __sgi))]:
79426         #define to signed char in these cases too; this simplifies
79427         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79428         etc., separately) and makes it more conservative.
79429
79430 2006-01-25  Simon Josefsson  <jas@extundo.com>
79431
79432         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79433         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79434         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79435
79436 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79437
79438         * lib/argp-namefrob.h: Bugfix. Remove stray #
79439
79440 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79443         so that we test the test.
79444         Check for yet another HP-UX cc bug involving *bool |= bool.
79445
79446 2006-01-25  Karl Berry  <karl@gnu.org>
79447
79448         * config/srclist.txt (vasnprintf.c): sync lost.
79449
79450 2006-01-25  Jim Meyering  <jim@meyering.net>
79451
79452         Sync from the stable (b5) branch of coreutils:
79453
79454         * lib/fts.c (fts_children): Don't let close() clobber errno from
79455         failed fchdir().
79456
79457         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79458         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79459         a dangling symlink.  That can also happen at least for ELOOP.
79460         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79461         FYI, this bug predates the inclusion of fts.c in coreutils.
79462
79463         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79464         in their own block, so pre-c99 compilers don't object.
79465
79466         Avoid the double-free (first in fts_read, second in fts_close) that
79467         would occur when an `active' directory is made inaccessible (e.g.,
79468         via chmod a-x) during a traversal.
79469         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79470         before returning.  Reproduce this failure by
79471         mkdir -p a/b; cd a; chmod a-x . b
79472         Reported by Stavros Passas.
79473
79474 2006-01-25  Jim Meyering  <jim@meyering.net>
79475
79476         * lib/fileblocks.c: Remove more useless parentheses.
79477         * lib/readutmp.h: Likewise.
79478
79479 2006-01-25  Bruno Haible  <bruno@clisp.org>
79480
79481         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79482         warnings.
79483         Reported by Paul Eggert.
79484
79485 2006-01-25  Bruno Haible  <bruno@clisp.org>
79486
79487         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79488         rid of a trap command. For Solaris sh.
79489         Reported by Mark D. Baushke <mdb@gnu.org>.
79490
79491 2006-01-24  Simon Josefsson  <jas@extundo.com>
79492
79493         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79494         Bruno.
79495
79496 2006-01-24  Karl Berry  <karl@gnu.org>
79497
79498         * config/srclist.txt (argp-namefrob.h): sync lost.
79499
79500 2006-01-24  Jim Meyering  <jim@meyering.net>
79501
79502         * modules/openat (Files): Add lib/intprops.h.
79503         From Mark D. Baushke.
79504
79505 2006-01-24  Jim Meyering  <jim@meyering.net>
79506
79507         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79508         Reported by Mark D. Baushke.
79509
79510 2006-01-24  Jim Meyering  <jim@meyering.net>
79511
79512         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79513
79514 2006-01-24  Bruno Haible  <bruno@clisp.org>
79515
79516         * modules/strnlen (Maintainer): Change from glibc to all.
79517
79518 2006-01-24  Bruno Haible  <bruno@clisp.org>
79519
79520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79521         Patch by Paul Eggert.
79522
79523 2006-01-24  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79526         already has it.
79527         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79528         2005-11-26.
79529
79530         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79531         'signed char' to avoid problems with the built-in _Bool type.
79532         Reported by Paul Eggert on 2005-11-26.
79533
79534 2006-01-24  Bruno Haible  <bruno@clisp.org>
79535
79536         * gnulib-tool (func_import): Avoid constructing complicated sed
79537         expressions inside backquote.
79538         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79539
79540 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79541
79542         These changes imported from libc.
79543         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79544         test and two separate function calls.
79545         * lib/strndup.c (__strndup): Add libc_hidden_def.
79546
79547 2006-01-23  Simon Josefsson  <jas@extundo.com>
79548
79549         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79550         Remove the test_*_SOURCES variable: automake infers it by default.
79551         * modules/tls-tests: Likewise.
79552
79553 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         Work around porting bugs reported by Dieter in
79556         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79557         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79558         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79559         Include "getopt.h" first, to check interface.
79560         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79561         !HAVE_DECL_GETENV.
79562         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79563         (__strndup): Revert to K&R-style function dfns, the glibc style.
79564         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79565         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79566         Include strnlen.h first, to get prototype properly.
79567         (strnlen): Renamed from __strnlen.
79568         Remove weak alias.
79569
79570 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79573
79574 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         * config/srclist.txt: Adjust to reflect glibc reorganization.
79577         This affects only comments.
79578
79579 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79580
79581          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79582          Reported by Bruce Korb <bkorb@gnu.org>.
79583
79584 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79587         to pacify gcc -Wswitch-default.
79588
79589 2006-01-22  Bruno Haible  <bruno@clisp.org>
79590
79591         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79592         temporary buffer for sprintf, take into account the precision also
79593         for 'd', 'i', 'u', 'o', 'x', 'X'.
79594
79595 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79596
79597         * modules/argp-tests: New module
79598         * tests/test-argp.c: New file
79599         * tests/test-argp-2.sh: New file
79600
79601 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79602
79603         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79604         (__argp_base_name): Removed
79605         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79606         typo.
79607         (__argp_base_name): Provide macro definition or extern declaration
79608         depending on the configuration
79609
79610 2006-01-20  Simon Josefsson  <jas@extundo.com>
79611
79612         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79613
79614 2006-01-20  Simon Josefsson  <jas@extundo.com>
79615
79616         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79617
79618 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79621         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79622         Suggested by Bruno Haible.
79623
79624 2006-01-20  Karl Berry  <karl@gnu.org>
79625
79626         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79627         until changes propagate, I guess.
79628
79629 2006-01-19  Simon Josefsson  <jas@extundo.com>
79630
79631         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79632
79633 2006-01-19  Simon Josefsson  <jas@extundo.com>
79634
79635         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79636
79637 2006-01-19  Simon Josefsson  <jas@extundo.com>
79638
79639         * gnulib-tool: Set check_PROGRAMS.
79640
79641         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79642         modules/des-tests, modules/gc-arcfour-tests,
79643         modules/gc-arctwo-tests, modules/gc-des-tests,
79644         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79645         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79646         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79647         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79648         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79649         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79650         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79651         test_*_SOURCES.
79652
79653 2006-01-18  Simon Josefsson  <jas@extundo.com>
79654
79655         * modules/socklen (Depends-on): Depend on sys_socket.
79656
79657 2006-01-18  Simon Josefsson  <jas@extundo.com>
79658
79659         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79660         modules/des-tests, modules/gc-arcfour-tests,
79661         modules/gc-arctwo-tests, modules/gc-des-tests,
79662         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79663         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79664         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79665         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79666         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79667         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79668         $(EXEEXT) to automake TESTS variable, for mingw32.
79669
79670 2006-01-17  Simon Josefsson  <jas@extundo.com>
79671
79672         * modules/socklen (Include): Need sys/socket.h.
79673
79674 2006-01-17  Bruno Haible  <bruno@clisp.org>
79675
79676         * modules/ssize_t (Include): Add <sys/types.h>.
79677
79678 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79681         it's not portable and it doesn't work with cross-compiles.
79682         Problem reported by Bruno Haible.  Fix missing-$ typo in
79683         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79684         -zignore from being used with Sun's C compiler.
79685
79686 2006-01-12  Simon Josefsson  <jas@extundo.com>
79687
79688         * lib/base64.c: Fix warning, reported by Bruno Haible
79689         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79690
79691 2006-01-12  Bruno Haible  <bruno@clisp.org>
79692
79693         * modules/ldd: New file.
79694         * build-aux/ldd.sh.in: New file.
79695         * MODULES.html.sh (Support for building libraries and executables): Add
79696         ldd.
79697
79698 2006-01-12  Bruno Haible  <bruno@clisp.org>
79699
79700         * m4/ldd.m4: New file.
79701
79702 2006-01-12  Bruno Haible  <bruno@clisp.org>
79703
79704         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79705         endless loop while replacing $auxdir with build-aux.
79706
79707 2006-01-11  Simon Josefsson  <jas@extundo.com>
79708
79709         * lib/stdint_.h (SIZE_MAX): Add missing (.
79710
79711 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         Sync from coreutils.
79714         * lib/md5.c: Fix commentary typos.
79715         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79716         * lib/md5.h (__attribute__): Remove; unused.
79717         * lib/sha1.c: Fix commentary to match md5 better.
79718         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79719         so that we don't need to worry about alignment.  All uses changed.
79720         This merges the 2005-10-28 md5 change into sha1.
79721
79722 2006-01-11  Jim Meyering  <jim@meyering.net>
79723
79724         Sync from coreutils.
79725         * lib/md5.c (OP): Fix spacing.
79726
79727 2006-01-11  Bruno Haible  <bruno@clisp.org>
79728
79729         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79730         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79731         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79732
79733 2006-01-11  Bruno Haible  <bruno@clisp.org>
79734
79735         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79736         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79737         the "early" section as well.
79738
79739 2006-01-11  Bruno Haible  <bruno@clisp.org>
79740
79741         Avoid "ar: no archive members specified" error on MacOS X.
79742         * gnulib-tool (func_modules_add_dummy): New function.
79743         (func_import, func_create_testdir): Invoke it.
79744
79745 2006-01-11  Bruno Haible  <bruno@clisp.org>
79746
79747         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79748         with $auxdir in AC_CONFIG_FILES statements.
79749
79750 2006-01-11  Bruno Haible  <bruno@clisp.org>
79751
79752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79753         Initialize also noinst_HEADERS to empty.
79754
79755 2006-01-11  Bruno Haible  <bruno@clisp.org>
79756
79757         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79758         variables.
79759         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79760         autoreconf.
79761
79762 2006-01-11  Bruno Haible  <bruno@clisp.org>
79763
79764         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79765         overridable by the user.
79766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79767
79768 2006-01-10  Simon Josefsson  <jas@extundo.com>
79769
79770         * modules/sys_socket: New file.
79771
79772 2006-01-10  Simon Josefsson  <jas@extundo.com>
79773
79774         * m4/sys_socket_h.m4: New file.
79775
79776 2006-01-10  Simon Josefsson  <jas@extundo.com>
79777
79778         * lib/socket_.h: New file.
79779
79780 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         * modules/readutmp (Maintainer): Add myself.
79783
79784 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79787         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79788         People who are still concerned with buggy memcmp implementations
79789         can invoke gl_FUNC_MEMCMP themselves.
79790
79791 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * lib/regex_internal.h (BITSET_WORD_BITS):
79794         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79795         preprocessor mishandles large unsigned values as if they were signed.
79796         Problem reported by Claudio Fontana in
79797         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79798
79799 2006-01-10  Jim Meyering  <jim@meyering.net>
79800
79801         Avoid the double-free (first in fts_read, second in fts_close) that
79802         would occur when an `active' directory is made inaccessible (e.g.,
79803         via chmod a-x) during a traversal.
79804         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79805         before returning.  Reproduce this failure by
79806         mkdir -p a/b; cd a; chmod a-x . b
79807         Reported by Stavros Passas.
79808
79809         Sync from coreutils.
79810         * lib/sha1.c: Tweak grammar in a comment.
79811
79812 2006-01-10  Jim Meyering  <jim@meyering.net>
79813
79814         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79815         Patch by Joerg Sonnenberger.
79816
79817 2006-01-10  Bruno Haible  <bruno@clisp.org>
79818
79819         * modules/readutmp: Depend on module free.
79820         * modules/strtok_r: Depend on module restrict.
79821
79822 2006-01-10  Bruno Haible  <bruno@clisp.org>
79823
79824         * modules/gettext (configure.ac): Add an invocation of
79825         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79826
79827 2006-01-10  Bruno Haible  <bruno@clisp.org>
79828
79829         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79830         Reported by Werner Lemberg <wl@gnu.org>.
79831
79832 2006-01-10  Bruno Haible  <bruno@clisp.org>
79833
79834         * lib/localcharset.c: Update from GNU gettext.
79835
79836 2006-01-10  Bruno Haible  <bruno@clisp.org>
79837
79838         * lib/argp.h (__const): Remove macro. Use const instead.
79839         * lib/argp-fmtstream.h (__const): Likewise.
79840         * lib/glob_.h (__const): Remove macro.
79841         * lib/glob-libc.h: Use const instead of __const.
79842
79843 2006-01-10  Bruno Haible  <bruno@clisp.org>
79844
79845         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79846         variable.
79847         Needed to avoid an automake error regarding the 'gettext' module.
79848
79849 2006-01-09  Simon Josefsson  <jas@extundo.com>
79850
79851         * modules/inet_ntop (Depends-on): Add restrict.
79852
79853 2006-01-09  Simon Josefsson  <jas@extundo.com>
79854
79855         * modules/gc-rijndael-tests (License): Put under LGPL.
79856
79857         * modules/gc-des-tests (License): Likewise.
79858
79859         * modules/gc-arcfour-tests (License): Likewise.
79860
79861         * modules/gc-arctwo-tests (License): Likewise.
79862
79863         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79864
79865         * modules/gc-hmac-sha1-tests (Files): Likewise.
79866
79867         * modules/gc-hmac-md5-tests (License): Likewise.
79868
79869         * modules/gc-sha1-tests (License): Likewise.
79870
79871         * modules/gc-md5-tests (License): Likewise.
79872
79873         * modules/gc-md4-tests (License): Likewise.
79874
79875         * modules/gc-md2-tests (License): Likewise.
79876
79877         * modules/gc-tests (License): Likewise.
79878
79879         * modules/des-tests (License): Likewise.
79880
79881         * modules/md4-tests (License): Likewise.
79882
79883         * modules/md2-tests (License): Likewise.
79884
79885 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         Sync from coreutils:
79888
79889         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79890         * modules/lib-ignore: New file.
79891         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79892         chdir-safer.m4, lchmod.m4.
79893         * modules/openat: Add mkdirat.c, openat-priv.h.
79894
79895 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         Sync from coreutils.
79898         * m4/lib-ignore.m4: New file.
79899         * m4/lchmod.m4: New file.
79900
79901 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         Sync from coreutils.
79904         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79905         for write access: POSIX says that must fail.
79906         * lib/fts.c (diropen): Likewise.
79907         * lib/save-cwd.c (save_cwd): Likewise.
79908         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79909         well, for minor improvements on hosts that lack O_DIRECTORY.
79910         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79911         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79912         Fall back on chown if open failed with EACCES.
79913
79914         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79915         Report an error at compile-time if only a 1-second nominal clock
79916         resolution is found.
79917
79918         * lib/lchmod.h: New file.
79919         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79920         (make_dir_parents): Use lchown rather than chown, and
79921         lchmod rather than chmod.
79922
79923         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79924         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79925         "proc" reported by n0dalus.
79926
79927         * lib/mountlist.c: Include <limits.h>.
79928         (dev_from_mount_options)
79929         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79930         New function.  It no longer assumes "dev=" has the System V meaning
79931         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79932         (read_file_system_list)
79933         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79934         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79935         dev= in that case.
79936
79937         * lib/posixtm.h (PDS_PRE_2000): New macro.
79938         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79939         allow_century.  All usages changed.  Reject dates outside the range
79940         1969-1999 if PDS_PRE_2000 is used.
79941
79942 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         Sync from coreutils.
79945         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79946         (Time of day items): Mention the possibility of leap seconds.
79947         Problem reported by Dr. David Alan Gilbert.
79948
79949 2006-01-09  Jim Meyering  <jim@meyering.net>
79950
79951         Sync from coreutils.
79952
79953         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79954
79955         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79956
79957         * lib/modechange.c (mode_compile): Reject an invalid mode string
79958         that starts with an octal digit.  From Andreas Gruenbacher.
79959
79960         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79961         and dup to open_safer and dup_safer, respectively.
79962         (openat_permissive): Fix typo in comment.
79963
79964         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79965         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79966         (_): Remove; no longer needed.
79967         (openat): Renamed from rpl_openat; no need for rpl_openat
79968         since openat.h renames openat for us.
79969         Replace most of the body with a call to openat_permissive,
79970         to avoid duplicate code.
79971         Port to (probably hypothetical) environments were mode_t is
79972         wider than int.
79973         (openat_permissive): Require mode arg, so that we can check
79974         types better.  Put it just after flags.  Change cwd failure
79975         indicator from pointer-to-bool to pointer-to-errno-value.
79976         All callers changed.
79977         Invoke openat_save_fail and/or openat_restore_fail if
79978         cwd_errno is null, so that openat can call us.
79979         (openat_permissive, fdopendir, fstatat, unlinkat):
79980         Simplify errno handling to avoid some duplicate code,
79981         as it's OK to set errno on success.
79982         * lib/openat.h: Revamp code so that function macros depend on
79983         __OPENAT_PREFIX only, not also on AT_FDCWD.
79984         (openat_ro): Remove.  Caller changed to use openat_permissive.
79985         (openat_permissive): Now a macro, if not a function.
79986         (openat_restore_fail, openat_save_fail): Now always functions,
79987         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79988
79989         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79990         and openat.c.
79991         * lib/mkdirat.c: Include openat-priv.h.
79992         Remove definitions of macros defined therein.
79993         * lib/openat.c: Likewise.
79994
79995         * lib/mkdirat.c (mkdirat): New file and function.
79996         * lib/openat.h (mkdirat): Declare.
79997
79998         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79999
80000         * lib/openat.h (openat_permissive): Declare.
80001         (openat_ro): Define.
80002
80003         * lib/openat.c (EXPECTED_ERRNO): New macro.
80004         (openat_permissive): New function -- used in remove.c rewrite.
80005         (all functions): Set errno just before returning, only if there
80006         was an actual failure.
80007         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80008
80009         Emulate openat-family functions using Linux's procfs, if possible.
80010         Idea and some code based on Ulrich Drepper's glibc changes.
80011
80012         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80013         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80014         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80015         before falling back on save_cwd and restore_cwd.
80016         (fdopendir, fstatat, unlinkat): Likewise.
80017
80018         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80019         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80020
80021         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80022         as second argument to va_arg.  Otherwise, some versions of gcc
80023         warn that `if this code is reached, the program will abort'.
80024
80025 2006-01-09  Jim Meyering  <jim@meyering.net>
80026
80027         Sync from coreutils.
80028         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80029         Require openat-priv.h.
80030
80031 2006-01-09  Bruno Haible  <bruno@clisp.org>
80032
80033         * modules/strnlen (Include): Use strnlen.h.
80034
80035 2006-01-09  Bruno Haible  <bruno@clisp.org>
80036
80037         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80038
80039 2006-01-09  Bruno Haible  <bruno@clisp.org>
80040
80041         * lib/sysexit_.h (EX_OK): New macro.
80042         Suggested by Martin Lambers <marlam@marlam.de>.
80043
80044 2006-01-09  Bruno Haible  <bruno@clisp.org>
80045
80046         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80047         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80048
80049 2006-01-09  Bruno Haible  <bruno@clisp.org>
80050
80051         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80052         numbers.
80053
80054 2006-01-09  Bruno Haible  <bruno@clisp.org>
80055
80056         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80057         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80058         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80059         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80060
80061 2006-01-09  Bruno Haible  <bruno@clisp.org>
80062
80063         * build-aux/javacomp.sh.in: New file, moved from lib/.
80064         * modules/javacomp-script (Files): Update.
80065         (configure.ac): Add AC_CONFIG_FILES invocation.
80066         (EXTRA_DIST): Remove variable.
80067
80068         * build-aux/javaexec.sh.in: New file, moved from lib/.
80069         * modules/javaexec (Files): Update.
80070         (configure.ac): Add AC_CONFIG_FILES invocation.
80071         (EXTRA_DIST): Remove javaexec.sh.in.
80072
80073         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80074         * modules/csharpcomp-script (Files): Update.
80075         (configure.ac): Add AC_CONFIG_FILES invocation.
80076         (EXTRA_DIST): Remove variable.
80077
80078         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80079         * modules/csharpexec (Files): Update.
80080         (configure.ac): Add AC_CONFIG_FILES invocation.
80081         (EXTRA_DIST): Remove csharpexec.sh.in.
80082
80083 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80084
80085         Sync from coreutils.
80086
80087         Add POSIX ACL support
80088         * lib/acl.h (copy_acl, set_acl): Add declarations.
80089         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80090         systems other than Linux.
80091         (chmod_or_fchmod): New function: use fchmod when possible,
80092         and chmod otherwise.
80093         (file_has_acl): Add a POSIX ACL implementation, with a
80094         Linux-specific subcase.
80095         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80096         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80097         acls are unsupported.
80098         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80099         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80100         are unsupported.
80101
80102 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80103
80104         Sync from coreutils.
80105         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80106
80107 2006-01-07  Bruno Haible  <bruno@clisp.org>
80108
80109         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80110         gl_EARLY.
80111
80112 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80115         Problem reported for Mingw by Mark Junker.
80116
80117 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * README: Gnulib normally doesn't generate a tarball.
80120
80121 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80124         long int, not int, for nanosecond counts, so that people who are
80125         used to POSIX struct timespec won't be surprised.  Reported by Jim
80126         Meyering.
80127
80128 2005-12-28  Bruno Haible  <bruno@clisp.org>
80129
80130         * build-aux/config.rpath: Update from GNU gettext.
80131
80132 2005-12-16  Jim Meyering  <jim@meyering.net>
80133
80134         * modules/fprintftime: New module.
80135         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80136
80137 2005-12-16  Jim Meyering  <jim@meyering.net>
80138
80139         * m4/fprintftime.m4: New file.
80140
80141 2005-12-16  Jim Meyering  <jim@meyering.net>
80142
80143         * lib/fprintftime.c, lib/fprintftime.h: New files.
80144
80145 2005-12-15  Simon Josefsson  <jas@extundo.com>
80146
80147         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80148         new m4/socklen.m4.
80149
80150 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80151
80152         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80153         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80154
80155 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80156
80157         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80158         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80159         struct uparams is valid. Fall back to the default values if it is
80160         not.
80161
80162 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80163
80164         * modules/argp (Files): Add argp-pin.c
80165         (Depends-on): dirname
80166         (lib_SOURCES): Add argp-pin.c
80167
80168 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80169
80170         * m4/argp.m4:  Check if program_invocation_name and
80171         program_invocation_short_name are declared and define appropriate
80172         macros if they are not.
80173
80174 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80175
80176         * lib/argp-help.c (__argp_base_name): New function
80177         (__argp_short_program_name): Rewrite using __argp_base_name
80178         * lib/argp-namefrob.h: Define program_invocation_name and
80179         program_invocation_short_name if requested
80180         (__argp_base_name): Add prototype
80181         * lib/argp-parse.c (argp_def): Use gettext wrappers
80182         (argp_default_parser): Use __argp_base_name
80183         * lib/argp-pin.c: New file. Defines program_invocation_name and
80184         program_invocation_short_name on systems that lack them.
80185
80186 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80189         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80190         porting problem reported by Georg Schwarz in
80191         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80192
80193 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80196         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80197         porting problem reported by Georg Schwarz in
80198         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80199
80200 2005-12-05  Bruno Haible  <bruno@clisp.org>
80201
80202         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80203         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80204         Reported by Mark Junker <mjscod@gmx.de>.
80205
80206 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80209         Use implementation from Albert Chin, with some
80210         comments/corrections by Stepan Kasal and myself.
80211
80212 2005-12-02  Bruno Haible  <bruno@clisp.org>
80213
80214         * gnulib-tool (func_import): Accept GPLed build tool modules when
80215         --lgpl is given.
80216         * modules/csharpcomp-script: New file.
80217         * modules/csharpcomp: Depend on it.
80218         * modules/javacomp-script: New file.
80219         * modules/javacomp: Depend on it.
80220         Suggested by Simon Josefsson.
80221
80222 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80225         statement, to work around an HP-UX 10.20 compiler bug reported by
80226         Peter O'Gorman.
80227
80228 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/savedir (Depends-on): Add openat.
80231
80232 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80235         (uintmax_t) [defined uintmax_t]: Do not declare.
80236         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80237         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80238         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80239         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80240         sake of portability to weird hosts that C allows (though we don't
80241         know of any practical examples).
80242
80243         * lib/savedir.h (fdsavedir): New decl.
80244         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80245         contains most of the former guts of savedir.
80246         (savedir): Use savedirstream.
80247         Include "openat.h".
80248
80249 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         * modules/obstack (Files): Add m4/ulonglong.m4.
80252         Problem reported by Davide Angelocola.
80253
80254 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80257         coreutils no longer futzes with rounding modes.
80258
80259 2005-11-14  Jim Meyering  <jim@meyering.net>
80260
80261         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80262         replacement of mkstemp.
80263
80264 2005-11-10  Simon Josefsson  <jas@extundo.com>
80265
80266         * lib/readline.c: Remove EOL.
80267
80268 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * modules/gethrxtime (Depends-on): Add gettime.
80271
80272 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80275         or gettimeofday; no longer needed.
80276
80277 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80280         time business.
80281         (gethrxtime) [! (HAVE_NANOUPTIME
80282         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80283         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80284         our own approximation.
80285
80286 2005-11-08  Eric Blake  <ebb9@byu.net>
80287
80288         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80289
80290 2005-11-08  Eric Blake  <ebb9@byu.net>
80291
80292         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80293
80294 2005-11-04  Bruno Haible  <bruno@clisp.org>
80295
80296         * gnulib-tool: Implement --update mode.
80297
80298 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80299
80300         Fix porting problem reported by Theodoros V. Kalamatianos.
80301         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80302         Don't assume that futimes failing means we must fail.
80303
80304 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80307         variables to suggest the intended function of the PATH_MAX check.
80308
80309 2005-10-30  Kean Johnston  <jkj@sco.com>
80310
80311         Trivial changes to support SCO systems.
80312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80313         as PATH_MAX.
80314         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80315         where __ptr is null when no I/O is pending.
80316
80317 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80320         leave errno alone.  Problem reported by Dmitry V. Levin.
80321
80322 2005-10-28  Simon Josefsson  <jas@extundo.com>
80323
80324         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80325         Test more.
80326
80327         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80328
80329         * modules/md2, modules/md2-tests: New files.
80330
80331 2005-10-28  Simon Josefsson  <jas@extundo.com>
80332
80333         * m4/inet_ntop.m4: More tests.
80334
80335         * m4/gc-md2.m4, md2.m4: New file.
80336
80337 2005-10-28  Simon Josefsson  <jas@extundo.com>
80338
80339         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80340         "restrict" keywords, as per POSIX.  Protect the function
80341         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80342         Don't use K&R prototypes.  Check the sprintf return values.
80343         Re-define EAFNOSUPPORT if not present.  Indent.
80344
80345         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80346         suggested by Bruno Haible <bruno@clisp.org>.
80347
80348         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80349
80350         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80351
80352         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80353         libgcrypt).
80354
80355         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80356
80357         * lib/md2.h, lib/md2.c: New files.
80358
80359 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80362         errno alone.  Problem reported by Frederic Jolliton.
80363
80364 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * modules/verify (License): Change from GPL to LGPL.  This is a
80367         tiny module and there are apparently near-equivalents that are
80368         under the BSD license.
80369
80370 2005-10-24  Simon Josefsson  <jas@extundo.com>
80371
80372         * modules/sha1: Relicense to LGPL.
80373
80374 2005-10-24  Simon Josefsson  <jas@extundo.com>
80375
80376         * lib/md4.h: Shrink buffer size, now that we changed the type.
80377
80378 2005-10-23  Simon Josefsson  <jas@extundo.com>
80379
80380         * gnulib-tool (func_import): Fix --tests-base.
80381
80382 2005-10-22  Simon Josefsson  <jas@extundo.com>
80383
80384         * modules/arcfour (Depends-on): Need stdint.
80385
80386 2005-10-22  Simon Josefsson  <jas@extundo.com>
80387
80388         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80389         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80390
80391 2005-10-22  Simon Josefsson  <jas@extundo.com>
80392
80393         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80394         suggested by Bruno Haible <bruno@clisp.org>.
80395
80396 2005-10-22  Simon Josefsson  <jas@extundo.com>
80397
80398         * lib/crc.h: Include stddef.h, for size_t.
80399
80400 2005-10-22  Simon Josefsson  <jas@extundo.com>
80401
80402         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80403         arcfour_context struct (simplify test vector testing in GNU
80404         Shishi).
80405
80406 2005-10-21  Simon Josefsson  <jas@extundo.com>
80407
80408         * modules/des, modules/des-tests: New files.
80409
80410         * modules/gc-des, modules/gc-des-tests: New files.
80411
80412         * tests/test-des.c, tests/test-gc-des.c: New file.
80413
80414 2005-10-21  Simon Josefsson  <jas@extundo.com>
80415
80416         * modules/arctwo, modules/arctwo-tests: New files.
80417
80418         * tests/test-arctwo.c: New file.
80419
80420         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80421
80422         * tests/test-gc-arctwo.c: New file.
80423
80424 2005-10-21  Simon Josefsson  <jas@extundo.com>
80425
80426         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80427         Bruno Haible <bruno@clisp.org>.
80428
80429         * m4/gc-des.m4: New file.
80430
80431 2005-10-21  Simon Josefsson  <jas@extundo.com>
80432
80433         * m4/arctwo.m4: New file.
80434
80435         * m4/gc-arctwo.m4: New file.
80436
80437 2005-10-21  Simon Josefsson  <jas@extundo.com>
80438
80439         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80440         block.
80441
80442 2005-10-21  Simon Josefsson  <jas@extundo.com>
80443
80444         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80445         <bruno@clisp.org>.
80446
80447         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80448
80449         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80450         Bruno Haible <bruno@clisp.org>.
80451
80452         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80453         <bruno@clisp.org>.
80454
80455 2005-10-21  Simon Josefsson  <jas@extundo.com>
80456
80457         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80458
80459 2005-10-21  Simon Josefsson  <jas@extundo.com>
80460
80461         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80462
80463 2005-10-21  Simon Josefsson  <jas@extundo.com>
80464
80465         * lib/des.h, lib/des.c: New files.
80466
80467         * lib/gc-gnulib.c: Support DES.c
80468
80469 2005-10-21  Simon Josefsson  <jas@extundo.com>
80470
80471         * lib/arctwo.h, lib/arctwo.c: New files.
80472
80473         * lib/gc-gnulib.c: Support ARCTWO.
80474
80475 2005-10-21  Simon Josefsson  <jas@extundo.com>
80476
80477         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80478         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80479
80480 2005-10-21  Simon Josefsson  <jas@extundo.com>
80481
80482         * gnulib-tool (func_import, func_create_testdir): Define automake
80483         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80484         Makefile.am snippet),
80485         suggested by Bruno Haible <bruno@clisp.org>.
80486
80487         * modules/gc (Makefile.am): Use it.
80488
80489 2005-10-21  Bruno Haible  <bruno@clisp.org>
80490
80491         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80492         patch.
80493
80494 2005-10-19  Simon Josefsson  <jas@extundo.com>
80495
80496         * tests/test-gc-rijndael.c: New file.
80497
80498         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80499
80500 2005-10-19  Simon Josefsson  <jas@extundo.com>
80501
80502         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80503         interface too.
80504
80505 2005-10-19  Simon Josefsson  <jas@extundo.com>
80506
80507         * tests/test-gc-arcfour.c: New file.
80508
80509         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80510
80511 2005-10-19  Simon Josefsson  <jas@extundo.com>
80512
80513         * modules/gc-md4, modules/gc-md4-tests: New file.
80514
80515         * tests/test-gc-md4.c: New file.
80516
80517 2005-10-19  Simon Josefsson  <jas@extundo.com>
80518
80519         * m4/gc-md4.m4: New file.
80520
80521 2005-10-19  Simon Josefsson  <jas@extundo.com>
80522
80523         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80524         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80525         <kasal@ucw.cz>.
80526
80527 2005-10-19  Simon Josefsson  <jas@extundo.com>
80528
80529         * m4/gc-arcfour.m4: New file.
80530
80531         * m4/gc-rijndael.m4: New file.
80532
80533 2005-10-19  Simon Josefsson  <jas@extundo.com>
80534
80535         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80536
80537 2005-10-19  Simon Josefsson  <jas@extundo.com>
80538
80539         * lib/gc-gnulib.c: Support ARCFOUR.
80540
80541 2005-10-19  Simon Josefsson  <jas@extundo.com>
80542
80543         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80544         support.
80545
80546         * lib/gc.h: Add ECB enum type.
80547
80548         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80549
80550 2005-10-18  Simon Josefsson  <jas@extundo.com>
80551
80552         * tests/test-md5.c: New file.
80553
80554         * modules/md5-tests: New file.
80555
80556 2005-10-18  Simon Josefsson  <jas@extundo.com>
80557
80558         * tests/test-md4.c: New file.
80559
80560         * modules/md4, modules/md4-tests: New files.
80561
80562 2005-10-18  Simon Josefsson  <jas@extundo.com>
80563
80564         * m4/md4.m4: New file.
80565
80566 2005-10-18  Simon Josefsson  <jas@extundo.com>
80567
80568         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80569
80570 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80571
80572         * gnulib-tool (func_create_testdir): Omit the second check whether
80573         BUILT_SOURCES in nonempty.
80574
80575 2005-10-17  Simon Josefsson  <jas@extundo.com>
80576
80577         * tests/test-rijndael.c: New file.
80578
80579 2005-10-17  Simon Josefsson  <jas@extundo.com>
80580
80581         * modules/sha1: Depend on stdint instead of md5.
80582
80583         * modules/md5: Depend on stdint, remove uint32_t.
80584
80585 2005-10-17  Simon Josefsson  <jas@extundo.com>
80586
80587         * modules/gc-sha1-tests: New file.
80588
80589         * tests/test-gc-sha1.c: New file.
80590
80591 2005-10-17  Simon Josefsson  <jas@extundo.com>
80592
80593         * m4/md5.m4: Remove call to uint32_t.m4.
80594
80595 2005-10-17  Simon Josefsson  <jas@extundo.com>
80596
80597         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80598
80599         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80600         md5.h.
80601
80602         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80603
80604         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80605
80606 2005-10-17  Simon Josefsson  <jas@extundo.com>
80607
80608         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80609
80610 2005-10-17  Simon Josefsson  <jas@extundo.com>
80611
80612         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80613
80614 2005-10-17  Simon Josefsson  <jas@extundo.com>
80615
80616         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80617
80618         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80619
80620 2005-10-17  Bruno Haible  <bruno@clisp.org>
80621
80622         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80623         that it can also be used in a test.
80624
80625 2005-10-16  Bruno Haible  <bruno@clisp.org>
80626
80627         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80628         TESTS_ENVIRONMENT, so that individual tests can augment it.
80629
80630         * gnulib-tool (func_create_testdir): Use an intermediate target for
80631         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80632         macros, like $(ALLOCA_H), which cannot be passed through the command
80633         line.
80634
80635 2005-10-15  Simon Josefsson  <jas@extundo.com>
80636
80637         * modules/rijndael-tests: New file.
80638
80639         * modules/rijndael: New file.
80640
80641 2005-10-15  Simon Josefsson  <jas@extundo.com>
80642
80643         * m4/rijndael.m4: New file.
80644
80645 2005-10-15  Simon Josefsson  <jas@extundo.com>
80646
80647         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80648
80649         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80650
80651 2005-10-14  Simon Josefsson  <jas@extundo.com>
80652
80653         * tests/test-arcfour.c: New file.
80654
80655         * modules/arcfour, modules/arcfour-tests: New files.
80656
80657 2005-10-14  Simon Josefsson  <jas@extundo.com>
80658
80659         * m4/arcfour.m4: New file.
80660
80661 2005-10-14  Simon Josefsson  <jas@extundo.com>
80662
80663         * lib/arcfour.h, lib/arcfour.c: New files.
80664
80665 2005-10-14  Roland McGrath  <roland@redhat.com>
80666
80667         Import from libc.  [BZ #1331]
80668         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80669         macro argument.
80670         Reported by Matej Vela <vela@debian.org>.
80671
80672 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80673
80674         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80675         include <wchar.h>; no longer needed.
80676
80677 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80680
80681 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80682         and  Ulrich Drepper  <drepper@redhat.com>
80683
80684         Import from libc.
80685         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80686         instead of inline stream orientation test and two separate
80687         function calls.  Pay no attention to USE_IN_LIBIO.
80688
80689 2005-10-13  Simon Josefsson  <jas@extundo.com>
80690
80691         * modules/gc-hmac-md5-tests: New file.
80692
80693         * tests/test-gc-hmac-sha1.c: New file.
80694
80695         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80696
80697         * modules/gc-hmac-md5-tests: New file.
80698
80699         * tests/test-gc-md5.c: New file.
80700
80701         * modules/gc-md5-tests: New file.
80702
80703 2005-10-13  Simon Josefsson  <jas@extundo.com>
80704
80705         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80706         Move memory allocation outside of loop.
80707
80708 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80711         intermediate directory is in a read-only file system.  Problem
80712         reported by Eric Blake.
80713
80714 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80715
80716         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80717
80718 2005-10-12  Simon Josefsson  <jas@extundo.com>
80719
80720         * tests/test-hmac-sha1.c: New file.
80721
80722         * modules/hmac-sha1-tests: New file.
80723
80724         * modules/hmac-sha1: New file.
80725
80726 2005-10-12  Simon Josefsson  <jas@extundo.com>
80727
80728         * modules/gc-sha1: New file.
80729
80730 2005-10-12  Simon Josefsson  <jas@extundo.com>
80731
80732         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80733
80734         * tests/test-gc-pbkdf2-sha1.c: New file.
80735
80736 2005-10-12  Simon Josefsson  <jas@extundo.com>
80737
80738         * modules/gc-md5, modules/gc-hmac-md5: New files.
80739
80740         * modules/gc (Files): Remove md5, memxor and hmac files.
80741
80742 2005-10-12  Simon Josefsson  <jas@extundo.com>
80743
80744         * m4/gc-pbkdf2-sha1.m4: New file.
80745
80746         * m4/gc-hmac-sha1.m4: New file.
80747
80748         * m4/gc-sha1: New file.
80749
80750         * m4/hmac-sha1.m4: New file.
80751
80752 2005-10-12  Simon Josefsson  <jas@extundo.com>
80753
80754         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80755
80756         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80757
80758 2005-10-12  Simon Josefsson  <jas@extundo.com>
80759
80760         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80761         suggested by Bruno Haible <bruno@clisp.org>.
80762
80763 2005-10-12  Simon Josefsson  <jas@extundo.com>
80764
80765         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80766
80767 2005-10-12  Simon Josefsson  <jas@extundo.com>
80768
80769         * lib/gc-pbkdf2-sha1.c: New file.
80770
80771         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80772
80773 2005-10-12  Simon Josefsson  <jas@extundo.com>
80774
80775         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80776
80777         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80778
80779 2005-10-12  Simon Josefsson  <jas@extundo.com>
80780
80781         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80782         GC_USE_HMAC_MD5, respectively.
80783
80784         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80785         (gc_md5): Fix typo.
80786
80787         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80788
80789         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80790
80791         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80792
80793 2005-10-12  Bruno Haible  <bruno@clisp.org>
80794
80795         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80796         Reported by Stepan Kasal <kasal@ucw.cz>.
80797
80798 2005-10-11  Simon Josefsson  <jas@extundo.com>
80799
80800         * tests/test-crc.c: New file.
80801
80802         * modules/crc, modules/crc-tests: New files.
80803
80804 2005-10-11  Simon Josefsson  <jas@extundo.com>
80805
80806         * m4/crc.m4: New file.
80807
80808 2005-10-11  Simon Josefsson  <jas@extundo.com>
80809
80810         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80811
80812         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80813
80814         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80815
80816 2005-10-11  Simon Josefsson  <jas@extundo.com>
80817
80818         * lib/crc.h, lib/crc.c: New files.
80819
80820         * lib/gc.h (gc_hash_buffer): Add doc.
80821
80822 2005-10-11  Bruno Haible  <bruno@clisp.org>
80823
80824         * modules/c-strcasestr: New file.
80825         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80826
80827 2005-10-11  Bruno Haible  <bruno@clisp.org>
80828
80829         * modules/c-strcase: New file.
80830         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80831
80832 2005-10-11  Bruno Haible  <bruno@clisp.org>
80833
80834         * lib/strcasecmp.c: Include limits.h.
80835         (strcasecmp): Avoid integer overflow on exotic platforms.
80836         * lib/strncasecmp.c: Include limits.h.
80837         (strncasecmp): Avoid integer overflow on exotic platforms.
80838         Reported by Paul Eggert.
80839
80840 2005-10-11  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/c-strcasestr.h: New file, from GNU gettext.
80843         * lib/c-strcasestr.c: New file, from GNU gettext.
80844
80845 2005-10-11  Bruno Haible  <bruno@clisp.org>
80846
80847         * lib/c-strcase.h: New file, from GNU gettext.
80848         * lib/c-strcasecmp.c: New file, from GNU gettext.
80849         * lib/c-strncasecmp.c: New file, from GNU gettext.
80850
80851 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         * modules/mempcpy (License): GPL -> LGPL.
80854         * modules/strchrnul (License): Likewise.
80855         * modules/sysexits (License): Likewise.
80856
80857 2005-10-08  Simon Josefsson  <jas@extundo.com>
80858
80859         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80860
80861 2005-10-07  Simon Josefsson  <jas@extundo.com>
80862
80863         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80864
80865 2005-10-06  Simon Josefsson  <jas@extundo.com>
80866
80867         * tests/test-hmac-md5.c: New file.
80868
80869         * modules/hmac-md5-tests: New file.
80870
80871         * modules/hmac-md5: New file.
80872
80873 2005-10-06  Simon Josefsson  <jas@extundo.com>
80874
80875         * m4/hmac-md5.m4: New file.
80876
80877         * m4/memxor.m4: Require gl_C_RESTRICT.
80878
80879 2005-10-06  Simon Josefsson  <jas@extundo.com>
80880
80881         * lib/memxor.c (memxor): Avoid casts and warnings.
80882
80883 2005-10-06  Simon Josefsson  <jas@extundo.com>
80884
80885         * lib/hmac-md5.c: New file.
80886
80887         * lib/hmac.h: New file.
80888
80889 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80892         promotes to int, not unsigned int, to catch the AIX 5.3
80893         compiler bug.
80894
80895 2005-10-05  Simon Josefsson  <jas@extundo.com>
80896
80897         * modules/memxor: New file.
80898
80899         * modules/iconv (Files): Move config.rpath to havelib, it is used
80900         there.
80901
80902         * modules/havelib (Files): Add config.rpath.
80903
80904 2005-10-05  Simon Josefsson  <jas@extundo.com>
80905
80906         * m4/memxor.m4: New file.
80907
80908 2005-10-05  Simon Josefsson  <jas@extundo.com>
80909
80910         * lib/memxor.c (memxor): Fix compiler error.
80911
80912         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80913         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80914
80915         * lib/memxor.h, lib/memxor.c: New files.
80916
80917         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80918         we assume all systems have it, suggested by Jim Meyering
80919         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80920         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80921         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80922         same reasons.
80923
80924 2005-10-05  Simon Josefsson  <jas@extundo.com>
80925
80926         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80927
80928 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80931         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80932         needed, since the source code now assumes these .h files.
80933
80934 2005-10-05  Derek Price  <derek@ximbiot.com>
80935
80936         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80937
80938 2005-10-05  Bruno Haible  <bruno@clisp.org>
80939
80940         * modules/stdint (License): Change to LGPL.
80941
80942 2005-10-04  Simon Josefsson  <jas@extundo.com>
80943
80944         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80945         D. Baushke" <mdb@gnu.org>.
80946
80947 2005-10-04  Bruno Haible  <bruno@clisp.org>
80948
80949         * lib/verify.h (verify_true): Provide alternative definition for C++.
80950
80951 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80954         (SSIZE_MAX): New macro, if not already defined.
80955         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80956         than 2 GiB.
80957
80958 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         Sync from coreutils.
80961         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80962         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80963         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80964         ULLONG_MAX doesn't work with 2.7.2.1.
80965
80966 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80969         From Ben Pfaff.
80970
80971         * modules/exclude (Depends-on): Depend on verify.
80972         * modules/strtoimax (Depends-on): Likewise.
80973         * modules/utimecmp (Depends-on): Likewise.
80974
80975 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * lib/exclude.c: Include verify.h.
80978         (verify): Remove.  All callers changed to use verify.h's version.
80979         * lib/strtoimax.c: Likewise.
80980         * lib/utimecmp.c: Likewis.e
80981
80982         Sync from coreutils.
80983         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80984         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80985         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80986         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80987         bother returning ENOSYS if settimeofday or stime fails; just let
80988         them return whatever errno they want to return.
80989         * lib/utimens.c: Include unistd.h, for dup2.
80990         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80991         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80992
80993 2005-10-02  Jim Meyering  <jim@meyering.net>
80994
80995         Sync from coreutils.
80996         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80997         from glibc-2.2.5 that fails for read-only files.
80998
80999 2005-10-02  Jim Meyering  <jim@meyering.net>
81000
81001         Sync from coreutils.
81002         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81003         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81004         `#if HAVE_CONFIG_H'.
81005         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81006         Remove AT_FDCWD test.
81007         Do not consume the fd unless successful.
81008         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81009         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81010         block, so that we don't even try to compile it if settimeofday is
81011         available.  This works around a compilation failure on OSF1 V5.1,
81012         due to stime requiring a `long int*' while tv_sec is `int'.
81013
81014 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81015
81016         Sync from coreutils.
81017         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81018         against `yes', rather than just testing for nonempty.
81019
81020 2005-10-01  Simon Josefsson  <jas@extundo.com>
81021
81022         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81023         and Darwin.
81024
81025         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81026         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81027         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81028         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81029         Check if struct addrinfo is declared.
81030
81031 2005-10-01  Simon Josefsson  <jas@extundo.com>
81032
81033         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81034         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81035         AI_* and EAI_* definitions.  Protect function declarations.
81036
81037 2005-10-01  Jim Meyering  <jim@meyering.net>
81038
81039         Sync from coreutils.
81040
81041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81042         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81043         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81045         in the inet and nsl libraries.  Required on Solaris 5.7.
81046
81047 2005-10-01  Jim Meyering  <jim@meyering.net>
81048
81049         Sync from coreutils.
81050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81051         in the inet and nsl libraries.  Required on Solaris 5.7.
81052
81053 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81054
81055         * lib/getdelim.c (getdelim): Remove unused variables.
81056
81057 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81060         so that the code works even with ancient cpp.  Portability problem
81061         with GCC 2.7.2.1 reported by Thomas M.Ott.
81062
81063 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * modules/regex (Depends-on): Add strcase.
81066
81067         * modules/gethostname (Licence): Change from GPL to LGPL, since
81068         gethostname.c is a trivial implementation of a standard library
81069         function.
81070         * modules/poll (License): Change from GPL to LGPL, since it's
81071         derived from LGPL code.
81072
81073 2005-09-27  Jim Meyering  <jim@meyering.net>
81074
81075         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81076         HAVE_CONFIG_H.
81077
81078         * lib/intprops.h (signed_type_or_expr__): Define.
81079         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81080         for unsigned types.
81081
81082 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * lib/verify.h (verify_expr): Remove, replacing with:
81085         (verify_true): New macro that returns true instead of void.
81086         (verify_type__): Remove.
81087         (verify): Use verify_true rather than verify_type__.
81088
81089 2005-09-26  Bruno Haible  <bruno@clisp.org>
81090
81091         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81092         is necessary.
81093         (lib_SOURCES): Remove mbchar.c.
81094         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81095         (Files): Add m4/mbrtowc.m4.
81096         * modules/mbiter: Likewise.
81097         * modules/mbuiter: Likewise.
81098
81099 2005-09-26  Bruno Haible  <bruno@clisp.org>
81100
81101         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81102         compile mbchar.c if they are not both present.
81103         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81104         * m4/mbiter.m4 (gl_MBITER): Likewise.
81105         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81106         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81107         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81108
81109 2005-09-25  Jim Meyering  <jim@meyering.net>
81110
81111         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81112         also uses socklen_t.
81113
81114 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * lib/utimens.c (ENOSYS): Define if not already defined.
81117         (futimens): Support having a null PATH if the file descriptor
81118         is nonnegative.
81119
81120         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81121         Remove.
81122         (__attribute): Define to empty unless GCC 3.1 or later.
81123         This works around a core dump on OpenBSD 3.4, which has GCC
81124         2.95.3, which dumps core when given __attribute__(()).  It also
81125         simplifies other tests, since we really don't want to bother with
81126         worrying about which ancient version of GCC supported what.
81127         Original problem reported by Yoann Vandoorselaere, with part of
81128         the fix suggested by Derek Price.
81129
81130 2005-09-24  Jim Meyering  <jim@meyering.net>
81131
81132         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81133         so we can once again use a positive bitfield width of 1 -- now we
81134         don't have to explain why we were using a bitfield width of 2.
81135
81136 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81139         and similarly for the other external symbols.  Problem reported
81140         by James Gallager.
81141
81142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81143         bug reported by Jim Meyering.
81144
81145         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81147         not needed, since socklen is a prerequisite module.
81148
81149 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81150
81151         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81152         Problem reported by Eric Blake.
81153         (getaddrinfo): Initialize se so that it's not garbage.
81154         Redo internal storage allocation so that it doesn't make unportable
81155         assumptions about alignment.
81156         Fix a memory leak.
81157
81158         * lib/utimens.c (futimens): Use futimesat if available.
81159         Prefer it to futimes since it doesn't have the futimes bug.
81160
81161         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81162         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81163         Instead, declare a function that returns a pointer to an array,
81164         and use verify_type__ to declare the size of the array.
81165         Problem and germ of a solution reported by Bruno Haible.
81166         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81167         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81168
81169 2005-09-23  Jim Meyering  <jim@meyering.net>
81170
81171         Sync from coreutils.
81172         Correct build failure (socklen_t not defined) on at least
81173         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81175
81176 2005-09-23  Jim Meyering  <jim@meyering.net>
81177
81178         * modules/getaddrinfo (Depends-on): Add socklen.
81179
81180 2005-09-23  Bruno Haible  <bruno@clisp.org>
81181
81182         * tests/test-verify.c: New file.
81183
81184 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81185
81186         Sync from coreutils.
81187
81188         * modules/argmatch (Depends-on): Add verify.
81189         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81190         unistd-safer.
81191         * modules/save-cwd (Depends-on): Likewise.
81192
81193         * modules/openat (Files): Add lib/openat-die.c.
81194         (Depends-on): Remove error, exitfail.
81195         Add dirname.
81196
81197         * modules/verify: New file.
81198         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81199         with "verify" module.
81200
81201 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         Sync from coreutils.
81204
81205         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81206         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81207         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81208         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81209         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81210         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81211         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81212         Don't bother checking for string.h, stdlib.h, unistd.h.
81213         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81214         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81215         module's job.
81216         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81217         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81218
81219         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81220         (gl_GETDATE): Use it.
81221
81222         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81223
81224 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81225
81226         Sync from coreutils.
81227
81228         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81229         stat-time.h.
81230         * lib/argmatch.h: Include verify.h
81231         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81232         (ARGMATCH_ASSERT): Remove; unused.
81233         * lib/canonicalize.c: Assume STDC_HEADERS.
81234         * lib/exclude.c: Include "strcase.h".
81235         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81236         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81237         and stdio-safer.h.
81238         (getusershell): Call fopen, not fopen_safer.
81239         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81240         Do not include unistd-safer.h.
81241         (save_cwd): Don't call fd_safer; no longer needed
81242         now that we include fcntl--.h.
81243
81244         * lib/getdate.y (relative_time): New type.
81245         (RELATIVE_TIME_0): New constant.
81246         (parser_control): Use relative_time instead of doing it ourselves.
81247         (%union): Add new relative_time rel member.
81248         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81249         Now typeless.
81250         (relunit, relunit_snumber): Now of type rel.
81251         (zone, rel, relunit, get_date): Adjust to above changes.
81252
81253         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81254         Do not include unistd-safer.h.
81255         (getloadavg): Don't call fd_safer; no longer needed
81256         now that we include fcntl--.h.
81257
81258         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81259         (make_dir_parents): Treat ENOSYS like EEXIST.
81260
81261         Improve quality of diagnostics on restore_cwd failure.
81262         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81263         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81264         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81265         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81266         each time through the loop.  Do not diagnose restore_cwd failure;
81267         that is the caller's job (and perhaps the caller does not care).
81268
81269         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81270         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81271         If the file already exists but is not a directory, don't bother
81272         to try to make its parents.
81273         Close potential file descriptor leak if we can't chdir("/") (!).
81274         Don't always return true if chdir($PWD) fails; return true only
81275         if the requested action was done successfully (except for the
81276         chdir($PWD)).
81277         Don't log final directory unless we actually made it.
81278         Refactor to avoid duplicate code to fix up permissions.
81279         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81280
81281         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81282         to make it a bit faster and (I hope) clearer.
81283         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81284         Fix bug in formats like %2N.
81285
81286         * lib/verify.h: New file.
81287
81288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         Sync from coreutils.
81291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81292
81293 2005-09-22  Jim Meyering  <jim@meyering.net>
81294
81295         Sync from coreutils.
81296
81297         * m4/lstat.m4 (gl_FUNC_LSTAT):
81298         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81299         Remove obsolete comment.
81300         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81301         * m4/xstrtod.m4: Likewise.
81302
81303         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81304
81305 2005-09-22  Jim Meyering  <jim@meyering.net>
81306
81307         Sync from coreutils.
81308
81309         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81310
81311         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81312         the .tm_year member, since otherwise gcc-4.0 would now warn about
81313         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81314
81315         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81316         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81317
81318         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81319         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81320         when run in a time zone for which daylight savings time is in effect
81321         for the starting date.
81322
81323         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81324         stop us from restricting permissions of just-created absolute-named
81325         directories.
81326         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81327         to restore initial working directory.
81328         * lib/mkdir-p.c (make_dir_parents): New parameter:
81329         different_working_dir, to tell caller if/when we change the working
81330         directory and are unable to return to the initial one.
81331         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81332         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81333         `return false'.  This fixes a bug introduced on 2004-07-30.
81334
81335         * lib/openat.c (fdopendir): Be sure to close the supplied
81336         file descriptor before returning.  This makes our replacement
81337         implementation a little closer to Solaris's, where fdopendir
81338         ties the file descriptor to the returned DIR* pointer.
81339         * lib/openat.c (unlinkat): New function.
81340         * lib/openat.h (unlinkat): Add prototype.
81341         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81342         (openat_restore_fail): Rename from openat_restore_die.
81343         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81344
81345         Provide an alternative to exiting immediately upon save_cwd or
81346         restore_cwd failure.  Now, an application can arrange e.g.,
81347         to perform a longjump in that case.
81348         * lib/openat.c: Include dirname.h.
81349         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81350         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81351         and openat_restore_die rather than calling error directly.
81352         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81353
81354         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81355         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81356         define.
81357
81358         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81359         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81360                             int utc, int nanoseconds);
81361         Background:
81362         date should not have to allocate a megabyte of virtual memory to
81363         handle a format argument like +%1048575T.  When implemented with
81364         strftime, it must allocate such a buffer, use strftime to fill it
81365         in, print it, then free it.
81366         With fprintftime, it simply prints everything and exits.
81367         With no need for memory allocation, that's one fewer way to fail.
81368         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81369         optional field width, not before, so we accept %9:z, not %:9z.
81370         (my_strftime): Be sure to use L_('x') for literals.
81371
81372         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81373         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81374         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81375         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81376         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81377         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81378         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81379         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81380         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81381         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81382         * lib/xgethostname.c, lib/xreadlink.c:
81383         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81384
81385         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81386         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81387         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81388         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81389         and don't include <sys/file.h>).
81390
81391 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81392
81393         Sync from coreutils.
81394
81395         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81396         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81397         [!LDAV_DONE]: Avoid unused variable warning.
81398
81399 2005-09-21  Bruno Haible  <bruno@clisp.org>
81400
81401         * lib/unicodeio.h (unicode_to_mb): New declaration.
81402
81403 2005-09-20  Derek Price  <derek@ximbiot.com>
81404
81405         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81406         getaddrinfo.h.
81407
81408 2005-09-20  Bruno Haible  <bruno@clisp.org>
81409
81410         * gnulib-tool: Remove trailing slashes from the values specified for
81411         --source-base, --m4-base, --tests-base, --aux-dir.
81412         Suggested by Simon Josefsson <jas@extundo.com>.
81413
81414 2005-09-20  Bruno Haible  <bruno@clisp.org>
81415
81416         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81417         func_modules_to_filelist, func_import, func_create_testdir): Make all
81418         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81419         change when gnulib-tool is invoked in a different locale.
81420
81421 2005-09-19  Simon Josefsson  <jas@extundo.com>
81422
81423         * m4/socklen.m4: Fix typo.
81424
81425 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81426
81427         Use a consistent style for including <config.h>.
81428         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81429         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81430         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81431         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81432         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81433         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81434         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81435         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81436         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81437         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81438         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81439         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81440         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81441         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81442         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81443         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81444         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81445         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81446         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81447         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81448         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81449         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81450         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81451         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81452         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81453         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81454         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81455         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81456         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81457         lib/xstrtoumax.c, lib/yesno.c:
81458         Standardize inclusion of config.h.
81459         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81460         lib/inttostr.h:  Removed inclusion of config.h from header files.
81461         * lib/inttostr.c:  Adjusted in-tree users.
81462         * lib/timespec.h: Remove superfluous warning to include config.h.
81463         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81464         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81465         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81466         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81467         config.h with HAVE_CONFIG_H.
81468
81469 2005-09-19  Jim Meyering  <jim@meyering.net>
81470
81471         * modules/pathmax (License): Change to LGPL.
81472
81473 2005-09-19  Derek Price  <derek@ximbiot.com>
81474
81475         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81476
81477 2005-09-19  Bruno Haible  <bruno@clisp.org>
81478
81479         * gnulib-tool (import): Provide default for --tests-base.
81480
81481 2005-09-19  Bruno Haible  <bruno@clisp.org>
81482
81483         * doc/quote.texi: New file, extracted from gnulib.texi.
81484         * doc/ctime.texi: New file, extracted from gnulib.texi.
81485         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81486         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81487         * doc/gnulib.texi: Include them.
81488
81489 2005-09-18  Bruno Haible  <bruno@clisp.org>
81490
81491         Portability fix.
81492         * gnulib-tool (func_readlink): New function.
81493         (func_ln_if_changed): Use it.
81494
81495 2005-09-18  Bruno Haible  <bruno@clisp.org>
81496
81497         * gnulib-tool: Support --with-tests also with --import.
81498         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81499         (func_import): Use variables $testsbase and $inctests. Emit a
81500         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81501         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81502         SUBDIRS += $testsdir.
81503         (func_create_testdir): Update.
81504
81505 2005-09-18  Bruno Haible  <bruno@clisp.org>
81506
81507         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81508         instead of $dry_run.
81509         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81510         (func_ln_if_changed): Don't handle dry-run here.
81511         (func_import): In dry-run mode, detect more precisely which actions
81512         would be performed, and don't use "...ing" verbs.
81513
81514 2005-09-18  Bruno Haible  <bruno@clisp.org>
81515
81516         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81517         (func_import): Use join on two temporary files instead of three nested
81518         loops, in order to determine which files are new or old.
81519
81520 2005-09-18  Bruno Haible  <bruno@clisp.org>
81521
81522         * gnulib-tool (func_import): Comment out code that spits out the
81523         new files with --dry-run.
81524
81525 2005-09-18  Bruno Haible  <bruno@clisp.org>
81526
81527         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81528
81529 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81530
81531         * lib/stat-time.h: New file.
81532         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81533         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81534         in a different way.
81535         (timespec_cmp): New function.
81536         * lib/utimecmp.c: Include stat-time.h.
81537         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81538         members exist, not on the obsolescent ST_MTIM_NSEC.
81539         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81540
81541 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81542
81543         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81544
81545 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * MODULES.html.sh (File system functions): Add stat-time.
81548         * modules/stat-time: New file.
81549         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81550         is now done in a different way, by the stat-time module.
81551         * modules/utimecmp (Depends-on): Add stat-time.
81552
81553 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81554
81555         * m4/st_mtim.m4: Remove.  Superseded by...
81556         * m4/stat-time.m4: New file.
81557         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81558         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81559
81560 2005-09-15  Derek Price  <derek@ximbiot.com>
81561
81562         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81563
81564 2005-09-15  Derek Price  <derek@ximbiot.com>
81565
81566         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81567         * lib/regex_internal.c: Ditto, using this...
81568         (__GNUC_PREREQ): ...new macro.
81569         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81570         using...
81571         (__GNUC_PREREQ): ...this new macro.
81572
81573         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81574
81575 2005-09-15  Derek Price  <derek@ximbiot.com>
81576             Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81579         changes, consolidating in...
81580         * lib/regex_internal.h: ...this file.
81581
81582 2005-09-13  Jim Meyering  <jim@meyering.net>
81583
81584         * lib/canon-host.c: Filter through gnu indent and reword comments
81585         slightly.
81586         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81587
81588 2005-09-13  Derek Price  <derek@ximbiot.com>
81589
81590         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81591         failure.
81592         Reported by Jim Meyering  <jim@meyering.net>.
81593
81594 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81595
81596         * lib/base64.c: Typo.
81597         (base64_encode): Put b64str in initialized data section.
81598
81599 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81600
81601         Merge glibc and coreutils changes into gnulib, plus a few
81602         extra fixes.
81603         * lib/md5.c: Use #error rather than a string.
81604         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81605         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81606         (__attribute__): Define to empty for non recent-GCC.
81607         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81608         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81609         Renamed from their non-__ counterparts, with new macros replacing
81610         them if not _LIBC.  Add __THROW attribute.
81611         (rol): Remove.
81612         (struct md5_ctx): Align buffer if using GCC.
81613         * lib/sha1.h (struct sha1_ctx): Likewise.
81614         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81615         The old name was backwards.
81616         (NOTSWAP): Remove; not used.
81617         (rol): New macro, moved here from md5.h.
81618         (sha1_process_block): Remove a FIXME that doesn't make sense.
81619
81620 2005-09-12  Derek Price  <derek@ximbiot.com>
81621
81622         Return usable errors from canon-host.
81623         * lib/canon-host.h: New file.
81624         * lib/canon-host.c (canon_host): Wrap...
81625         (canon_host_r): ...this new function, which now relies exclusively on
81626         getaddrinfo.
81627         (ch_strerror): New function.
81628         (last_cherror): New global.
81629         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81630         interface.
81631         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81632         void *.
81633         (freeaddrinfo): Free ai->ai_canonname when set.
81634
81635 2005-09-12  Derek Price  <derek@ximbiot.com>
81636
81637         Make canon-host require getaddrinfo.
81638         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81639         AC_LIBSOURCE canon-host.h.  Call...
81640         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81641         gl_GETADDRINFO.
81642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81643
81644 2005-09-12  Derek Price  <derek@ximbiot.com>
81645
81646         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81647         LGPL.
81648         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81649
81650 2005-09-12  Derek Price  <derek@ximbiot.com>
81651
81652         * lib/gai_strerror.c: Include config.h when available.  Include
81653         getaddrinfo.h before other headers to test interface.
81654         Reported by Larry Jones <lawrence.jones@ugs.com>.
81655
81656 2005-09-12  Derek Price  <derek@ximbiot.com>
81657             Paul Eggert  <eggert@cs.ucla.edu>
81658
81659         * modules/glob (Files): Add glob-libc.h.
81660
81661 2005-09-12  Derek Price  <derek@ximbiot.com>
81662             Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81665         glob_.h, glob-libc.h.
81666         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81667
81668 2005-09-12  Derek Price  <derek@ximbiot.com>
81669             Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81672         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81673         protecting things that should be done only in gnulib contexts.
81674         * lib/glob_.h: New file, containing only the glob things needed for
81675         gnulib.
81676         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81677         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81678         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81679         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81680         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81681         and to respect the namespace rules better.
81682
81683 2005-09-08  Simon Josefsson  <jas@extundo.com>
81684
81685         * modules/socklen: New file.
81686
81687 2005-09-08  Simon Josefsson  <jas@extundo.com>
81688
81689         * m4/socklen.m4: New file.
81690
81691 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * modules/utimens (Files): Add m4/utimbuf.m4, since
81694         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81695         Reported by Sergey Poznyakoff.
81696
81697 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81700         definitions, since that's the preferred style in glibc.
81701         Fix a minor spacing issue, and update copyright notice to match
81702         glibc's.
81703
81704 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81707
81708 2005-09-06  Simon Josefsson  <jas@extundo.com>
81709
81710         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81711         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81712
81713 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81714
81715         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81716         warning.
81717
81718 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81719
81720         * config/srclist.txt: Add glibc bug 1302.
81721
81722 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81723
81724         Change bitset word type from unsigned int to unsigned long int,
81725         as this has better performance on typical 64-bit hosts.
81726         Port bitset code to hosts with unusual word sizes.
81727         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81728         (build_collating_symbol):
81729         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81730         argument is a bitset.  This is merely a style issue, but it makes
81731         it clearer that an entire array is expected.
81732         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81733         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81734         Port to the case where bitset_word is not the same as unsigned int.
81735         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81736         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81737         Likewise.
81738         * lib/regexec.c (check_dst_limits_calc_pos_1,
81739         check_subexp_matching_top):
81740         (build_trtable, group_nodes_into_DFAstates):
81741         Likewise.
81742         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81743         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81744         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81745         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81746         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81747         * lib/regcomp.c (optimize_subexps, lower_subexp):
81748         Work even if bitset_word has holes in its bitwise representation.
81749         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81750         * lib/regexec.c (check_dst_limits_calc_pos_1,
81751         check_subexp_matching_top):
81752         Likewise.
81753         * lib/regex_internal.c (re_string_reconstruct):
81754         Don't assume UCHAR_MAX == 255.
81755         * lib/regex_internal.h (bitset_set_all): Likewise.
81756         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81757         All uses changed.
81758         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81759         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81760         All uses changed.
81761         (BITSET_WORD_MAX): New macro.
81762         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81763         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81764         (bitset_empty, bitset_copy):
81765         Prefer sizeof (bitset) to multiplying it out ourselves.
81766         (bitset_not_merge): Remove; unused.
81767         (bitset_contain): Return bool, not unsigned int with one bit on.
81768         All callers changed.
81769         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81770         alignment than re_node_set; do this by defining a new internal
81771         type struct dests_alloc and using it to allocate memory.
81772
81773 2005-09-05  Bruno Haible  <bruno@clisp.org>
81774
81775         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81776         links.
81777
81778 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81779
81780         * modules/size_max (Makefile.am): Add size_max.h
81781
81782 2005-09-04  Derek Price  <derek@ximbiot.com>
81783
81784         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81785
81786 2005-09-03  Simon Josefsson  <jas@extundo.com>
81787
81788         * gnulib-tool: Fix typo.
81789
81790 2005-09-03  Simon Josefsson  <jas@extundo.com>
81791
81792         * config/srclist.txt: Add glibc bug 1293.
81793
81794 2005-09-03  Derek Price  <derek@ximbiot.com>
81795
81796         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81797         From Larry Jones <lawrence.jones@ugs.com>.
81798
81799 2005-09-02  Simon Josefsson  <jas@extundo.com>
81800
81801         * modules/socklen: New file.
81802
81803 2005-09-02  Simon Josefsson  <jas@extundo.com>
81804
81805         * modules/havelib: New module.
81806
81807         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81808         Use havelib.
81809
81810 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         Check for arithmetic overflow when calculating sizes, to prevent
81813         some buffer-overflow issues.  These patches are conservative, in the
81814         sense that when I couldn't determine whether an overflow was possible,
81815         I inserted a run-time check.
81816         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81817         macros.
81818         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81819         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81820         (re_xnrealloc, re_x2nrealloc): New inline functions.
81821         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81822         parse_bracket_exp):
81823         (build_equiv_class, build_charclass): Check for arithmetic overflow
81824         in size expression calculations.
81825         * lib/regex_internal.c (re_string_realloc_buffers):
81826         (build_wcs_upper_buffer, re_node_set_add_intersect):
81827         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81828         (re_dfa_add_node, register_state): Likewise.
81829         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81830         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81831         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81832         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81833
81834 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81837         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81838
81839 2005-09-02  Bruno Haible  <bruno@clisp.org>
81840
81841         Support for lib vs. lib64 distinction on biarch platforms.
81842         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81843         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81844         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81845
81846 2005-09-02  Bruno Haible  <bruno@clisp.org>
81847
81848         * gnulib-tool (import): In the other first-use case, provide defaults
81849         as well.
81850
81851 2005-09-02  Bruno Haible  <bruno@clisp.org>
81852
81853         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81854         patches not yet found in the latest gettext release.
81855
81856 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81859         to avoid a collision with bits/local_lim.h in glibc.
81860         All uses changed.  Problem reported by Dmitry V. Levin in
81861         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81862
81863         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81864         bugs in int versus size_t comparisons.
81865         (re_string_context_at): Fix bug where the code assumed that
81866         Idx is signed.
81867
81868         Use bool where appropriate.
81869         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81870         All callers changed.
81871         (calc_eclosure_iter): Likewise, for ROOT arg.
81872         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81873         (build_charclass_op): Likewise, for NON_MATCH arg.
81874         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81875         (re_string_construct_common): Likewise, for ICASE arg.
81876         * lib/regexec.c (re_search_2_stub, re_search_stub):
81877         Likewise, for RET_LEN arg.
81878         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81879         (set_regs): Likewise, for FL_BACKTRACK arg.
81880         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81881         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81882         (calc_eclosure_iter, parse_bracket_exp):
81883         Use bool for internal variables that are booleans.
81884         * lib/regexec.c (re_search_internal, check_matching,
81885         proceed_next_node):
81886         (set_regs, build_sifted_states, sift_states_bkref):
81887         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81888         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81889         (find_collation_sequence_value):
81890         Likewise.
81891         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81892         (re_node_set_compare):
81893         Return bool, not int. All callers changed.
81894         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81895         (build_trtable, check_node_accept): Likewise.
81896         * lib/regex_internal.h: Include stdbool.h.
81897
81898         Fix bugs uncovered when converting to bool.
81899         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81900         failure instead of charging ahead blindly.
81901         * lib/regex_internal.c (register_state): Likewise.
81902         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81903         for freeing internal storage.
81904         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81905         bitset pieces used as boolean, to avoid undefined behavior
81906         on hosts that do int overflow checking.
81907
81908 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * config/srclist.txt: Add glibc bugs 1285-1287.
81911
81912 2005-09-01  Jim Meyering  <jim@meyering.net>
81913
81914         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81915         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81916         Require gl_STAT_MACROS, too.
81917
81918 2005-09-01  Bruno Haible  <bruno@clisp.org>
81919
81920         * gnulib-tool (import): In the first-use case, provide defaults.
81921
81922 2005-09-01  Bruno Haible  <bruno@clisp.org>
81923
81924         * gnulib-tool (func_import): Remove the .tmp files.
81925
81926 2005-09-01  Bruno Haible  <bruno@clisp.org>
81927
81928         * gnulib-tool (func_import): Fix handling of symbolic links.
81929
81930 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81931
81932         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81933         old glibc regex code mishandles strings longer than 2**31 bytes.
81934         This patch fixes this when the regex code is used in gnulib
81935         (i.e., outside glibc).
81936
81937         This patch should not affect the use of the regex code inside
81938         glibc.  No doubt this problem also needs to be handled for glibc
81939         as well, but the result will be an incompatible change to the
81940         glibc ABI, and the old ABI will have to be supported too.  That
81941         can be the the subject for another patch.
81942
81943         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81944         governing whether the rest of this patch is active.  By default,
81945         the macro is disabled and the patch has no effect.
81946         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81947         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81948         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81949         (re_match_2, re_set_registers): Use the new types.
81950         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81951         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81952         New macros.
81953         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81954         (re_string_context_at, bin_tree_t, re_dfastate_t):
81955         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81956         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81957         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81958         (re_string_char_size_at, re_string_wchar_at):
81959         (re_string_elem_size_at):
81960         Use the new types and macros to port to 64-bit hosts.
81961         Use unsigned types for internal values, so that the code
81962         mostly works even for arrays larger than SSIZE_MAX.
81963         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81964         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81965         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81966         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81967         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81968         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81969         (calc_inveclosure, parse_dup_op, build_range_exp):
81970         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81971         (fetch_number, create_token_tree, mark_opt_subexp):
81972         Likewise.
81973         * lib/regex_internal.c (re_string_construct_common,
81974         create_ci_newstate):
81975         (create_cd_newstate, re_string_allocate, re_string_construct):
81976         (re_string_realloc_buffers, build_wcs_upper_buffer):
81977         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81978         (re_string_reconstruct, re_string_peek_byte_case):
81979         (re_string_fetch_byte_case, re_string_context_at):
81980         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81981         (re_node_set_init_copy, re_node_set_add_intersect):
81982         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81983         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81984         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81985         (re_acquire_state, re_acquire_state_context, register_state):
81986         Likewise.
81987         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81988         search_cur_bkref_entry):
81989         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81990         (re_search_internal, re_search_2_stub, re_search_stub)
81991         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81992         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81993         (update_cur_sifted_state, check_dst_limits):
81994         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81995         (check_subexp_limits, sift_states_bkref, merge_state_array):
81996         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81997         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81998         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81999         (expand_bkref_cache, check_node_accept_bytes):
82000         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82001         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82002         (acquire_init_state_context, check_halt_node_context):
82003         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82004         (sift_states_backward, clean_state_log_if_needed):
82005         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82006         (find_recover_state, transit_state_sb, transit_state_mb):
82007         (transit_state_bkref, build_trtable, match_ctx_clean):
82008         Likewise.
82009         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82010         to work around an assumption that REG_MISSING is negative.
82011
82012         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82013         (seek_collating_symbol_entry) [defined _LIBC]:
82014         (lookup_collation_sequence_value) [defined _LIBC]:
82015         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82016         Use prototypes rather than old-style function definitions.
82017         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82018         (transit_state_sb) [0]:
82019         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82020
82021         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82022         rm_eo.
82023
82024         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82025         (optimize_subexps, lower_subexp):
82026         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82027         since the signed shift might overflow.  Use 1u<<31 instead.
82028         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82029         Likewise.
82030         * lib/regexec.c (check_dst_limits_calc_pos_1,
82031         check_subexp_matching_top): Likewise.
82032
82033         * lib/regcomp.c (optimize_subexps, lower_subexp):
82034         Use CHAR_BIT rather than 8, for clarity.
82035         * lib/regexec.c (check_dst_limits_calc_pos_1):
82036         (check_subexp_matching_top): Likewise.
82037         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82038         have to worry about portability issues when shifting it left.
82039         Remove no-longer-needed test for table_size > 0.
82040         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82041         in a word, as the resulting behavior is undefined.
82042         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82043         in one case, a <= should have been an <, and in another case the
82044         whole test was missing.
82045         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82046         the standard name CHAR_BIT.
82047         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82048         this is not true on one's complement and signed-magnitude hosts.
82049
82050         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82051         next_last_offset.
82052         (struct re_dfa_t): Remove unused member states_alloc.
82053         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82054
82055 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82058         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82059         and large-file glibc and in 32-bit large-file Solaris.
82060
82061 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82064         lengths fit in regoff_t; this isn't true if regoff_t is the same
82065         width as size_t.
82066         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82067         (= START + RANGE) instead of RANGE.  This avoids overflow
82068         problems when regoff_t is the same width as size_t.
82069         All callers changed.
82070         (re_search_2_stub): Check for overflow when adding the
82071         sizes of the two strings.
82072         (re_search_stub): Check for overflow when adding START
82073         to RANGE; if it occurs, substitute the extreme value.
82074
82075 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82078
82079 2005-08-31  Jim Meyering  <jim@meyering.net>
82080
82081         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82082         a pointer-to-const.
82083         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82084         (register_state): Likewise.
82085         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82086         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82087         (group_nodes_into_DFAstates): Likewise.
82088
82089 2005-08-31  Jim Meyering  <jim@meyering.net>
82090
82091         * check-module: Add a FIXME comment.
82092
82093 2005-08-31  Eric Blake  <ebb9@byu.net>
82094
82095         * modules/unistd-safer (Files): Add unistd--.h.
82096         * modules/stdio-safer (Files): Add stdio--.h.
82097
82098 2005-08-31  Derek Price  <derek@ximbiot.com>
82099
82100         * lib/getdelim.c (getdelim): Return EOF on EOF.
82101         Reported by Larry Jones <lawrence.jones@ugs.com>.
82102
82103 2005-08-31  Bruno Haible  <bruno@clisp.org>
82104
82105         Avoid unnecessary diffs in the generated lib/Makefile.am.
82106         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82107         the generated files.
82108         (func_import): Don't set cmd.
82109
82110 2005-08-31  Bruno Haible  <bruno@clisp.org>
82111
82112         * lib/strstr.c: Include <stddef.h>, for NULL.
82113         * lib/strcasestr.c: Likewise.
82114         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82115
82116 2005-08-31  Bruno Haible  <bruno@clisp.org>
82117
82118         * gnulib-tool: New option --macro-prefix.
82119         (func_import): Use macro_prefix.
82120         (import): Handle option --macro-prefix.
82121
82122 2005-08-31  Bruno Haible  <bruno@clisp.org>
82123
82124         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82125         Also use new variables cached_lgpl, cached_libtool.
82126
82127 2005-08-31  Bruno Haible  <bruno@clisp.org>
82128
82129         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82130         always instantiating them.
82131
82132 2005-08-31  Bruno Haible  <bruno@clisp.org>
82133
82134         * gnulib-tool (func_import): Read the previous cached settings
82135         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82136         earlier added by gnulib but are now dropped. Warn when a gnulib file
82137         overwrites a non-gnulib file.
82138
82139 2005-08-31  Bruno Haible  <bruno@clisp.org>
82140
82141         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82142         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82143         projects that don't keep autogenerated files in CVS. Put into
82144         actioncmd only the specified modules, not the transitive closure.
82145
82146 2005-08-31  Bruno Haible  <bruno@clisp.org>
82147
82148         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82149         Create directories that shall be filled.
82150         (import): Don't look for gl_* macros in configure.ac. Recurse across
82151         all directories containing a gnulib-cache.m4 files, if meaningful.
82152
82153 2005-08-31  Bruno Haible  <bruno@clisp.org>
82154
82155         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82156         (import): Set seen_libtool when we see gl_LIBTOOL.
82157
82158 2005-08-31  Bruno Haible  <bruno@clisp.org>
82159
82160         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82161         declaration macro definitions from generated gnulib.m4.
82162
82163 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82164
82165         * lib/iconvme.h: Add prototype for iconv_alloc.
82166
82167 2005-08-29  Simon Josefsson  <jas@extundo.com>
82168
82169         * lib/iconvme.c: Fix errno.
82170
82171 2005-08-29  Bruno Haible  <bruno@clisp.org>
82172
82173         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82174         that it works when the directory contains spaces.
82175
82176 2005-08-29  Bruno Haible  <bruno@clisp.org>
82177
82178         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82179
82180 2005-08-29  Bruno Haible  <bruno@clisp.org>
82181
82182         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82183         Emit more advice.
82184
82185 2005-08-29  Bruno Haible  <bruno@clisp.org>
82186         and Stepan Kasal  <kasal@ucw.cz>
82187
82188         * check-module: If more parameters are given, check each of them
82189         separately; add more exceptions, as noted by Jim Meyering.
82190         (check_module): New procedure.
82191         (%exempt_header): Now contains all exceptions.
82192
82193 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82194
82195         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82196
82197 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82198
82199         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82200
82201 2005-08-28  Bruno Haible  <bruno@clisp.org>
82202
82203         * m4/gnulib-tool.m4: New file.
82204
82205 2005-08-27  Jim Meyering  <jim@meyering.net>
82206
82207         * modules/unistd-safer (Files): Add pipe-safer.c.
82208         * modules/fcntl-safer (Files): Add creat-safer.c.
82209
82210 2005-08-27  Jim Meyering  <jim@meyering.net>
82211
82212         * m4/stdlib-safer.m4: New file.  From coreutils.
82213         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82214         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82215         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82216         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82217         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82218
82219 2005-08-27  Jim Meyering  <jim@meyering.net>
82220
82221         * lib/fopen-safer.c: Merge minor changes from coreutils.
82222         * lib/dup-safer.c: Likewise.
82223         * lib/fd-safer.c: Likewise.
82224
82225         Merge from coreutils.
82226         * lib/stdio--.h: New file.
82227         * lib/stdlib--.h: New file.
82228         * lib/mkstemp-safer.c: New file.
82229
82230         GNU tar needs these.
82231         * lib/pipe-safer.c: New file.
82232         * lib/creat-safer.c: New file.
82233         * lib/fcntl--.h (creat): Define to creat_safer.
82234         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82235         * lib/unistd--.h (pipe): Define to pipe_safer.
82236         * lib/unistd-safer.h: Declare pipe_safer.
82237
82238 2005-08-26  Simon Josefsson  <jas@extundo.com>
82239
82240         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82241         Haible <bruno@clisp.org>.
82242
82243 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82244
82245         * lib/regex_internal.h: Remove all references to
82246         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82247         or better.
82248         (bitset_not, bitset_merge, bitset_not_merge):
82249         (bitset_mask, re_string_allocate, re_string_construct):
82250         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82251         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82252         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82253         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82254         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82255         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82256         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82257         (re_acquire_state_context):
82258         Remove unnecessary forward decls.
82259         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82260         Put __attribute at function definition,
82261         now that the function decl has been removed.
82262         * lib/regex_internal.c (re_string_peek_byte_case):
82263         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82264         Likewise.
82265
82266 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82267
82268         * m4/regex.m4: Add AC_PREREQ(2.50).
82269         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82270
82271 2005-08-25  Simon Josefsson  <jas@extundo.com>
82272
82273         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82274         __fsetlocking.
82275
82276 2005-08-25  Simon Josefsson  <jas@extundo.com>
82277
82278         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82279         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82280         GLIBC specific code.
82281
82282 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         Make regex safe for g++.  This fixes one real bug (an "err"
82285         that should have been "*err").  g++ problem reported by
82286         Sam Steingold.
82287         * lib/regex_internal.h (re_calloc): New macro, consistent with
82288         re_malloc etc.  All callers of calloc changed to use re_calloc.
82289         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82290         not int.  All callers changed.
82291         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82292         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82293         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82294         (find_recover_state): Change "err" to "*err"; this fixes what
82295         appears to be a real bug.
82296         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82297         versus int.
82298
82299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * modules/regex (Depends-on): Add malloc, since the code
82302         assumes that !malloc(0) means failure.
82303
82304 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82307
82308         alloca modernization/simplification for regex.
82309         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82310         needs to be at the start of the file, and can be moved into
82311         regex_internal.h and simplified.
82312         * lib/regex_internal.h: Include <alloca.h>.
82313         (__libc_use_alloca) [!defined _LIBC]: New macro.
82314         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82315         now works outside glibc.
82316
82317 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82318
82319         * config/srclist.txt: Add glibc bugs 1241, 1245.
82320
82321 2005-08-25  Jim Meyering  <jim@meyering.net>
82322
82323         * lib/open-safer.c: Include <config.h>.
82324         Otherwise, we'd lose LARGEFILE support in any file using
82325         e.g. "fcntl--.h"
82326
82327 2005-08-25  Bruno Haible  <bruno@clisp.org>
82328
82329         * m4/minmax.m4: Require autoconf 2.52.
82330         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82331         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82332         alternatives of translit over the alphabet.
82333         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82334
82335 2005-08-24  Simon Josefsson  <jas@extundo.com>
82336
82337         * tests/test-getpass.c: New file.
82338
82339 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82340
82341         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82342         for GNU regex features.
82343
82344 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82347         * lib/regex.h (regerror): Likewise.
82348
82349         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82350         requires this.  (The code never needed it.)
82351
82352         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82353         All uses of recently-renamed identifiers changed to use the new,
82354         POSIX-compliant names.  The code will build and run just fine
82355         without these changes, but it's better to eat our own dog food
82356         and use the standard-conforming names.
82357
82358         * lib/regex.h: Fix a multitude of POSIX name space violations.
82359         These changes have an effect only for programs that define
82360         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82361         do not change anything for programs compiled in the normal way.
82362         Also, there is no effect on the ABI.
82363
82364         (_REGEX_SOURCE): New macro.
82365         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82366         defined and _GNU_SOURCE is not; this fixes a name space violation.
82367
82368         Rename the following macros to obey POSIX requirements.
82369         The old names are still visible as macros if _REGEX_SOURCE is defined.
82370         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82371         RE_BACKSLASH_ESCAPE_IN_LISTS.
82372         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82373         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82374         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82375         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82376         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82377         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82378         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82379         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82380         (REG_INTERVALS): renamed from RE_INTERVALS.
82381         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82382         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82383         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82384         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82385         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82386         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82387         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82388         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82389         RE_UNMATCHED_RIGHT_PAREN_ORD.
82390         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82391         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82392         (REG_DEBUG): renamed from RE_DEBUG.
82393         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82394         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82395         unusual, since we can't clash with the POSIX REG_ICASE.
82396         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82397         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82398         (REG_NO_SUB): renamed from RE_NO_SUB.
82399         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82400         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82401         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82402         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82403         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82404         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82405         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82406         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82407         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82408         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82409         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82410         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82411         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82412         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82413         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82414         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82415         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82416         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82417         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82418         (REG_FIXED): Renamed from REGS_FIXED.
82419         (REG_NREGS): Renamed from RE_NREGS.
82420
82421         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82422         of other REG_* macros, since POSIX says the user is allowed to
82423         #undef these macros selectively.
82424
82425         (reg_errcode_t): Update comment stating what other tables need
82426         to be consistent.
82427
82428         Rename the following enum values to obey POSIX requirements.
82429         The old names are still visible as macros.
82430         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82431         is not defined, since GNU is supposed to be a superset of POSIX as
82432         much as possible, and since we want reg_errcode_t to be a signed
82433         type for implementation consistency.
82434         (_REG_NOERROR): Renamed from REG_NOERROR.
82435         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82436         (_REG_BADPAT): Renamed from REG_BADPAT.
82437         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82438         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82439         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82440         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82441         (_REG_EBRACK): Renamed from REG_EBRACK.
82442         (_REG_EPAREN): Renamed from REG_EPAREN.
82443         (_REG_EBRACE): Renamed from REG_EBRACE.
82444         (_REG_BADBR): Renamed from REG_BADBR.
82445         (_REG_ERANGE): Renamed from REG_ERANGE.
82446         (_REG_ESPACE): Renamed from REG_ESPACE.
82447         (_REG_BADRPT): Renamed from REG_BADRPT.
82448         (_REG_EEND): Renamed from REG_EEND.
82449         (_REG_ESIZE): Renamed from REG_ESIZE.
82450         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82451         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82452         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82453         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82454         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82455
82456         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82457         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82458         changed.  But support the old name if the new one is not defined
82459         and if _REGEX_SOURCE.
82460
82461         Change the following member names in struct re_pattern_buffer.
82462         The old names are still supported if !_REGEX_SOURCE.
82463         The new names are always supported, regardless of _REGEX_SOURCE.
82464         (re_buffer): Renamed from buffer.
82465         (re_allocated): Renamed from allocated.
82466         (re_used): Renamed from used.
82467         (re_syntax): Renamed from syntax.
82468         (re_fastmap): Renamed from fastmap.
82469         (re_translate): Renamed from translate.
82470         (re_can_be_null): Renamed from can_be_null.
82471         (re_regs_allocated): Renamed from regs_allocated.
82472         (re_fastmap_accurate): Renamed from fastmap_accurate.
82473         (re_no_sub): Renamed from no_sub.
82474         (re_not_bol): Renamed from not_bol.
82475         (re_not_eol): Renamed from not_eol.
82476         (re_newline_anchor): Renamed from newline_anchor.
82477
82478         Change the following member names in struct re_registers.
82479         The old names are still supported if !_REGEX_SOURCE.
82480         The new names are always supported, regardless of _REGEX_SOURCE.
82481         (rm_num_regs): Renamed from num_regs.
82482         (rm_start): Renamed from start.
82483         (rm_end): Renamed from end.
82484
82485         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82486         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82487         Prepend __ to parameter names.
82488
82489         Undo yesterday's changes.
82490
82491 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82494         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82495         lib/regex.c.
82496
82497 2005-08-24  Jim Meyering  <jim@meyering.net>
82498
82499         Sync from coreutils.
82500         * m4/fcntl-safer.m4: New file.
82501
82502         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82503         and object files for this module.
82504
82505 2005-08-24  Jim Meyering  <jim@meyering.net>
82506
82507         Sync from coreutils.
82508         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82509
82510 2005-08-24  Jim Meyering  <jim@meyering.net>
82511
82512         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82513         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82514
82515 2005-08-24  Jim Meyering  <jim@meyering.net>
82516
82517         * modules/fcntl-safer: New module.
82518         * modules/fts (Depends-on): Add fcntl-safer.
82519         * MODULES.html.sh (File descriptor based Input/Output):
82520         Add fcntl-safer.
82521
82522 2005-08-24  Bruno Haible  <bruno@clisp.org>
82523
82524         Support for unit test modules.
82525         * modules/README: Mention tests modules.
82526         * modules/TEMPLATE-TESTS: New file.
82527         * gnulib-tool: New options --extract-tests-module, --with-tests and
82528         --tests-base (unused for the moment).
82529         (testsbase, inctests): New variables.
82530         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82531         (func_verify_module): Exclude TEMPLATE-TESTS.
82532         (func_verify_nontests_module, func_verify_tests_module): New functions.
82533         (func_get_dependencies): Add implicit dependency for tests modules.
82534         (func_get_tests_module): New function.
82535         (func_modules_transitive_closure): When --with-tests was specified,
82536         include the unit tests as well, unless explicitly avoided.
82537         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82538         (func_emit_tests_Makefile_am): New function.
82539         (func_create_testdir): When --with-tests was specified, emit a
82540         tests/ directory.
82541         * MODULES.html.sh (Future developments): Update.
82542
82543 2005-08-24  Bruno Haible  <bruno@clisp.org>
82544
82545         * modules/tls-tests: New file.
82546         * tests/test-tls.c: New file, from GNU gettext.
82547
82548 2005-08-24  Bruno Haible  <bruno@clisp.org>
82549
82550         * modules/lock-tests: New file.
82551         * tests/test-lock.c: New file, from GNU gettext.
82552
82553 2005-08-24  Bruno Haible  <bruno@clisp.org>
82554
82555         * lib/lock.h: Add multiple inclusion guard.
82556         * lib/tls.h: Add multiple inclusion guard.
82557
82558 2005-08-24  Bruno Haible  <bruno@clisp.org>
82559
82560         * gnulib-tool: Add support for the --aux-dir option to
82561         --create-testdir, --create-megatestdir, --test, --megatest.
82562         (func_create_testdir, func_create_megatestdir): Optionally emit a
82563         AC_CONFIG_AUX_DIR directive.
82564         (create-testdir, create-megatestdir, test, megatest): Provide a
82565         default value for $auxdir.
82566
82567 2005-08-24  Bruno Haible  <bruno@clisp.org>
82568
82569         * gnulib-tool (import): Use compound statement instead of subshell
82570         where possible.
82571
82572 2005-08-24  Bruno Haible  <bruno@clisp.org>
82573
82574         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82575
82576 2005-08-24  Bruno Haible  <bruno@clisp.org>
82577
82578         * gnulib-tool (func_version): Update.
82579
82580 2005-08-24  Bruno Haible  <bruno@clisp.org>
82581
82582         * gnulib-tool (func_import, func_create_testdir,
82583         func_create_megatestdir): Quote all autoconf macro arguments.
82584
82585 2005-08-24  Bruno Haible  <bruno@clisp.org>
82586
82587         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82588         option --force, because --force causes the aclocal.m4 of each
82589         subdirectory to be newer than the corresponding config.h.in.
82590
82591 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82592
82593         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82594         All contents moved to gl_REGEX.
82595         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82596         assume that it does.
82597
82598 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         * lib/regex.h (REG_NOSYS)
82601         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82602         Define, since POSIX requires it as of 2001.
82603         (_REG_ENOSYS)
82604         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82605         New private symbol, used to keep the enum signed in all cases.
82606         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82607         Youngman in
82608         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82609
82610         * lib/regex_internal.c (re_string_skip_chars, register_state):
82611         (calc_state_hash):
82612         Remove forward decls; no longer needed now that we use prototypes.
82613         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82614         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82615         (clean_state_log_if_needed): Likewise.
82616
82617 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82618
82619         * config/srclist.txt: Add glibc bugs 1231-1233.
82620
82621 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         Fix problems reported by Sam Steingold in
82624         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82625         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82626         assumed that reg_errcode_t is a signed type, which is not
82627         necessarily true if _XOPEN_SOURCE is not defined.
82628         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82629         since some compilers warn about it otherwise.
82630
82631 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82634         (init_word_char, create_initial_state, duplicate_node_closure):
82635         (fetch_token, peek_token_bracket, build_range_exp):
82636         (build_collating_symbol): Remove forward decls; no longer needed
82637         now that we use prototypes.
82638
82639         * lib/regcomp.c:
82640         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82641         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82642         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82643         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82644         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82645         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82646         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82647         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82648         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82649         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82650         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82651         (build_charclass, build_charclass_op, fetch_number, create_tree):
82652         (create_token_tree, mark_opt_subexp, duplicate_tree):
82653         Use prototypes rather than old-style definitions.
82654
82655         * lib/regex_internal.c:
82656         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82657         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82658         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82659         (re_string_reconstruct, re_string_peek_byte_case):
82660         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82661         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82662         (re_node_set_init_copy, re_node_set_add_intersect):
82663         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82664         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82665         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82666         (re_acquire_state, re_acquire_state_context, register_state):
82667         (create_ci_newstate, create_cd_newstate, free_state):
82668         Likewise.
82669         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82670         re_search_2):
82671         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82672         (re_search_internal, prune_impossible_nodes):
82673         (acquire_init_state_context, check_matching, static):
82674         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82675         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82676         (update_regs, sift_states_backward, build_sifted_states):
82677         (clean_state_log_if_needed, merge_state_array):
82678         (update_cur_sifted_state, add_epsilon_src_nodes):
82679         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82680         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82681         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82682         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82683         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82684         (check_arrival, check_arrival_add_next_nodes):
82685         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82686         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82687         (check_node_accept_bytes, check_node_accept, extend_buffers):
82688         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82689         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82690         (sift_ctx_init):
82691         Likewise.
82692
82693         * lib/regex_internal.h:
82694         (re_string_allocate, re_string_construct, re_string_reconstruct):
82695         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82696         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82697         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82698         (re_string_context_at, re_string_peek_byte_case):
82699         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82700         is defined, since we now use prototypes always.
82701
82702         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82703         C89 or better.  All uses removed.
82704
82705 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * config/srclist.txt: Add glibc bugs 1220-1227.
82708
82709 2005-08-20  Jim Meyering  <jim@meyering.net>
82710
82711         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82712         of unused local, dfa.
82713
82714 2005-08-20  Bruno Haible  <bruno@clisp.org>
82715
82716         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82717
82718 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82721         (re_node_set_insert_last, re_dfa_add_node):
82722         Rename local variables to avoid GCC shadowing warnings.
82723
82724 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82727         [defined lint]: Suppress bogus uninitialized-variable warnings.
82728
82729         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82730         and let the caller return REG_ESPACE if out of space.  This
82731         removes an uninitialied-variable warning with GCC 4.0.1, and also
82732         avoids taking the address of a local variable.  All callers
82733         changed.
82734
82735 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82736
82737         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82738         $LIBCSRC/posix/regexec.c.
82739         Add glibc bug 1217 for regcomp.c.
82740
82741 2005-08-19  Jim Meyering  <jim@meyering.net>
82742
82743         * lib/regexec.c (proceed_next_node): Redo local variables to
82744         avoid GCC shadowing warnings.
82745
82746 2005-08-18  Bruno Haible  <bruno@clisp.org>
82747
82748         * lib/strstr.c (strstr): Fix return value in multibyte case.
82749         * lib/strcasestr.c (strcasestr): Likewise.
82750
82751 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82754
82755 2005-08-17  Jim Meyering  <jim@meyering.net>
82756
82757         Make the %s format (seconds since the epoch) work for a negative
82758         number and when used with a zero-padded field width, e.g. %015s.
82759
82760         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82761         label so that it precedes the code to set `digits'.  Otherwise,
82762         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82763         print `00-22'.  Now, it prints `-0022', as it should.
82764
82765 2005-08-17  Bruno Haible  <bruno@clisp.org>
82766
82767         * modules/strstr (Files): Add m4/mbrtowc.m4.
82768         (Depends-on): Add mbuiter.
82769
82770 2005-08-17  Bruno Haible  <bruno@clisp.org>
82771
82772         * modules/strcasestr: New file.
82773         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82774         strcasestr.
82775
82776 2005-08-17  Bruno Haible  <bruno@clisp.org>
82777
82778         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82779
82780 2005-08-17  Bruno Haible  <bruno@clisp.org>
82781
82782         * modules/mbuiter: New file.
82783         * MODULES.html.sh (Extended multibyte and wide character utilities):
82784         Add mbuiter.
82785
82786 2005-08-17  Bruno Haible  <bruno@clisp.org>
82787
82788         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82789         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82790
82791 2005-08-17  Bruno Haible  <bruno@clisp.org>
82792
82793         * m4/strcasestr.m4: New file.
82794
82795 2005-08-17  Bruno Haible  <bruno@clisp.org>
82796
82797         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82798         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82799
82800 2005-08-17  Bruno Haible  <bruno@clisp.org>
82801
82802         * lib/strcasestr.h: New file.
82803         * lib/strcasestr.c: New file.
82804
82805 2005-08-17  Bruno Haible  <bruno@clisp.org>
82806
82807         * lib/strcasecmp.c: Use mbuiter.h.
82808
82809 2005-08-17  Bruno Haible  <bruno@clisp.org>
82810
82811         * lib/mbuiter.h: New file.
82812
82813 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82814
82815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82816         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82817         and gl_GETOPT are both invoked via different paths (as happens
82818         with GNU tar CVS because it uses both argp and getopt), the former
82819         wins.
82820
82821 2005-08-16  Bruno Haible  <bruno@clisp.org>
82822
82823         * modules/tls: New file.
82824         * MODULES.html.sh (Multithreading): Add tls.
82825
82826 2005-08-16  Bruno Haible  <bruno@clisp.org>
82827
82828         * modules/strnlen1: New file.
82829         * MODULES.html.sh (String handling): Add strnlen1.
82830
82831 2005-08-16  Bruno Haible  <bruno@clisp.org>
82832
82833         * modules/strcase (Files): Add m4/mbrtowc.m4.
82834         (Depends-on): Add strnlen1, mbchar.
82835
82836 2005-08-16  Bruno Haible  <bruno@clisp.org>
82837
82838         * modules/mbiter: New file.
82839         * MODULES.html.sh (Extended multibyte and wide character utilities):
82840         Add mbiter.
82841
82842 2005-08-16  Bruno Haible  <bruno@clisp.org>
82843
82844         * modules/mbfile: New file.
82845         * MODULES.html.sh (Extended multibyte and wide character utilities):
82846         Add mbfile.
82847
82848 2005-08-16  Bruno Haible  <bruno@clisp.org>
82849
82850         * modules/mbchar: New file.
82851         * MODULES.html.sh (Extended multibyte and wide character utilities):
82852         New section.
82853
82854 2005-08-16  Bruno Haible  <bruno@clisp.org>
82855
82856         * m4/tls.m4: New file, from GNU gettext.
82857
82858 2005-08-16  Bruno Haible  <bruno@clisp.org>
82859
82860         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82861         always.
82862         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82863
82864 2005-08-16  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/mbiter.m4: New file.
82867
82868 2005-08-16  Bruno Haible  <bruno@clisp.org>
82869
82870         * m4/mbfile.m4: New file.
82871
82872 2005-08-16  Bruno Haible  <bruno@clisp.org>
82873
82874         * m4/mbchar.m4: New file.
82875
82876 2005-08-16  Bruno Haible  <bruno@clisp.org>
82877
82878         * lib/tls.h: New file, from GNU gettext.
82879         * lib/tls.c: New file, from GNU gettext.
82880
82881 2005-08-16  Bruno Haible  <bruno@clisp.org>
82882
82883         * lib/strnlen1.h: New file.
82884         * lib/strnlen1.c: New file.
82885
82886 2005-08-16  Bruno Haible  <bruno@clisp.org>
82887
82888         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82889         (mbi_init): Update.
82890         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82891         NUL byte, not after it.
82892
82893 2005-08-16  Bruno Haible  <bruno@clisp.org>
82894
82895         * lib/strcase.h (strcasecmp): Add note in comments.
82896         * lib/strncasecmp.c: Use code from strcasecmp.c.
82897         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82898         (strcasecmp): Work correctly in multibyte locales.
82899
82900 2005-08-16  Bruno Haible  <bruno@clisp.org>
82901
82902         * lib/mbiter.h: New file.
82903
82904 2005-08-16  Bruno Haible  <bruno@clisp.org>
82905
82906         * lib/mbfile.h: New file.
82907
82908 2005-08-16  Bruno Haible  <bruno@clisp.org>
82909
82910         * lib/mbchar.h: New file.
82911         * lib/mbchar.c: New file.
82912
82913 2005-08-16  Bruno Haible  <bruno@clisp.org>
82914
82915         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82916         the valid ones. Makes the comparison operations transitive:
82917         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82918         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82919
82920 2005-08-15  Simon Josefsson  <jas@extundo.com>
82921
82922         * modules/ssize_t (License): Change to 'unlimited'.
82923
82924         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82925
82926 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82927
82928         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82929         Add comments for each pending glibc patch.
82930
82931 2005-08-15  Bruno Haible  <bruno@clisp.org>
82932
82933         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82934         __cplusplus is defined.
82935
82936 2005-08-14  Jim Meyering  <jim@meyering.net>
82937
82938         Sync from coreutils.
82939
82940         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82941         Use the hash-table-based cycle-detection code not just when
82942         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82943         Reported by James Youngman in
82944         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82945         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82946         FTS_TIGHT_CYCLE_CHECK.
82947         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82948         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82949         once again.
82950         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82951         * lib/fts.c (fd_safer): Remove decl.
82952         Include fcntl--.h rather than unistd-safer.h
82953         (fts_safe_changedir): Don't call fd_safer; no longer needed
82954         now that we include fcntl--.h.
82955
82956 2005-08-12  Simon Josefsson  <jas@extundo.com>
82957
82958         * modules/getndelim2: Use ssize_t module.
82959         * modules/getnline: Likewise.
82960         * modules/safe-read: Likewise.
82961         * modules/xreadlink: Likewise.
82962
82963         * modules/ssize_t: New file.
82964
82965 2005-08-12  Simon Josefsson  <jas@extundo.com>
82966
82967         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82968
82969 2005-08-12  Simon Josefsson  <jas@extundo.com>
82970
82971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82972         ssize_t.
82973
82974 2005-08-12  Simon Josefsson  <jas@extundo.com>
82975
82976         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82977         readline, getdelim and check_version.
82978         (Support for systems lacking ISO C 99: Sizes of integer types):
82979         Add size_max.
82980
82981 2005-08-12  Bruno Haible  <bruno@clisp.org>
82982
82983         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82984
82985 2005-08-11  Simon Josefsson  <jas@extundo.com>
82986
82987         * modules/readline: New file.
82988
82989         * modules/strnlen (Files): Add strnlen.h.
82990
82991 2005-08-11  Simon Josefsson  <jas@extundo.com>
82992
82993         * m4/readline.m4: New file.
82994
82995 2005-08-11  Simon Josefsson  <jas@extundo.com>
82996
82997         * lib/readline.h, readline.c: New file.
82998
82999 2005-08-11  Simon Josefsson  <jas@extundo.com>
83000
83001         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83002         gl_AVOID.
83003
83004 2005-08-11  Bruno Haible  <bruno@clisp.org>
83005
83006         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83007
83008 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83009
83010         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83011
83012 2005-08-10  Simon Josefsson  <jas@extundo.com>
83013
83014         * tests/test-iconvme.c: New file.
83015
83016 2005-08-10  Simon Josefsson  <jas@extundo.com>
83017
83018         * m4/strnlen.m4: New file.
83019
83020         * m4/strndup.m4: Don't check for strnlen declaration, done in
83021         strnlen.m4.
83022
83023 2005-08-10  Simon Josefsson  <jas@extundo.com>
83024
83025         * lib/strndup.c: Use strnlen.h.
83026
83027         * lib/strnlen.h: New file.
83028
83029 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83030
83031         * README: Typos.
83032
83033 2005-08-02  Simon Josefsson  <jas@extundo.com>
83034
83035         * modules/readline: New file.
83036
83037 2005-08-02  Simon Josefsson  <jas@extundo.com>
83038
83039         * modules/getdelim: New file.
83040
83041         * modules/getline: Rewrite, don't use getndelim2.
83042
83043 2005-08-02  Simon Josefsson  <jas@extundo.com>
83044
83045         * m4/getline.m4: Separate out getdelim stuff into separate module.
83046
83047         * m4/getdelim.m4: New file.
83048
83049 2005-08-02  Simon Josefsson  <jas@extundo.com>
83050
83051         * lib/getline.h, getline.c: Rewrite.
83052
83053         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83054
83055 2005-07-31  Bruno Haible  <bruno@clisp.org>
83056
83057         * lib/lock.h (gl_lock_initializer): New macro.
83058         (gl_lock_define_initialized): Use it.
83059         (gl_rwlock_initializer): New macro.
83060         (gl_rwlock_define_initialized): Use it.
83061         (gl_recursive_lock_initializer): New macro.
83062         (gl_recursive_lock_define_initialized): Use it.
83063
83064 2005-07-30  Karl Berry  <karl@gnu.org>
83065
83066         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83067         Report from Ben Pfaff, regarding getopt.
83068
83069 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83070
83071         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83072         normal way.
83073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83074         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83075         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83076         (gl_GETOPT): Use the new macros.  Most of the implementation
83077         is moved to the new macros.  This is for programs like Emacs
83078         that don't want all the functionality of gl_GETOPT.
83079
83080 2005-07-26  Bruno Haible  <bruno@clisp.org>
83081
83082         * m4/lock.m4: Update from GNU gettext.
83083
83084 2005-07-26  Bruno Haible  <bruno@clisp.org>
83085
83086         * lib/lock.h: Update from GNU gettext.
83087         * lib/lock.c: Update from GNU gettext.
83088
83089 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83092         obsolescent AC_TRY_RUN.  Include the default includes files, for
83093         'exit'.
83094
83095 2005-07-24  Bruno Haible  <bruno@clisp.org>
83096
83097         * modules/visibility: New file.
83098         * MODULES.html.sh (Misc): Add visibility.
83099
83100 2005-07-24  Bruno Haible  <bruno@clisp.org>
83101
83102         * m4/visibility.m4: New file.
83103
83104 2005-07-24  Bruno Haible  <bruno@clisp.org>
83105
83106         * doc/visibility.texi: New file.
83107
83108 2005-07-22  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83111         $(ALLOCA_H), redundant through BUILT_SOURCES.
83112         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83113         redundant through BUILT_SOURCES.
83114         * modules/byteswap (Makefile.am): Remove explicit dependency on
83115         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83116         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83117         $(FNMATCH_H), redundant through BUILT_SOURCES.
83118         * modules/getopt (Makefile.am): Remove explicit dependency on
83119         $(GETOPT_H), redundant through BUILT_SOURCES.
83120         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83121         redundant through BUILT_SOURCES.
83122         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83123         redundant through BUILT_SOURCES.
83124         * modules/stdbool (Makefile.am): Remove explicit dependency on
83125         $(STDBOOL_H), redundant through BUILT_SOURCES.
83126         * modules/stdint (Makefile.am): Remove explicit dependency on
83127         $(STDINT_H), redundant through BUILT_SOURCES.
83128         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83129         Remove explicit dependency on $(SYSEXITS_H).
83130         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83131
83132 2005-07-18  Simon Josefsson  <jas@extundo.com>
83133
83134         * lib/check-version.c (check_version): Accept identical versions too.
83135
83136 2005-07-18  Bruno Haible  <bruno@clisp.org>
83137
83138         * modules/lock: New file.
83139         * MODULES.html.sh (Multithreading): New section.
83140
83141 2005-07-18  Bruno Haible  <bruno@clisp.org>
83142
83143         * m4/lock.m4: New file, from GNU gettext.
83144
83145 2005-07-18  Bruno Haible  <bruno@clisp.org>
83146
83147         * lib/lock.h: New file, from GNU gettext.
83148         * lib/lock.c: New file, from GNU gettext.
83149
83150 2005-07-18  Bruno Haible  <bruno@clisp.org>
83151
83152         * lib/lock.h (gl_once_t): New type.
83153         (gl_once_define, gl_once): New macros.
83154         * lib/lock.c (fresh_once): New variable.
83155         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83156         functions.
83157
83158 2005-07-16  Simon Josefsson  <jas@extundo.com>
83159
83160         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83161         workaround, suggested by Bruno.
83162
83163 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * modules/xalloc (Depends-on): Add xalloc-die.
83166         * modules/xvasprintf (Depends-on): Add xalloc-die.
83167
83168 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83169
83170         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83171         with a minor change.
83172
83173 2005-07-15  Bruno Haible  <bruno@clisp.org>
83174
83175         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83176         When using lib/poll.c, define poll as rpl_poll.
83177
83178 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83179
83180         * modules/argp (Depends-on): Remove unlocked-io.
83181
83182 2005-07-14  Derek Price  <derek@ximbiot.com>
83183
83184         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83185         for glob symlink bug.
83186
83187 2005-07-14  Bruno Haible  <bruno@clisp.org>
83188
83189         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83190         Instead, test for *_unlocked function declarations directly.
83191
83192 2005-07-11  Simon Josefsson  <jas@extundo.com>
83193
83194         * modules/size_max: New file.
83195
83196         * modules/xsize: Depend on size_max module for size_max.m4.
83197
83198 2005-07-11  Simon Josefsson  <jas@extundo.com>
83199
83200         * lib/size_max.h: New file.
83201
83202 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83205         copyright symbol and the year.
83206         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83207         (version_etc_va): Use parameterized copyright notice.
83208         Reword to conform to the current GNU coding standards.
83209
83210 2005-07-11  Karl Berry  <karl@gnu.org>
83211
83212         * doc/gnulib.texi (Quoting): new node.
83213         (Initial import): more info, from Patrice.
83214
83215 2005-07-11  Bruno Haible  <bruno@clisp.org>
83216
83217         * gnulib-tool (func_usage): Document option --avoid.
83218         (Command line options): Handle --avoid.
83219         (func_acceptable): New function.
83220         (func_modules_transitive_closure): Use it.
83221
83222 2005-07-11  Bruno Haible  <bruno@clisp.org>
83223
83224         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83225         Reported by Jim Meyering.
83226
83227 2005-07-10  Bruno Haible  <bruno@clisp.org>
83228
83229         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83230         Needed when size_t is smaller than 'unsigned int'.
83231         Reported by Paul Eggert.
83232
83233 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83234
83235         * modules/argp (Depends-on): Add unlocked-io
83236
83237 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83238
83239         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83240         block of defines.
83241
83242 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83243
83244         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83245         fix now.
83246
83247 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83248         and Paul Eggert  <eggert@cs.ucla.edu>
83249
83250         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83251         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83252
83253 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83254
83255         * modules/regex (Files): Add lib/regex_internal.c,
83256         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83257         (Depends-on): Add extensions.
83258         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83259
83260 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83261
83262         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83263         pathconf.
83264         * m4/same.m4 (gl_SAME): Likewise.
83265         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83266
83267         * m4/regex.m4: Adjust to new libc regex implementation.
83268         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83269         all the .c and .h parts of (the new) regex.
83270         Quote the m4 stuff better.
83271         Check for RE_ICASE bug of old gnulib.
83272         Check for REG_STARTEND of recent libc.
83273         Rename local variables from jm_* to gl_*.
83274         Quote operand of "test -f".
83275         Say "recent enough" version of libc, not "version 2".
83276         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83277         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83278         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83279         Remove check for btowc, isascii.
83280         Require AM_LANGINFO_CODESET.
83281
83282 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * lib/regex.c, regex.h: Sync from libc.
83285         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83286         * lib/regexec.c:
83287         New files, synced from libc, except that regex_internal.h
83288         currently has a small porting fix.
83289
83290 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83291
83292         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83293         regex_internal.c, regexec.c.
83294         Add regex_internal.h too, but as a comment, since the libc version
83295         is currently broken in gnulib mode.
83296
83297 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83298
83299         Support programs like Emacs that use gnulib but not gettext.
83300         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83301         * modules/gettext-h: New file.
83302         * modules/gettext (Files): Remove lib/gettext.h.
83303         (Depends-on): Add gettext-h.
83304         (Makefile.am): Remove lib_SOURCES.
83305         * modules/argmatch, modules/c-stack, modules/closeout:
83306         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83307         * modules/execute, modules/file-type, modules/getaddrinfo:
83308         * modules/getopt, modules/human, modules/javacomp:
83309         * modules/javaexec, modules/mkdir-p, modules/obstack:
83310         * modules/openat, modules/pagealign_alloc, modules/pipe:
83311         * modules/quotearg, modules/regex, modules/rpmatch:
83312         * modules/unicodeio, modules/userspec, modules/version-etc:
83313         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83314         * modules/xsetenv:
83315         Depend on gettext-h, not gettext.
83316
83317 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83318
83319         * gnulib-tool (func_import): Add support for 'public domain' license.
83320         * modules/alloca, modules/atexit, modules/memmove:
83321         Now public domain, not GPL.
83322         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83323         * modules/realloc, modules/strerror, modules/strtod:
83324         Now LGPL, not GPL.
83325
83326 2005-07-05  Bruno Haible  <bruno@clisp.org>
83327
83328         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83329         autoconf CVS. Needed for mingw.
83330
83331 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83332
83333         Remove the dependency of the strftime module on the tzset module.
83334         * modules/strftime (Depends-on): Remove dependency on tzset.
83335
83336 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83337
83338         Remove the dependency of the strftime module on the tzset module.
83339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83340         gl_FUNC_TZSET_CLOBBER.
83341
83342 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83343
83344         Remove the dependency of the strftime module on the tzset module.
83345         * lib/strftime.c (my_strftime)
83346         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83347         Copy the input structure, to work around some of the bug with
83348         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83349         Solaris releases, you should also use the tzset module, but we won't
83350         require it as a dependency any more since we don't want LGPLed code
83351         to depend on GPLed code.
83352
83353 2005-07-02  Jim Meyering  <jim@meyering.net>
83354
83355         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83356         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83357         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83358         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83359
83360 2005-07-02  Jim Meyering  <jim@meyering.net>
83361
83362         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83363
83364 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83365
83366         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83367         declares only 'struct timespec;' (!).
83368
83369 2005-07-01  Jim Meyering  <jim@meyering.net>
83370
83371         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83372         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83373         * lib/save-cwd.c, tempname.c:
83374         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83375         and don't include <sys/file.h>).
83376
83377 2005-06-29  Jim Meyering  <jim@meyering.net>
83378
83379         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83380         type name.  Use the variable name instead.
83381         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83382         Likewise.
83383
83384 2005-06-28  Simon Josefsson  <jas@extundo.com>
83385
83386         * modules/check-version (Files): Add check-version.m4.
83387
83388 2005-06-28  Simon Josefsson  <jas@extundo.com>
83389
83390         * m4/check-version.m4: New file, suggested by Jim Meyering
83391         <jim@meyering.net>.
83392
83393 2005-06-28  Simon Josefsson  <jas@extundo.com>
83394
83395         * lib/check-version.h, lib/check-version.c: New files.
83396
83397 2005-06-28  Simon Josefsson  <jas@extundo.com>
83398
83399         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83400         collision with global variable.  Better indentation.  Don't
83401         increment buffer pointer beyond buffer end.  Based on comments
83402         from Paul Eggert <eggert@cs.ucla.edu>.
83403
83404         * lib/base64.h: Indent.
83405
83406 2005-06-28  Simon Josefsson  <jas@extundo.com>
83407
83408         * doc/gnulib.texi (Library version handling): New section.
83409
83410 2005-06-28  Jim Meyering  <jim@meyering.net>
83411
83412         * check-module (find_included_lib_files): Hard-code another
83413         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83414         but modules/fts-lgpl (correctly) does not list those files.
83415
83416         * modules/canonicalize (Files): Add lib/pathmax.h.
83417
83418 2005-06-25  Simon Josefsson  <jas@extundo.com>
83419
83420         * modules/check-version: New file.
83421
83422 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83423
83424         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83425         initializer of struct addrinfo, as an indication that we don't
83426         care how many members the structure has.
83427
83428 2005-06-24  Derek Price  <derek@ximbiot.com>
83429         and Bruno Haible  <bruno@clisp.org>
83430
83431         Remove stat module & update lstat.
83432         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83433         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83434         * m4/stat.m4: Remove this file.
83435
83436 2005-06-24  Derek Price  <derek@ximbiot.com>
83437         and Bruno Haible  <bruno@clisp.org>
83438
83439         Remove stat module & update lstat.
83440         * lib/stat.c: Remove this file...
83441         (slash_aware_lstat): ...moving this content and its support...
83442         * lib/lstat.c (rpl_lstat): ...into here.
83443         * lib/lstat.h: New file.
83444
83445 2005-06-24  Derek Price  <derek@ximbiot.com>
83446         and Bruno Haible  <bruno@clisp.org>
83447
83448         Remove stat module & update lstat.
83449         * config/srclist.txt (libc sources): Remove stat.
83450
83451 2005-06-24  Derek Price  <derek@ximbiot.com>
83452         and Bruno Haible  <bruno@clisp.org>
83453
83454         Remove stat module & update lstat.
83455         * MODULES.html.sh (stat): Remove.
83456         * MODULES.html: Regenerated.
83457         * modules/lstat (Description): Correct function name.
83458         (Files): Add "lstat.h".
83459         (Depends-on): Remove stat, add xalloc, stat-macros.
83460         * modules/stat: Remove this file.
83461         (Include): Add "lstat.h", remove <sys/stat.h>.
83462
83463 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83464
83465         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83466         (ranged_convert): Don't save conversion in a temporary struct.
83467         This causes a warning with GCC 4.0.0, and anyway in the typical
83468         case it's not worth the extra 100 bytes or so of code.
83469         (ranged_convert, __mktime_internal): When calling a function via a
83470         pointer P, use P () rather than (*P) (), as we now assume C89 or
83471         better.
83472
83473 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83474
83475         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83476         "who -r" failed to give output.  Problem reported by Tim Waugh.
83477
83478         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83479         (xcalloc): Use it to avoid needless tests.
83480         Problem reported by Jim Meyering.
83481
83482 2005-06-20  Derek Price  <derek@ximbiot.com>
83483
83484         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83485         unnecessary for Autoconfs > 2.59c.
83486
83487 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83488
83489         * lib/argp.h (__option_is_short): Check upper limit of
83490         __key. Isprint() requires its argument to have the value
83491         of an unsigned char or EOF.
83492
83493 2005-06-16  Jim Meyering  <jim@meyering.net>
83494
83495         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83496         when either N or S is zero.
83497
83498 2005-06-16  Derek Price  <derek@ximbiot.com>
83499
83500         * m4/bison.m4: Declare YACC & YFLAGS precious.
83501
83502 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83505         multibyte string or pattern, fall back on unibyte matching.
83506         Problem reported by James Youngman.
83507
83508 2005-06-08  Bruno Haible  <bruno@clisp.org>
83509
83510         * modules/csharpcomp: New file.
83511         * MODULES.html.sh (C#): Add csharpcomp.
83512
83513 2005-06-08  Bruno Haible  <bruno@clisp.org>
83514
83515         * m4/csharpcomp.m4: New file, from GNU gettext.
83516
83517 2005-06-08  Bruno Haible  <bruno@clisp.org>
83518
83519         * lib/csharpcomp.h: New file, from GNU gettext.
83520         * lib/csharpcomp.c: New file, from GNU gettext.
83521         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83522
83523 2005-06-08  Bruno Haible  <bruno@clisp.org>
83524
83525         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83526         warning on mingw.
83527
83528 2005-06-07  Derek Price  <derek@ximbiot.com>
83529
83530         Sync from CVS.
83531         * lib/glob_.h: Indent nested #ifdef.
83532
83533 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         Sync from coreutils.
83536         Use "file name" when talking about file names, instead of "filename"
83537         or "path", as per the GNU coding standards.
83538         * lib/mkdir-p.c: Renamed from makepath.c.
83539         (make_dir_parents): Renamed from make_path.  All callers changed.
83540         * lib/mkdir-p.h: Likewise.  All includers changed.
83541         * lib/filenamecat.c: Renamed from path-concat.c.
83542         (file_name_concat): Renamed from path_concat.  All callers changed.
83543         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83544         * lib/filenamecat.h: Likewise.  All includers changed.
83545         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83546         in comments or local variable names.
83547         * lib/basename.c: Likewise.
83548         * lib/canonicalize.c, canonicalize.h: Likewise.
83549         * lib/dirname.c, dirname.h: Likewise.
83550         * lib/euidaccess.c: Likewise.
83551         * lib/exclude.c: Likewise
83552         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83553         * lib/fsusage.c, fsuage.h: Likewise.
83554         * lib/fts.c, fts_.h: Likewise.
83555         * lib/getcwd.c: Likewise.
83556         * lib/getloadavg.c: Likewise.
83557         * lib/mkstemp.c: Likewise.
83558         * lib/mountlist.c, mountlist.h: Likewise.
83559         * lib/openat.c, openat.h: Likewise.
83560         * lib/readlink-stub.c: Likewise.
83561         * lib/readutmp.c, readutmp.h: Likewise.
83562         * lib/rename.c: Likewise.
83563         * lib/rmdir.c: Likewise.
83564         * lib/same.c: Likewise.
83565         * lib/savedir.c: Likewise.
83566         * lib/stripslash.c: Likewise.
83567         * lib/tempname.c: Likewise.
83568         * lib/xreadlink.c: Likewise.
83569         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83570         All uses changed.
83571         * lib/exclude.h: Likewise.
83572
83573         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83574         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83575         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83576         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83577         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83578         files have been getting away with it for years (MORE/BSD 4.3
83579         is extinct now).
83580         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83581         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83582
83583         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83584         Define to 256, not 255, as per modern POSIX.
83585
83586 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83587
83588         Sync from coreutils.
83589         Use "file name" when talking about file names, instead of "filename"
83590         or "path", as per the GNU coding standards.
83591         * MODULES.html.sh: mkdir-p renamed from makepath.
83592         filenamecat renamed from path-concat.
83593         * modules/filenamecat: Renamed from modules/path-concat.
83594         (Files): filenamecat.h and filenamecat.c renamed from
83595         path-concat.h and path-concat.c.
83596         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83597         (Include): filenamecat.h, not path-concat.h.
83598         * modules/mkdir-p: Renamed from modules/makepath.
83599         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83600         makepath.c.
83601         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83602         (Include): mkdir-p.h, not makepath.h.
83603
83604 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         Sync from coreutils.
83607         * m4/mkdir-p.m4: Renamed from makepath.m4.
83608         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83609         Rename files from makepath.c to mkdir-p.c, and from
83610         makepath.h to mkdir-p.h.
83611         * m4/filenamecat.m4: Renamed from path-concat.m4.
83612         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83613         Rename files from path-concat.c to filenamecat.c,
83614         and from path-concat.h to filenamecat.h.
83615         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83616         "file name" in local variables or comments.
83617         * m4/rename.m4: Likewise.
83618
83619 2005-06-01  Bruno Haible  <bruno@clisp.org>
83620
83621         * modules/csharpexec: New file.
83622         * MODULES.html.sh (C#): New section.
83623
83624 2005-06-01  Bruno Haible  <bruno@clisp.org>
83625
83626         * m4/csharp.m4: New file, from GNU gettext.
83627         * m4/csharpexec.m4: New file, from GNU gettext.
83628
83629 2005-06-01  Bruno Haible  <bruno@clisp.org>
83630
83631         * lib/csharpexec.h: New file, from GNU gettext.
83632         * lib/csharpexec.c: New file, from GNU gettext.
83633         * lib/csharpexec.sh.in: New file, from GNU gettext.
83634
83635 2005-05-31  Derek Price  <derek@ximbiot.com>
83636             Paul Eggert  <eggert@cs.ucla.edu>
83637
83638         Sync from cvs.
83639         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83640
83641 2005-05-31  Derek Price  <derek@ximbiot.com>
83642             Paul Eggert  <eggert@cs.ucla.edu>
83643
83644         Sync from cvs.
83645         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83646
83647 2005-05-29  Derek Price  <derek@ximbiot.com>
83648
83649         * config/srclist.txt (glob_.h, glob.c): Add these files.
83650
83651 2005-05-29  Derek Price  <derek@ximbiot.com>
83652
83653         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83654         * modules/glob: New file.
83655         * modules/getlogin_r: Add link to POSIX spec in description.
83656
83657 2005-05-29  Derek Price  <derek@ximbiot.com>
83658             Paul Eggert  <eggert@cs.ucla.edu>
83659
83660         * m4/glob.m4: New file.
83661
83662 2005-05-29  Derek Price  <derek@ximbiot.com>
83663             Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * lib/glob_.h, lib/glob.c: New files.
83666
83667 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83670         * modules/fts-lgpl (Depends-on): Remove gettext.
83671
83672 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83673
83674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83675         and don't require gt_INTTYPES_PRI.
83676
83677 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83678
83679         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83680
83681         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83682         the configuration hassle isn't worth it.
83683         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83684         (LONGEST_MODIFIER, PRIuMAX): Remove.
83685
83686 2005-05-27  Bruno Haible  <bruno@clisp.org>
83687
83688         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83689
83690 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83693         _POSIX_PTHREAD_SEMANTICS for Solaris.
83694
83695 2005-05-25  Derek Price  <derek@ximbiot.com>
83696
83697         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83698
83699 2005-05-25  Derek Price  <derek@ximbiot.com>
83700             Paul Eggert  <eggert@cs.ucla.edu>
83701
83702         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83703         * lib/getlogin_r.c, getlogin_r.h: New files.
83704
83705 2005-05-25  Bruno Haible  <bruno@clisp.org>
83706             Derek Price  <derek@ximbiot.com>
83707
83708         * lib/getlogin_r.h: Simplify API documentation.
83709
83710 2005-05-23  Derek Price  <derek@ximbiot.com>
83711
83712         * modules/minmax (Files): Add m4/minmax.m4.
83713         (configure.ac): Add gl_MINMAX.
83714
83715 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83718         so that unistd-safer.h (GPL'ed code) need not be included.
83719
83720 2005-05-22  Bruno Haible  <bruno@clisp.org>
83721
83722         * m4/minmax.m4: New file.
83723         Based on a patch by Derek Price <derek@ximbiot.com>.
83724
83725 2005-05-22  Bruno Haible  <bruno@clisp.org>
83726
83727         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83728         (INT64_MIN): Fix definition.
83729         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83730
83731         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83732         NEED_SIGNED_INT_TYPES.
83733
83734         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83735         HAVE_SYSTEM_INTTYPES.
83736
83737 2005-05-22  Bruno Haible  <bruno@clisp.org>
83738
83739         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83740         Also include <sys/param.h> if it defines MIN, MAX.
83741         Based on a patch by Derek Price <derek@ximbiot.com>.
83742
83743 2005-05-21  Jim Meyering  <jim@meyering.net>
83744
83745         * modules/fts (Files): Add m4/inttypes-pri.m4.
83746         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83747
83748 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         New fts module.
83751         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83752         (setup_dir, free_dir): New functions.
83753         (enter_dir, leave_dir): Define trivial
83754         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83755         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83756         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83757         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83758         Move to fts-cycle.c.
83759         (fts_open): Use setup_dir.
83760         (fts_close): Use free_dir.
83761         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83762         This adds a label and some gotos, but the alternatives were messier.
83763         Check for memory allocation failure when entering a dir.
83764         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83765         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83766         (FTS): New member fts_cycle, that is a union that contains the
83767         old active_dir_ht and cycle_state.  All uses changed to mention
83768         fts_cycle.ht and fts_cycle.state.
83769         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83770         fts.c, with the following changes:
83771         (setup_dir, free_dir): New functions.
83772         (enter_dir): Now returns bool.  Return true if successful, false
83773         if memory exhausted.  All callers changed.
83774         Do not bother partly cleaning up on
83775         memory allocation failure; that is free_dir's job.
83776         However, free ad if hash_insert fails, to avoid memory leak.
83777         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83778         fts->fts_options to see which union member to use.
83779
83780 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83783         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83784
83785 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83788
83789 2005-05-20  Jim Meyering  <jim@meyering.net>
83790
83791         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83792         Now a macro, to pacify GCC.
83793
83794 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83795
83796         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83797         of -1.
83798
83799 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83800
83801         * lib/chown.c (rpl_chown): Return -1 on failure.
83802
83803 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83806         Don't check for stddef.h.
83807         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83808         don't use its results.
83809         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83810         since we include them unconditionally.  Don't require
83811         AM_STDBOOL_H, since stdbool is a prerequisite.
83812         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83813         since we assume C89 or better.
83814         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83815         as we don't use their results.
83816         Don't check for fchdir, memmove, memset, strrchr, as we use
83817         them unconditionally.
83818         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83819         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83820
83821 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83824         Include <stddef.h> unconditionally, since we assume C89 now.
83825         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83826         * lib/fts.c: Include fts_.h first, to check interface.
83827         Do not include intprops.h; no longer needed.
83828         Include cycle-check.h and hash.h, since fts_.h no longer does.
83829         Remove unnecessary casts of closedir to void.
83830         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83831         decide whether to decrement nlinks.
83832         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83833         (FTS): Use struct hash_table * instead of Hash_table, so that
83834         we no longer need to include hash.h here.
83835
83836 2005-05-18  Jim Meyering  <jim@meyering.net>
83837
83838         * modules/dirfd (License): Change to LGPL.  Most of the code
83839         is already in the public domain.
83840
83841 2005-05-18  Jim Meyering  <jim@meyering.net>
83842
83843         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83844         Reported by Yoann Vandoorselaere.
83845
83846 2005-05-17  Jim Meyering  <jim@meyering.net>
83847
83848         * m4/fts.m4: New file, from coreutils.
83849
83850 2005-05-17  Jim Meyering  <jim@meyering.net>
83851
83852         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83853
83854 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         Sync from coreutils.
83857         * m4/unlinkdir.m4: New file.
83858
83859 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83860
83861         Sync from coreutils.
83862         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83863         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83864         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83865         White space changes only.
83866         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83867         special.
83868         * lib/yesno.c: Include getline.h, not ctype.h.
83869         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83870         Use getline to remove arbitrary restriction on response length.
83871
83872 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83873
83874         * config/srclist-update: Spell out "Street" in FSF postal
83875         mail address; this is the style the FSF seems to prefer.
83876
83877         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83878         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83879         this updates FSF postal mail address.
83880
83881         Sync from coreutils.
83882         * modules/unlinkdir: New file.
83883         * modules/yesno (Depends-on): Add getline.
83884         * MODULES.html.sh (File system functions): Add unlinkdir.
83885
83886 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83889         lib/strsep.h:
83890         Change the initial comment to refer to GPL, not LGPL.
83891         gnulib-tool will change it to LGPL as needed.
83892
83893         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83894         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83895         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83896         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83897         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83898         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83899         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83900         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83901         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83902         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83903         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83904         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83905         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83906         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83907         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83908         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83909         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83910         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83911         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83912         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83913         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83914         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83915         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83916         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83917         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83918         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83919         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83920         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83921         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83922         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83923         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83924         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83925         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83926         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83927         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83928         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83929         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83930         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83931         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83932         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83933         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83934         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83935         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83936         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83937         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83938         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83939         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83940         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83941         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83942         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83943         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83944         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83945         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83946         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83947         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83948         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83949         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83950         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83951         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83952         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83953         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83954         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83955         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83956         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83957         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83958         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83959         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83960         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83961         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83962         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83963         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83964         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83965         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83966         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83967         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83968         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83969         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83970         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83971         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83972         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83973         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83974         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83975         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83976         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83977         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83978         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83979         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83980         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83981         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83982         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83983         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83984         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83985         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83986         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83987         lib/yesno.c, lib/yesno.h:
83988         Update FSF postal mail address.
83989
83990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83993         tests/test-memmem.c, tests/test-stpncpy.c:
83994         Update FSF postal mail address.
83995
83996 2005-05-13  Bruno Haible  <bruno@clisp.org>
83997
83998         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83999         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84000         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84001         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84002         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84003         Add support for 64-bit integers in the MSVC compiler.
84004
84005 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84006
84007         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84008
84009 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84010
84011         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84012
84013 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         * doc/getdate.texi (General date syntax): Don't say that date
84016         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84017         Problem reported by Nic Ferrier.
84018
84019 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84020
84021         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84022         specified in ai_socktype. Fix invalid ai_protocol
84023         check. ai_protocol is usually set to 0 or depending on
84024         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84025         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84026         ai_socktype / ai_protocol in the returned addrinfo structure.
84027
84028 2005-05-10  Simon Josefsson  <jas@extundo.com>
84029
84030         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84031         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84032
84033 2005-05-10  Karl Berry  <karl@gnu.org>
84034
84035         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84036         (from http://www.gnu.org/licenses).
84037         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84038         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84039         fdl.texi suffices.
84040
84041 2005-05-10  Karl Berry  <karl@gnu.org>
84042
84043         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84044         (COPYING.DOC): remove.
84045
84046         * config/srclist-update: new FSF address.
84047
84048 2005-05-10  Derek Price  <derek@ximbiot.com>
84049
84050         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84051         possible.
84052
84053 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84054             Bruno Haible  <bruno@clisp.org>
84055
84056         * modules/inet_ntop: New file.
84057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84058         inet_ntop.
84059
84060 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84061             Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/inet_ntop.m4: New file.
84064
84065 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84066             Bruno Haible  <bruno@clisp.org>
84067
84068         * lib/inet_ntop.h: New file.
84069         * lib/inet_ntop.c: New file, from glibc with modifications.
84070
84071 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         * modules/time_r (License): Change to LGPL.
84074         * modules/extensions (License): Change to LGPL.  Actually,
84075         the license is more permissive than that, but currently gnulib-tool
84076         doesn't know how to handle more-permissive licenses.
84077
84078         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84079         Problem reported by Dave Love.
84080
84081 2005-05-08  Jim Meyering  <jim@meyering.net>
84082
84083         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84084         blank.
84085
84086 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84087
84088         * modules/argmatch (Depends-on): Add stdbool.
84089         * modules/backupfile (Depends-on): Likewise.
84090         * modules/chdir-long (Depends-on): Likewise.
84091         * modules/closeout (Depends-on): Likewise.
84092         * modules/cycle-check (Depends-on): Likewise.
84093         * modules/dirname (Depends-on): Likewise.
84094         * modules/fnmatch (Depends-on): Likewise.
84095         * modules/fsusage (Depends-on): Likewise.
84096         * modules/fwriteerror (Depends-on): Likewise.
84097         * modules/getcwd (Depends-on): Likewise.
84098         * modules/getloadavg (Depends-on): Likewise.
84099         * modules/hard-locale (Depends-on): Likewise.
84100         * modules/makepath (Depends-on): Likewise.
84101         * modules/mountlist (Depends-on): Likewise.
84102         * modules/nanosleep (Depends-on): Likewise.
84103         * modules/posixtm (Depends-on): Likewise.
84104         * modules/quotearg (Depends-on): Likewise.
84105         * modules/readtokens (Depends-on): Likewise.
84106         * modules/readtokens0 (Depends-on): Likewise.
84107         * modules/readutmp (Depends-on): Likewise.
84108         * modules/save-cwd (Depends-on): Likewise.
84109         * modules/strftime (Depends-on): Likewise.
84110         * modules/userspec (Depends-on): Likewise.
84111         * modules/utimecmp (Depends-on): Likewise.
84112         * modules/xgetcwd (Depends-on): Likewise.
84113         * modules/xnanosleep (Depends-on): Likewise.
84114         * modules/xstrtod (Depends-on): Likewise.
84115         * modules/yesno (Depends-on): Likewise.
84116
84117 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84118
84119         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84120         needless checks.
84121
84122 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         Merge from coreutils.  Among other things,
84125         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84126         * lib/fd-safer.c: New file.
84127         * lib/fcntl-safer.h, open-safer.c: Remove.
84128         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84129         * lib/dup-safer.c: Include unistd-safer.h first.
84130         Don't include errno.h.
84131         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84132         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84133         * lib/file-type.c: Rely on file-type.h change.
84134         * lib/getloadavg.c: Include unistd-safer.h.
84135         (getloadavg): Use safer open.
84136         * lib/getusershell.c: Include "stdio-safer.h".
84137         (getusershell): Use safer fopen.
84138         * lib/long-options.c (long_options): Use NULL rather than 0.
84139         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84140         'free'.
84141         * lib/modechange.c: Likewise.
84142         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84143         (MODE_DONE): New constant.
84144         (struct mode_change): Remove 'next' member.
84145         (make_node_op_equals): New function; like the old one of the
84146         same name, except it allocates an array.
84147         (mode_compile, mode_create_from_ref): Use it.
84148         (mode_compile): Allocate result as an array, not a linked list.
84149         Parse octal string ourself, so that we catch mistakes like "+0".
84150         (mode_adjust): Arg is an array, not a linked list.
84151         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84152         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84153         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84154         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84155         Remove.  This is now stat-macros.h's job.
84156         (talloc): Remove.  All callers replaced by xalloc, so that
84157         our invokers don't have to worry about reporting memory failures.
84158         (make_node_op_equals): Remove.
84159         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84160         New constants.
84161         (struct mode_change): Moved here from modechange.h.
84162         (mode_append_entry): Remove.
84163         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84164         apps to have incorrect behavior.  Use simpler algorithm for head
84165         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84166         Detect more invalid usages rather than having somewhat-random behavior.
84167         Don't insert an "a=" action, as that leads to incorrect behavior.
84168         (mode_compile, mode_create_from_ref): Return NULL on error instead
84169         of an enum, since now there's only one way to have an error.  All
84170         callers changed.
84171         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84172         at the correct time.  Simplify calculation of "+u" and its ilk.
84173         Don't mishandle "+X".
84174         (mode_free): Remove "register" and localize decls.
84175         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84176         (struct mode_change): Move to modechange.c; callers don't
84177         need to see this stuff.
84178         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84179         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84180         (mode_change, mode_adjust): Reflect the new signatures noted above.
84181         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84182         that might redefine system include files.
84183         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84184         (my_usleep): Use NULL rather than (void *) 0.
84185         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84186         Use siginterrupt to specify that system calls should be interrupted.
84187         (rpl_nanosleep): Move initialization of suspended closer to call of
84188         my_usleep.
84189         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84190         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84191         (desirable_utmp_entry): New function.
84192         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84193         using x2nrealloc, to simplify logic.
84194         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84195         size calculation.  Do not assume utmp file is a regular file.
84196         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84197         (READ_UTMP_CHECK_PIDS): New constant.
84198         * lib/save-cwd.c: Include unistd-safer.h.
84199         (save_cwd): Use fd_safer.
84200         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84201         [!_LIBC] Include "stat-macros.h" instead.
84202         * lib/unistd-safer.h (fd_safer): New decl.
84203
84204 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84205
84206         * modules/getloadavg (Depends-on): Add unistd-safer.
84207         * modules/getusershell (Depends-on): Add stdio-safer.
84208         * modules/lstat (Depends-on): Remove xalloc.
84209         * modules/mkstemp (Depends-on): Add stat-macros.
84210         * modules/modechange (Depends-on): Remove xstrtol.
84211         Add stat-macros, xalloc.
84212         * modules/save-cwd (Depends-on): Add unistd-safer.
84213         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84214         * modules/unistd-safer (Files): Add lib/fd-safer.c
84215         (Makefile.am): Remove lib_SOURCES.
84216
84217         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84218         Remove fcntl-safer; unistd-safer supersedes it.
84219
84220 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84223         AC_HEADER_STAT.
84224         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84225         (gl_PREREQ_CHOWN): Remove.
84226         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84227         it.  Don't require AC_HEADER_STAT.
84228         (gl_PREREQ_LSTAT): Remove.
84229         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84230         Don't require AC_HEADER_STAT.
84231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84232         (gl_PREREQ_RMDIR): Remove.
84233         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84234         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84235         the stat-macros module a prerequisite.
84236         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84237         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84238         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84239         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84240         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84241         variable names.
84242         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84243         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84244         variable prefixes.
84245         * m4/fcntl-safer.m4: Remove.
84246         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84247         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84248         Invoke gl_PREREQ_FD_SAFER.
84249         (gl_PREREQ_FD_SAFER): New macro.
84250         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84251         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84252         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84253         Remove duplicate call to AC_LIBOBJ(readutmp).
84254         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84255
84256         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84257         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84258
84259 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * MODULES.html.sh (Misc): Add byteswap.
84262
84263 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84264
84265         * modules/getcwd (Depends-on): Add extensions.
84266         * modules/openat (Depends-on): Likewise.
84267
84268 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84269
84270         * modules/byteswap: New file.
84271
84272 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84273
84274         * m4/byteswap.m4: New file.
84275
84276 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84277
84278         * lib/byteswap_.h: New file.
84279
84280 2005-04-25  Karl Berry  <karl@gnu.org>
84281
84282         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84283
84284 2005-04-25  Albert Chin  <china@thewrittenword.com>
84285
84286         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84287         Toolkit C bug.
84288
84289 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84290
84291         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84292         (func_ln_if_changed): Remove forcibly for no error message
84293         in case file does not exist.
84294
84295 2005-04-19  Simon Josefsson  <jas@extundo.com>
84296
84297         * gnulib-tool (Options): Make --symlink mean --symbolic.
84298
84299 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84300
84301         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84302
84303 2005-04-16  Simon Josefsson  <jas@extundo.com>
84304
84305         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84306
84307 2005-04-15  Simon Josefsson  <jas@extundo.com>
84308
84309         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84310
84311 2005-04-15  Simon Josefsson  <jas@extundo.com>
84312
84313         * gnulib-tool: Rename --symlink to --symbolic.
84314
84315 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84316
84317         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84318         symbolic links to files instead of copying/moving.  Add --aux-dir,
84319         specifying directory relative --dir where auxiliary build tools
84320         are placed.
84321
84322 2005-04-14  Bruno Haible  <bruno@clisp.org>
84323
84324         * modules/allocsa (License): Change to LGPL.
84325         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84326
84327 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84330         that "UTC +1 second" continues to work.  Problem reported
84331         by Dmitry V. Levin.
84332         (relunit_snumber): New rule.
84333         (relunit): Use it.
84334
84335 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * lib/getdate.y (universal_time_zone_table): New constant.
84338         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84339         universal_time_zone_table.
84340         (lookup_zone): Prefer universal_time_zone_table to
84341         local_time_zone_table, so that "GMT" time stamps are allowed in
84342         London during the summer.  Problem reported by Ian Abbott.
84343
84344 2005-04-12  Jim Meyering  <jim@meyering.net>
84345
84346         * lib/human.c (humblock): Set *options even when returning due to
84347         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84348         warning from gcc-4.
84349
84350 2005-04-09  Jim Meyering  <jim@meyering.net>
84351
84352         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84353         -Wuninitialized: initialize tm0.tm_year.
84354
84355 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84358         count, since there's no maximum.  All uses changed.
84359         Add member dsts_seen.
84360         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84361         not being INT_MAX.
84362         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84363         Use pc_rels_seen to decide whether a date is absolute.
84364
84365         * lib/getdate.y (number): Don't overwrite year.
84366         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84367         check.
84368
84369 2005-04-02  Simon Josefsson  <jas@extundo.com>
84370
84371         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84372         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84373
84374 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84375
84376         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84377         where no absolute path name can be longer than PATH_MAX.
84378
84379 2005-03-27  Jim Meyering  <jim@meyering.net>
84380
84381         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84382
84383 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84386         "one's complement" -> "ones' complement" in comment, as per Knuth.
84387         "value of type" -> "type or expression" in comment.
84388         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84389
84390 2005-03-26  Jim Meyering  <jim@meyering.net>
84391
84392         Comment nits.
84393         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84394         Correct typos: s/or/of/.
84395
84396 2005-03-26  Jim Meyering  <jim@meyering.net>
84397
84398         * modules/check-include-files: Move to ../ and rename to...
84399         * check-module: ...this.
84400
84401 2005-03-25  Jim Meyering  <jim@meyering.net>
84402
84403         * modules/xvasprintf (Files): Add xalloc.h.
84404
84405 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84406
84407         * modules/gettext (Files): config/config.rpath ->
84408         build-aux/config.rpath
84409         * modules/iconv (Files): Likewise.
84410         Problem reported by Oskar Liljeblad.
84411
84412 2005-03-23  Jim Meyering  <jim@meyering.net>
84413
84414         * modules/check-include-files: New script to check for
84415         missing dependencies, multiple includes, etc.
84416
84417         * modules/c-strtold (Depends-on): Add xalloc.
84418         * modules/c-strtod (Depends-on): Add xalloc.
84419         * modules/hash (Depends-on): Add xalloc.
84420         (Files): Remove lib/xalloc.h.
84421
84422         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84423         * modules/userspec (Files): Add lib/inttostr.h.
84424
84425 2005-03-23  Jim Meyering  <jim@meyering.net>
84426
84427         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84428
84429 2005-03-22  Jim Meyering  <jim@meyering.net>
84430
84431         * modules/stat-macros: New module.
84432         * modules/canonicalize, modules/euidaccess, modules/file-type,
84433         * modules/filemode, modules/lchown, modules/makepath,
84434         * modules/rmdir, modules/stat: Depend on new stat-macros module
84435         rather than listing lib/stat-macros.h manually.
84436         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84437
84438 2005-03-22  Jim Meyering  <jim@meyering.net>
84439
84440         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84441
84442 2005-03-22  Bruno Haible  <bruno@clisp.org>
84443
84444         * config/srclist.txt: Replace target directory 'config' with
84445         'build-aux'.
84446         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84447         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84448         ../build-aux/.
84449
84450 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84451
84452         * modules/chdir-long (Depends-on): Add mempcpy.
84453
84454         * modules/acl, modules/backupfile, modules/c-strtod,
84455         modules/c-strtold, modules/canon-host, modules/canonicalize,
84456         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84457         modules/exclude, modules/exitfail, modules/file-type,
84458         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84459         modules/getdate, modules/getline, modules/getpagesize,
84460         modules/getpass, modules/getugroups, modules/group-member,
84461         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84462         modules/inttostr, modules/long-options, modules/makepath,
84463         modules/md5, modules/memcasecmp, modules/memcoll,
84464         modules/modechange, modules/mountlist, modules/path-concat,
84465         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84466         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84467         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84468         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84469         modules/strftime, modules/strndup, modules/strverscmp,
84470         modules/timespec, modules/unlocked-io, modules/userspec,
84471         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84472         modules/yesno:
84473         Remove lib_SOURCES line from Makefile.am section, as this is now
84474         done automatically by the corresponding Autoconf macro.
84475
84476 2005-03-21  Jim Meyering  <jim@meyering.net>
84477
84478         Changes imported from coreutils.
84479
84480         * lib/cycle-check.c: Don't include xalloc.h.
84481
84482         * lib/path-concat.c: Don't include assert.h.
84483         (path_concat): Remove assertion that would have triggered
84484         for ABASE starting with more than one slash.
84485         Reported by Andreas Schwab.
84486
84487         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84488         properly when ABASE is an absolute file name.
84489         Correct the description of this function.
84490         Include <assert.h>.
84491         Add an assertion and a test driver.
84492         This fixes a bug introduced on 2004-07-02.
84493         Andreas Schwab reported the resulting failure of cp --parents:
84494         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84495
84496 2005-03-21  Jim Meyering  <jim@meyering.net>
84497
84498         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84499         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84500
84501 2005-03-21  Jim Meyering  <jim@meyering.net>
84502         and  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84505         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84506         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84507         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84508         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84509         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84510         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84511         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84512         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84513         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84514         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84515         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84516         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84517         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84518         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84519         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84520         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84521         for these modules.
84522
84523 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84524
84525         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84526         (which shouldn't happen), generate nothing instead of returning 0
84527         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84528
84529 2005-03-16  Bruno Haible  <bruno@clisp.org>
84530
84531         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84532         HAVE_LONGLONG_64BIT.
84533
84534 2005-03-16  Bruno Haible  <bruno@clisp.org>
84535
84536         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84537         HAVE_LONGLONG_64BIT.
84538
84539 2005-03-16  Bruno Haible  <bruno@clisp.org>
84540
84541         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84542         HAVE_LONGLONG_64BIT.
84543
84544 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84547         reliably distinguish strftime failure from empty output on POSIX
84548         hosts.
84549
84550 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84553         (iconv_string): Don't guess a size-zero buffer, as that might cause
84554         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84555         result would be 'too large', where 'too large' is (heuristically)
84556         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84557         overflow concerns.  This will prevent some unwanted malloc failures
84558         when the inputs are very large.
84559
84560 2005-03-15  Karl Berry  <karl@gnu.org>
84561
84562         * config/srclist.txt (config.rpath): from gettext.
84563         * config/config.rpath: update.
84564
84565 2005-03-15  Bruno Haible  <bruno@clisp.org>
84566
84567         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84568         to 'negate'.
84569
84570         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84571         variable.
84572
84573         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84574         results.
84575
84576 2005-03-14  Simon Josefsson  <jas@extundo.com>
84577
84578         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84579         <fx@gnu.org>.
84580
84581 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84584         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84585         intprops.h.
84586         * lib/strtol.c: Likewise.
84587
84588 2005-03-14  Jim Meyering  <jim@meyering.net>
84589
84590         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84591         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84592         to be nonzero so that we (and caller) can detect the difference
84593         between a valid zero-length expansion and an error return, even
84594         when the underlying strftime fails before writing anything into
84595         that location.
84596
84597 2005-03-14  Bruno Haible  <bruno@clisp.org>
84598
84599         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84600         Update from GNU gettext 0.14.3.
84601
84602 2005-03-10  Jim Meyering  <jim@meyering.net>
84603
84604         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84605
84606 2005-03-10  Jim Meyering  <jim@meyering.net>
84607
84608         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84609         so that this module works on systems without fchdir.
84610
84611 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         Factor int-properties macros into a single file, except for
84614         glibc-related files.
84615         * lib/intprops.h: New file.
84616         * lib/getloadavg.c: Include it instead of limits.h.
84617         (INT_STRLEN_BOUND): Remove.
84618         * lib/human.c: Include intprops.h.
84619         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84620         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84621         302/1000.
84622         * lib/inttostr.h: Include intprops.h instead of limits.h.
84623         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84624         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84625         for consistency with intprops.h.
84626         (time_t_is_integer, twos_complement_arithmetic): Use them.
84627         * lib/sig2str.h: Include <signal.h>, intprops.h.
84628         (INT_STRLEN_BOUND): Remove.
84629         * lib/strftime.c (TYPE_SIGNED): Remove.
84630         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84631         * lib/strtol.c: Adjust comments to match intprops.h.
84632         * lib/userspec.c: Include intprops.h.
84633         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84634         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84635         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84636         instead of rolling our own expressions.
84637         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84638
84639         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84640         instead of int.
84641         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84642         the right thing even if adding 1900 would overflow.  Similarly
84643         for tm_mon + 1 and tm_yday + 1.
84644         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84645         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84646         (DO_SIGNED_NUMBER): New macro.
84647         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84648
84649 2005-03-07  Bruno Haible  <bruno@clisp.org>
84650
84651         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84652
84653 2005-03-07  Bruno Haible  <bruno@clisp.org>
84654
84655         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84656
84657 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84658
84659         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84660         (func_import): Only replace files via --import when they have actually
84661         changed.
84662
84663 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84664
84665         * m4/mmap-anon.m4: New file.
84666         * m4/pagealign_alloc.m4: New file.
84667
84668 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84669             Bruno Haible  <bruno@clisp.org>
84670
84671         * modules/pagealign_alloc: New file.
84672         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84673
84674 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84675             Bruno Haible  <bruno@clisp.org>
84676
84677         * lib/pagealign_alloc.h: New file.
84678         * lib/pagealign_alloc.c: New file.
84679
84680 2005-03-03  Bruno Haible  <bruno@clisp.org>
84681
84682         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84683         Use an all-permissive copyright notice, recommended by RMS.
84684
84685 2005-03-02  Bruno Haible  <bruno@clisp.org>
84686
84687         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84688         of AIX, the replacement has to be done only after <string.h> is
84689         included, therefore not in config.h. stpncpy.h does the replacement,
84690         and stpncpy.c uses it.
84691
84692 2005-03-02  Bruno Haible  <bruno@clisp.org>
84693
84694         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84695         stpncpy.c uses it.
84696
84697 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84698
84699         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84700         The workaround isn't strictly needed for POSIX conformance, and
84701         it's too much of a pain to configure and maintain.  We'll ask
84702         people to fix their kernels instead.
84703         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84704         (NANOSLEEP_BUG_WORKAROUND): Remove.
84705         (xnanosleep): Remove the workaround.
84706
84707 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84710         Reported by Derek Price.
84711         (Include): Add "timespec.h".
84712
84713         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84714
84715 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84716
84717         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84718         to detect nanosleep bug.
84719
84720 2005-03-01  Bruno Haible  <bruno@clisp.org>
84721
84722         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84723
84724 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * modules/gethrxtime: New file.
84727         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84728         (Depends-on): Add gethrxtime.
84729         (configure.ac): Add gl_XNANOSLEEP.
84730         (Makefile.am): Remove lib_SOURCES line.
84731
84732 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84733
84734         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84735         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84736
84737 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84740         * lib/timespec.h (gettime): Return void, since it always
84741         succeeds now.  All uses changed.
84742         * lib/gettime.c (gettime): Likewise.
84743         [HAVE_NANOTIME]: Prefer nanotime.
84744         Assume gettimeofday succeeds, as POSIX requires.
84745         Assime time () succeeds, since other code already does.
84746         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84747         (timespec_subtract): Remove.
84748         (NANOSLEEP_BUG_WORKAROUND): New constant.
84749         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84750         things considerably.  Use it only on GNU/Linux hosts, since the
84751         workaround shouldn't be needed elsewhere.
84752
84753 2005-02-24  Bruno Haible  <bruno@clisp.org>
84754
84755         * modules/gettext (Files): Add m4/glibc2.m4.
84756
84757 2005-02-24  Bruno Haible  <bruno@clisp.org>
84758
84759         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84760         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84761         * m4/progtest.m4:
84762         Update from GNU gettext 0.14.2.
84763         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84764
84765 2005-02-24  Bruno Haible  <bruno@clisp.org>
84766
84767         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84768         * lib/config.charset: Update from GNU gettext 0.14.2.
84769
84770 2005-02-24  Bruno Haible  <bruno@clisp.org>
84771
84772         * lib/gettext.h: Update from GNU gettext 0.14.2.
84773
84774 2005-02-23  Simon Josefsson  <jas@extundo.com>
84775
84776         * m4/iconvme.m4: New file.
84777
84778 2005-02-23  Jim Meyering  <jim@meyering.net>
84779
84780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84781         change.
84782         Thanks to Bruno Haible for catching it.
84783
84784 2005-02-22  Simon Josefsson  <jas@extundo.com>
84785
84786         * modules/iconvme: New file.
84787
84788         * MODULES.html.sh: Add iconvme.
84789
84790 2005-02-22  Simon Josefsson  <jas@extundo.com>
84791
84792         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84793
84794 2005-02-22  Simon Josefsson  <jas@extundo.com>
84795
84796         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84797
84798 2005-02-22  Jim Meyering  <jim@meyering.net>
84799
84800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84801         s/ifndef/ifdef/.
84802
84803 2005-02-20  Neil Conway  <neilc@samurai.com>
84804
84805         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84806         returned by OSX/Darwin if the specified buffer is not large
84807         enough for the hostname.
84808
84809 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84810
84811         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84812         pass it to _help, otherwise the latter coredumps trying to
84813         dereference state.root_argp.
84814
84815 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84816
84817         * modules/chdir-long (Depends-on): Add memrchr.
84818         * modules/memrchr (Files): Add lib/memrchr.h.
84819         (Include): "memrchr.h".
84820
84821 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84822
84823         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84824
84825 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * lib/memrchr.h: New file.
84828         * lib/chdir-long.c: Include it.
84829         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84830         Don't bother including stddef.h.
84831
84832 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84835         inclusion.
84836         Include <sys/types.h>, for dev_t.
84837         (ME_DUMMY, ME_REMOTE): Move from here....
84838         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84839         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84840         Dmitry V. Levin.
84841         Include mountlist.h first, to test the interface.
84842
84843 2005-01-29  Bruno Haible  <bruno@clisp.org>
84844
84845         * lib/progname.c (program_name): Initialize.
84846         Needed when linking statically on MacOS X.
84847
84848 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84849
84850         Sync from coreutils.
84851         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84852         (Depends-on): Add c-strtod.
84853         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84854
84855 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         Sync from coreutils.
84858         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84859
84860         Remove files that are specific to coreutils.
84861         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84862
84863 2005-01-28  Bruno Haible  <bruno@clisp.org>
84864
84865         * modules/javacomp: New file.
84866         * MODULES.html.sh (Java): Add javacomp.
84867
84868 2005-01-28  Bruno Haible  <bruno@clisp.org>
84869
84870         * m4/javacomp.m4: New file, from GNU gettext.
84871
84872 2005-01-28  Bruno Haible  <bruno@clisp.org>
84873
84874         * lib/javacomp.sh.in: New file, from GNU gettext.
84875         * lib/javacomp.h: New file, from GNU gettext.
84876         * lib/javacomp.c: New file, from GNU gettext.
84877
84878 2005-01-26  Simon Josefsson  <jas@extundo.com>
84879
84880         * lib/gai_strerror.c: Use GPL in header.
84881
84882 2005-01-26  Bruno Haible  <bruno@clisp.org>
84883
84884         * modules/javaexec: New file.
84885         * MODULES.html.sh (Java): Add javaexec.
84886
84887 2005-01-26  Bruno Haible  <bruno@clisp.org>
84888
84889         * m4/javaexec.m4: New file, from GNU gettext.
84890
84891 2005-01-26  Bruno Haible  <bruno@clisp.org>
84892
84893         * lib/javaexec.sh.in: New file, from GNU gettext.
84894         * lib/javaexec.h: New file, from GNU gettext.
84895         * lib/javaexec.c: New file, from GNU gettext.
84896
84897 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84898
84899         * modules/lchown (Depends-on): Remove lchown.h
84900
84901 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84902
84903         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84904         must be defined if the header file was not found, in order
84905         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84906
84907 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84908
84909         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84910         initializers for struct pentry_state.
84911         (__argp_error): Check return value of __asprintf
84912         (__argp_failure): Translate error message
84913
84914         * lib/argp-parse.c: Removed braces around the expansion of N_()
84915
84916 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84917
84918         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84919         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84920         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84921         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84922         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84923         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84924         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84925         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84926         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84927         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84928         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84929         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84930         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84931         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84932         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84933         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84934         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84935         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84936         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84937         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84938         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84939         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84940         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84941         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84942         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84943         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84944         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84945         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84946         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84947         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84948         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84949         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84950         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84951         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84952         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84953         Use an all-permissive copyright notice, recommended by RMS.
84954
84955 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84956
84957         * modules/chdir-long (Depends-on): Remove mempcpy.
84958
84959 2005-01-21  Jim Meyering  <jim@meyering.net>
84960
84961         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84962         same value as for Solaris 9.
84963
84964         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84965         component length.  This included changing the parameter to be
84966         of type `char *' rather than `char const *'.
84967         * lib/chdir-long.h (chdir_long): Update prototype.
84968
84969         * lib/openat.c (fdopendir, fstatat): New functions.
84970         * lib/openat.h: Include headers required for use of DIR and struct
84971         stat.
84972         [AT_SYMLINK_NOFOLLOW]: Define.
84973         (fdopendir, fstatat): Add prototypes.
84974
84975 2005-01-21  Bruno Haible  <bruno@clisp.org>
84976
84977         * modules/classpath: New file.
84978         * MODULES.html.sh (Java): Add classpath.
84979
84980 2005-01-21  Bruno Haible  <bruno@clisp.org>
84981
84982         * lib/classpath.h: New file, from GNU gettext.
84983         * lib/classpath.c: New file, from GNU gettext.
84984
84985 2005-01-20  Simon Josefsson  <jas@extundo.com>
84986
84987         * modules/version-etc-fsf: New file.
84988
84989 2005-01-20  Simon Josefsson  <jas@extundo.com>
84990
84991         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84992         * lib/version-etc.c: Remove version_etc_copyright.
84993         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84994         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84995
84996 2005-01-20  Simon Josefsson  <jas@extundo.com>
84997
84998         * lib/base64.h (isbase64): Add.
84999
85000         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85001         using a unsigned prototype, don't inline.
85002         (base64_decode): Use it.
85003
85004 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85007         it.
85008
85009 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * lib/save-cwd.c (save_cwd): Remove code to support the case
85012         where fchdir is missing or flaky.
85013
85014 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85017
85018 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85021         AC_LIBSOURCES now does this.
85022         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85023         with new ullong_max module.
85024
85025 2005-01-19  Bruno Haible  <bruno@clisp.org>
85026
85027         * modules/sh-quote: New file.
85028         * MODULES.html.sh (Executing programs): Add sh-quote.
85029
85030 2005-01-19  Bruno Haible  <bruno@clisp.org>
85031
85032         * lib/sh-quote.h: New file, from GNU gettext.
85033         * lib/sh-quote.c: New file, from GNU gettext.
85034
85035 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85036
85037         Merge from coreutils.
85038         * m4/ullong_max.m4: New file.
85039         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85040         (gl_MACROS): Assume localeconv exists.
85041
85042 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85043
85044         Merge changes from coreutils, as described below in several
85045         changelogs dated today.
85046
85047         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85048         (O_DIRECTORY): Remove; not needed here, since "." must be
85049         a directory.  All uses removed.
85050         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85051         universal on Suns, and we also need to test for IRIX.
85052         Revamp code to use 'if' rather than '#if'.
85053         Avoid unnecessary comparison of cwd->desc to 0.
85054
85055         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85056         for known valid error numbers rather than observed invalid ones.
85057
85058 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85059
85060         * modules/ullong_max: New file.
85061
85062         * modules/chdir-long, modules/openat: New files.
85063         * modules/save-cwd (Depends-on): Depend on chdir-long.
85064         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85065
85066 2005-01-18  Jim Meyering  <jim@meyering.net>
85067
85068         Merge from coreutils.
85069         * m4/chdir-long.m4, m4/openat.m4: New files.
85070         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85071         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85072         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85073         is sane and DOES follow symlinks.  Besides, testing 20 different
85074         systems found no broken chown implementations.
85075         Prompted by a change in rsync's copy of this macro.
85076         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85077
85078         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85079
85080         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85081         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85082         NULL-means-set-to-current-time semantics.
85083         Remove temporary file immediately, rather than waiting
85084         for configure's at-exit trap code to do it.
85085
85086 2005-01-18  Jim Meyering  <jim@meyering.net>
85087
85088         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85089
85090         * lib/utimens.c (futimens): Account for the fact that futimes
85091         can also fail with errno == ENOSYS or errno == ENOENT.
85092         Patch from Dmitry V. Levin.
85093
85094         Change the name of the robust chdir function from chdir to chdir_long.
85095         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85096         (restore_cwd): Use chdir_long, not chdir.
85097         * lib/chdir-long.c: Renamed from chdir.c.
85098         * lib/chdir-long.h: Renamed from chdir.h.
85099         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85100         Hurd.
85101
85102 2005-01-18  Bruno Haible  <bruno@clisp.org>
85103
85104         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85105         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85106         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85107         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85108         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85109         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85110         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85111         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85112         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85113         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85114         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85115         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85116         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85117         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85118         Use an all-permissive copyright notice, recommended by RMS.
85119
85120 2005-01-18  Bob Proulx  <bob@proulx.com>
85121
85122         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85123         simplify offsetof() macro construct to avoid compile failure with
85124         native HP-UX 11.0 ANSI C compiler.
85125
85126 2005-01-17  Bruno Haible  <bruno@clisp.org>
85127
85128         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85129         redundant because stpncpy.m4 takes care of it.
85130
85131 2005-01-17  Bruno Haible  <bruno@clisp.org>
85132
85133         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85134
85135 2005-01-17  Bruno Haible  <bruno@clisp.org>
85136
85137         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85138         used.
85139
85140 2005-01-17  Bruno Haible  <bruno@clisp.org>
85141
85142         * lib/fwriteerror.h (fwriteerror): Change specification to include
85143         fclose.
85144         * lib/fwriteerror.c: Include <stdbool.h>.
85145         (fwriteerror): At the end, close the file stream. Record whether
85146         stdout was already closed.
85147
85148 2005-01-17  Bruno Haible  <bruno@clisp.org>
85149
85150         * lib/execute.c (environ): Declare if needed.
85151         * lib/pipe.c (environ): Likewise.
85152         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85153
85154 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85155
85156         * modules/argp: Depend on vsnprintf
85157
85158 2005-01-10  Jim Meyering  <jim@meyering.net>
85159
85160         * modules/closeout (Depends-on): Add atexit.
85161
85162 2005-01-06  Bruno Haible  <bruno@clisp.org>
85163
85164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85165
85166 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85169         definitions to be after all include files, to avoid collisions.
85170         Problem reported by Bob Proulx.
85171
85172 2005-01-04  Jim Meyering  <jim@meyering.net>
85173
85174         Changes imported from coreutils.
85175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85176         as the mkstemp template, use a temporary directory and an
85177         8.3-friendly template to avoid trouble on systems like DJGPP.
85178         Reported by Juan M. Guerrero via Stepan Kasal.
85179         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85180         close. Remove the temporary directory right away, rather than waiting
85181         for configure's at-exit trap code to do it.
85182         Suggestion from Stepan Kasal.
85183
85184 2005-01-01  Simon Josefsson  <jas@extundo.com>
85185
85186         * gnulib-tool: Print #include directives when --import'ing.
85187
85188 2004-12-28  Simon Josefsson  <jas@extundo.com>
85189
85190         * tests/test-base64.c: Include required header files.  Remove
85191         unused variables.
85192
85193 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85194
85195         * modules/error (Depends-on): Remove gettext.
85196
85197 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85200         not needed.  This removes a dependency on the gettext module.
85201         [defined _LIBC]: Do not include <libintl.h>; not needed.
85202
85203 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85206         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85207
85208 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85211         HAVE_DECL_STRTOLD.
85212
85213 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * modules/getdate (Depends-on): Remove alloca-opt.
85216
85217 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85220
85221 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * lib/argp-parse.c: Include <stddef.h>.
85224         (alignof, alignto): New macros.
85225         (parser_init): Don't assume that void * is aligned sufficiently
85226         for struct option.
85227
85228         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85229         need to extend the stack.
85230         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85231         large.
85232
85233 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85234
85235         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85236
85237 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85238
85239         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85240         (2004-10-24) change.  Apparently this was a false alarm.
85241
85242         * modules/getdate: Depend on alloca-opt, not alloca.
85243
85244 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85247         Remove now-obsolete comment about AIX.
85248         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85249         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85250         (YYMAXDEPTH): New macro.
85251
85252 2004-12-18  Simon Josefsson  <jas@extundo.com>
85253
85254         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85255
85256 2004-12-18  Bruno Haible  <bruno@clisp.org>
85257
85258         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85259
85260 2004-12-18  Bruno Haible  <bruno@clisp.org>
85261
85262         * lib/fatal-signal.c (fatal_signals): Make non-const.
85263         (init_fatal_signals): New function.
85264         (uninstall_handlers, install_handlers): Ignore signals that were set to
85265         SIG_IGN.
85266         (at_fatal_signal): Call init_fatal_signals.
85267         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85268         SIG_IGN.
85269         Reported by Paul Eggert.
85270
85271 2004-12-18  Bruno Haible  <bruno@clisp.org>
85272
85273         * doc/alloca.texi: New file.
85274         * doc/alloca-opt.texi: New file.
85275
85276 2004-12-17  Jim Meyering  <jim@meyering.net>
85277
85278         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85279         Otherwise, install-sh could exit with improper exit status when
85280         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85281
85282 2004-12-16  Simon Josefsson  <jas@extundo.com>
85283
85284         * tests/test-base64.c: Add license.
85285
85286 2004-12-15  Stepan Kasal  <address@hidden>
85287
85288         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85289
85290 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85291
85292         * modules/getcwd (Files): Add m4/d-ino.m4.
85293         Suggested by Mark D. Baushke.
85294
85295 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * lib/getdate.y (textint): New member "negative".
85298         (time_zone_hhmm): New function.
85299         Expect 14 shift-reduce conflicts, not 13.
85300         (o_colon_minutes): New rule.
85301         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85302         (yylex): Set the "negative" member of signed numbers.
85303
85304 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * doc/getdate.texi (Time of day items, Time zone items):
85307         Describe new formats +00:00, UTC+00:00.
85308
85309 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85312         spurious "-l"s.  Problem reported by Stepan Kasal.
85313
85314 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85317         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85318
85319 2004-12-04  Simon Josefsson  <jas@extundo.com>
85320
85321         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85322         Vandoorselaere <yoann@prelude-ids.org>.
85323
85324 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         Changes imported from coreutils.
85327         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85328         exist.
85329         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85330
85331 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85332
85333         Changes imported from coreutils.
85334         * lib/hard-locale.c: Assume <locale.h> exists.
85335         Include "strdup.h".
85336         (GLIBC_VERSION): New macro.
85337         (hard_locale): Assume setlocale exists.
85338         Rewrite to avoid #ifdef.
85339         Use strdup rather than malloc + strcpy.
85340         * lib/human.c: Assume <locale.h> exists.
85341         (human_readable): Assume localeconv exists.
85342
85343 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * modules/hard-locale (Depends-on): Add strdup.
85346
85347 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85348
85349         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85350         convert T2, not T.  (Imported from libc.)
85351
85352 2004-11-30  Simon Josefsson  <jas@extundo.com>
85353
85354         * modules/restrict (License): Change to LGPL.
85355
85356 2004-11-30  Simon Josefsson  <jas@extundo.com>
85357
85358         * m4/restrict.m4: Add copyright and copying conditions.
85359
85360 2004-11-30  Simon Josefsson  <jas@extundo.com>
85361
85362         * m4/base64.m4: New file.
85363
85364 2004-11-30  Simon Josefsson  <jas@extundo.com>
85365
85366         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85367         base64.
85368
85369         * tests/test-base64.c: New file.
85370
85371         * modules/base64: New file.
85372
85373 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85374
85375         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85376         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85377
85378         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85379
85380 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85383         (__getcwd.c): Don't restore errno; glibc doesn't.
85384         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85385         first, falling back to our code only if its results look suspicious.
85386         Ensure that the resulting buffer is only as large as necessary.
85387
85388         * lib/readutmp.c: Include readutmp.h first.
85389         Include <errno.h>, since readutmp.h no longer does that.
85390         * lib/readutmp.h: Don't include <errno.h>,
85391         <sys/param.h>, <time.h>; not needed to establish interface.
85392         (errno): Remove decl.
85393         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85394         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85395         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85396
85397 2004-11-28  Simon Josefsson  <jas@extundo.com>
85398
85399         * lib/base64.h, base64.c: New file.
85400
85401 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85402
85403         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85404
85405 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85406
85407         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85408         (Depends-on): Remove pathmax, same.  Add mempcpy.
85409         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85410         (Makefile.am): Append getcwd.h to lib_SOURCES.
85411         (Include): Add getcwd.h.
85412         (Maintainer): Change from Jim Meyering to "all, glibc",
85413         since getdate now uses intended-for-glibc code.
85414         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85415         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85416
85417 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85420         HP's ANSI C compiler.
85421         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85422         Declaring int functions causes warnings on some modern systems and
85423         shouldn't be needed to compile on ancient ones.
85424         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85425         defined.
85426
85427         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85428         with the following changes.
85429         (__set_errno): Parenthesize properly.
85430         Include <stdbool.h>.
85431         (MIN, MAX, MATCHING_INO): New macros.
85432         (__getcwd): Define with prototype, not K&R form.
85433         Use heuristics to allocate default buffer on stack if possible.
85434         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85435         behavior, and to avoid the PATH_MAX limit when computing
85436         ../../../../...
85437         Use MATCHING_INO to compare inode number to file.
85438         Check for arithmetic overflow in size calculations.
85439         Fix bug in reallocation of dot array that caused getcwd to fail
85440         on directories nested deeper than 75.
85441         Be more careful about saving errno on error.
85442         Do not use realloc; use only free+malloc, as this is a bit
85443         more flexible and avoids a needless copy operation.
85444         Do not inspect st_dev and st_ino for symbolic links; POSIX
85445         doesn't specify the latter.
85446         Check for closedir errors.
85447         Avoid needless casts.
85448         Use "#ifdef weak_alias" around weak_alias, to be like other
85449         glibc code.
85450         The following changes to getcwd.c have effect only when used in
85451         gnulib; they have no effect inside glibc proper.
85452         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85453         as alloca isn't used.
85454         (alloca, __alloca): Likewise.
85455         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85456         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85457         unconditionally, as gnulib assumes C89 or better.
85458         Do not include <sys/param.h>.
85459         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85460         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85461         better.
85462         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85463         Include <dirent.h> in a way that is compatible with modern Autoconf.
85464         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85465         New macros, if not already defined.
85466         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85467         Use "_LIBC", not "defined _LIBC", for consistency.
85468         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85469         a mempcpy module.
85470         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85471         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85472         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85473         credit only to Jim Meyering and adjust the copyright dates.
85474         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85475         <stdlib.h>, <unistd.h>, "pathmax.h".
85476         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85477         (INITIAL_BUFFER_SIZE): Remove.
85478         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85479
85480 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85483         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85484         Use the _ONCE methods, for efficiency.
85485         Check for fcntl.h.  In test program, include <errno.h>
85486         and <fcntl.h> if available.  Remove old K&R cruft from
85487         test program.  Check for common errors in GNU/Linux,
85488         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85489         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85490         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85491         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85492         name accordingly.
85493         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85494         accommodate new getcwd.c.
85495         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85496         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85497         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85498         that's all we need now.
85499
85500 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85501
85502         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85503         argp-parse.c depends on getopt internals, that means we should
85504         always use our getopt, to be on the safe side.
85505         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85506         order not to spoil the result of an eventual previous invocation
85507         of gl_GETOPT_SUBSTITUTE.
85508
85509 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85510
85511         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85512         redefinition warnings. To avoid them, include the defines
85513         in `#if !defined __need_getopt ... #endif'. The only place
85514         where __getopt_argv_const is used is in definitions
85515         of getopt_long and getopt_long_only below, which are as well
85516         protected by `#ifndef __need_getopt'.
85517         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85518         __need_getopt after including <stdio.h> and <unistd.h> These
85519         headers might have defined it.
85520
85521 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85522
85523         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85524
85525 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85528         (futimens): New function, which uses futimes if available.
85529         (futimens, utimens): Support timespec==NULL, with same semantics
85530         as utime and utimens.
85531         * lib/utimens.h (futimens): New decl.
85532
85533 2004-11-23  Jim Meyering  <jim@meyering.net>
85534
85535         * lib/getopt_.h: Remove trailing blanks.
85536
85537 2004-11-23  Jim Meyering  <jim@meyering.net>
85538
85539         * lib/__fpending.c: Add comment.
85540
85541 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85542
85543         * modules/canonicalize (Depends-on): Add xreadlink.
85544         Problem reported by James Youngman.
85545
85546 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85547
85548         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85549         New macros.
85550         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85551         optopt): Use them instead of invoking ## directly; otherwise, the
85552         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85553
85554 2004-11-19  Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/strtok_r.c: Move comments from here...
85557         * lib/strtok_r.h: ... to here.
85558
85559 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85562         implementations that mishandle size_t overflow.
85563
85564 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85565
85566         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85567         might fail.  Problem reported by Yoann Vandoorselaere.
85568         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85569         implementations that mishandle size_t overflow.
85570
85571 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         * modules/canon-host (Depends-on): Add strdup.
85574
85575 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85576
85577         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85578
85579 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * lib/canon-host.c: Include "strdup.h".
85582         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85583         Use strdup instead of malloc/strcpy to duplicate strings.
85584
85585         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85586         (human_space_before_unit): New constant.
85587         * lib/human.c (human_readable): Support it.
85588
85589         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85590         (xgetcwd): Set errno correctly when failing.
85591         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85592         the failure is actually due to a PATH_MAX problem.
85593
85594         Further getopt changes to make it more likely that glibc will
85595         buy the changes back.
85596         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85597         (getopt): Use it, so to preserve glibc semantic
85598         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85599         when compiling for libc.
85600         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85601         (getopt_long, getopt_long_only): Use it.
85602
85603         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85604         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85605         (getopt): Argv is now char * const *, as per standard.
85606         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85607         not char *__getopt_argv_const *.
85608         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85609         _getopt_long_only_r): Likewise.
85610         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85611         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85612         _getopt_long_r, _getopt_long_only_r): Likewise.
85613         * lib/getopt_.h (__getopt_argv_const): Remove.
85614         (getopt): Argv is now char * const *, as per standard.
85615
85616         * lib/getdate.y (tORDINAL): New token.
85617         (day, relunit): Allow it for relative times.
85618         (relative_time_table): Use tORDINAL for ordinals.
85619
85620 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85621
85622         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85623         Document that "second" isn't allowed as an ordinal number.
85624
85625 2004-11-16  Jim Meyering  <jim@meyering.net>
85626
85627         * modules/closeout (Depends-on): Add fpending.
85628
85629 2004-11-15  Jim Meyering  <jim@meyering.net>
85630
85631         * lib/closeout.c: Include "__fpending.h" once again.
85632         Include <stdbool.h>.
85633         (close_stdout): Don't fail just because stdout was closed initially,
85634         since some programs don't write to stdout in the normal course of
85635         operation (other than --version and --help), and we don't want this
85636         function to make e.g. `touch file >&-' fail.
85637         But do fail if it was closed and someone has tried to write to it.
85638         E.g., `printf foo >&-' must fail.
85639
85640 2004-11-13  Jim Meyering  <jim@meyering.net>
85641
85642         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85643
85644 2004-11-12  Simon Josefsson  <jas@extundo.com>
85645
85646         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85647         small doc fix is still pending.
85648
85649 2004-11-11  Simon Josefsson  <jas@extundo.com>
85650
85651         * modules/strtok_r: New file.
85652
85653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85654         strtok_r.
85655
85656 2004-11-11  Simon Josefsson  <jas@extundo.com>
85657
85658         * m4/strtok_r.m4: New file.
85659
85660         * m4/getopt.m4: Replace opterr.
85661
85662 2004-11-11  Simon Josefsson  <jas@extundo.com>
85663
85664         * lib/strtok_r.h, strtok_r.c: New file.
85665
85666 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85667
85668         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85669         of replacing opterr, getopt, etc.  This should handle the
85670         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85671
85672 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85675         we can stop lying to compilers about the constness of argv when we
85676         are compiled outside glibc.
85677         (getopt, getopt_long, getopt_long_only): Use it.
85678         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85679         _getopt_internal, getopt): Likewise.
85680         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85681         _getopt_long_only_r): Likewise.
85682         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85683         _getopt_long_r, _getopt_long_only_r): Likewise.
85684
85685         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85686         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85687         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85688         the other external symbols.
85689         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85690         declaration, since the above renaming now works around collisions.
85691
85692 2004-11-11  Jim Meyering  <jim@meyering.net>
85693
85694         * lib/linebreak.c: Remove trailing blanks.
85695         * lib/alloca_.h: Likewise.
85696         * lib/acosl.c: Likewise.
85697         * lib/euidaccess.c: Likewise.
85698         * lib/allocsa.h: Likewise.
85699
85700 2004-11-10  Simon Josefsson  <jas@extundo.com>
85701
85702         * m4/getaddrinfo.m4: New file.
85703
85704 2004-11-10  Simon Josefsson  <jas@extundo.com>
85705
85706         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85707
85708 2004-11-10  Simon Josefsson  <jas@extundo.com>
85709
85710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85711         getaddrinfo.
85712
85713         * modules/getaddrinfo: New file.
85714
85715 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85716
85717         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85718
85719 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85720
85721         * lib/mktime.c (SHR): New macro, which is a portable
85722         substitute for >> that should work even on Crays.
85723         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85724         Problem reported by Mark D. Baushke in
85725         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85726         * lib/getdate.y (SHR): Likewise.
85727         (tm_diff): Use it.
85728         * lib/strftime.c (SHR): Likewise.
85729         (tm_diff): Use it.
85730         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85731         quote_these_too, so that right shifts are well defined.  All uses
85732         changed.
85733
85734 2004-11-10  Jim Meyering  <jim@meyering.net>
85735
85736         Ensure that no close failure goes unreported.
85737         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85738         return early when it seems there's nothing to flush.
85739         Don't include __fpending.h.
85740
85741 2004-11-10  Jim Meyering  <jim@meyering.net>
85742
85743         * modules/closeout (Depends-on): Remove fpending.
85744
85745 2004-11-10  Jim Meyering  <jim@meyering.net>
85746
85747         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85748
85749 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85752         gl_FUNC_STRFTIME.
85753         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85754         and AC_REQUIRE when possible, to avoid duplicate checks.
85755         Check for <wchar.h>.
85756
85757 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85760
85761 2004-11-09  Bruno Haible  <bruno@clisp.org>
85762
85763         * m4/sockpfaf.m4: New file.
85764
85765 2004-11-05  Bruno Haible  <bruno@clisp.org>
85766
85767         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85768         Reported by Mark D. Baushke <mdb@cvshome.org>.
85769
85770 2004-11-04  Bruno Haible  <bruno@clisp.org>
85771
85772         2004-09-11  Bruno Haible  <bruno@clisp.org>
85773                 * allocsa.valgrind: New file.
85774         2004-02-06  Bruno Haible  <bruno@clisp.org>
85775                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85776                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85777                 Reported by Christopher Seip <chris.seip@hp.com>.
85778
85779 2004-11-04  Bruno Haible  <bruno@clisp.org>
85780
85781         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85782         (Makefile.am): Distribute it.
85783
85784 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85785
85786         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85787         with errno == ERANGE if the buffer is too small.
85788         Problem reported by Mark D. Baushke.
85789
85790 2004-11-03  Albert Chin  <china@thewrittenword.com>
85791             Paul Eggert  <eggert@cs.ucla.edu>
85792
85793         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85794         equivalent, substitute $ac_type for equivalent type rather than
85795         blindly using uint32_t *always* which won't work if uint32_t is not
85796         available.  Define _UINT32_T to work around typedef of uint32_t if
85797         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85798         2.5.1.
85799
85800 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85801
85802         * m4/jm-macros.m4: Sync from coreutils.
85803         (gl_MACROS): Check for mbrlen, for pathchk.
85804         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85805
85806 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85807
85808         * lib/xreadlink.c (MAXSIZE): New macro.
85809         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85810         size does not exceed MAXSIZE.  Avoid cast.
85811         As suggested by Mark D. Baushke in
85812         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85813         if readlink fails with buffer size just under MAXSIZE, try again
85814         with MAXSIZE.
85815
85816 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85817
85818         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85819
85820 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85821         and  Paul Eggert  <eggert@cs.ucla.edu>
85822
85823         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85824         (get_date): Overparenthesize to avoid GCC warning.
85825
85826 2004-11-02  Bruno Haible  <bruno@clisp.org>
85827
85828         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85829         returns void.
85830
85831 2004-11-02  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85834         function returns void.
85835
85836 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85839         fflush_unlocked, flockfile, funlockfile, funlockfile,
85840         fputs_unlocked, putc_unlocked.
85841
85842 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85845         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85846         already declared.
85847
85848 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * modules/getdate (Files): Add doc/getdate.texi.
85851         (Depends-on): Add setenv, xalloc.
85852
85853 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * lib/getdate.y: Add support for TZ="foo" within a date string.
85856         Fix some bugs near time_t boundaries.  Reject dates with
85857         out-of-range components, e.g., "Sept 31".
85858         Include <stdlib.h>, "setenv.h", "xalloc.h".
85859         (ISDIGIT_LOCALE): Remove; unused.
85860         Note that the TZ and time functions used here are not reentrant.
85861         (mktime_ok, get_tz): New functions.
85862         (TZBUFSIZE): New constant.
85863         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85864         This requires that we sometimes generate our own TZ="XXX..." setting.
85865
85866 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * doc/getdate.texi: New file, from coreutils with modifications for
85869         the new TZ parsing.
85870
85871 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85872
85873         * lib/mktime.c (not_equal_tm): Remove redundant check.
85874
85875 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85876
85877         * modules/regex (lib_SOURCES): Add regex.c.
85878         Reported by James Youngman in
85879         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85880
85881 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * lib/getdate.y: Use Bison 1.875 features, and some minor
85884         code cleanups.  This change does not affect semantics.
85885         Don't include <stdlib.h>; no longer needed.
85886         Don't include unlocked-io.h; only the "#if TEST" code uses
85887         stdio, and performance isn't crucial there.
85888         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85889         Bison 1.875 features as described below.
85890         All uses of "PC." replaced by "pc->".
85891         (YYSTYPE): Add a forward declaration.
85892         (yylex, yyerror): Use full prototypes in forward decls.
85893         Use "%pure-parser" rather than obsolescent "%pure_parser".
85894         Use %parse-param and %lex-param instead of obsolescent
85895         YYPARSE_PARAM and YYLEX_PARAM.
85896         (meridian_table, month_and_day_table, time_units_table,
85897         relative_time_table, time_zone_table, military_table,
85898         lookup_zone, lookup_word, get_date):
85899         Use NULL instead of 0 where appropriate.
85900         (to_hour): Avoid abort (), to avoid a dependency on
85901         stdlib.h.
85902         (yyerror, yylex): Now accepts parser_control * arg.
85903         (main) [TEST]: Use '\0' rather than 0 for char.
85904
85905 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85908
85909 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85910
85911         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85912         It's now the caller's responsibility to handle the case where
85913         !HAVE_GETPAGESIZE && !defined getpagesize.
85914
85915         * lib/mktime.c (leapyear): Arg is long int, not int.
85916
85917 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85920
85921 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85924         missing.  Problem reported by James Youngman.
85925
85926 2004-10-16  Simon Josefsson  <jas@extundo.com>
85927
85928         * gnulib-tool: Fix comments.  Fix parse problem.
85929         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85930
85931 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85932
85933         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85934         implementation of getopt_long.  Problem reported by Alexander Taler in:
85935         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85936
85937 2004-10-15  Bruno Haible  <bruno@clisp.org>
85938
85939         * gnulib-tool: Untabify. Initialize supplied_libname.
85940         (func_usage): More homogenous output.
85941         (func_modules_transitive_closure, func_modules_to_filelist,
85942         func_emit_lib_Makefile_am): New functions.
85943         (func_import): New function, extracted from big case statement. Use
85944         func_get_license, func_modules_transitive_closure,
85945         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85946         opt_lgpl. Don't use test -a, as it's not portable.
85947         (func_create_testdir): Use func_modules_transitive_closure,
85948         func_modules_to_filelist, func_emit_lib_Makefile_am.
85949
85950 2004-10-15  Bruno Haible  <bruno@clisp.org>
85951
85952         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85953
85954 2004-10-15  Bruno Haible  <bruno@clisp.org>
85955
85956         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85957         the portions belonging to each module.
85958         Suggested by Derek Robert Price <derek@ximbiot.com>.
85959
85960 2004-10-12  Simon Josefsson  <jas@extundo.com>
85961
85962         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85963         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85964         to real functions.
85965
85966 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85967
85968         * modules/vsnprintf: New file.
85969
85970 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85971
85972         * m4/vsnprintf.m4: New file.
85973
85974 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85975
85976         * lib/vsnprintf.h: New file.
85977         * lib/vsnprintf.c: New file.
85978
85979 2004-10-11  Bruno Haible  <bruno@clisp.org>
85980
85981         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85982         vsnprintf.
85983
85984 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85987
85988 2004-10-07  Bruno Haible  <bruno@clisp.org>
85989
85990         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85991         fits into the provided buffer.
85992
85993 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * lib/diacrit.c, diacrit.h: Add GPL notice.
85996
85997         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85998         notice.
85999         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86000         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86001         This avoids a potential constant-folding bug.
86002
86003 2004-10-05  Bruno Haible  <bruno@clisp.org>
86004
86005         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86006         for the declaration of strsep.
86007
86008 2004-10-05  Bruno Haible  <bruno@clisp.org>
86009
86010         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86011
86012 2004-10-04  Simon Josefsson  <jas@extundo.com>
86013
86014         * modules/memmem: New file.
86015         * tests/test-memmem.c: New file.
86016         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86017
86018 2004-10-04  Simon Josefsson  <jas@extundo.com>
86019
86020         * m4/memmem.m4: New file.
86021
86022 2004-10-04  Simon Josefsson  <jas@extundo.com>
86023
86024         * lib/memmem.h: New file.
86025         * lib/memmem.c: New file, taken from glibc.
86026
86027 2004-10-04  Simon Josefsson  <jas@extundo.com>
86028
86029         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86030         '#ifdef USE_UNLOCKED_IO'.
86031
86032 2004-10-04  Simon Josefsson  <jas@extundo.com>
86033
86034         * config/srclist.txt: Add memmem from glibc.
86035
86036 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86039
86040         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86041         modules/exclude, modules/getdate, modules/getline,
86042         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86043         modules/getusershell, modules/linebuffer, modules/md5,
86044         modules/mountlist, modules/posixtm, modules/readtokens,
86045         modules/readutmp, modules/regex, modules/sha1,
86046         modules/version-etc, modules/yesno:
86047         Remove dependency on unlocked-io.
86048
86049 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86052
86053         * m4/unlocked-io.m4: Add copyright notice.
86054         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86055
86056 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86059         * lib/xmalloc.c (xmemdup): Likewise.
86060         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86061         XFREE): Remove these long-obsolescent macros.
86062         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86063         * lib/xstrdup.c: Remove.
86064
86065         * lib/regex.c (re_comp): Cast gettext return value to char *,
86066         Problem reported by Martin Neitzel via Mark D. Baushke.
86067
86068 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86069
86070         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86071         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86072         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86073         regex.c, sha1.c, version-etc.c, yesno.c:
86074         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86075         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86076         the includer's responsibility.
86077
86078         Sync from coreutils.
86079
86080         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86081         points to the start of a string, as the C Standard says the
86082         resulting behavior is undefined.
86083
86084         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86085         simple -> simple_backups, numbered_existing ->
86086         numbered_existing_backups, numbered -> numbered_backups
86087         to avoid shadowing problems.  All uses changed.
86088         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86089         * lib/backupfile.c (check_extension, numbered_backup):
86090         Rename locals to avoid shadowing 'basename'.
86091         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86092         once.
86093
86094         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86095         * lib/.cvsignore: Add getopt.h.
86096
86097 2004-10-04  Bruno Haible  <bruno@clisp.org>
86098
86099         * modules/README: New file.
86100         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86101         not a module.
86102
86103 2004-10-02  Jim Meyering  <jim@meyering.net>
86104
86105         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86106
86107 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86108
86109         * modules/strsep: New file.
86110
86111 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86112
86113         * m4/strsep.m4: New file.
86114
86115 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86116
86117         * lib/strsep.h: New file.
86118         * lib/strsep.c: New file.
86119
86120 2004-10-01  Simon Josefsson  <jas@extundo.com>
86121
86122         * lib/snprintf.c (snprintf): Handle size==0.
86123
86124 2004-10-01  Simon Josefsson  <jas@extundo.com>
86125             Bruno Haible  <bruno@clisp.org>
86126
86127         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86128         (snprintf): Declare 'args'.
86129
86130 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * lib/snprintf.c: Remove comments as to why each header is needed.
86133
86134 2004-10-01  Bruno Haible  <bruno@clisp.org>
86135
86136         * MODULES.html.sh: Add strsep.
86137
86138 2004-09-30  Simon Josefsson  <jas@extundo.com>
86139
86140         * modules/snprintf: New file.
86141
86142 2004-09-30  Simon Josefsson  <jas@extundo.com>
86143
86144         * m4/snprintf.m4: New file.
86145
86146 2004-09-30  Simon Josefsson  <jas@extundo.com>
86147
86148         * lib/snprintf.h, lib/snprintf.c: New files.
86149
86150 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86151
86152         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86153         (hol_entry_help): Never translate an empty string.
86154         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86155         * lib/argp.h (OPTION_NO_TRANS): New option.
86156
86157 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86158
86159         * modules/argp (Maintainer): Replace Simon Josefsson
86160         by Sergey Poznyakoff.
86161
86162 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86163
86164         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86165         changes merged back into glibc.
86166
86167 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86168
86169         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86170
86171 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86172
86173         * lib/xvasprintf.c: Include xalloc.h.
86174         (xvasprintf): Use xalloc_die, not xmalloc_die.
86175
86176 2004-09-29  Bruno Haible  <bruno@clisp.org>
86177
86178         * modules/alloca-opt: New file, derived from modules/alloca.
86179         * modules/allocsa: Depend on alloca-opt instead of alloca.
86180         * modules/setenv: Likewise.
86181         * modules/vasnprintf: Likewise.
86182         * MODULES.html.sh: Add alloca-opt.
86183
86184 2004-09-28  Simon Josefsson  <jas@extundo.com>
86185
86186         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86187         LGPL, and to replace license template from GPL to LGPL.
86188
86189 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         * modules/dummy: Change license to LGPL.
86192
86193 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86196
86197 2004-09-24  Simon Josefsson  <jas@extundo.com>
86198
86199         * modules/minmax (License): Change from GPL to LGPL.
86200
86201 2004-09-23  Simon Josefsson  <jas@extundo.com>
86202
86203         * gnulib-tool (--import): Typo.
86204
86205 2004-09-23  Simon Josefsson  <jas@extundo.com>
86206
86207         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86208
86209 2004-09-22  Bruno Haible  <bruno@clisp.org>
86210
86211         * modules/*: Add 'License' field.
86212         * gnulib-tool: Accept --extract-license option.
86213         (func_get_license): New function.
86214
86215 2004-09-21  Bruno Haible  <bruno@clisp.org>
86216
86217         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86218         Reported by Simon Josefsson.
86219
86220 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86221
86222         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86223         gl_AC_TYPE_LONG_LONG.
86224
86225 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86226
86227         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86228
86229 2004-09-18  Simon Josefsson  <jas@extundo.com>
86230         and  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86233         calls with autoreconf.  Define GL_LIB.
86234
86235 2004-09-14  Karl Berry  <karl@gnu.org>
86236
86237         * config/srclist.txt: unsync setenv.c, sigh.
86238
86239 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86242         Problem reported by Bruno Haible in:
86243         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86244
86245 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * config/srclist.txt: Comment out argp-pvh.c.
86248
86249 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86252         in case some system header has #define'd it.  Problem reported by
86253         Soeren D. Schulze in
86254         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86255
86256 2004-09-09  Karl Berry  <karl@gnu.org>
86257
86258         * regex.[ch]: delete from the root.  These were supposed to be
86259                 synced with emacs cvs, but this has not happened for about
86260                 a year, and anyway nothing else uses emacs regex.[ch].
86261                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86262                 lib/regex[.ch] is untouched.
86263
86264 2004-09-09  Bruno Haible  <bruno@clisp.org>
86265
86266         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86267
86268 2004-09-09  Bruno Haible  <bruno@clisp.org>
86269
86270         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86271         modifications.
86272         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86273
86274 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86275
86276         * modules/xvasprintf: New file.
86277         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86278
86279 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86280
86281         * lib/xvasprintf.h: New file.
86282         * lib/xvasprintf.c: New file.
86283         * lib/xasprintf.c: New file.
86284
86285 2004-09-08  Bruno Haible  <bruno@clisp.org>
86286
86287         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86288
86289 2004-09-08  Bruno Haible  <bruno@clisp.org>
86290
86291         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86292         length is > INT_MAX.
86293         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86294         more.
86295
86296 2004-09-08  Bruno Haible  <bruno@clisp.org>
86297
86298         * lib/stdint_.h: New file, taken from GNU clisp.
86299
86300 2004-09-08  Bruno Haible  <bruno@clisp.org>
86301             Oskar Liljeblad  <oskar@osk.mine.nu>
86302
86303         * modules/stdint: New file.
86304         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86305
86306 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86307
86308         Import from coreutils.
86309         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86310         strings on unbounded length.  alloca's performance benefits aren't
86311         that important here.
86312         (V_STRDUP): Remove.
86313         (parse_with_separator): New function, with most of the internals
86314         of the old parse_user_spec.  Allow user to omit both user and group,
86315         for compatibility with FreeBSD.
86316         Clone only the user name, not the entire spec.
86317         Do not set *uid, *gid unless entirely successful.
86318         Avoid memory leak in some failing cases.
86319         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86320         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86321         (parse_user_spec): Rewrite to use parse_with_separator.
86322
86323 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86324
86325         * modules/userspec: Don't depend on alloca.
86326
86327 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86328
86329         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86330
86331 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86332
86333         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86334         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86335         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86336
86337 2004-08-16  Simon Josefsson  <jas@extundo.com>
86338
86339         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86340         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86341         Add --dry-run for --import.
86342         Let user provided command line parameters override configure.ac
86343         settings.
86344
86345 2004-08-12  Simon Josefsson  <jas@extundo.com>
86346
86347         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86348         as discussed with Paul Eggert in threads rooted at
86349         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86350         and
86351         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86352         Before, the test was empty, and relied on ELIDE_CODE in source
86353         code.)
86354         (gl_PREREQ_GETOPT): New macro.
86355         (gl_GETOPT): Use them.
86356
86357 2004-08-12  Simon Josefsson  <jas@extundo.com>
86358
86359         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86360         * lib/getopt_.h: Renamed from getopt.h.
86361
86362 2004-08-12  Simon Josefsson  <jas@extundo.com>
86363
86364         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86365         Change default library name from libfoo to libgnu.
86366         Now, if you have a configure.ac that says:
86367                 gl_SOURCE_BASE(gl)
86368                 gl_M4_BASE(gl/m4)
86369                 gl_MODULES(error getopt etcetera)
86370                 gl_INIT
86371         you can import all you need by running:
86372                 ../gnulib/gnulib-tool --import
86373
86374         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86375         (Makefile.am): Rewrite, use logic from argz.
86376         (Include): Use <getopt.h> instead of "getopt.h".
86377
86378 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86379
86380         * modules/argp (Files): Add m4/unlocked-io.m4.
86381         (Depends-on): Add extensions.
86382
86383 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86384
86385         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86386         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86387         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86388         Check for program_invocation_name, program_invocation_short_name,
86389         flockfile, funlockfile, features.h, _getopt_long_only_r.
86390
86391 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86394         its complicated substitute.
86395         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86396         and program_invocation_name.
86397         (__argp_basename) [!_LIBC]: Remove; the only use was
86398         replaced by its body.
86399         (__argp_short_program_name): Change condition from
86400         !defined __argp_short_program_name to
86401         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86402         to match argp-namefrob.h.
86403         (__argp_failure): Don't assume strerror_r returns char *.
86404         * lib/argp-parse.c (N_): Define unconditionally.
86405         (argp_default_options): Fill out initializers with 0 to avoid
86406         gcc warnings.
86407
86408 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86409
86410         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86411         getopt1.c.
86412
86413 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86414
86415         Merge from coreutils.
86416
86417         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86418
86419         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86420         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86421
86422 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86423
86424         Merge from coreutils.
86425
86426         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86427         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86428         for Reliant Unix 5.43.
86429
86430         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86431         (union fooround): Use uintmax_t, not long int.
86432         The rest is a merge from libc:
86433         [defined _LIBC]: Include <shlib-compat.h>.
86434         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86435
86436         * lib/settime.c (settime): Recode to avoid warning with
86437         Sun Forte C 6U2.
86438
86439         * lib/strverscmp.c: Convert to UTF-8.
86440
86441 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86442
86443         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86444         m4/uintmax_t.m4.
86445
86446 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86447
86448         * modules/xalloc-die: New file.
86449         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86450
86451         * modules/md5 (Files): Add m4/uint32_t.m4.
86452         * modules/sha1: Renamed from modules/sha.
86453         (Files):
86454         Rename lib/sha.h to lib/sha1.h.
86455         Rename lib/sha.c to lib/sha1.c.
86456         Rename m4/sha.m4 to m4/sha1.m4.
86457         (lib_SOURCES): Likewise.
86458         (configure.ac): Rename gl_SHA to gl_SHA1.
86459         (Include): sha.h -> sha1.h.
86460
86461 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86462
86463         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86464         * m4/sha1.m4: Renamed from sha.m4.
86465         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86466
86467 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * lib/obstack.h (obstack_empty_p):
86470         Don't assume that chunk->contents is suitably aligned.
86471         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86472         Likewise. Problem reported by Benno in
86473         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86474
86475         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86476         readable.  This could be improved further but it'd take some work.
86477
86478 2004-08-08  Simon Josefsson  <jas@extundo.com>
86479
86480         * modules/xgethostname (Depends-on): Remove exit and error (not
86481         used).
86482
86483         * modules/getpass-gnu: Add getpass.h.
86484         (Depends-on): Add stdbool.
86485         * modules/getpass: Add getpass.h.
86486
86487 2004-08-08  Simon Josefsson  <jas@extundo.com>
86488
86489         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86490         Check getpass declaration.
86491
86492 2004-08-08  Simon Josefsson  <jas@extundo.com>
86493
86494         * lib/xgethostname.c: Don't include error.h (not used).
86495
86496         * lib/getpass.h: Add.
86497         * lib/getpass.c: Include getpass.h first.
86498
86499 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * lib/xalloc-die.c: New file.
86502         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86503         All uses removed.
86504         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86505         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86506         xalloc-die.c.
86507         (_, N_, xalloc_die): Move to xalloc-die.c.
86508         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86509         so that we needn't mess with xalloc_msg_memory_exhausted.
86510
86511         * lib/sha1.h: Renamed from sha.h.
86512         (SHA1_H): Renamed from _SHA_H.
86513         (sha1_ctx): Renamed from sha_ctx.
86514         (sha1_init_ctx): Renamed from sha_init_ctx.
86515         (sha1_process_block): Renamed from sha_process_block.
86516         (sha1_process_bytes): Renamed from sha_process_bytes.
86517         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86518         (sha1_read_ctx): Renamed from sha_read_ctx.
86519         (sha1_stream): Renamed from sha_stream.
86520         (sha1_buffer): Renamed from sha_buffer.
86521         * lib/sha1.c: Likewise; renamed from sha.c.
86522         Do not include <sys/types.h>.
86523         Include <stddef.h> rather than <stdlib.h>.
86524
86525 2004-08-08  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86528         FILESYSTEM_PREFIX_LEN.
86529         * lib/progreloc.c: Likewise.
86530         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86531
86532 2004-08-06  Simon Josefsson  <jas@extundo.com>
86533
86534         * modules/progname (Depends-on): Don't depend on stdbool.
86535
86536 2004-08-06  Simon Josefsson  <jas@extundo.com>
86537
86538         * modules/getsubopt: New file.
86539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86540         getsubopt.
86541
86542 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86543
86544         More merge from coreutils.
86545
86546         * m4/utimens.m4, m4/utimecmp.m4: New files.
86547         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86548         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86549         prereq.m4, sha.m4: Import changes from coreutils.
86550
86551 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86552
86553         More merge from coreutils.
86554         * modules/raise, modules/readtokens0, modules/utimens:
86555         * modules/utimecmp, module/xnanosleep: New files.
86556         * modules/strftime: Add lib/strftime.h.
86557         Change include from <time.h> to "strftime.h".
86558         * modules/yesno: Add lib/yesno.h.
86559         * modules/backupfile: Remove lib/addext.c.
86560         * modules/euidaccess: Add stat-macros.h.
86561         * modules/canonicalize, modules/euidaccess,
86562         modules/filemode, modules/lchown, modules/makepath,
86563         modules/rmdir, modules/stat: Likewise.
86564
86565 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86566
86567         Merge from tar.
86568         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86569         SIZE_MAX is a valid preprocessor constant.
86570         (__argp_basename): Change from "#ifndef _LIBC"
86571         to "#ifndef __argp_short_program_name", so that
86572         we don't compile these functions for tar.
86573
86574         More merges from coreutils.
86575         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86576         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86577         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86578         * lib/addext.c: Remove; no longer needed.
86579         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86580         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86581         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86582         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86583         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86584         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86585         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86586         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86587         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86588         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86589         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86590         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86591         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86592         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86593         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86594         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86595         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86596         Import changes from coreutils.
86597
86598 2004-08-05  Simon Josefsson  <jas@extundo.com>
86599
86600         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86601
86602 2004-08-05  Simon Josefsson  <jas@extundo.com>
86603
86604         * m4/getsubopt.m4: New file.
86605
86606 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86607
86608         Merge from coreutils.
86609
86610         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86611         * m4/getcwd-path-max.m4: New files.
86612
86613         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86614         FILESYSTEM_PREFIX_LEN ->
86615         FILE_SYSTEM_PREFIX_LEN.
86616         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86617         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86618         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86619         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86620
86621         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86622         prerequisite modules now handle the DOS stuff.
86623         Don't check for unistd.h.
86624
86625 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86626
86627         Merge from coreutils.
86628
86629         * lib/.gdb-history: Remove; this doesn't belong here.
86630
86631         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86632         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86633         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86634         * lib/getcwd.c: New files.
86635
86636         * lib/dirname.h: Include <stdbool.h>.
86637         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86638         for consistency with POSIX terminology.  All uses changed.
86639         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86640         (strip_trailing_slashes): Use bool for booleans.
86641         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86642
86643         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86644         sometimes returns a positive errno value even when it succeeds.
86645         (print_errno_message) [!LIBC]: Fall back on strerror if
86646         __strerror_r fails.
86647
86648         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86649         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86650         (longest_relative_suffix): New function.
86651         (path_concat): Use it.  Assume first argument is not NULL.
86652         Port to DOS.  Omit redundant separators.
86653         Report an error instead of returning NULL.
86654         Use mempcpy instead of memcpy.
86655         (xpath_concat): Remove: not declared or used.
86656
86657         * lib/same.h: Include <stdbool.h>
86658         (same_name): Return bool, not int.
86659         * lib/same.c (same_name): Likewise.
86660         (errno): Don't declare; we assume C89 or better now.
86661
86662         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86663         if not already defined.
86664
86665         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86666         * lib/dup-safer.c (errno): Likewise.
86667
86668 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86669
86670         Merge from coreutils.
86671         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86672         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86673         * modules/path-concat: Don't depend on strdup.
86674
86675 2004-08-03  Simon Josefsson  <jas@extundo.com>
86676
86677         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86678         * lib/progname.h: Don't include stdbool.h.
86679
86680 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86683         * MODULES.html.sh (func_all_modules): Remove fatal.
86684
86685 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86688
86689 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86690
86691         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86692         working.
86693
86694 2004-08-02  Simon Josefsson  <jas@extundo.com>
86695
86696         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86697         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86698         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86699
86700 2004-08-01  Simon Josefsson  <jas@extundo.com>
86701
86702         * lib/xgetdomainname.c: Include stdlib.h, for free().
86703
86704 2004-07-19  Bruno Haible  <bruno@clisp.org>
86705
86706         * MODULES.html.sh (func_all_modules): Add dummy.
86707
86708 2004-07-16  Simon Josefsson  <jas@extundo.com>
86709
86710         * modules/dummy: New file.
86711
86712 2004-07-16  Simon Josefsson  <jas@extundo.com>
86713
86714         * lib/dummy.c: New file.
86715
86716 2004-07-16  Bruno Haible  <bruno@clisp.org>
86717
86718         * lib/backupfile.h: Add extern "C" for C++.
86719         * lib/closeout.h: Likewise.
86720         * lib/copy-file.h: Likewise.
86721         * lib/findprog.h: Likewise.
86722         * lib/full-write.h: Likewise.
86723         * lib/pathname.h: Likewise.
86724         * lib/progname.h: Likewise.
86725         * lib/stpcpy.h: Likewise.
86726         * lib/stpncpy.h: Likewise.
86727         * lib/strcase.h: Likewise.
86728         * lib/strstr.h: Likewise.
86729         * lib/xalloc.h: Likewise.
86730
86731         * lib/mbswidth.h: Add extern "C" for C++.
86732         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86733
86734 2004-07-13  Robert Millan  <robertmh@gnu.org>
86735
86736         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86737
86738 2004-07-09  Simon Josefsson  <jas@extundo.com>
86739
86740         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86741         failed without this.)
86742
86743 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86744
86745         * modules/chown (Files): Add lib/fchown-stub.c, since
86746         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86747
86748 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86749
86750         * lib/fchown-stub.c: New file.
86751
86752 2004-06-24  Jim Meyering  <jim@meyering.net>
86753
86754         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86755
86756 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86757
86758         * modules/argz: Omit "#include".
86759
86760         * MODULES.html.sh (func_all_modules): Add calloc, to match
86761         2004-06-01 addition of calloc module.
86762
86763 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86764
86765         * m4/argz.m4: New file, which is autoupdated from libtool.
86766
86767 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86768
86769         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86770         libtool.
86771
86772 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * config/srclist-update: Don't insist on "USA." before the
86775         close-comment, as libtool omits the period and puts the */ on a
86776         separate line.
86777         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86778         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86779
86780 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86781
86782         * modules/argz: New file.
86783         * MODULES.html.sh (func_all_modules): Add argz.
86784
86785 2004-06-12  Jim Meyering  <jim@meyering.net>
86786         and  Paul Eggert  <eggert@cs.ucla.edu>
86787
86788         * modules/hash (Files): Add lib/xalloc.h.
86789         * modules/pipe (Depends-on): Add wait-process.
86790         * modules/stat (Depends-on): Add xalloc.
86791         * modules/userspec (Files): Add lib/userspec.h.
86792         * modules/xstrto
86793
86794         Upgrade from gettext-0.13.
86795         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86796         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86797         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86798
86799 2004-06-10  Jim Meyering  <jim@meyering.net>
86800
86801         * lib/calloc.c: New file.
86802
86803 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86804
86805         * lib/getdate.y (yylex): Allow space between sign and number.
86806         Problem reported by Dan Jacobson.
86807
86808 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86809
86810         Merge from coreutils CVS.
86811
86812         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86813         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86814         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86815         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86816         xstrtol.m4: Fix copyright date and/or serial number.
86817
86818         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86819         See if we need an fchown replacement.
86820         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86821         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86822         and use the replacement function if we detect either defect.
86823
86824         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86825         gl_UTIMECMP.
86826
86827 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86828         and  Jim Meyering  <jim@meyering.net>
86829
86830         Merge from coreutils CVS.
86831
86832         * lib/stat-macros.h: New file, with contents from file-type.h
86833         and coreutils' system.h.
86834         * lib/file-type.c: Include "stat-macros.h".
86835         * lib/file-type.h (file_type): Move all macro definitions to new file,
86836         stat-macros.h.
86837
86838         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86839         Wrap old code with this conditional.
86840         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86841         function that does not dereference symlinks.
86842         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86843
86844         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86845         dependency problems.
86846         (xreadlink): Accept new arg SIZE, for efficiency.
86847         All decls and uses changed.
86848         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86849
86850         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86851         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86852
86853         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86854         sysexits.h.
86855
86856 2004-06-01  Jim Meyering  <jim@meyering.net>
86857
86858         * m4/calloc.m4: New file.
86859
86860 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86861
86862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86863         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86864         Also, fix a typo in a diagnostic.
86865
86866 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86867
86868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86869         or AC_FUNC_REALLOC.
86870
86871 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86874         macros to be defined.
86875         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86876         the allocator returns NULL because the requested size is zero.
86877
86878 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86879
86880         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86881         var.  Add comment explaining why libc still defines it.  This
86882         merges the following patch from glibc:
86883         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86884
86885 2004-05-20  Andreas Schwab  <schwab@suse.de>
86886
86887         * m4/free.m4: Replace free if it not known to work, not the other
86888         way round.
86889
86890 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86891
86892         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86893         present in glibc since revision 1.1 of this file.
86894         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86895         obstack_alignment_mask, obstack_alloc, obstack_base,
86896         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86897         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86898         obstack_grow0, obstack_init, obstack_int_grow,
86899         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86900         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86901         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86902         nonexistent functions.
86903
86904 2004-05-18  Karl Berry  <karl@gnu.org>
86905
86906         * config/srclist.txt: break link for vasnprintf.c.
86907
86908 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86909
86910         Port obstack to the AS/400, where pointers are 16 bytes wide and
86911         you cannot cast an integer to a valid pointer.  This patch is
86912         currently waiting to be integrated into glibc; see
86913         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86914
86915         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86916         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86917         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86918         (struct obstack): temp member is now a union of a pointer and
86919         an integer, instead of an integer.  All integer uses changed.
86920         This does not affect the physical layout of struct obstack,
86921         except on hosts (like the AS/400) where the size or alignment of
86922         void * is greater than that of ptrdiff_t.
86923         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86924         __STDC__)]: Store temporary in pointer member of union, not
86925         integer member.
86926         * lib/obstack.c: Include <stddef.h>, for offsetof.
86927         (struct fooalign): Remove; it doesn't need a name.
86928         (union fooround): Change double to long double, and add void *.
86929         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86930         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86931         not a macro.  Hence the values are always int; so remove all
86932         casts-to-int in uses.
86933
86934 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86935
86936         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86937         we can get this patch merged into glibc.
86938
86939 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86940             Paul Eggert  <eggert@cs.ucla.edu>
86941
86942         * m4/argp: Depend on alloca.
86943
86944 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86945             Paul Eggert  <eggert@cs.ucla.edu>
86946
86947         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86948         freecoding.
86949
86950 2004-05-17  Bruno Haible  <bruno@clisp.org>
86951
86952         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86953         precision that consists of a '.' followed by an empty digit string.
86954         Patch by Tor Lillqvist <tml@iki.fi>.
86955
86956 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86959         for backward compatibility with older code.  We need our own
86960         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86961         it under some other name, and our alloca.h will define it.
86962
86963 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86964             Derek Price  <derek@ximbiot.com>
86965
86966         * lib/alloca.c: Include <alloca.h>, to get our interface.
86967         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86968         include <alloca.h> first.  Use C89 prototype for alloca; this
86969         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86970         Use #elif for simplicity, since we can assume C89 now.
86971         Don't try to source the system alloca.h since it will not be found
86972         and to prevent recursively including its replacement.
86973         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86974         * lib/regex.c: Likewise.
86975
86976 2004-05-16  Derek Price  <derek@ximbiot.com>
86977             Paul Eggert  <eggert@cs.ucla.edu>
86978
86979         getline cleanup.  This changes the getndelim2 API: both order of
86980         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86981         no delimiter).
86982
86983         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86984         interface does that.
86985         (getline): Always use getdelim, so that we don't have two
86986         copies of this code.
86987         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86988         if available.
86989         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86990         (GETNDELIM2_MAXIMUM): New macro.
86991         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86992         instead of the old practice of delim2==0.  All callers changed.
86993         Return -1 on overflow, instead of returning junk.
86994         Do not set *linesize unless allocation succeeds.
86995         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86996         that we include sys/types.h.
86997         * lib/getnline.h: Likewise.
86998         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86999         (getndelim2): Reorder arguments.
87000         * lib/getnline.c (getnline, getndelim):
87001         Don't discard the NMAX argument.
87002         (getnline): Invoke getndelim, to avoid code duplication.
87003         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87004         of (size_t) -1 by callers of the getnline family.
87005
87006 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87007
87008         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87009         Check for gettimeofday.
87010         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87011         Check for settimeofday, stime.
87012
87013 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87014
87015         * lib/nanosleep.c (suspended): Change its type from int to
87016         sig_atomic_t volatile.
87017         (first_call): Make it private to rpl_nanosleep, and have it
87018         be zero initially as that's a bit faster.
87019         (my_usleep): Round up fractional times instead of truncating them,
87020         as this is the usual meaning for 'sleep'.
87021
87022         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87023         doesn't work.
87024         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87025         (ENOSYS): Define if not defined.
87026         (settime): Fall back on stime if it exists and settimeofday fails.
87027         But don't bother with fallbacks if a method fails with errno == EPERM.
87028
87029 2004-05-11  Jim Meyering  <jim@meyering.net>
87030
87031         Prior to this change, the save_cwd caller required read access to the
87032         current directory on most systems (ones with the fchdir function).
87033
87034         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87035         fails, try write-only, and finally, resort to using xgetcwd.
87036
87037 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         * lib/obstack.c, obstack.h: Import changes from libc.
87040
87041 2004-04-28  Bruno Haible  <bruno@clisp.org>
87042
87043         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87044         also implicitly appends .exe to executables.
87045         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87046         accepts Windows pathnames.
87047         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87048         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87049         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87050         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87051         Reported by Derek Robert Price <derek@ximbiot.com>.
87052
87053 2004-04-21  Karl Berry  <karl@gnu.org>
87054
87055         * config/srclist.txt (localcharset.c): break sync.
87056
87057 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87058
87059         * m4/host-os.m4: Add a copyright notice.
87060
87061 2004-04-20  Jim Meyering  <jim@meyering.net>
87062
87063         Change UTILS_ to gl_ in AC_DEFINE'd names.
87064         Change utils_- and jm_-prefixed variables, too.
87065         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87066         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87068
87069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87070         Don't emit trailing blanks.
87071         Also rename jm_-prefixed variables to have gl_ prefix.
87072
87073         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87074         Also rename jm_-prefixed variables to have gl_ prefix.
87075
87076         * m4/jm-macros.m4: Reflect the renamings.
87077         * m4/prereq.m4: Likewise.
87078
87079 2004-04-20  Jim Meyering  <jim@meyering.net>
87080
87081         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87082         memory.
87083
87084 2004-04-20  Jim Meyering  <jim@meyering.net>
87085             Bruno Haible  <bruno@clisp.org>
87086
87087         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87088         memory when realloc fails.
87089
87090 2004-04-19  Jim Meyering  <jim@meyering.net>
87091
87092         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87093         now that readutmp.c may call `free (0)'.
87094
87095 2004-04-19  Bruno Haible  <bruno@clisp.org>
87096
87097         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87098         * m4/inttypes_h.m4: Likewise.
87099         * m4/stdint_h.m4: Likewise.
87100         * m4/intmax_t.m4: Likewise.
87101         * m4/uintmax_t.m4: Likewise.
87102
87103 2004-04-18  Jim Meyering  <jim@meyering.net>
87104
87105         * m4/prereq.m4: Don't forbid jm_ prefix.
87106
87107         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87108         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87109         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87110         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87111         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87112         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87113         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87114         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87115         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87116         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87117         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87118         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87119         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87120         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87121         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87122         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87123         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87124         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87125         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87126
87127 2004-04-18  Jim Meyering  <jim@meyering.net>
87128
87129         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87130         failure, don't leak memory and do call END_UTMP_ENT.
87131
87132 2004-04-16  Jim Meyering  <jim@meyering.net>
87133
87134         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87135         coreutils' stat program.
87136         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87137
87138 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87139
87140         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87141         C89.
87142         (CHAR_BIT): Remove, since we assume C89.
87143         Include <stdint.h> if available, as per current Autoconf CVS advice.
87144
87145 2004-03-31  Jim Meyering  <jim@meyering.net>
87146
87147         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87148         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87149         * m4/xalloc.m4: Likewise.
87150
87151 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87152
87153         Merge from coreutils.
87154
87155         * m4/inttostr.m4: New file.
87156         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87157         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87158         Require gl_CLOCK_TIME.
87159         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87160
87161 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87162
87163         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87164         not bool, to be more consistent with Unix conventions.
87165         Suggested by Bruno Haible.
87166
87167         Merge from coreutils.
87168
87169         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87170         * lib/umaxtostr.c: New files.
87171
87172         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87173         the usual <time.h> dance.
87174         (get_date): Change signature to support fractional time stamps.
87175         All callers changed.
87176         * lib/getdate.y: Include "getdate.h" first, as we can now
87177         assume C89 and don't need to worry about 'const'.
87178         Similarly, include "unlocked-io.h" near start, not in middle.
87179         Include <limits.h>.
87180         (textint.value): Use long int rather than int.
87181         (textint.digits): Use size_t rather than int.
87182         (BILLION, LOG10_BILLION): New constants.
87183         (parser_control): New member rel_ns.  Members day_ordinal,
87184         time_zone, month, day, hour, minutes, rel_year, rel_month,
87185         rel_day, rel_hour, rel_minutes, rel_seconds
87186         are now long int, not int.  Member seconds is now struct timespec,
87187         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87188         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87189         not int.
87190         (%union.intval): Now long int, not int.
87191         New member timespec.
87192         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87193         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87194         (spec): Now is a timespec or an item list.
87195         (timespec, items): New nonterminals.
87196         (time, rel, relunit, number, get_date):
87197         Add support for fractional seconds.
87198         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87199         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87200         (to_hour): First arg is now long int, not int.
87201         (to_year): Returns long int, not int.
87202         Don't treat year -70 like 70.
87203         (tm_diff): Returns long int, not int.
87204         (lookup_word): Use bool instead of int when appropriate.
87205         (yylex): Use size_t for count, not int.
87206         Detect overflow when parsing large integer constants.
87207         Add support for fractions.
87208         (get_date): Make pointers 'const' if possible.
87209         Use more-portable code to detect integer overflow.
87210         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87211         Don't use ctime; it's not reliable if the year has >4 digits.
87212
87213         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87214         This is for compatibility with BSD.
87215
87216         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87217         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87218         From coreutils' system.h.
87219
87220         * lib/userspec.c: Don't include "posixver.h".
87221         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87222         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87223         compatible extension.  Simplify code by removing a boolean int
87224         that was always nonzero if a string was nonnull.
87225
87226 2004-03-30  Jim Meyering  <jim@meyering.net>
87227
87228         Merge from coreutils.
87229
87230         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87231         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87232         on some systems one must include <grp.h> before it.
87233         Reported by Christian Krackowizer.
87234
87235 2004-03-30  Jim Meyering  <jim@meyering.net>
87236
87237         Merge from coreutils.
87238
87239         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87240
87241         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87242         an empty input stream.
87243
87244         * lib/readtokens.c: Include <stdbool.h>.
87245         (readtoken): Use `size_t' rather than int/long.
87246         All callers adjusted.
87247         Use `bool' rather than `int' where appropriate.
87248         Use memset rather than an explicit loop.
87249         Use x2nrealloc rather than xrealloc.
87250         Allow the use of `\0' as a delimiter.
87251         (readtokens): Likewise.
87252         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87253
87254 2004-03-30  Jim Meyering  <jim@meyering.net>
87255
87256         * m4/realloc.m4: Remove file, since now it does no more than
87257         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87258         the `configure.ac' section of module/realloc.
87259         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87260
87261 2004-03-30  Bruno Haible  <bruno@clisp.org>
87262
87263         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87264         nonnull.
87265
87266 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87267
87268         Merge changes to getloadavg.c from coreutils and Emacs.
87269
87270         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87271         Define to an expression, not to the empty string.
87272         Include cloexec.h and xalloc.h.
87273         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87274         Use set_cloexec_flag rather than rolling our own.
87275         * lib/cloexec.c, lib/cloexec.h: New files.
87276
87277 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87278
87279         * m4/cloexec.m4: New file.
87280
87281 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87282
87283         * lib/getopt.h: Sync with libc CVS.
87284
87285 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87286             Bruno Haible  <bruno@clisp.org>
87287
87288         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87289         mbswidth.
87290
87291 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87292             Bruno Haible  <bruno@clisp.org>
87293
87294         * lib/mbswidth.h: Include <wchar.h> only if
87295         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87296         <wchar.h>.
87297         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87298
87299 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87300
87301         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87302         Sync with libc CVS.
87303         * lib/getopt_int.h: New file, also synced from libc.
87304
87305 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87306
87307         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87308         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87309         Bring back getopt.c, getopt.h, getopt1.c.
87310
87311 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87312
87313         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87314         All uses changed.  Check for sa_sigaction member; this fixes
87315         a bug first reported by Jason Andrade in
87316         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87317
87318 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87319
87320         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87321         '#if' expressions.  Unlike the code it replaces, it does not
87322         depend on (defined _SC_PAGESIZE).  However, it does depend on
87323         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87324         first reported by Jason Andrade in
87325         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87326
87327 2004-02-25  Simon Josefsson  <jas@extundo.com>
87328
87329         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87330
87331 2004-02-25  Simon Josefsson  <jas@extundo.com>
87332
87333         * lib/strdup.h: New file.
87334         * lib/strdup.c: Include it.
87335         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87336         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87337
87338 2004-02-23  Karl Berry  <karl@gnu.org>
87339
87340         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87341         (from fencepost.gnu.org:/gd/gnuorg).
87342
87343 2004-02-23  Karl Berry  <karl@gnu.org>
87344
87345         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87346         * config/srclist.txt: add maintain/standards documents.
87347
87348 2004-02-18  Bruno Haible  <bruno@clisp.org>
87349
87350         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87351         Reported by Derek Robert Price <derek@ximbiot.com>.
87352
87353 2004-02-16  Karl Berry  <karl@gnu.org>
87354
87355         * config/mkinstalldirs, install-sh: update from automake.
87356
87357 2004-02-06  Karl Berry  <karl@gnu.org>
87358
87359         * m4/po.m4: update from gettext 0.14.1.
87360
87361 2004-02-06  Karl Berry  <karl@gnu.org>
87362
87363         * lib/config.charset: update from gettext 0.14.1.
87364
87365 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87366
87367         Add comments and code, prompted by suggestions from Bruno Haible
87368         for sh-quote.
87369         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87370         describing the enum quoting_style values.
87371         * lib/quotearg.c (quotearg_alloc): New function.
87372         (quotearg_buffer_restyled): Treat lone { and } as special.
87373         Treat = as special.  Work around bug with older shells
87374         that "see" a '\' that is really the 2nd byte of a multibyte char.
87375         Quote empty string with shell_quoting_style.
87376
87377 2004-02-03  Bruno Haible  <bruno@clisp.org>
87378
87379         * m4/pipe.m4: New file, from GNU gettext.
87380
87381 2004-02-03  Bruno Haible  <bruno@clisp.org>
87382
87383         * lib/pipe.h: New file, from GNU gettext.
87384         * lib/pipe.c: New file, from GNU gettext.
87385
87386 2004-01-27  Bruno Haible  <bruno@clisp.org>
87387
87388         * m4/execute.m4: New file, from GNU gettext.
87389
87390 2004-01-27  Bruno Haible  <bruno@clisp.org>
87391
87392         * lib/execute.h: New file, from GNU gettext.
87393         * lib/execute.c: New file, from GNU gettext.
87394         * lib/w32spawn.h: New file, from GNU gettext.
87395
87396 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87397
87398         Merge from diffutils.
87399
87400         * lib/file-type.c (file_type): Add typed memory objects.
87401         * lib/file-type.h (S_TYPEISTMO): New macro.
87402
87403         * lib/c-stack.h (c_stack_action): Remove argv argument.
87404         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87405         (die): Don't calculate message unless segv_action returns.
87406         (get_stack_location, min_address_from_argv, max_address_from_argv,
87407         volatile stack_base, volatile_stack_size): Remove.
87408         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87409         that every segmentation violation is a stack overflow.  (Ouch!)
87410         See Debian bug 136249 (still outstanding) for more info about why
87411         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87412
87413 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87414
87415         Exit-status fix from coreutils.
87416
87417         Use exit_failure consistently in place of EXIT_FAILURE,
87418         so that program exit statuses are consistent on failure.
87419
87420         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87421         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87422         * lib/argmatch.h: Comment fix to match the above.
87423         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87424         Now a macro referring to exit_failure, instead of a separate
87425         variable.  Include "exitfail.h" to get it.
87426         * lib/xstrtol.h: Include "exitfail.h".
87427         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87428
87429         * lib/long-options.c (parse_long_options): Use prototype
87430         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87431         for clarity.
87432
87433 2004-01-21  Jim Meyering  <jim@meyering.net>
87434
87435         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87436         so as not to conflict with a different-sized __mktime_internal
87437         function in GNU libc.
87438         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87439         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87440
87441 2004-01-20  Karl Berry  <karl@gnu.org>
87442
87443         * config/config.guess: update from config.
87444
87445         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87446
87447 2004-01-20  Bruno Haible  <bruno@clisp.org>
87448
87449         Safer stack allocation.
87450         * lib/setenv.c: Include allocsa.h.
87451         (alloca): Remove fallback definition.
87452         (freea): Remove macro.
87453         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87454         instead of freea.
87455
87456 2004-01-20  Bruno Haible  <bruno@clisp.org>
87457
87458         * m4/eealloc.m4: New file, from GNU gettext.
87459
87460 2004-01-20  Bruno Haible  <bruno@clisp.org>
87461
87462         * m4/allocsa.m4: New file, from GNU gettext.
87463
87464 2004-01-20  Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/xallocsa.h: New file, from GNU gettext.
87467         * lib/xallocsa.c: New file, from GNU gettext.
87468
87469 2004-01-20  Bruno Haible  <bruno@clisp.org>
87470
87471         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87472
87473 2004-01-20  Bruno Haible  <bruno@clisp.org>
87474
87475         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87476         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87477         specially.
87478
87479 2004-01-20  Bruno Haible  <bruno@clisp.org>
87480
87481         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87482         patch.
87483
87484 2004-01-20  Bruno Haible  <bruno@clisp.org>
87485
87486         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87487
87488 2004-01-20  Bruno Haible  <bruno@clisp.org>
87489
87490         * lib/eealloc.h: New file.
87491
87492 2004-01-20  Bruno Haible  <bruno@clisp.org>
87493
87494         * lib/binary-io.h: Avoid warnings on Cygwin.
87495
87496 2004-01-20  Bruno Haible  <bruno@clisp.org>
87497
87498         * lib/allocsa.h: New file, from GNU gettext.
87499         * lib/allocsa.c: New file, from GNU gettext.
87500
87501 2004-01-18  Karl Berry  <karl@gnu.org>
87502
87503         * doc/gpl.texi, doc/lgpl.texi: new files.
87504
87505 2004-01-18  Karl Berry  <karl@gnu.org>
87506
87507         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87508         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87509
87510 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87511
87512         Merge from coreutils.
87513
87514         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87515         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87516         (gl_DEFAULT_POSIX2_VERSION): Move
87517         the documentation from 'configure' into 'config.hin',
87518         so that 'configure --help' isn't burdened by it and
87519         we don't have to worry about its formatting there.
87520         Reword the documentation so that it's more succinct
87521         and can be run together into a single paragraph.
87522         * m4/same.m4 (gl_SAME): Check for pathconf.
87523
87524 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87525
87526         Merge from coreutils.
87527
87528         * lib/posixver.c: Include posixver.h.
87529
87530         * lib/same.c: Include <stdbool.h>, <limits.h>.
87531         (_POSIX_NAME_MAX): Define if not defined.
87532         (MIN): New macro.
87533         (same_name): If file names are silently truncated, report
87534         that the file names are the same if they are the same after
87535         the silent truncation.
87536
87537         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87538         conversion function.
87539         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87540         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87541         longer needed.
87542
87543 2004-01-15  Jim Meyering  <jim@meyering.net>
87544
87545         Merge from coreutils.
87546
87547         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87548         if no library is required.
87549         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87550         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87551         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87552         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87553         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87554         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87555         value, $ac_cv_search_crypt, if it's "none required".
87556         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87557         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87558         not gl_FUNC_GETLOADAVG.
87559         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87560         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87561
87562 2004-01-15  Jim Meyering  <jim@meyering.net>
87563
87564         Merge from coreutils.
87565
87566         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87567         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87568         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87569
87570         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87571         optional configure-time default.
87572
87573         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87574
87575         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87576
87577 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87578
87579         Merge from coreutils.
87580
87581         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87582         value, $ac_cv_search_nanosleep, if it's "none required".
87583
87584 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87585
87586         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87587         with like-named macro in fnmatch.c.
87588         (EXT): Use an internal constant instead.
87589
87590         Merge fnmatch patches from glibc.
87591         * lib/fnmatch.c (mbsinit): Remove define.
87592         Add libc_hidden_ver (__fnmatch, fnmatch).
87593         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87594         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87595
87596 2004-01-14  Karl Berry  <karl@gnu.org>
87597
87598         * config/install-sh: update from automake.
87599
87600 2004-01-13  Karl Berry  <karl@gnu.org>
87601
87602         * config/install-sh: update from automake.
87603
87604 2004-01-09  Karl Berry  <karl@gnu.org>
87605
87606         * config/install-sh: update from automake.
87607
87608 2004-01-05  Karl Berry  <karl@gnu.org>
87609
87610         * config/config.{sub,guess}: update from config.
87611
87612 2003-12-31  Karl Berry  <karl@gnu.org>
87613
87614         * config/depcomp: update from automake.
87615
87616 2003-12-14  Karl Berry  <karl@gnu.org>
87617
87618         * lib/config.charset: update from gettext-runtime.
87619
87620 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87621
87622         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87623         Bug reported by Alfred M. Szmidt.
87624
87625 2003-12-03  Bruno Haible  <bruno@clisp.org>
87626
87627         * m4/gettext.m4: Upgrade from gettext-0.13.
87628         * m4/po.m4: Upgrade from gettext-0.13.
87629         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87630         * m4/intmax.m4: New file, from gettext-0.13.
87631         * m4/printf-posix.m4: New file, from gettext-0.13.
87632
87633 2003-11-29  Karl Berry  <karl@gnu.org>
87634
87635         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87636
87637 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87638             Bruno Haible  <bruno@clisp.org>
87639
87640         * lib/printf-parse.h: Don't include sys/types.h.
87641         (ARG_NONE): New macro.
87642         (char_directive): Change type of *arg_index fields to size_t.
87643         * lib/printf-parse.c: Don't include sys/types.h.
87644         (SSIZE_MAX): Remove macro.
87645         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87646         Remove unnecessary overflow check.
87647         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87648         fields.
87649
87650 2003-11-25  Bruno Haible  <bruno@clisp.org>
87651
87652         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87653
87654 2003-11-25  Bruno Haible  <bruno@clisp.org>
87655
87656         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87657         gt_TYPE_SSIZE_T.
87658
87659 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87660
87661         * modules/alloca: Remove dependency on xalloc.
87662
87663 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87664
87665         * lib/alloca.c: Remove dependency on xalloc module.
87666         (xalloc_die): Remove.
87667         (memory_full) [!defined emacs]: New macro.
87668         [!defined emacs]: Don't include xalloc.h.
87669         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87670         address arithmetic overflows.  Change datatypes a bit to avoid
87671         unnecessary casts.
87672
87673 2003-11-22  Jim Meyering  <jim@meyering.net>
87674
87675         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87676         s/size/size_t/.
87677
87678 2003-11-21  Karl Berry  <karl@gnu.org>
87679
87680         * config/config.{sub,guess}: update from config.
87681
87682 2003-11-18  Karl Berry  <karl@gnu.org>
87683
87684         * config/config.{sub,guess}: update from config.
87685
87686         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87687
87688 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87689
87690         * README: Mention that S+T cannot overflow if S is the size of
87691         an existing object and T is sufficiently small.
87692
87693 2003-11-17  Jim Meyering  <jim@meyering.net>
87694
87695         On systems without utime and without a utimes function capable of
87696         dealing with a NULL struct utimbuf* argument, this utime replacement
87697         could -- in unusual circumstances -- leak a file descriptor.
87698         * lib/utime.c: Include <unistd.h> and <errno.h>.
87699         (utime_null): Be sure to close `fd' and to preserve errno.
87700         Reported by Geoff Collyer via Arnold Robbins.
87701
87702 2003-11-17  Bruno Haible  <bruno@clisp.org>
87703
87704         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87705         (Depends-on): Add xsize.
87706
87707 2003-11-17  Bruno Haible  <bruno@clisp.org>
87708
87709         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87710
87711 2003-11-17  Bruno Haible  <bruno@clisp.org>
87712
87713         * lib/vasnprintf.c (alloca): Remove fallback definition.
87714         (freea): Remove definition.
87715         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87716         Reported by Paul Eggert.
87717
87718 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87719             Bruno Haible  <bruno@clisp.org>
87720
87721         Protect against address arithmetic overflow.
87722         * lib/printf-args.h: Include stddef.h.
87723         (arguments): Change type of field 'count' to size_t.
87724         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87725         'unsigned int' where appropriate.
87726         * lib/printf-parse.h: Include sys/types.h.
87727         (char_directive): Change type of *arg_index fields to ssize_t.
87728         (char_directives): Change type of fields 'count', max_*_length to
87729         size_t.
87730         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87731         (SSIZE_MAX): Define fallback value.
87732         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87733         instead of 'int' where appropriate. Check a_allocated, d_allocated
87734         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87735         * lib/vasnprintf.c: Include xsize.h.
87736         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87737         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87738         overflow. Avoid wraparound when converting a width or precision from
87739         decimal to binary.
87740
87741 2003-11-16  Bruno Haible  <bruno@clisp.org>
87742
87743         Update from GNU gettext.
87744         * lib/printf-parse.c: Generalize to it can be compiled for wide
87745         strings.
87746         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87747         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87748         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87749         SNPRINTF): New macros.
87750         Don't include <alloca.h> if the file is used inside libintl.
87751         (local_wcslen): New function, for Solaris 2.5.1.
87752         (VASNPRINTF): Use it instead of wcslen.
87753
87754 2003-11-16  Bruno Haible  <bruno@clisp.org>
87755
87756         * lib/xsize.h (xmax): New function.
87757         (xsum, xsum3, xsum4): Declare as "pure" functions.
87758
87759 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87760
87761         * modules/xalloc (Files): Undo latest change, since xalloc.h
87762         no longer needs SIZE_MAX or PTRDIFF_MAX.
87763
87764 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87765
87766         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87767         gl_PTRDIFF_MAX.
87768
87769 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87770
87771         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87772         "return", to pacify some unknown compiler.  Problem reported
87773         by Joerg Schilling.
87774
87775 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87778         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87779         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87780         heuristic is just as accurate as far as we know, and it removes a
87781         dependency on size_max.m4 and ptrdiff_max.m4.
87782
87783 2003-11-11  Bruno Haible  <bruno@clisp.org>
87784
87785         * modules/xsize (Files): Add m4/size_max.m4.
87786         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87787
87788 2003-11-11  Bruno Haible  <bruno@clisp.org>
87789
87790         * m4/size_max.m4: New file.
87791         * m4/ptrdiff_max.m4: New file.
87792         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87793         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87794         (gl_XALLOC): Invoke it.
87795
87796 2003-11-11  Bruno Haible  <bruno@clisp.org>
87797
87798         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87799         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87800         defined.
87801
87802 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87803
87804         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87805         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87806         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87807         From Bruno Haible.
87808         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87809         not (size_t) -1, since it's defined here.
87810
87811 2003-11-09  Karl Berry  <karl@gnu.org>
87812
87813         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87814
87815 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87816
87817         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87818         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87819         Reject sizes of exactly SIZE_MAX bytes.
87820         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87821         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87822
87823 2003-11-05  Bruno Haible  <bruno@clisp.org>
87824
87825         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87826         SIZE_MAX defined in <limits.h> on Solaris.
87827
87828 2003-11-04  Jim Meyering  <jim@meyering.net>
87829
87830         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87831         variable names, rather than @VAR@.
87832         * modules/poll: Likewise.
87833
87834 2003-11-04  Bruno Haible  <bruno@clisp.org>
87835
87836         * modules/xsize: New file.
87837         * modules/linebreak: Depend on xsize.
87838         * MODULES.html.sh (func_all_modules): Add xsize.
87839
87840 2003-11-04  Bruno Haible  <bruno@clisp.org>
87841
87842         * m4/xsize.m4: New file.
87843
87844 2003-11-04  Bruno Haible  <bruno@clisp.org>
87845
87846         * lib/xsize.h: New file.
87847         * lib/linebreak.c: Include xsize.h.
87848         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87849         argument for overflow.
87850         Suggested by Paul Eggert.
87851
87852 2003-11-03  Karl Berry  <karl@gnu.org>
87853
87854         * config/config.{guess,sub}: update from config.
87855
87856 2003-11-03  Jim Meyering  <jim@meyering.net>
87857
87858         * modules/userspec (lib_SOURCES): Add userspec.h.
87859         (Include): Add "userspec.h".
87860         Improve description.
87861
87862 2003-11-03  Jim Meyering  <jim@meyering.net>
87863
87864         * lib/userspec.c: Include "userspec.h".
87865         * lib/userspec.h: New file.
87866
87867 2003-11-03  Bruno Haible  <bruno@clisp.org>
87868
87869         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87870
87871 2003-11-03  Bruno Haible  <bruno@clisp.org>
87872
87873         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87874         available, to avoid (extremely rare) race condition.
87875         Suggested by Paul Eggert.
87876
87877 2003-11-02  Karl Berry  <karl@gnu.org>
87878
87879         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87880
87881 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87882
87883         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87884         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87885         (read_filesystem_list): Set and use me_type_malloced.
87886         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87887         whatever the type happens to be), for brevity and consistency.
87888         Check for size calculation overflow on Alphas running OSF/1.
87889
87890 2003-10-31  Jim Meyering  <jim@meyering.net>
87891
87892         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87893
87894         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87895
87896 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87897             Bruno Haible  <bruno@clisp.org>
87898
87899         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87900         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87901
87902 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87903
87904         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87905         netbsd*-gnu*.  Suggested by Robert Millan.
87906
87907 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87908
87909         * modules/group-member: Depend on stdbool.
87910
87911 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87912
87913         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87914
87915 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87916
87917         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87918         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87919         after the 'gnu' in these cases.  This fixes some bugs in the
87920         previous change, and is based on suggestions by Robert Millan.
87921
87922 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87923
87924         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87925         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87926         no longer needed.
87927         * lib/quotearg.c (quotearg_n_options): Use it.
87928         * lib/group-member.c: Include <stdbool.h>.
87929         (free_group_info): Arg is now const *; don't free arg.
87930         (get_group_info): Now returns bool and accepts struct group_info *,
87931         rather than returning a malloc'ed struct group_info *.
87932         All uses changed.  Check for overflow in internal size calculation.
87933
87934         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87935         rather than xmalloc/xrealloc.
87936         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87937         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87938         conformance bug: the old code used a pointer after freeing the
87939         storage that it addressed.
87940         * lib/hash.c (hash_initialize): Simplify the code by using
87941         xalloc_oversized rather than doing it by hand.
87942         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87943         the buffer preserved.  Use free and xmalloc instead.
87944         * lib/quotearg.c (quotearg_n_options): Likewise.
87945         Use a simpler test for size overflow.  Don't use xalloc_oversized
87946         because unsigned int might be wider than size_t (!); this suggests
87947         that we should switch from unsigned int to size_t for slot numbers.
87948
87949 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87950
87951         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87952         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87953         NetBSD kernels.  Requested by Richard Stallman.
87954
87955 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87956
87957         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87958         to allocate the returned structure.  Do not allocate a subarray,
87959         as x2nrealloc will do that.
87960         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87961         instead of xnrealloc.
87962         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87963
87964 2003-10-27  Bruno Haible  <bruno@clisp.org>
87965
87966         * lib/stdbool_.h: Better support for BeOS.
87967
87968 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87969
87970         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87971         now uses inline.
87972
87973 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87974
87975         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87976         callers that want to do their own size-overflow checking.  Include
87977         <stdbool.h>, since xalloc_oversized returns bool.
87978         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87979         to use xalloc_oversized.
87980
87981         Add two functions x2realloc, x2nrealloc, for programs that grow
87982         arrays dynamically by doubling their sizes.
87983         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87984         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87985         New functions.
87986
87987         Port to C99 semantics for 'inline' of external functions.
87988         Bug reported by Bruno Haible.
87989         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87990         with the old contents of xnmalloc.
87991         (xnmalloc, xmalloc): Use it.
87992         (xnrealloc_inline): New static inline function,
87993         with the old contents of xnrealloc.
87994         (xnrealloc, xrealloc): Use it.
87995
87996         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87997         that.
87998
87999 2003-10-26  Karl Berry  <karl@gnu.org>
88000
88001         * config/srclist.txt (COPYING.DOC): no longer available from
88002         /gd/gnuorg; don't know where the ultimate source is.
88003
88004 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88005
88006         Fix several address-calculation bugs in the hash modules,
88007         plus some minor code cleanup.
88008
88009         * lib/hash.h: Include <stdbool.h>, for bool.
88010         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88011         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88012         hash_get_n_entries, hash_get_max_bucket_length,
88013         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88014         hash_rehash): Use size_t rather than unsigned.
88015         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88016         hash_get_n_buckets_used, hash_get_n_entries,
88017         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88018         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88019         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88020         Likewise.
88021         (SIZE_MAX): Define if not defined.
88022         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88023         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88024         hash_print):
88025         Use const * when possible.
88026         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88027         (check_tuning): Fix bug: if tuning parameters were very close to
88028         0 or 1, rounding errors could have caused subscript violations.
88029         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88030         (hash_initialize): Add 'fail:' label
88031         to free table and return NULL, and use it to simplify code.
88032         Use calloc rather than clearing the storage ourself.
88033         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88034         buffer size calculations.
88035         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88036         Include <stddef.h>, for size_t.
88037         * lib/hash-pjw.c (hash_pjw): Likewise.
88038         Switch to method described by Bruno Haible.
88039         Include <limits.h>, for CHAR_BIT.
88040         (SIZE_BITS): New macro.
88041
88042 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88043
88044         * m4/getline.m4 (AM_FUNC_GETLINE):
88045         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88046         hosts.  Problem reported by Derek Robert Price in
88047         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88048         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88049         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88050
88051 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88052
88053         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88054         ceiling the allocation at NMAX bytes rather than silently
88055         discarding input bytes before NMAX is reached.  This makes
88056         a difference only if NMAX exceeds SIZE_MAX / 2.
88057
88058         * lib/obstack.c: Merge from glibc.
88059         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88060         Add libc_hidden_def (_obstack_newchunk).
88061         (_obstack_free) [! defined _LIBC]: Remove.
88062         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88063         a clone of the function body.
88064         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88065         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88066
88067         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88068         glibc.
88069         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88070         arg to memcpy.
88071
88072         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88073         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88074         Don't use lvalue casts, as GCC plans to remove support for them
88075         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88076         was also present in the non-GCC version, indicating that this
88077         code had always been buggy and had never been widely used.
88078         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88079         Use the fast variant of each macro, rather than copying the
88080         definiens of the fast variant; that way, we'll be more likely to
88081         catch future bugs in the fast variants.
88082
88083 2003-10-20  Bruno Haible  <bruno@clisp.org>
88084
88085         * modules/wait-process: New file.
88086         * MODULES.html.sh (func_all_modules): Add wait-process.
88087
88088 2003-10-20  Bruno Haible  <bruno@clisp.org>
88089
88090         * m4/wait-process.m4: New file.
88091
88092 2003-10-20  Bruno Haible  <bruno@clisp.org>
88093
88094         * lib/wait-process.h: New file, from GNU gettext.
88095         * lib/wait-process.c: New file, from GNU gettext.
88096
88097 2003-10-19  Jim Meyering  <jim@meyering.net>
88098
88099         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88100         HPUX 10.20.
88101
88102 2003-10-18  Karl Berry  <karl@gnu.org>
88103
88104         * config/config.guess: update from config.
88105
88106 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88107
88108         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88109         (getgroups): First arg is int, not size_t.
88110         Don't let 'free' mangle errno.
88111
88112 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88113
88114         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88115
88116 2003-10-16  Karl Berry  <karl@gnu.org>
88117
88118         * config/config.{guess,sub}: update from config.
88119
88120 2003-10-16  Jim Meyering  <jim@meyering.net>
88121
88122         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88123         memcpy.
88124
88125 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88126
88127         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88128         (SIZE_MAX): Remove.
88129         (new_exclude, add_exclude_file): Initial size no longer needs to
88130         be a power of 2.
88131         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88132         our own address arithmetic overflow checking.
88133
88134         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88135         (fnmatch): Do not alloca more than 2000 wide characters;
88136         instead, use malloc for large buffers.
88137         Check for address arithmetic overflow, and return -1
88138         with errno set to ENOMEM in that case.
88139         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88140         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88141         instead, return -1.  Check for address arithmetic overflow.
88142
88143 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88144
88145         Handle invalid suffixes and overflow independently, so that
88146         callers can treat them independently as needed.  Fix some bugs in
88147         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88148         suffix for a human-readable blocksize.  The major caller-visible
88149         change is the addition of a new
88150         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88151         that both overflow and suffix chars were found.
88152
88153         * lib/human.c (humblock): Don't check separately for invalid suffix
88154         char; that is xstrtoumax's job (now that its bug is fixed).
88155         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88156         INTMAX_MAX]: New macros.
88157         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88158         TYPE_MAXIMUM): New macros.
88159         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88160         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88161         if overflow occurs, as it's what __strtol does and it's more useful
88162         in practice.
88163         (__xstrtol): If __strtol reports some error other than ERANGE,
88164         reflect it to the caller as LONGINT_INVALID.  If it reports
88165         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88166         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88167         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88168         value.
88169         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88170         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88171         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88172         [defined UINTMAX_MAX]: New macros.
88173
88174 2003-10-14  Bruno Haible  <bruno@clisp.org>
88175
88176         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88177
88178 2003-10-14  Bruno Haible  <bruno@clisp.org>
88179
88180         * m4/sig_atomic_t: New file, from GNU gettext.
88181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88182
88183 2003-10-14  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88186         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88187         Also use volatile where needed.
88188
88189 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88190
88191         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88192         Change maintainer from Bruno Haible to 'all'.
88193
88194 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88195
88196         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88197
88198 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88199
88200         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88201         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88202         and define in terms of the other primitives.
88203         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88204         (SIZE_MAX): Define if not already defined.
88205         (array_size_overflow): New function.
88206         (xalloc_die): Abort instead of exiting if 'error' returns.
88207         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88208         (xmalloc, xrealloc): Use them.
88209         (xcalloc): Check for address arithmetic overflow.
88210         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88211         a bit faster than strcpy.
88212
88213 2003-10-10  Simon Josefsson  <jas@extundo.com>
88214
88215         * modules/argp (Depends-on): Add restrict and strcase.
88216
88217 2003-10-10  Simon Josefsson  <jas@extundo.com>
88218
88219         * m4/argp.m4: Add AC_C_INLINE.
88220
88221 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88222
88223         Merge getpass from libc, plus a few fixes.
88224
88225         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88226         Include <stdbool.h>.
88227         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88228         __fsetlocking to empty.
88229         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88230         do include <bits/libc-lock.h>.
88231         Do not include <fcntl.h>; not needed.
88232         [_LIBC]: Include <wchar.h>.
88233         (NOTCANCEL_MODE): New macro.
88234         (flockfile, funlockfile) [_LIBC]: New macros.
88235         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88236         [!_LIBC]: New macros.
88237         (call_fclose): New function.
88238         (getpass): Use it.  Save tty stream separately; this simplifies the
88239         code and makes it more reliable if stdin happens to equal stdout.
88240         Invoke __fsetlocking on tty.
88241         Handle thread cancellation if needed.
88242         Namespace cleanup (use __tcgetattr, __getline).
88243         Use bool for Booleans.
88244         [USE_IN_LIBIO]: Handle wide streams.
88245         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88246         stream might go where.
88247
88248         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88249         doesn't have to include <stdio.h> before us.
88250         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88251         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88252         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88253         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88254         if not declared, so that we can use getpass.c code from libc without
88255         rewriting it.
88256         (flockfile, ftrylockfile, funlockfile): New macros.
88257
88258 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88259
88260         * modules/getpass: Depend on stdbool.
88261
88262 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88263
88264         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88265
88266 2003-10-07  Karl Berry  <karl@gnu.org>
88267
88268         * config/config.{guess,sub}: update from config.
88269
88270 2003-10-06  Jim Meyering  <jim@meyering.net>
88271             Bruno Haible  <bruno@clisp.org>
88272
88273         This lets translators provide better translations for the
88274         "Written by ..." part of --version output.
88275         * lib/version-etc.h: Include stdarg.h.
88276         (version_etc_copyright): Declare as readonly.
88277         (version_etc): Make this function variadic with a NULL-terminated list
88278         of author name strings.
88279         (version_etc_va): New declaration.
88280         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88281         (version_etc_copyright): Declare as readonly.
88282         (version_etc_va): New function. Provide a different translatable string
88283         for each possible number of authors < 10. Abbreviate when there are 10
88284         authors or more.
88285         (version_etc): Make this function variadic. Call version_etc_va.
88286         Suggestion from Gary V. Vaughan.
88287
88288         * lib/long-options.h (parse_long_options): Change prototype: the
88289         authors string is moved to the end and becomes variadic.
88290         * lib/long-options.c: Include stdarg.h.
88291         (parse_long_options): Make this function variadic, too.
88292         Call version_etc_va, not version_etc.
88293
88294 2003-10-06  Bruno Haible  <bruno@clisp.org>
88295
88296         * modules/version-etc-2: Remove file.
88297         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88298
88299 2003-10-06  Bruno Haible  <bruno@clisp.org>
88300
88301         * modules/fatal-signal: New file.
88302         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88303
88304 2003-10-06  Bruno Haible  <bruno@clisp.org>
88305
88306         * m4/fatal-signal.m4: New file.
88307         * m4/signalblocking.m4: New file, from GNU gettext.
88308
88309 2003-10-06  Bruno Haible  <bruno@clisp.org>
88310
88311         * lib/version-etc-2.h: Remove file.
88312         * lib/version-etc-2.c: Remove file.
88313
88314 2003-10-06  Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/fatal-signal.h: New file, from GNU gettext.
88317         * lib/fatal-signal.c: New file, from GNU gettext.
88318
88319 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88320
88321         * README: Rework advice for preventing empty .o files.
88322         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88323         not <sys/types.h>.
88324
88325 2003-10-04  Karl Berry  <karl@gnu.org>
88326
88327         * lib/argp*: update from libc.
88328
88329 2003-10-04  Karl Berry  <karl@gnu.org>
88330
88331         * config/config.{guess,sub}: update from config.
88332
88333 2003-10-02  Bruno Haible  <bruno@clisp.org>
88334
88335         * modules/lchown (Include): Add lchown.h.
88336         * modules/time_r (Include): Use "..." syntax.
88337         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88338
88339 2003-10-01  Simon Josefsson  <jas@extundo.com>
88340
88341         * MODULES.html.sh (func_all_modules): Move gethostname from section
88342         'based on' to section 'lacking' POSIX:2001.
88343
88344 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88345
88346         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88347         to output mode on the same stream.
88348
88349 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88350
88351         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88352         Fix arg typo in previous patch.
88353
88354 2003-09-28  Jim Meyering  <jim@meyering.net>
88355
88356         * lib/error.c: Correct cpp indentation.
88357
88358 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88359
88360         * modules/free: New file.
88361
88362 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88363
88364         * m4/free.m4: New file.
88365
88366 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88367
88368         * lib/minmax.h (MIN, MAX)
88369         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88370         Omit the special code that used __typeof__, since we worry that
88371         it could be more trouble than it's worth.  See:
88372         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88373         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88374
88375         * lib/free.c: New file.
88376
88377 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88378
88379         Trivial fixes to Makefile.am parts of module listings.
88380         * modules/strstr: Append strstr.h to lib_SOURCES.
88381         * modules/strcase: Likewise, for strcase.h.
88382
88383 2003-09-27  Karl Berry  <karl@gnu.org>
88384
88385         * config/mkinstalldirs: update from automake.
88386
88387 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88388
88389         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88390         (error_tail): Do not loop, reallocating temporary buffer, since
88391         the output cannot contain more wide characters than the input
88392         contains bytes, the size must be big enough already.  This avoids
88393         one potential size overflow calculation.  Check for size overflow
88394         when calculating temporary buffer size.  Free temporary buffer
88395         when done, if it was allocated with malloc; this plugs a memory
88396         leak.  Remove casts from void * to pointers, that are no longer
88397         needed now that we're assuming C89 or better.
88398
88399         Merge error changes from glibc.
88400
88401         * lib/error.c, error.h: Update copyright notice header to match glibc.
88402         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88403         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88404         Disable cancellation while printing error.
88405         * lib/error.h: Prepend __ to parameter names.
88406
88407 2003-09-26  Jim Meyering  <jim@meyering.net>
88408
88409         * lib/error.c (error_tail): Move some declarations
88410         into inner scope where the local variables are used.
88411
88412 2003-09-26  Bruno Haible  <bruno@clisp.org>
88413
88414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88415         stpncpy().
88416         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88417
88418 2003-09-26  Bruno Haible  <bruno@clisp.org>
88419
88420         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88421         (stpncpy): Define as alias for gnu_stpncpy.
88422         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88423
88424 2003-09-25  Simon Josefsson  <jas@extundo.com>
88425
88426         * lib/xgetdomainname.h: New file.
88427         * lib/xgetdomainname.c: New file.
88428
88429 2003-09-25  Simon Josefsson  <jas@extundo.com>
88430             Bruno Haible  <bruno@clisp.org>
88431
88432         * modules/getdomainname: New file.
88433         * modules/xgetdomainname: New file.
88434         * MODULES.html.sh (func_all_modules): Add getdomainname,
88435         xgetdomainname.
88436
88437 2003-09-25  Simon Josefsson  <jas@extundo.com>
88438             Bruno Haible  <bruno@clisp.org>
88439
88440         * m4/getdomainname.m4: New file.
88441
88442 2003-09-25  Simon Josefsson  <jas@extundo.com>
88443             Bruno Haible  <bruno@clisp.org>
88444
88445         * lib/getdomainname.h: New file.
88446         * lib/getdomainname.c: New file.
88447
88448 2003-09-25  Karl Berry  <karl@gnu.org>
88449
88450         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88451
88452 2003-09-25  Karl Berry  <karl@gnu.org>
88453
88454         * config/install-sh: update from automake.
88455
88456 2003-09-25  Bruno Haible  <bruno@clisp.org>
88457
88458         * modules/version-etc-2: New file, from modules/version-etc with
88459         modifications.
88460         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88461
88462 2003-09-25  Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88465         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88466
88467 2003-09-24  Simon Josefsson  <jas@extundo.com>
88468
88469         * modules/xgethostname: Add xgethostname.h.
88470
88471 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88472
88473         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88474         the buffer associated with the argument.  Bug reported by
88475         Simon Josefsson.
88476
88477 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88478
88479         * README: Document assumptions that 'int' is at least 32 bits
88480         wide, that integer arithmetic is 2's complement without overflow,
88481         that there are no holes in integer values, that adding sizes of
88482         two nonoverlapping objects can't overflow, and that all-bits-zero
88483         yields scalar zero.  Fix spelling and capitalization typos.
88484
88485 2003-09-19  Karl Berry  <karl@gnu.org>
88486
88487         * lib/argp.h: update from libc.
88488
88489 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88490
88491         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88492         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88493         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88494
88495 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88496
88497         * gnulib-tool: Use "test -h", not "test -L", for portability
88498         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88499         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88500         (sed_extract_prog): Issue s commands one-by-one, rather than
88501         using \| in one s command.
88502
88503 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88506         input error, instead of returning NULL the next time we are called
88507         (and therefore losing track of errno).
88508
88509 2003-09-16  Bruno Haible  <bruno@clisp.org>
88510
88511         * gnulib-tool (func_create_testdir): Warn about duplicated
88512         dependencies.
88513
88514 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88515
88516         * modules/argmatch, modules/fatal, modules/obstack,
88517         modules/xalloc, modules/xgethostname: Sort dependencies by
88518         importance, not alphabetically.
88519
88520 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88523         fails, so that the caller gets the proper errno.
88524
88525         * lib/readutmp.c (read_utmp): Likewise.
88526         Check for fstat error.  Close stream and free storage
88527         when failing.
88528
88529 2003-09-14  Karl Berry  <karl@gnu.org>
88530
88531         * config/srclist.txt (strdup.c): disable for c89 changes.
88532
88533 2003-09-14  Jim Meyering  <jim@meyering.net>
88534
88535         * lib/getloadavg.c: Correct cpp indentation.
88536         * lib/strdup.c: Likewise.
88537         * lib/vasnprintf.c: Likewise.
88538
88539 2003-09-14  Bruno Haible  <bruno@clisp.org>
88540
88541         * modules/fwriteerror: New file.
88542         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88543
88544 2003-09-14  Bruno Haible  <bruno@clisp.org>
88545
88546         * lib/fwriteerror.h: New file.
88547         * lib/fwriteerror.c: New file.
88548
88549 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88550
88551         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88552         modules/xgethostname, modules/xalloc: Depend on exit.
88553
88554 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88555
88556         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88557
88558         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88559         and AC_MINIX, too, so that their extensions are available.
88560
88561         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88562         This macro has been superseded by gl_BACKUPFILE.
88563
88564         More patches to assume C89 or better.
88565
88566         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88567
88568         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88569         unconditionally.
88570         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88571         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88572         Include <string.h>, <stdlib.h> unconditionally.
88573         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88574         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88575         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88576         headers or for string.h.
88577         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88578         or strtoul.
88579
88580         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88581         headers.
88582         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88583         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88584         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88585         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88586         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88588         memcpy, memset.
88589         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88590         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88591         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88592         strtol.
88593         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88594         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88595         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88596         strtoul.
88597
88598 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88599
88600         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88601         * lib/obstack.c [!defined _LIBC]: Likewise.
88602         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88603         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88604         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88605
88606         More changes to assume C89 or better.
88607
88608         * lib/error.c (error_tail): Assume vprintf.
88609
88610         * lib/argmatch.c (getenv): Remove decl.
88611         * lib/progreloc.c (get_full_program_name): Define via prototype.
88612         * lib/setenv.c (clearenv): Likewise.
88613         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88614         needed.
88615         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88616         (malloc, memcpy): Remove decls.
88617         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88618         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88619         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88620         (memcpy): Remove macro.
88621         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88622         (__P): Remove.  All uses removed.
88623         (PTR): Remove.  All uses changed to void *.
88624         (CHAR_BIT, NULL): Remove.
88625         (spaces, zeros, memset_space, memset_zero)
88626         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88627         Remove.
88628         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88629         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88630         Define with prototype.
88631         Remove now-unnecessary prototype decl.
88632         (extra_args_spec): Assume ANSI C.  All uses changed.
88633         (extra_args_spec_iso): Remove.
88634         (my_strftime, emacs_strftimeu): Define via prototype.
88635         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88636         unconditionally.
88637         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88638         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88639         (strtoul, strtol): Remove decls.
88640         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88641         LONG_MAX): Remove.
88642         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88643         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88644         (LOCALE_PARAM_PROTO): New macro.
88645         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88646         (INTERNAL (strtol), strtol): Define with a prototype.
88647         (PARAMS): Remove.  All uses removed.
88648         * lib/tempname.c: Include <string.h> unconditionally.
88649         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88650         * lib/xgethostname.c (main): Define with a prototype.
88651         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88652         Include <stdlib.h> unconditionally.
88653         (calloc, malloc, realloc, free): Remove decls.
88654         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88655         Include <stdlib.h> unconditionally.  Sort include file names.
88656         (strtod): Remove.
88657         (xstrtod): Define with a prototype.
88658         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88659         (strtol, strtoul): Remove decls.
88660
88661 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88662
88663         More patches to assume C89 or better.
88664         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88665         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88666         string.h, memchr, STDC_HEADERS.
88667
88668 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88669
88670         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88671         Include <stdlib.h>, <string.h> unconditionally.
88672         Remove now-unnecessary cast to char *.
88673         * lib/strnlen.c: Include <string.h> unconditionally.
88674         * lib/yesno.c (yesno): Define with a prototype.
88675
88676 2003-09-11  Bruno Haible  <bruno@clisp.org>
88677
88678         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88679
88680 2003-09-10  Jim Meyering  <jim@meyering.net>
88681
88682         * lib/error.c: Correct indentation of cpp directives.
88683
88684 2003-09-10  Bruno Haible  <bruno@clisp.org>
88685
88686         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88687         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88688         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88689         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88690         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88691         <stdlib.h> and <string.h> checks.
88692         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88693         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88694
88695 2003-09-10  Bruno Haible  <bruno@clisp.org>
88696
88697         * lib/strcspn.c: Include <string.h> unconditionally.
88698         * lib/strpbrk.c: Include <string.h> unconditionally.
88699         * lib/strstr.c: Include <string.h> unconditionally.
88700         * lib/unicodeio.c: Include <string.h> unconditionally.
88701         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88702         * lib/unsetenv.c: Likewise.
88703         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88704         * lib/yesno.c: Include <stdlib.h> unconditionally.
88705         (rpmatch): Add prototype.
88706
88707 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88708
88709         More patches to assume C89 or better.
88710         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88711         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88712         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88713         or for string.h.
88714         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88715         stdlib.h.
88716         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88717         C headers.
88718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88719         string.h.
88720         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88721         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88722         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88723         or for string.h.
88724         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88725         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88726         C headers.
88727         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88728         memcpy.
88729         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88730         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88731         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88732         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88733         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88734         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88735         string.h, free.
88736         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88737         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88738         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88739         C headers, or for string.h.
88740         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88741         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88742         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88743         headers, memory.h, stdlib.h, string.h, strings.h.
88744         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88745         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88746         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88747         strchr.
88748         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88749         headers, memory.h, string.h.
88750         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88751         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88752         free.
88753         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88754         headers.
88755         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88756         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88757         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88758         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88759         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88760
88761 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88762
88763         More K&R removal.
88764
88765         * lib/acosl.c (main): Use a prototype.
88766         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88767         tanl.c: Likewise.
88768
88769         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88770
88771         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88772         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88773         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88774         with a prototype.
88775         * lib/getopt.c (const): Remove macro.
88776         Include <string.h> unconditionally.
88777         (my_index): Remove; all uses changed to strchr.
88778         (strlen): Remove decl.
88779         (exchange): Remove forward decl; no longer needed.
88780         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88781         Define with prototype.
88782         * lib/getopt1.c (const): Remove macro.
88783         (getopt_long, getopt_long_only, main): Define with prototype.
88784
88785         * lib/getugroups.c: Include <string.h> unconditionally.
88786
88787         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88788         (getusershell, setusershell, endusershell, readname, main):
88789         Define with prototypes.
88790
88791         * lib/group-member.c: Include group-member.h first.
88792         Include <stdlib.h> unconditionally.
88793
88794         * lib/hard-locale.c: Include hard-locale.h first.
88795         Include <stdlib.h>, <string.h> unconditionally.
88796
88797         * lib/hash.c (free, malloc): Remove decls.
88798         Include <stdlib.h> unconditionally.
88799
88800         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88801         (getenv): Do not declare.
88802
88803         * lib/idcache.c: Include <string.h> unconditionally.
88804
88805         * lib/long-options.c: Include long-options.h first, to test interface.
88806         Include <stdlib.h> unconditionally.
88807
88808         * lib/makepath.c: Include makepath.h first, to test interface.
88809         Include <stdlib.h> and <string.h> unconditionally.
88810
88811         * lib/linebuffer.c: Include <stdlib.h>.
88812         (free): Remove decl.
88813
88814         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88815         stddef.h. rpl_malloc returns void *, not char *.
88816         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88817         prototype.
88818
88819         * lib/md5.h: Include <limits.h> unconditionally.
88820         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88821         (__P): Remove; all uses removed.
88822         * lib/md5.c: Include "md5.h" first.
88823         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88824         md5_buffer, md5_process_bytes, md5_process_block):
88825         Define with prototypes.
88826         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88827         * lib/sha.c: Include "sha.h" first.
88828         Include <stdlib.h>, <string.h> unconditionally.
88829
88830         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88831         * lib/memcmp.c (__ptr_t): Likewise.
88832         * lib/memrchr.c (__ptr_t): Likewise.
88833         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88834         Include <string.h> unconditionally.
88835         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88836         * lib/memchr.c: Include <stdlib.h> unconditionally.
88837         * lib/memchr.c (LONG_MAX): Remove.
88838         * lib/memrchr.c (LONG_MAX): Likewise.
88839         * lib/memchr.c (__memchr): Define via a prototype.
88840         * lib/memrchr.c (__memrchr): Likewise.
88841         * lib/memcmp.c (__P): Remove, and remove all uses.
88842         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88843         Remove forward decls; no longer needed.
88844         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88845         Use types required by C89 in prototype.
88846
88847         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88848         * lib/savedir.c: Likewise.
88849         * lib/mkdir.c (free): Remove decl.
88850         * lib/rmdir.c (rmdir): Define with a prototype.
88851         * lib/savedir.c: Include savedir.h first, to test interface.
88852
88853         * lib/mktime.c (STDC_HEADERS): Remove.
88854         Include <stdlib.h>, <string.h> unconditionally.
88855
88856         * lib/modechange.c: Include <stdlib.h> unconditionally.
88857         (malloc): Remove decl.
88858
88859         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88860         (free): Remove decl.
88861
88862         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88863         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88864         (This type really should be intptr_t, but that's a C99ism.)
88865         (_obstack_memcpy): Remove: all uses changed to memcpy.
88866         Include <string.h> unconditionally.
88867         (struct obstack): Assume __STDC__ for types of members
88868         chunkfun, freefun, extra_arg.
88869         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88870         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88871         obstack_begin, obstack_specify_allocation,
88872         obstack_specify_allocation_with_arg, obstack_chunkfun,
88873         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88874         Remove unprototyped decls and the macros that use them.
88875         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88876         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88877         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88878         (defined __STDC__ && __STDC__)]:
88879         Remove nonprototyped code.
88880         Include <stdlib.h> unconditionally.
88881         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88882         _obstack_allocated_p, _obstack_free, obstack_free,
88883         _obstack_memory_used, print_and_abort):
88884         Define using prototypes.
88885         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88886         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88887         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88888         obstack_next_free, obstack_object_size, obstack_room) [0]:
88889         Remove unused, unprototyped code.
88890
88891         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88892
88893         * lib/physmem.c (physmem_total, physmem_available, main): Define
88894         with prototypes.
88895
88896         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88897         (main): Define with a prototype.
88898
88899         * lib/posixver.c (getenv): Remove decl.
88900
88901         * lib/putenv.c (malloc): Returns void *, not char *.
88902         Include <string.h> unconditionally.
88903         (strchr, memcpy, NULL): Do not define.
88904
88905         * lib/readtokens.c: Include readtokens.h first, to test interface.
88906         Include <stdlib.h>, <string.h> unconditionally.
88907         (init_tokenbuffer): Define with a prototype.
88908
88909         * lib/regex.c (PARAMS): Remove.  All uses removed.
88910         All uses of _RE_ARGS removed, too.
88911         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88912         unconditionally.
88913         (bzero): Assume memset exists.
88914         (memcmp, memcpy, NULL): Remove.
88915         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88916         char, or assignments to local vars of type signed char.
88917         (init_syntax_once, PREFIX(extract_number_and_incr),
88918         PREFIX(print_partial_compiled_pattern),
88919         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88920         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88921         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88922         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88923         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88924         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88925         wcs_compile_range, byte_compile_range, truncate_wchar,
88926         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88927         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88928         count_mbs_length, wcs_re_match_2_internal,
88929         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88930         PREFIX(alt_match_null_string_p),
88931         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88932         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88933         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88934         now-unnecessary declaration, if any.
88935         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88936         regcomp, regexec):
88937         Remove now-unnecessary casts among pointer types.
88938         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88939
88940         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88941         (free): Remove decl.
88942
88943         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88944
88945         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88946         (free): Remove decl.
88947
88948         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88949         * lib/xgetcwd.c: Likewise.
88950
88951         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88952         (free): Remove decl.
88953
88954         * lib/strchrnul.c (strchrnul): Define with a prototype.
88955         Fix bug: c_in was not converted to char before searching.
88956
88957         The following changes are not K&R related:
88958
88959         * lib/group-member.h: Include <sys/types.h>, so that this file is
88960         self-contained.
88961         * lib/makepath.h: Likewise.
88962
88963         * lib/getusershell.c (readname, default_index, line_size, readname):
88964         Use size_t, not int, for sizes.
88965         (readname): If the size overflows, report an error instead of
88966         looping forever.
88967
88968 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88969
88970         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88971         libc.
88972
88973 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88974
88975         * README: New section: portability guidelines.
88976
88977 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88978
88979         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88980         C89 spec.
88981
88982 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88983
88984         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88985
88986 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88987
88988         Assume C89 or better; remove K&R cruft.
88989         A few of these changes were first proposed by Derek Robert Price
88990         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88991
88992         * lib/addext.c: Include <string.h> unconditionally.
88993         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88994         Don't declare getenv or malloc.
88995
88996         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88997         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88998         (NULL): Remove.
88999         (find_stack_direction, alloca): Use prototypes.
89000
89001         * lib/atexit.c (atexit): Define using a prototype.
89002
89003         * lib/basename.c, dirname.c, stripslash.c:
89004         Include <string.h> unconditionally.
89005
89006         * lib/bcopy.c: Include <stddef.h>.
89007         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89008
89009         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89010
89011         * lib/error.h (error, error_at_line, error_print_progname)
89012         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89013         * lib/error.c: Include error.h first, to check interface.
89014         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89015         (VA_START): Remove; all uses changeed to va_start.
89016         (exit, strerror): Remove decls.
89017         (error_print_progname): Prototype uncondionally.
89018         Don't include <errno.h>; no longer needed.
89019         (private_strerror): Remove.
89020         (error_tail): Always define.
89021         (error, error_at_line): Assume C89 or better; always use prototypes.
89022         * lib/fatal.c: Include "fatal.h" first, to test interface.
89023         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89024         (VA_START): Remove; all uses changed to va_start.
89025         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89026         this case.
89027         (exit): Remove decl.
89028         (fatal): Prototype unconditionally.  Assume va_start works.
89029         Abort at end, to pacify gcc.
89030
89031         * lib/euidaccess.c (main): Define with a prototype.
89032
89033         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89034
89035         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89036
89037         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89038         prototypes.
89039         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89040         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89041         (getenv): Remove decl.
89042         (fnmatch): Define using a prototype.
89043         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89044         (FCT): Define using a prototype.
89045
89046         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89047
89048         * lib/gethostname.c: Include <stddef.h>.
89049         (gethostname): Define with prototype.  Length is size_t, not int.
89050
89051 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89052
89053         Assume C89 or better; remove K&R cruft.
89054         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89055         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89056         string.h, getenv, malloc.
89057         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89058         headers.
89059         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89060         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89061         do not check for strerror.
89062         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89063         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89064         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89065         do not check for doprnt or vprintf.
89066         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89067         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89068
89069 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89072         getversion.c should have been removed then, but was accidentally
89073         preserved.
89074
89075         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89076         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89077
89078 2003-09-08  Karl Berry  <karl@gnu.org>
89079
89080         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89081                 config, forget about prep.
89082
89083         * config/depcomp, missing: update from automake.
89084
89085 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89086
89087         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89088         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89089
89090 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89091
89092         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89093         copy_tm_result.  Bug reported by Simon Josefsson in
89094         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89095
89096 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89097
89098         * m4/time_r.m4: New file.
89099         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89100         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89101         is. Check for timegm declaration.
89102         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89103         Do not check for gmtime_r.
89104         Replace mktime if __mktime_internal does not exist and if mktime
89105         hasn't been replaced already.
89106
89107 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89108
89109         * lib/time_r.c, lib/time_r.h: New files.
89110
89111         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89112         __localtime_r.
89113         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89114         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89115
89116         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89117         __gmtime_r.
89118         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89119         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89120         Include <time_r.h>.
89121
89122         * lib/timegm.c: Switch to glibc implementation, with the following
89123         changes:
89124         [defined HAVE_CONFIG_H]: Include <config.h>.
89125         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89126         (__mktime_internal) [!defined _LIBC]: New decl.
89127         (__gmtime_r) [!defined _LIBC]: New macro and function.
89128         (timegm): Use a prototype, since gnulib assumes C89.
89129         Do not bother declaring tmp to be const, as it's not really usefu.
89130         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89131         (timegm): Declare only if HAVE_DECL_TIMEGM.
89132
89133 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89134
89135         * MODULES.html.sh (func_all_modules): Add time_r.
89136         * modules/time_r: New file.
89137         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89138         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89139
89140 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89141
89142         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89143         Bug reported by Lute Kamstra in
89144         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89145
89146         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89147         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89148         course with correspondingly smaller numbers for tomorrow and
89149         yesterday.  From Tadayoshi Funaba.  Originally installed into
89150         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89151         coreutils merge?).
89152
89153 2003-08-31  Simon Josefsson  <jas@extundo.com>
89154
89155         * modules/timegm: New file.
89156         * MODULES.html.sh (func_all_modules): Add timegm.
89157
89158 2003-08-31  Simon Josefsson  <jas@extundo.com>
89159
89160         * m4/timegm.m4: New file.
89161
89162 2003-08-31  Simon Josefsson  <jas@extundo.com>
89163
89164         * lib/timegm.h: New file.
89165         * lib/timegm.c: New file.  Based on
89166         wget-1.8.2/src/http.c:mktime_from_utc.
89167
89168 2003-08-31  Karl Berry  <karl@gnu.org>
89169
89170         * lib/argp.h: update from libc.
89171
89172 2003-08-28  Bruno Haible  <bruno@clisp.org>
89173
89174         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89175         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89176         followed by '#define fnmatch fnmatch_posix' gives an error.
89177
89178 2003-08-28  Bruno Haible  <bruno@clisp.org>
89179
89180         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89181         warning on QNX, which defines O_BINARY to 000000.
89182
89183 2003-08-27  Jim Meyering  <jim@meyering.net>
89184
89185         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89186         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89187         would fail after 32.  Reported by Danny Levinson.  Details here:
89188         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89189
89190 2003-08-24  Bruno Haible  <bruno@clisp.org>
89191
89192         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89193         MSVC7 <stdio.h> is included later.
89194
89195 2003-08-22  Simon Josefsson  <jas@extundo.com>
89196
89197         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89198
89199 2003-08-20  Karl Berry  <karl@gnu.org>
89200
89201         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89202
89203 2003-08-20  Bruno Haible  <bruno@clisp.org>
89204
89205         * modules/progname: New file.
89206         * MODULES.html.sh (func_all_modules): Add progname.
89207
89208 2003-08-20  Bruno Haible  <bruno@clisp.org>
89209
89210         * lib/progname.h: New file, from GNU gettext.
89211         * lib/progname.c: New file, from GNU gettext.
89212         * lib/progreloc.c: New file, from GNU gettext.
89213
89214 2003-08-19  Jim Meyering  <jim@meyering.net>
89215
89216         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89217         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89218
89219 2003-08-19  Bruno Haible  <bruno@clisp.org>
89220
89221         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89222         more.
89223
89224 2003-08-19  Bruno Haible  <bruno@clisp.org>
89225
89226         * lib/xstrdup.c: Assume <string.h> exists.
89227
89228 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89229
89230         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89231         in makefile rules.
89232
89233 2003-08-18  Jim Meyering  <jim@meyering.net>
89234
89235         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89236         * m4/lib-ld.m4: Likewise.
89237
89238 2003-08-18  Jim Meyering  <jim@meyering.net>
89239
89240         * lib/setenv.h: Indent nested cpp directive.
89241         * lib/vasnprintf.c: Remove trailing blanks.
89242
89243 2003-08-17  Simon Josefsson  <jas@extundo.com>
89244
89245         * modules/xstrndup: New file.
89246         * MODULES.html.sh (func_all_modules): Add xstrndup.
89247
89248 2003-08-17  Simon Josefsson  <jas@extundo.com>
89249
89250         * modules/argp: Fix autoconf macro name. Add more dependencies.
89251
89252 2003-08-17  Simon Josefsson  <jas@extundo.com>
89253
89254         * m4/xstrndup.m4: New file.
89255
89256 2003-08-17  Simon Josefsson  <jas@extundo.com>
89257
89258         * m4/argp.m4: New file.
89259
89260 2003-08-17  Simon Josefsson  <jas@extundo.com>
89261             Bruno Haible  <bruno@clisp.org>
89262
89263         * lib/xstrndup.h: New file.
89264         * lib/xstrndup.c: New file.
89265
89266 2003-08-17  Bruno Haible  <bruno@clisp.org>
89267
89268         * modules/strndup (Files, Include): Add lib/strndup.h.
89269
89270 2003-08-17  Bruno Haible  <bruno@clisp.org>
89271
89272         * modules/euidaccess (Files): Add lib/euidaccess.h.
89273
89274 2003-08-17  Bruno Haible  <bruno@clisp.org>
89275
89276         * lib/strndup.h: New file.
89277
89278 2003-08-17  Bruno Haible  <bruno@clisp.org>
89279
89280         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89281         like AC_GNU_SOURCE.
89282         * modules/extensions (configure.ac): Comment out the invocation of
89283         gl_USE_SYSTEM_EXTENSIONS.
89284
89285 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89286
89287         Merges from coreutils, etc.
89288         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89289         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89290         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89291         fixing a typo.
89292         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89293         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89294
89295 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89296
89297         Document merge from coreutils.
89298         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89299         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89300         * modules/utime: Add m4/utimes-null.m4.
89301
89302 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89303
89304         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89305         space, undoing this 2003-08-12 change:
89306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89307
89308 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89309
89310         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89311         strtoul.c from libc, undoing this 2003-08-12 change:
89312         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89313
89314 2003-08-16  Jim Meyering  <jim@meyering.net>
89315
89316         Merges from coreutils.
89317         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89318         prefix.  Adjust cache variables similarly.  Create 500 rather than
89319         just 300 files, to exercise bug on Darwin6.5, too.
89320         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89321         $missing_dir.
89322         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89323         AM_SYS_POSIX_TERMIOS.
89324         Reported by mkc@mathdogs.com.
89325         Also change use of $am_cv_sys_posix_termios
89326         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89327         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89328         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89329         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89330         in /proc/mounts until it finds one with matching device number.  This
89331         is unnecessary when the FILE argument *is* a mount point.  No stat call
89332         is necessary in that case.  So, disable the statvfs-testing code on
89333         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89334         as RedHat bug# 84846.
89335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89336         to 1MB, so as not to render systems with no stack size limit (e.g.,
89337         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89338         Include <unistd.h>.  On some systems,
89339         it is required for the definition of _SC_PAGESIZE.
89340
89341 2003-08-16  Jim Meyering  <jim@meyering.net>
89342
89343         Merge from coreutils.
89344         * lib/xstrtoimax.c: #else #if -> #elif.
89345         * lib/xstrtoumax.c: Likewise.
89346
89347 2003-08-16  Jim Meyering  <jim@meyering.net>
89348
89349         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89350         * m4/utimes.m4: Removed.
89351         * m4/utimes-null.m4: Renamed from utimes.m4.
89352
89353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89354         to 1MB, so as not to render systems with no stack size limit (e.g.,
89355         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89356         Include <unistd.h>.  On some systems,
89357         it is required for the definition of _SC_PAGESIZE.
89358
89359 2003-08-16  Jim Meyering  <jim@meyering.net>
89360         and Paul Eggert  <eggert@cs.ucla.edu>
89361
89362         Merges from coreutils, etc.
89363
89364         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89365         using the latest version from cvs.  This avoids problems with #line
89366         directives using a vendor (Sun) compiler.
89367         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89368         Don't set GETGROUPS_LIB here; now it's
89369         done via getgroups.m4's wrapper function.
89370         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89371         rather than just in sh-util/configure.in, so that the
89372         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89373         same.
89374         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89375         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89376         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89377         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89378         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89379         Remove code that is now done by the newly-required macros.
89380         Append $(EXEEXT) to DF_PROG.
89381         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89382         Do not invoke or require the following here,
89383         since prereq.m4 or some gnulib .m4 now does this for us:
89384         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89385         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89386         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89387         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89388         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89389         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89390         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89391         AC_FUNC_OBSTACK.
89392         Do not replace the following functions, as this is now the job
89393         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89394         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89395         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89396         atexit getpass, strdup, getpagesize.
89397         Replace 'raise'.
89398         Do not check for the following functions, as this is now the job
89399         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89400         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89401         setregid.
89402         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89403         Check for sys/sysctl.h.
89404         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89405         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89406         of checking for ssize_t ourselves.
89407
89408         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89409         Require every macro that gnulib/modules/* suggests for us.
89410         (jm_PREREQ_ADDEXT): New macro.
89411         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89412         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89413
89414         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89415         (gl_PHYSMEM): Use it.
89416         Also check for `table' function.
89417         Check for new headers and functions.
89418         Add check for sys/sysmp.h.
89419         With suggestions from Kaveh Ghazi.
89420         Ignore headers that are present but cannot be compiled.  This
89421         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89422         C 5.4.
89423
89424 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89425
89426         Document merge from coreutils.
89427         * modules/userspec: Depend on posixver.
89428         * modules/strftime: Depend on tzset.
89429
89430 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89431
89432         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89433         rather than tab, after '#' in shell-script copyright notices.
89434         Suggested by Bruno Haible.
89435
89436 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89437
89438         * config/srclist-update: Use three spaces, rather than tab, after '#'
89439         in shell-script copyright notices.  Suggested by Bruno Haible.
89440         Remove unnecessary parenthesization in regular expression.
89441
89442 2003-08-15  Jim Meyering  <jim@meyering.net>
89443
89444         Merge from coreutils.
89445         * lib/xgethostname.c: Include <stdlib.h>.
89446         (xghostname): Don't exit for anything other than memory-related
89447         failure; just return NULL.
89448         * lib/userspec.c: Include "posixver.h".
89449         (parse_user_spec): Accept `.' as a separator only
89450         in pre-POSIX-200112 mode.
89451         * lib/strtoimax.c: Use #elif rather than #else #if.
89452         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89453         Remove function, now that we can rely on a working tzset function.
89454         [!_LIBC]: Ensure that the required autoconf test has been run.
89455         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89456         Use underlying_strftime for %r.
89457         * lib/sha.c: Merge in some clean-up and optimization changes from
89458         glibc.
89459         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89460         Ensure that it is a multiple of 64.
89461         Rearrange loop exit tests so as to avoid performing an
89462         additional fread after encountering an error or EOF.
89463         * lib/realloc.c: Update copyright date.
89464
89465 2003-08-15  Jim Meyering  <jim@meyering.net>
89466         and Paul Eggert  <eggert@twinsun.com>
89467
89468         Merge from coreutils.
89469         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89470         member but strut utmpx does not.  Needed for AIX 4.3.3.
89471         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89472
89473 2003-08-15  Jim Meyering  <jim@meyering.net>
89474         and Paul Eggert  <eggert@cs.ucla.edu>
89475
89476         Merges from coreutils, etc.
89477         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89478         Require gl_FUNC_TZSET_CLOBBER.
89479         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89480         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89481         members.
89482
89483 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89484
89485         Help the merge from coreutils.
89486         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89487         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89488         * m4/tzset.m4: Use it too.
89489
89490 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89491
89492         * modules/tzset: New file.
89493
89494 2003-08-14  Jim Meyering  <jim@meyering.net>
89495
89496         Merges from coreutils.
89497         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89498         variable names, rather than @FNMATCH_H@.
89499         * modules/alloca: Likewise for $(ALLOCA_H).
89500
89501         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89502         the three copies of the literal target, `fnmatch.h'.
89503         * modules/alloca (alloca.h): Likewise.
89504
89505 2003-08-14  Jim Meyering  <jim@meyering.net>
89506
89507         Merge from coreutils.
89508         * m4/tzset.m4: New file.
89509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89510         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89511         otherwise, AIX 5.1 systems would end up using the latter.
89512         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89513         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89514         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89515         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89516
89517 2003-08-14  Jim Meyering  <jim@meyering.net>
89518
89519         Merge from coreutils.
89520         * lib/obstack.h: Whitespace changes.
89521         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89522         and xcalloc return values.
89523         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89524         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89525         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89526         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89527         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89528         error from mntctl.
89529         Use mntctl's return value to drive the entry-processing loop, since
89530         we can't rely on the value of the vmt_length member in the last
89531         entry.  On some systems doing so could result in exhausting
89532         virtual memory.  Based in part on a patch from Mike Jetzer.
89533
89534 2003-08-14  Jim Meyering  <jim@meyering.net>
89535         and Paul Eggert  <eggert@twinsun.com>
89536
89537         Merges from coreutils, plus other fixes.
89538         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89539         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89540         for credits and details.  Thanks to Kaveh Ghazi for helping
89541         to keep these files in sync.
89542         (ARRAY_SIZE): Define it.
89543         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89544         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89545         (memcasecmp): Don't assume size_t fits in unsigned int.
89546         Remove casts and duplicate code.
89547         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89548         (memcpy): Remove definition.
89549         Merge in some clean-up and optimization changes from glibc.
89550         [BLOCKSIZE]: Move definition to top of file.
89551         Ensure that it is a multiple of 64.
89552         Rearrange loop exit tests so as to avoid performing an
89553         additional fread after encountering an error or EOF.
89554         * lib/md5.h (md5_uintptr): Define.
89555         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89556         return to the initial working directory.  Preserve errno
89557         for caller.
89558         * lib/idcache.c: Include "xalloc.h".
89559         (xmalloc, xrealloc): Remove decls.
89560         (getuser): Remove casts no longer required in C89.
89561         * lib/human.c: Include stdio.h, for sprintf.
89562         * lib/group-member.c: Include "xalloc.h".
89563         (xmalloc, xrealloc): Remove decls.
89564         (get_group_info): Remove casts no longer required in C89.
89565         * lib/getusershell.c (readname): Remove casts no longer required in
89566         C89.
89567         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89568         * lib/getline.c: Whitespace fix, from coreutils.
89569
89570 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89571
89572         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89573         Check for isascii.
89574
89575         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89576         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89577         Undo previous (whitespace-only) change.
89578
89579 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89580
89581         * lib/exclude.c: Include <ctype.h>
89582         (IN_CTYPE_DOMAIN): New macro.
89583         (is_space): New fn.
89584         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89585         and empty lines.
89586
89587         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89588         Undo previous (whitespace-only) change.
89589
89590 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89591
89592         * config/srclist-update: Change update back to the old behavior,
89593         leaving whitespace alone.  Use one 'sed' command rather than a
89594         pipeline.
89595         (fixlicense): Now a variable, not a function.
89596         (remove_trailing_blanks): Remove.
89597         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89598         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89599         Undo previous (whitespace-only) change.
89600
89601 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89602
89603         Merge from coreutils.
89604         * modules/euidaccess: Add lib_SOURCES, include for new
89605         file euidaccess.h
89606
89607 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89608
89609         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89610         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89611         Normalize leading white space and remove trailing white space.
89612
89613         Merge from coreutils
89614         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89615
89616         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89617         0.12.1.  These files are now being upgraded automatically by
89618         ../config/srclist-update.
89619
89620 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89621
89622         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89623         Normalize leading white space and remove trailing white space.
89624         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89625         notice, as per ../config/srclist-update.
89626
89627         Merge from coreutils.
89628         * lib/euidaccess.h: New file.
89629         * lib/euidaccess.c: Include it.
89630         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89631         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89632         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89633
89634 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89635
89636         * config/srclist-update: Add copyright notice.
89637         (remove_id_lines, remove_trailing_blanks): New constants.
89638         (fixfile): Use them to normalize spacing a bit in copied files.
89639         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89640         Normalize leading white space and remove trailing white space.
89641
89642         * config/texinfo.tex: Sync with texinfo.
89643
89644         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89645         strtoul.c from libc, to merge coreutils whitespace changes.
89646
89647         * config/srclist.txt: Get the following m4 files from gettext:
89648         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89649         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89650         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89651         wint_t.m4.
89652
89653 2003-08-12  Karl Berry  <karl@gnu.org>
89654
89655         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89656         been made.
89657
89658 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89659
89660         * modules/gnu-source, m4/gnu-source.m4:
89661         Remove; we're assuming Autoconf 2.54 or later now.
89662         Suggested by Bruno Haible.
89663         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89664
89665 2003-08-11  Bruno Haible  <bruno@clisp.org>
89666
89667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89668
89669 2003-08-11  Bruno Haible  <bruno@clisp.org>
89670
89671         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89672         (vasnprintf): Use it instead of wcslen.
89673
89674 2003-08-11  Bruno Haible  <bruno@clisp.org>
89675
89676         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89677         value to ensure that _Bool promotes to int. Use #define for _Bool when
89678         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89679
89680 2003-08-10  Karl Berry  <karl@gnu.org>
89681
89682         * lib/regex.h: update from libc (whitespace fix).
89683
89684 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89685
89686         Merge some files from coreutils.  These changes were
89687         originally made by Jim Meyering.
89688         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89689         many older Unixes require this.
89690         * lib/alloca.c (alloca): Remove cast to argument of free;
89691         no longer needed in C89.
89692         * lib/alloca_.h, regex.h: Fix white space to match
89693         what GNU indent does.
89694
89695 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89696
89697         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89698         apparently Emacs's Unicode mode got confused before my 2003-08-05
89699         checkin.
89700
89701 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89702
89703         * m4/extensions.m4: New file.
89704         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89705         Require gl_USE_SYSTEM_EXTENSIONS.
89706         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89707         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89708
89709 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89710
89711         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89712         * modules/extensions, modules/gnu-source: New files.
89713         * modules/timespec, modules/unlocked-io: Depend on extensions.
89714
89715 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89716
89717         * modules/restrict: New file.
89718         * MODULES.html.sh (func_all_modules): Add restrict.
89719         * modules/regex: Depend on restrict.
89720
89721 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89722
89723         * m4/restrict.m4: New file.
89724         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89725
89726 2003-08-07  Bruno Haible  <bruno@clisp.org>
89727
89728         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89729         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89730
89731 2003-08-07  Bruno Haible  <bruno@clisp.org>
89732
89733         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89734         makes the module 'getndelim2' compatible with the module 'getline'.
89735
89736 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89737
89738         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89739         byte with "\201" to avoid glitches when editing that source file
89740         with multi-gnome-terminal.
89741
89742 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89743
89744         * lib/bumpalloc.h: Remove.
89745
89746 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89747
89748         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89749         * modules/bumpalloc: Remove.
89750
89751 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89752
89753         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89754         GNU coding style.
89755
89756         Merge from coreutils.
89757         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89758         1. From glibc.
89759         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89760         from Karl Berry, implemented by Jim Meyering.
89761         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89762         from Dmitry V. Levin.
89763         Remove anachronistic cast of xrealloc.
89764         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89765         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89766         type. Otherwise, it wouldn't compile with at least /bin/cc on
89767         ymp-cray-unicos9.0.2.X.
89768         Combine two mostly-identical uses of alloca into one.
89769         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89770
89771 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89772
89773         [From Emacs.]
89774
89775         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89776         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89777         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89778         obsolete NLIST_NAME_UNION.
89779         [__GNU__]: Undef BSD and FSCALE.
89780         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89781
89782 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89783
89784         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89785         an enum type, so that it's guaranteed to promote to int.  See:
89786         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89787
89788 2003-08-03  Karl Berry  <karl@gnu.org>
89789
89790         * config/depcomp: update from automake.
89791
89792 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89793
89794         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89795         (strerror): Don't assume that a printable int fits in 14 bytes.
89796
89797 2003-07-31  Bruno Haible  <bruno@clisp.org>
89798
89799         * modules/getpass-gnu: New file.
89800         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89801
89802 2003-07-31  Bruno Haible  <bruno@clisp.org>
89803
89804         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89805
89806 2003-07-24  Karl Berry  <karl@gnu.org>
89807
89808         * config/missing: update from automake.
89809
89810 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89811             Bruno Haible  <bruno@clisp.org>
89812
89813         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89814         * lib/getline.c (getline, getdelim): Likewise.
89815         Remove _GNU_SOURCE define; now it's defined in config.h through
89816         m4/getline.m4.
89817
89818 2003-07-23  Karl Berry  <karl@gnu.org>
89819
89820         * config/config.sub: update from prep.
89821
89822 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89823
89824         * modules/xalloc (Depends-on): Add exitfail.
89825         * modules/xmemcoll: Likewise.
89826
89827 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89828
89829         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89830         over-parenthesization in macros.
89831
89832         Sync with coreutils.
89833
89834         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89835         required by C99.
89836
89837         Use `exit_failure' for xalloc and xmemcoll instead of their own
89838         private exit-failure variables.
89839         * lib/xalloc.h (xalloc_exit_failure): Remove.
89840         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89841         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89842         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89843         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89844         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89845
89846 2003-07-20  Jim Meyering  <jim@meyering.net>
89847
89848         * modules/closeout (Depends-on): Add exitfail.
89849         Suggestion from Bruno Haible.
89850
89851 2003-07-19  Karl Berry  <karl@gnu.org>
89852
89853         * config/config.sub: update from prep.
89854
89855 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89856
89857         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89858         Remove.
89859         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89860         to test that it can stand by itself.  Include "exitfail.h".
89861         Clients should set exit_failure instead.
89862         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89863
89864 2003-07-18  Bruno Haible  <bruno@clisp.org>
89865
89866         * modules/getndelim2: New file.
89867         * modules/getline: Share files with module getndelim2.
89868         * modules/getnline: Depend on getndelim2 instead of sharing files with
89869         it. Add getnline.c to lib_SOURCES.
89870         * MODULES.html.sh (func_all_modules): Add getndelim2.
89871
89872 2003-07-18  Bruno Haible  <bruno@clisp.org>
89873
89874         * m4/getndelim2.m4: New file.
89875         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89876         invoke gl_PREREQ_GETNDELIM2.
89877         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89878         gl_PREREQ_GETNDELIM2.
89879         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89880         gl_GETNDELIM2.
89881
89882 2003-07-18  Bruno Haible  <bruno@clisp.org>
89883
89884         * lib/getndelim2.h: New file.
89885         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89886         getndelim2.h.
89887         (getndelim2): Make non-static. Change return type to ssize_t.
89888         * lib/getline.h: Change argument names.
89889         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89890         * lib/getnline.c: Include getndelim2.h.
89891
89892 2003-07-18  Andreas Schwab  <schwab@suse.de>
89893
89894         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89895
89896 2003-07-17  Karl Berry  <karl@gnu.org>
89897
89898         * config/config.sub: update from prep.
89899
89900 2003-07-17  Bruno Haible  <bruno@clisp.org>
89901
89902         * modules/getnline: New file.
89903         * modules/getline: Add lib/getndelim2.c to source file list.
89904         * MODULES.html.sh (func_all_modules): Add getnline.
89905
89906 2003-07-17  Bruno Haible  <bruno@clisp.org>
89907
89908         * m4/getnline.m4: New file.
89909
89910 2003-07-17  Bruno Haible  <bruno@clisp.org>
89911
89912         * m4/Makefile.am.in: Remove file.
89913         * m4/Makefile.am: Remove file.
89914         * m4/Makefile.in: Remove file.
89915
89916 2003-07-17  Bruno Haible  <bruno@clisp.org>
89917
89918         * lib/getnline.h: New file.
89919         * lib/getnline.c: New file.
89920         * lib/getndelim2.c: New file, extracted from getline.c.
89921         (getndelim2): Renamed from getdelim2, with added nmax argument.
89922         * lib/getline.c: Include getndelim2.c.
89923         (getdelim2): Moved out to getndelim2.c.
89924         (getline, getdelim): Update.
89925
89926 2003-07-17  Bruno Haible  <bruno@clisp.org>
89927
89928         * lib/Makefile.am: Remove file.
89929         * lib/Makefile.in: Remove file.
89930
89931 2003-07-17  Bruno Haible  <bruno@clisp.org>
89932
89933         * configure.in: Remove file.
89934         * Makefile.in: Remove file.
89935
89936 2003-07-17  Bruno Haible  <bruno@clisp.org>
89937
89938         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89939
89940 2003-07-16  Karl Berry  <karl@gnu.org>
89941
89942         * config/srclist-update: was running fixlicense twice, which caused
89943                 texinfo.tex to be nullified for some reason.  Simplify,
89944                 $gplsrc is no longer needed as far as I can see?
89945
89946 2003-07-16  Jim Meyering  <jim@meyering.net>
89947
89948         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89949
89950 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89951
89952         * config/srclist.txt: Get the following files from gettext-runtime/intl
89953         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89954         ref-del.sin.  From Bruno Haible.
89955         * config/srclist-update (fixfile): Change grep pattern again, since the
89956         previous fix didn't work (there was another trailing $).  Use
89957         '[$]' to escape the $s.
89958
89959 2003-07-15  Karl Berry  <karl@gnu.org>
89960
89961         * lib/vasnprintf.c: update from gettext.
89962
89963 2003-07-15  Karl Berry  <karl@gnu.org>
89964
89965         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89966         gets expanded when surrounded by '$'.
89967
89968 2003-07-15  Jim Meyering  <jim@meyering.net>
89969
89970         * modules/save-cwd: Don't depend on error.  From Derek Price.
89971
89972 2003-07-15  Jim Meyering  <jim@meyering.net>
89973
89974         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89975
89976 2003-07-14  Simon Josefsson  <jas@extundo.com>
89977
89978         * modules/mempcpy: New file.
89979         * MODULES.html.sh (func_all_modules): Add mempcpy.
89980
89981 2003-07-14  Simon Josefsson  <jas@extundo.com>
89982
89983         * m4/mempcpy.m4: New file.
89984
89985 2003-07-14  Simon Josefsson  <jas@extundo.com>
89986
89987         * lib/mempcpy.h: New file.
89988         * lib/mempcpy.c: New file.
89989
89990 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89991
89992         * modules/getdate, modules/posixtm: Depend on mktime.
89993
89994 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89995
89996         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89997         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89998         unicodeio.c, unicodeio.h, unlocked-io.h:
89999         Switch from LGPL to GPL.
90000
90001 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90002
90003         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90004         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90005         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90006         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90007         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90008         updated automatically by ../config/srclist-update.  This changes
90009         their license from LPGL to GPL.
90010
90011 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90012
90013         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90014         assumed to refer to the root of the most recent stable gettext version.
90015         * config/srclistvars.sh: Add defaults for eggert.
90016         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90017         Match "This program" as well as "The program".  This is needed
90018         for gettext.
90019
90020 2003-07-14  Jim Meyering  <jim@meyering.net>
90021
90022         Don't emit diagnostics.  Let callers do that.
90023         * lib/save-cwd.c: Don't include "error.h".
90024         (save_cwd): Don't call error.  Ensure that errno is valid
90025         when returning nonzero.
90026
90027         * lib/save-cwd.h (restore_cwd): Update prototype.
90028         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90029         Simplify.  Don't call error upon failure.  Let callers do that.
90030         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90031         when auditing is enabled.  But don't bother updating the #if.
90032
90033 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90034
90035         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90036         it breaks C++ compilation.
90037         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90038
90039 2003-07-10  Simon Josefsson  <jas@extundo.com>
90040
90041         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90042
90043 2003-07-10  Jim Meyering  <jim@meyering.net>
90044
90045         * m4/clock_time.m4: Remove trailing blank.
90046         * m4/intmax_t.m4: Likewise.
90047
90048 2003-07-10  Jim Meyering  <jim@meyering.net>
90049
90050         * lib/vasnprintf.c: Remove trailing blanks.
90051         Make cpp indentation consistent.
90052
90053 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90054
90055         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90056         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90057         Switch from LGPL to GPL.
90058
90059 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90060
90061         * config/srclist.txt: Sort sublists.  Add
90062         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90063         that differ from gnulib for one reason or another; we'd like this list
90064         to be smaller but for now let's document what we have.
90065
90066 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90067
90068         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90069         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90070         and sweeter "eval x=$x".
90071         * config/srclist.txt: Get lib/argp* from glibc.
90072
90073 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90074
90075         * lib/mktime.c: Fix some boundary cases and remove need for floating
90076         point.
90077
90078         Issue a compile-time diagnostic if time_t is floating point, or if
90079         two's complement arithmetic is not in effect, or if arithmetic
90080         right shift does not propagate the sign.  These assumptions were
90081         all in the original code but they weren't checked.
90082
90083         (TIME_T_MIDPOINT, verify): New macros.
90084         (__isleap): Remove; it has integer overflow problems.
90085         (leapyear): New function, without those problems.
90086         (ydhms_tm_diff): Remove; splitting into two parts.
90087         (ydhms_diff): New function, containing the arithmetic part of
90088         the old ydhms_tm_diff function.  Issue a compile-time
90089         diagnostic if we are not using C99 integer division.
90090         Avoid casts when possible.
90091         (guess_time_tm): New function, containing the checking part of
90092         the old ydhms_tm_diff function.  Return the new value, rather than
90093         the difference between it and the old.  Accept a new argument T
90094         so that *T specifies the old value.  Check for overflow in the result.
90095
90096         (__mktime_internal): Use a time_t offset, not a long int offset.
90097         This undoes the 2003-06-04 change, which is no longer needed now
90098         that we have better overflow checking.
90099         (localtime_offset): Likewise.
90100
90101         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90102         and long are 64-bit but int is only 32-bit.
90103         (ydhms_diff): Use long int to store year1 and yday1.
90104         Issue a compile-time diagnostic if long int is not wide enough.
90105
90106         (__mktime_internal): Use long int to store adjusted year and yday.
90107         Use plain C rather than preprocessor commands, if that doesn't
90108         affect efficiency.
90109         Check for overflow (and try to repair) after each probe
90110         rather than checking only at the very end.  This avoids some bugs
90111         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90112         does not equal GMT offset at maximum time).
90113         Use integer to check for overflow rather than floating point; this
90114         is more portable to non-IEEE hosts, and is a tad faster.
90115         When we detect that we are oscillating between two values,
90116         don't check whether tm_isdst has the requested value, since
90117         we already know the answer.  When tm_isdst has the wrong value,
90118         use a different heuristic to find the right one, based on the
90119         extreme values actually observed in practice in tz2003a,
90120         rather than the (overly optimistic) "previous 3 calendar quarters".
90121
90122         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90123         "T const" to accommodate glibc style.
90124         (check_result): Use less-confusing report format.  "long" -> "long int.
90125         (main): Likewise.
90126         Don't loop if the iteration overflows time_t.
90127         Allow a negative step in the iteration.
90128
90129 2003-07-06  Karl Berry  <karl@gnu.org>
90130
90131         * config/depcomp: update from automake.
90132         * config/config.sub: update from prep.
90133
90134 2003-07-03  Karl Berry  <karl@gnu.org>
90135
90136         * config/config.guess: update from prep.
90137
90138 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90139
90140         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90141         xreadlink.c now includes it unconditionally.
90142
90143 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90144
90145         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90146         having it depend on HAVE_SYS_TYPES_H.
90147
90148 2003-07-01  Bruno Haible  <bruno@clisp.org>
90149
90150         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90151         <sys/types.h> should be sufficient.
90152         Reported by Paul Eggert.
90153
90154 2003-06-26  Karl Berry  <karl@gnu.org>
90155
90156         * config/depcomp: update from automake.
90157
90158 2003-06-26  Bruno Haible  <bruno@clisp.org>
90159
90160         * modules/human: Depend on module stdbool.
90161
90162 2003-06-25  Bruno Haible  <bruno@clisp.org>
90163
90164         * modules/readlink: New file.
90165         * modules/xreadlink: Depend on it.
90166         * MODULES.html.sh (func_all_modules): Add readlink.
90167
90168 2003-06-25  Bruno Haible  <bruno@clisp.org>
90169
90170         * m4/readlink.m4: New file.
90171
90172 2003-06-25  Bruno Haible  <bruno@clisp.org>
90173
90174         * lib/readlink.c: New file.
90175
90176 2003-06-22  Karl Berry  <karl@gnu.org>
90177
90178         * config/srclist.txt: update mkinstalldirs from automake.
90179         * config/mkinstalldirs: update.
90180
90181 2003-06-22  Bruno Haible  <bruno@clisp.org>
90182
90183         Portability to mingw32.
90184         * m4/ssize_t.m4: New file, from GNU gettext.
90185         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90186         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90187
90188 2003-06-22  Bruno Haible  <bruno@clisp.org>
90189
90190         * modules/safe-read: Add m4/ssize_t.m4.
90191         * modules/xreadlink: Add m4/ssize_t.m4.
90192
90193 2003-06-20  Bruno Haible  <bruno@clisp.org>
90194
90195         Assume C89, so PARAMS isn't needed.
90196         * lib/unicodeio.h (PARAMS): Remove.
90197         * lib/unicodeio.c: Don't use PARAMS.
90198
90199 2003-06-18  Karl Berry  <karl@gnu.org>
90200
90201         * config/config.{guess,sub}: update from prep.
90202
90203 2003-06-18  Jim Meyering  <jim@meyering.net>
90204
90205         Merge changes from coreutils.
90206         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90207         Remove explicit declarations of xmalloc and realloc.
90208         Include xalloc.h.
90209         (read_utmp): Remove anachronistic cast of xmalloc.
90210
90211 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90212
90213         Assume C89, so PARAMS isn't needed.
90214         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90215         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90216         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90217         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90218         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90219         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90220         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90221         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90222         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90223         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90224         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90225         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90226         no longer needed. Anyway, config.h should always be included before any
90227         other file.
90228
90229 2003-06-11  Simon Josefsson  <jas@extundo.com>
90230
90231         * modules/sysexits: New file.
90232         * MODULES.html.sh (func_all_modules): Add sysexits.
90233
90234 2003-06-11  Simon Josefsson  <jas@extundo.com>
90235
90236         * lib/sysexit_.h: New file.
90237
90238 2003-06-11  Derek Price  <derek@ximbiot.com>
90239
90240         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90241         necessary.
90242
90243 2003-06-11  Bruno Haible  <bruno@clisp.org>
90244
90245         * m4/sysexits.m4: New file.
90246
90247 2003-06-10  Simon Josefsson  <jas@extundo.com>
90248
90249         * lib/argp.h: New file, from glibc.
90250         * lib/argp-ba.c: New file, from glibc.
90251         * lib/argp-eexst.c: New file, from glibc.
90252         * lib/argp-fmtstream.c: New file, from glibc.
90253         * lib/argp-fmtstream.h: New file, from glibc.
90254         * lib/argp-fs-xinl.c: New file, from glibc.
90255         * lib/argp-help.c: New file, from glibc.
90256         * lib/argp-namefrob.h: New file, from glibc.
90257         * lib/argp-parse.c: New file, from glibc.
90258         * lib/argp-pv.c: New file, from glibc.
90259         * lib/argp-pvh.c: New file, from glibc.
90260         * lib/argp-xinl.c: New file, from glibc.
90261
90262 2003-06-10  Simon Josefsson  <jas@extundo.com>
90263
90264         * modules/strchrnul: New file.
90265
90266 2003-06-10  Simon Josefsson  <jas@extundo.com>
90267
90268         * modules/argp: New file.
90269
90270 2003-06-10  Simon Josefsson  <jas@extundo.com>
90271
90272         * m4/strchrnul.m4: New file.
90273
90274 2003-06-10  Simon Josefsson  <jas@extundo.com>
90275
90276         * lib/strchrnul.h: New file.
90277         * lib/strchrnul.c: New file.
90278
90279 2003-06-10  Bruno Haible  <bruno@clisp.org>
90280
90281         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90282
90283 2003-06-07  Karl Berry  <karl@gnu.org>
90284
90285         * config/config.{guess,sub}: update from prep.
90286
90287 2003-06-07  Jim Meyering  <jim@meyering.net>
90288
90289         * modules/strtod: Use $(...) notation, not @...@ for
90290         AC_REPLACE'd variables.
90291         * modules/localcharset: Likewise.
90292
90293 2003-06-07  Jim Meyering  <jim@meyering.net>
90294
90295         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90296         in place of my name in the copyright comment.
90297         Remove definition and uses of __P.
90298
90299         From coreutils.
90300         * lib/stat.c: Don't declare xmalloc explicitly.
90301         Instead, include "xalloc.h".
90302         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90303         xrealloc, and xcalloc return values.
90304         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90305         Improve comment.
90306         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90307
90308 2003-06-07  Bruno Haible  <bruno@clisp.org>
90309
90310         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90311         avoid AC_CONFIG_LINKS.
90312         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90313         fnmatch.h, to avoid AC_CONFIG_LINKS.
90314         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90315
90316 2003-06-07  Bruno Haible  <bruno@clisp.org>
90317
90318         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90319         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90320         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90321         directory.
90322         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90323         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90324         directory.
90325
90326 2003-06-06  Jim Meyering  <jim@meyering.net>
90327
90328         Merge from coreutils.
90329         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90330         Consolidate declarations and initializations of *_base* locals.
90331
90332         Merge from coreutils.
90333         This avoids a core dump on systems without GNU putenv,
90334         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90335         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90336         (unsetenv): New static function, from GNU libc.
90337         (rpl_putenv): Use it.
90338
90339         * lib/modechange.c: Remove trailing blanks.
90340
90341         Merge from coreutils.
90342         * lib/fsusage.c: Remove declaration of statfs.
90343         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90344
90345         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90346
90347 2003-06-06  Jim Meyering  <jim@meyering.net>
90348
90349         * lib/stdbool_.h: Renamed from stdbool.h.in.
90350
90351 2003-06-06  Jim Meyering  <jim@meyering.net>
90352             Bruno Haible  <bruno@clisp.org>
90353
90354         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90355         Adjust Makefile.am snippet not to redirect directly to target.
90356         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90357
90358 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90359
90360         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90361         mismatch, look in future quarters as well as past.  This fixes a
90362         bug when processing fall-backwards gaps immediately after a long
90363         period of daylight-saving time.
90364
90365         * lib/mktime.c: Assume freestanding C89 or better.
90366         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90367         (__P): Remove; not used.
90368         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90369         (mktime, not_equal_tm, print_tm, check_result,
90370         main): Use prototypes.  Use const * where appropriate.
90371         (main): Fix typo in testing code that uncovered by above changes.
90372         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90373
90374 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90375
90376         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90377         locale.h, localeconv.  This merges changes from coreutils.
90378
90379         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90380         It can be removed after the next Autoconf is released.
90381         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90382         needed.
90383
90384 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90385
90386         * lib/mktime.c: Fix Debian bug 177940
90387         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90388         (localtime_offset): Now long int, not time_t, because we want it
90389         to be guaranteed to be signed.  All uses changed.
90390         (__mktime_internal): If overflow would occur when adding offset,
90391         don't add it.
90392
90393         Merge 'human' changes from coreutils.  Rewrite to support
90394         locale-specific notations like thousands separators.
90395         * lib/human.c: Simplify authorship notice.
90396         Include human.h immediately after config.h.
90397         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90398         <limits.h>: Do not include, since human.h does.
90399         (SIZE_MAX, UINTMAX_MAX): New macros.
90400         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90401         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90402         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90403         (power_letter): Renamed from suffixes.
90404         (generate_suffix_backwards): Remove.
90405         (adjust_value): Now takes int style (because of human.h changes)
90406         and long double value (for greater precision on some platforms).
90407         (group_number): New function.
90408         (human_readable): Use it.  Use integer options, not enum.
90409         Put the options before the sizes in the arg list.
90410         Support all the new options.
90411         The old human_readable function has been removed;
90412         use inttostr.h instead.
90413         (human_readable, default_block_size, humblock):
90414         Use uintmax_t, not int, for block sizes.
90415         (human_readable_inexact, block_size_types): Remove.
90416         (block_size_opts): New constant.
90417         (human_options): Renamed from human_block_size, with new signature
90418         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90419         * lib/human.h: Add copyright and authorship notice.
90420         Include <limits.h> and <stdbool.h> unconditionally.
90421         (PARAMS): Remove.  All uses removed.
90422         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90423         (enum human_inexact_style): Remove tag; now a nameless enum.
90424         (human_floor, human_ceiling, human_round_to_even): Now have
90425         values 2, 0, 1 rather than -1, 1, 0.
90426         (human_group_digits, human_suppress_point_zero, human_autoscale,
90427         human_base_1024, human_SI, human_B): New constants.
90428         (human_readable_inexact, human_block_size): Remove.
90429         (human_readable): Size args are now uintmax_t, not int.
90430         (human_options): New decl.
90431
90432         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90433         unnecessary now that we assume C89 or better.  This change
90434         imported from coreutils.
90435
90436         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90437         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90438         in the 2003-05-30 sync from glibc.
90439
90440         .h files should stand alone, but we shouldn't include <sys/types.h>
90441         if we can get away with just <stddef.h>.
90442
90443         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90444         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90445         rather than <sys/types.h>, as we merely need size_t.
90446         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90447         to get size_t.
90448         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90449         Include <stdio.h>, to get FILE.
90450         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90451         memcasecmp.h has included <stddef.h> and all we need is size_t.
90452         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90453         our interface, instead of including <sys/types.h>
90454
90455 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90456
90457         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90458         now, as glibc mktime is buggy on non-glibc systems.
90459
90460 2003-06-03  Karl Berry  <karl@gnu.org>
90461
90462         * config/config.sub: update from prep.
90463
90464 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90465
90466         [from coreutils]
90467         Fix some minor time-related bugs with POSIX time arguments.
90468         Some valid time stamps were being rejected (notably -1, and
90469         time stamps before 1900 on 64-bit hosts).  And some invalid
90470         time stamps were being accepted, e.g. September 31.
90471
90472         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90473         that we can return (time_t) -1 successfully.
90474         * lib/posixtm.c: Likewise.
90475         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90476         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90477         (t): Remove static var.
90478         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90479         of static var.  All uses changed.
90480         (year): Do not reject years before 1900; they can occur with
90481         64-bit time_t.
90482         (posix_time_parse): Do not check for out-of-range components;
90483         that is now the caller's responsibility, since our checks were
90484         only approximations.
90485         (posixtime): Use mktime to check for out-of-range components,
90486         since it knows them exactly.
90487         If mktime returns (time_t) -1, check whether an error actually occurred
90488         by invoking localtime on -1.
90489         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90490         posixtime failures better.
90491         Improve the test data (in comments only).
90492
90493 2003-06-02  Karl Berry  <karl@gnu.org>
90494
90495         * config/mkinstalldirs (version): new variable.
90496         (--version): new option.
90497         (usage): improve message.
90498
90499 2003-05-30  Karl Berry  <karl@gnu.org>
90500
90501         * lib/mktime.c: update from libc.
90502
90503 2003-05-30  Bruno Haible  <bruno@clisp.org>
90504
90505         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90506         * config/config.rpath: Upgrade to gettext-0.12.1.
90507
90508 2003-05-30  Bruno Haible  <bruno@clisp.org>
90509
90510         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90511         * m4/nls.m4: New file, from gettext-0.12.1.
90512         * m4/po.m4: New file, from gettext-0.12.1.
90513         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90514
90515 2003-05-30  Bruno Haible  <bruno@clisp.org>
90516
90517         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90518         * lib/localcharset.h: Likewise.
90519         * lib/localcharset.c: Likewise.
90520
90521 2003-05-29  Karl Berry  <karl@gnu.org>
90522
90523         * config/config.rpath: update from gettext.
90524
90525 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90526
90527         Assume the headers required for C89 freestanding compilers.
90528         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90529         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90530         * m4/human.m4 (gl_HUMAN): Likewise.
90531         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90532         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90533         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90534         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90535         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90536         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90537
90538 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90539
90540         Assume the headers required for C89 freestanding compilers.
90541         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90542         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90543         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90544         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90545         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90546         define, since <limits.h> is guaranteed to do that.
90547         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90548         * lib/exclude.c: Include <stdbool.h> unconditionally.
90549         * lib/tempname.c: Include <stddef.h> unconditionally.
90550         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90551         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90552         <stddef.h> does that.
90553         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90554         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90555         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90556         needed.
90557         * lib/xstrtol.c: Likewise.
90558         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90559         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90560
90561         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90562         warnings on some platforms.
90563
90564         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90565         arbitrarily.
90566
90567 2003-05-26  Jim Meyering  <jim@meyering.net>
90568
90569         Merge in a change from coreutils:
90570         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90571         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90572         that condition, rather than `-1' which is slightly misleading.
90573         Change the name of the cache variable to have the gl_ prefix.
90574         Prompted by a patch from Richard Dawe for DJGPP.
90575
90576 2003-05-24  Karl Berry  <karl@gnu.org>
90577
90578         * config/config.guess: update from prep.
90579
90580 2003-05-22  Karl Berry  <karl@gnu.org>
90581
90582         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90583
90584 2003-05-20  Karl Berry  <karl@gnu.org>
90585
90586         * config/config.guess: update from prep.
90587
90588 2003-05-18  Karl Berry  <karl@gnu.org>
90589
90590         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90591         might actually be set by the user.
90592
90593         * config/depcomp, install-sh, mdate-sh: update from automake.
90594
90595 2003-05-17  Bruno Haible  <bruno@clisp.org>
90596
90597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90598         invalid expansion for AC_EGREP_CPP.
90599         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90600         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90601         Suggested by Akim Demaille <akim@epita.fr> in
90602         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90603
90604 2003-05-12  Jim Meyering  <jim@meyering.net>
90605
90606         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90607         the space-padded-by-default conversion specifiers, %e, %k, %l.
90608
90609 2003-05-12  Bruno Haible  <bruno@clisp.org>
90610
90611         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90612         the string is longer than 4 KB.
90613
90614 2003-05-11  Karl Berry  <karl@gnu.org>
90615
90616         * config/config.{guess,sub}: update from prep.
90617
90618 2003-05-09  Bruno Haible  <bruno@clisp.org>
90619
90620         * modules/error: Add m4/strerror_r.m4 to file list.
90621
90622 2003-05-03  Bruno Haible  <bruno@clisp.org>
90623
90624         Upgrade to Unicode-4.0.
90625         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90626         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90627         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90628         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90629         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90630         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90631         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90632         Change width of U+E0100..U+E01EF from 1 to 0.
90633
90634 2003-04-25  Jim Meyering  <jim@meyering.net>
90635
90636         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90637         of type size_t, not int.
90638
90639 2003-04-25  Bruno Haible  <bruno@clisp.org>
90640
90641         * lib/copy-file.c: Include <stddef.h>, for size_t.
90642
90643 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90646         code which expansion is under static control.  Patch imported from
90647         Akim Demaille's patch to Bison; see
90648         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90649
90650 2003-04-14  Bruno Haible  <bruno@clisp.org>
90651
90652         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90653
90654 2003-04-11  Jim Meyering  <jim@meyering.net>
90655
90656         Merge changes from Coreutils.
90657
90658         2003-03-22  Jim Meyering  <jim@meyering.net>
90659
90660         * lib/strftime.c (widen): Cast alloca return value to proper type.
90661
90662         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90663
90664         From GNU libc.
90665         * lib/strftime.c (my_strftime): Handle very large width
90666         specifications for numeric values correctly.  Improve checks for
90667         overflow.
90668
90669         2003-01-19  Jim Meyering  <jim@meyering.net>
90670
90671         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90672         definitions.
90673         (nl_get_alt_digit) [! defined my_strftime]: Define.
90674         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90675         _nl_get_alt_digit and _nl_get_walt_digit.
90676
90677         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90678         libc. These changes have no effect outside of _LIBC.
90679
90680 2003-04-10  Bruno Haible  <bruno@clisp.org>
90681
90682         * modules/findprog: New file.
90683         * MODULES.html.sh (func_all_modules): Add it.
90684
90685 2003-04-10  Bruno Haible  <bruno@clisp.org>
90686
90687         * m4/findprog.m4: New file.
90688         * m4/eaccess.m4: New file.
90689
90690 2003-04-10  Bruno Haible  <bruno@clisp.org>
90691
90692         * lib/findprog.h: New file, from GNU gettext.
90693         * lib/findprog.c: New file, from GNU gettext.
90694
90695 2003-04-05  Jim Meyering  <jim@meyering.net>
90696
90697         Merge changes from Coreutils.
90698
90699         * lib/exclude.h (PARAMS): Remove definition and uses.
90700         * lib/exclude.c: Remove uses of `PARAMS'.
90701
90702         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90703         Add test-cases for DOS filenames. Declare program_name.
90704         (main): Set up program_name.  Patch by Rich Dawe.
90705
90706         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90707         error from mntctl.
90708         Use mntctl's return value to drive the entry-processing loop, since
90709         we can't rely on the value of the vmt_length member in the last
90710         entry.  On some systems doing so could result in exhausting
90711         virtual memory.  Based in part on a patch from Mike Jetzer.
90712
90713 2003-04-04  Bruno Haible  <bruno@clisp.org>
90714
90715         * modules/linebreak: New file.
90716         * MODULES.html.sh (func_all_modules): Add it.
90717
90718 2003-04-04  Bruno Haible  <bruno@clisp.org>
90719
90720         * m4/linebreak.m4: New file.
90721
90722 2003-04-04  Bruno Haible  <bruno@clisp.org>
90723
90724         * lib/linebreak.h: New file, from GNU gettext.
90725         * lib/linebreak.c: New file, from GNU gettext with slight
90726         modifications.
90727         * lib/lbrkprop.h: New file, from GNU gettext.
90728
90729 2003-04-03  Bruno Haible  <bruno@clisp.org>
90730
90731         * modules/utf8-ucs4: New file.
90732         * modules/utf16-ucs4: New file.
90733         * modules/ucs4-utf8: New file.
90734         * modules/ucs4-utf16: New file.
90735         * MODULES.html.sh (func_all_modules): Add them.
90736
90737 2003-04-03  Bruno Haible  <bruno@clisp.org>
90738
90739         * m4/utf-ucs4.m4: New file.
90740         * m4/ucs4-utf.m4: New file.
90741
90742 2003-04-03  Bruno Haible  <bruno@clisp.org>
90743
90744         * lib/utf8-ucs4.h: New file, from GNU gettext.
90745         * lib/utf16-ucs4.h: New file, from GNU gettext.
90746         * lib/ucs4-utf8.h: New file, from GNU gettext.
90747         * lib/ucs4-utf16.h: New file, from GNU gettext.
90748
90749 2003-04-02  Bruno Haible  <bruno@clisp.org>
90750
90751         * modules/binary-io: New file.
90752         * MODULES.html.sh (func_all_modules): Add it.
90753
90754 2003-04-02  Bruno Haible  <bruno@clisp.org>
90755
90756         * lib/binary-io.h: New file, from GNU gettext.
90757
90758 2003-04-01  Bruno Haible  <bruno@clisp.org>
90759
90760         * modules/pathname: New file.
90761         * MODULES.html.sh (func_all_modules): Add it.
90762
90763 2003-04-01  Bruno Haible  <bruno@clisp.org>
90764
90765         * lib/pathname.h: New file, from GNU gettext.
90766         * lib/concatpath.c: New file, from GNU gettext.
90767
90768 2003-03-30  Bruno Haible  <bruno@clisp.org>
90769
90770         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90771
90772 2003-03-30  Bruno Haible  <bruno@clisp.org>
90773
90774         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90775         function chown() doesn't exist.
90776
90777 2003-03-28  Bruno Haible  <bruno@clisp.org>
90778
90779         * modules/copy-file: New file.
90780         * MODULES.html.sh (func_all_modules): Add it.
90781
90782 2003-03-28  Bruno Haible  <bruno@clisp.org>
90783
90784         * m4/copy-file.m4: New file.
90785
90786 2003-03-28  Bruno Haible  <bruno@clisp.org>
90787
90788         * lib/copy-file.h: New file, from GNU gettext.
90789         * lib/copy-file.c: New file, from GNU gettext.
90790
90791 2003-03-18  Jim Meyering  <jim@meyering.net>
90792
90793         * lib/quote.c (quote_n): Fix typo in comment.
90794
90795 2003-03-18  Bruno Haible  <bruno@clisp.org>
90796
90797         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90798         checking.
90799         * m4/onceonly_2_57.m4: Likewise.
90800
90801 2003-03-17  Bruno Haible  <bruno@clisp.org>
90802
90803         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90804         (m4_quote): Remove macro.
90805         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90806
90807 2003-03-14  Jim Meyering  <jim@meyering.net>
90808
90809         Merge changes from Coreutils.
90810         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90811         to be const, in order to avoid warnings.
90812         (obstack_room): Likewise.
90813         (obstack_empty_p): Likewise.
90814
90815 2003-03-14  Bruno Haible  <bruno@clisp.org>
90816
90817         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90818         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90819
90820 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90821
90822         Merge changes from Bison.
90823         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90824         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90825         when compiling Bison 1.875's `bitset bset = obstack_alloc
90826         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90827         * lib/hash.c: Include <stdbool.h> unconditionally.
90828
90829 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90830
90831         * m4/onceonly.m4 (m4_quote): New macro.
90832         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90833         Quote AC_FOREACH variable-expansions properly.
90834
90835 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90836
90837         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90838
90839 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90840
90841         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90842         Reported by Bruce Becker; see:
90843         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90844
90845 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90846             Bruno Haible  <bruno@clisp.org>
90847
90848         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90849         Reported by John Hughes, see
90850         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90851
90852 2003-02-20  Bruno Haible  <bruno@clisp.org>
90853
90854         * MODULES.html.sh (func_all_modules): Add poll.
90855
90856 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90857
90858         * modules/poll: New file.
90859
90860 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90861
90862         * lib/poll_.h: New file.
90863         * lib/poll.c: New file.
90864
90865 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90866
90867         * m4/poll.m4: New file.
90868
90869 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90870
90871         * modules/mathl: New file.
90872
90873 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90874
90875         * lib/mathl.h: New file.
90876         * lib/acosl.c: New file.
90877         * lib/asinl.c: New file.
90878         * lib/atanl.c: New file.
90879         * lib/ceill.c: New file.
90880         * lib/cosl.c: New file.
90881         * lib/expl.c: New file.
90882         * lib/floorl.c: New file.
90883         * lib/frexpl.c: New file.
90884         * lib/ldexpl.c: New file.
90885         * lib/logl.c: New file.
90886         * lib/sincosl.c: New file.
90887         * lib/sinl.c: New file.
90888         * lib/sqrtl.c: New file.
90889         * lib/tanl.c: New file.
90890         * lib/trigl.c: New file.
90891         * lib/trigl.h: New file.
90892
90893 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90894
90895         * m4/mathl.m4: New file.
90896
90897 2003-02-18  Bruno Haible  <bruno@clisp.org>
90898
90899         * MODULES.html.sh (func_all_modules): Add mathl.
90900
90901 2003-02-17  Bruno Haible  <bruno@clisp.org>
90902
90903         * modules/mkdtemp: New module.
90904         * MODULES.html.sh (func_all_modules): Add it.
90905
90906 2003-02-17  Bruno Haible  <bruno@clisp.org>
90907
90908         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90909
90910 2003-02-17  Bruno Haible  <bruno@clisp.org>
90911
90912         * lib/mkdtemp.h: New file, from GNU gettext.
90913         * lib/mkdtemp.c: New file, from GNU gettext.
90914
90915 2003-02-02  Jim Meyering  <jim@meyering.net>
90916
90917         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90918         e.g. glibc-2.2.93.
90919
90920 2003-01-31  Bruno Haible  <bruno@clisp.org>
90921
90922         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90923         'rpl_rename'.
90924         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90925         'rpl_strnlen'.
90926         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90927         'rpl_strtod'.
90928         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90929         'rpl_utime'.
90930
90931 2003-01-31  Bruno Haible  <bruno@clisp.org>
90932
90933         * lib/rename.c: #undef rename before defining rpl_rename.
90934         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90935
90936 2003-01-30  Bruno Haible  <bruno@clisp.org>
90937
90938         * modules/vasnprintf, modules/vasprintf: New modules.
90939         * MODULES.html.sh (func_all_modules): Add them.
90940
90941 2003-01-30  Bruno Haible  <bruno@clisp.org>
90942
90943         * m4/signed.m4: New file, from GNU gettext.
90944         * m4/longdouble.m4: New file, from GNU gettext.
90945         * m4/wchar_t.m4: New file, from GNU gettext.
90946         * m4/wint_t.m4: New file, from GNU gettext.
90947         * m4/vasnprintf.m4: New file.
90948         * m4/vasprintf.m4: New file.
90949
90950 2003-01-30  Bruno Haible  <bruno@clisp.org>
90951
90952         * lib/printf-args.h: New file, from GNU gettext.
90953         * lib/printf-args.c: New file, from GNU gettext.
90954         * lib/printf-parse.h: New file, from GNU gettext.
90955         * lib/printf-parse.c: New file, from GNU gettext.
90956         * lib/vasnprintf.h: New file, from GNU gettext.
90957         * lib/vasnprintf.c: New file, from GNU gettext.
90958         * lib/asnprintf.c: New file, from GNU gettext.
90959         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90960         * lib/vasprintf.c: New file, from GNU gettext.
90961         * lib/asprintf.c: New file, from GNU gettext.
90962
90963 2003-01-29  Bruno Haible  <bruno@clisp.org>
90964
90965         * modules/stpncpy: New module.
90966         * MODULES.html.sh (func_all_modules): Add it.
90967
90968 2003-01-29  Bruno Haible  <bruno@clisp.org>
90969
90970         * m4/stpncpy.m4: New file.
90971
90972 2003-01-29  Bruno Haible  <bruno@clisp.org>
90973
90974         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90975         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90976
90977 2003-01-28  Bruno Haible  <bruno@clisp.org>
90978
90979         * modules/c-ctype: New module.
90980         * MODULES.html.sh (func_all_modules): Add it.
90981
90982 2003-01-28  Bruno Haible  <bruno@clisp.org>
90983
90984         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90985         Paul Eggert.
90986         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90987         Paul Eggert.
90988
90989 2003-01-27  Bruno Haible  <bruno@clisp.org>
90990
90991         * modules/xsetenv: New module.
90992         * MODULES.html.sh (func_all_modules): Add it.
90993
90994 2003-01-27  Bruno Haible  <bruno@clisp.org>
90995
90996         * lib/xsetenv.h: New file, from GNU gettext.
90997         * lib/xsetenv.c: New file, from GNU gettext.
90998
90999 2003-01-23  Jim Meyering  <jim@meyering.net>
91000
91001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91002         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91003
91004 2003-01-23  Bruno Haible  <bruno@clisp.org>
91005
91006         * modules/minmax: New module.
91007         * MODULES.html.sh (func_all_modules): Add it.
91008
91009 2003-01-23  Bruno Haible  <bruno@clisp.org>
91010
91011         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91012         Eggert.
91013
91014 2003-01-22  Bruno Haible  <bruno@clisp.org>
91015
91016         * modules/exit: New module.
91017         * MODULES.html.sh (func_all_modules): Add it.
91018
91019 2003-01-22  Bruno Haible  <bruno@clisp.org>
91020
91021         * lib/exit.h: New file, from GNU gettext.
91022
91023 2003-01-19  Bruno Haible  <bruno@clisp.org>
91024
91025         * gnulib-tool: Recognize option --extract-maintainer.
91026         (func_get_maintainer): New function.
91027         * modules/*: Add Maintainer entry.
91028
91029 2003-01-16  Jim Meyering  <jim@meyering.net>
91030
91031         * m4/regex.m4: The `regex' struct is both input and output.
91032         Initialize it before each use.  Patch by Tim Waugh.
91033
91034 2003-01-16  Bruno Haible  <bruno@clisp.org>
91035
91036         * MODULES.html.sh: Add a table of contents. Add the module name as
91037         leftmost column. Add hyperlinks.
91038
91039 2003-01-15  Bruno Haible  <bruno@clisp.org>
91040
91041         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91042
91043 2003-01-15  Bruno Haible  <bruno@clisp.org>
91044
91045         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91046         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91047         suffix.
91048
91049 2003-01-15  Bruno Haible  <bruno@clisp.org>
91050
91051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91052
91053 2003-01-15  Bruno Haible  <bruno@clisp.org>
91054
91055         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91056         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91057
91058 2003-01-14  Jim Meyering  <jim@meyering.net>
91059
91060         * lib/same.c (same_name): Tweak a comment.
91061
91062 2003-01-14  Bruno Haible  <bruno@clisp.org>
91063
91064         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91065         when a string comparison is sufficient.
91066
91067 2003-01-14  Bruno Haible  <bruno@clisp.org>
91068
91069         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91070         'unsigned int'.
91071
91072 2003-01-14  Bruno Haible  <bruno@clisp.org>
91073
91074         * lib/hash-pjw.c: Add comment about low quality of this function.
91075
91076 2003-01-13  Bruno Haible  <bruno@clisp.org>
91077
91078         * modules/stpcpy: Distribute lib/stpcpy.h.
91079         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91080
91081 2003-01-13  Bruno Haible  <bruno@clisp.org>
91082
91083         * modules/*: Add a description.
91084         * modules/strpbrk: Fix Makefile.am snippet.
91085         * modules/strtoimax: Fix dependencies.
91086         * modules/strtoumax: Likewise.
91087
91088 2003-01-13  Bruno Haible  <bruno@clisp.org>
91089
91090         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91091         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91092         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91093
91094 2003-01-13  Bruno Haible  <bruno@clisp.org>
91095
91096         * gnulib-tool (func_create_testdir): Store config/* files in the main
91097         directory.
91098         * config.rpath: Move to ...
91099         * config/config.rpath: ... here.
91100         * modules/gettext: Contains config/config.rpath, not config.rpath.
91101         * modules/iconv: Likewise.
91102
91103 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91104
91105         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91106         to avoid collisions with libcurses and libreadline.
91107
91108         * m4/getstr.m4: Remove.
91109         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91110
91111 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91112
91113         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91114         to avoid collisions with libcurses and libreadline.
91115
91116         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91117         * lib/getstr.h, getstr.c: Remove.
91118         * lib/getline.c: Include "getline.h", to check interface.
91119         Move body of old getstr.c here: this defines MIN_CHUNK and
91120         declares getdelim2, which is renamed from getstr.
91121         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91122
91123         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91124         All uses changed.
91125         * lib/linebuffer.h: Likewise.
91126         (readline): Remove backward-compatibility macro.
91127
91128 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91129
91130         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91131         to avoid collisions with libcurses and libreadline.
91132         * getstr: Remove.
91133         * MODULES.html.sh: Remove getstr.
91134         * modules/getline: Depend on unlocked-io, not getstr.
91135
91136 2003-01-12  Jim Meyering  <jim@meyering.net>
91137
91138         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91139
91140 2003-01-10  Bruno Haible  <bruno@clisp.org>
91141
91142         * modules/alloca: Change Makefile.am requirements. Simplify Include
91143         requirements. Add lib/alloca_.h to file list.
91144
91145 2003-01-10  Bruno Haible  <bruno@clisp.org>
91146
91147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91148
91149 2003-01-10  Bruno Haible  <bruno@clisp.org>
91150
91151         * lib/alloca_.h: New file.
91152         * lib/getdate.y: Unconditionally include alloca.h.
91153         * lib/makepath.c: Likewise.
91154         * lib/setenv.c: Likewise.
91155         * lib/userspec.c: Likewise.
91156
91157 2003-01-09  Karl Berry  <karl@gnu.org>
91158
91159         * MODULES.html.sh: include `dirname $0` in PATH, to find
91160         gnulib-tool.
91161
91162 2003-01-09  Bruno Haible  <bruno@clisp.org>
91163
91164         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91165         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91166
91167 2003-01-09  Bruno Haible  <bruno@clisp.org>
91168
91169         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91170
91171 2003-01-09  Bruno Haible  <bruno@clisp.org>
91172
91173         * lib/stdbool.h.in: New file.
91174
91175 2003-01-09  Bruno Haible  <bruno@clisp.org>
91176
91177         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91178         * MODULES.html.sh: Likewise.
91179
91180 2003-01-08  Jim Meyering  <jim@meyering.net>
91181
91182         * lib/full-write.c: Undefine and define-away `const' after inclusion
91183         of errno.h, not before.  Suggestion from Bruno Haible.
91184
91185 2003-01-08  Bruno Haible  <bruno@clisp.org>
91186
91187         * modules/full-read: Depend on full-write.
91188
91189 2003-01-08  Bruno Haible  <bruno@clisp.org>
91190
91191         * lib/safe-read.c: Include specification header first, to ensure its
91192         selfcontainedness.
91193         * lib/full-write.c: Likewise.
91194
91195 2003-01-07  Jim Meyering  <jim@meyering.net>
91196
91197         * lib/full-write.c: Rework so that it may serve to define full_read,
91198         too.
91199         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91200
91201 2003-01-07  Bruno Haible  <bruno@clisp.org>
91202
91203         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91204         <inttypes.h>.
91205         * lib/xstrtol.h: Likewise.
91206         * lib/xstrtoimax.c: Likewise.
91207         * lib/xstrtoumax.c: Likewise.
91208         * lib/human.h: Likewise.
91209
91210         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91211         on systems that have <inttypes.h> but not <stdint.h>.
91212
91213 2003-01-07  Bruno Haible  <bruno@clisp.org>
91214
91215         * MODULES.html.sh: Add copyright notice.
91216         (missed_files): Omit CVS directory entries.
91217         (func_module): Make it work with sed-3.02.
91218         * MODULES.txt: Remove file.
91219
91220 2003-01-06  Jim Meyering  <jim@meyering.net>
91221
91222         * lib/version-etc.c: Update year in translatable copyright string.
91223
91224 2003-01-03  Karl Berry  <karl@gnu.org>
91225
91226         * config/config.{guess,sub}: update from prep.
91227
91228 2003-01-02  Karl Berry  <karl@gnu.org>
91229
91230         * doc/COPYING.DOC: belatedly updated to 1.2.
91231
91232 2003-01-01  Karl Berry  <karl@gnu.org>
91233
91234         * gnulib-tool (func_verify_module): report module name $module in
91235         error message, not $1.
91236         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91237         be created, only if it doesn't exist.
91238         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91239
91240 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91241
91242         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91243
91244 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91245
91246         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91247         memcmp if strcoll doesn't work.
91248
91249 2002-12-31  Bruno Haible  <bruno@clisp.org>
91250
91251         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91252         nonempty.
91253
91254 2002-12-31  Bruno Haible  <bruno@clisp.org>
91255
91256         * lib/memcoll.c (STRCOLL): New macro.
91257         (memcoll): Use it.
91258
91259 2002-12-31  Bruno Haible  <bruno@clisp.org>
91260
91261         * lib/localcharset.h: New file.
91262         * lib/localcharset.c: Include it.
91263         * lib/unicodeio.c: Likewise.
91264
91265 2002-12-31  Bruno Haible  <bruno@clisp.org>
91266
91267         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91268         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91269
91270 2002-12-31  Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/getline.h: Include <stddef.h>, for size_t.
91273
91274         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91275         * lib/unicodeio.c: Don't include <stddef.h>.
91276
91277 2002-12-31  Bruno Haible  <bruno@clisp.org>
91278
91279         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91280         HAVE_TM_ZONE.
91281
91282 2002-12-24  Karl Berry  <karl@gnu.org>
91283
91284         * config/config.guess: update from prep.
91285
91286 2002-12-24  Bruno Haible  <bruno@clisp.org>
91287
91288         General infrasructure.
91289         * m4/README: Rewritten.
91290         * m4/onceonly.m4: New file.
91291         * m4/onceonly_2_57.m4: New file.
91292
91293         Module atexit.
91294         * m4/atexit.m4: New file.
91295
91296         Module strtod.
91297         * m4/strtod.m4: New file.
91298
91299         Module strtol.
91300         * m4/strtol.m4: New file.
91301
91302         Module strtoul.
91303         * m4/strtoul.m4: New file.
91304
91305         Module memchr.
91306         * m4/memchr.m4: New file.
91307
91308         Module memcmp.
91309         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91310         (jm_FUNC_MEMCMP): Invoke it.
91311
91312         Module memcpy.
91313         * m4/memcpy.m4: New file.
91314
91315         Module memmove.
91316         * m4/memmove.m4: New file.
91317
91318         Module memset.
91319         * m4/memset.m4: New file.
91320
91321         Module strcspn.
91322         * m4/strcspn.m4: New file.
91323
91324         Module strpbrk.
91325         * m4/strpbrk.m4: New file.
91326
91327         Module strstr.
91328         * m4/strstr.m4: New file.
91329
91330         Module strerror.
91331         * m4/strerror.m4: New file.
91332
91333         Module mktime.
91334         * m4/mktime.m4: Renamed from jm-mktime.m4.
91335         (gl_PREREQ_MKTIME): New macro.
91336         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91337
91338         Module malloc.
91339         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91340         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91341         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91342
91343         Module realloc.
91344         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91345         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91346         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91347
91348         Module strftime.
91349         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91350         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91351         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91352         gl_TM_GMTOFF.
91353         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91354
91355         Module xalloc.
91356         * m4/xalloc.m4: New file.
91357
91358         Module alloca.
91359         * m4/alloca.m4: New file.
91360
91361         Module putenv.
91362         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91363         (jm_FUNC_PUTENV): Invoke it.
91364
91365         Module setenv.
91366         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91367         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91368         when invoked twice.
91369         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91370         gt_FUNC_SETENV.
91371
91372         Module memrchr.
91373         * m4/memrchr.m4: New file.
91374
91375         Module stpcpy.
91376         * m4/stpcpy.m4: New file.
91377
91378         Module strcase.
91379         * m4/strcase.m4: New file.
91380
91381         Module strdup.
91382         * m4/strdup.m4: New file.
91383
91384         Module strnlen.
91385         * m4/strnlen.m4: New file.
91386
91387         Module strndup.
91388         * m4/strndup.m4: New file.
91389
91390         Module xstrtod.
91391         * m4/xstrtod.m4: New file.
91392
91393         Module xstrtol.
91394         * m4/xstrtol.m4: New file.
91395
91396         Module getdate.
91397         * m4/getdate.m4: New file.
91398
91399         Module unlocked-io.
91400         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91401         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91402         * m4/jm-glibc-io.m4n: Remove file.
91403
91404         Module long-options.
91405         * m4/long-options.m4: New file.
91406
91407         Module md5.
91408         * m4/md5.m4: New file.
91409
91410         Module sha.
91411         * m4/sha.m4: New file.
91412
91413         Module getstr.
91414         * m4/getstr.m4: New file.
91415
91416         Module getline.
91417         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91418         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91419         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91420         simply getline. Infoke gl_PREREQ_GETLINE.
91421
91422         Module obstack.
91423         * m4/obstack.m4: New file.
91424
91425         Module hash.
91426         * m4/hash.m4: New file.
91427
91428         Module readtokens.
91429         * m4/readtokens.m4: New file.
91430
91431         Module strverscmp.
91432         * m4/strverscmp.m4: New file.
91433
91434         Module stdbool.
91435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91436         OSF/1.
91437
91438         Module strtoll.
91439         * m4/strtoll.m4: New file.
91440
91441         Module strtoull.
91442         * m4/strtoull.m4: New file.
91443
91444         Module strtoimax.
91445         * m4/strtoimax.m4: New file.
91446
91447         Module strtoumax.
91448         * m4/strtoumax.m4: New file.
91449
91450         Module xstrtoimax.
91451         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91452         jm_AC_PREREQ_XSTRTOIMAX.
91453         Moved the strtol prerequisites to strtol.m4.
91454         Moved the strtoll prerequisites to strtoll.m4.
91455         Moved the strtoimax prerequisites to strtoimax.m4.
91456
91457         Module xstrtoumax.
91458         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91459         jm_AC_PREREQ_XSTRTOUMAX.
91460         Moved the strtoul prerequisites to strtoul.m4.
91461         Moved the strtoull prerequisites to strtoull.m4.
91462         Moved the strtoumax prerequisites to strtoumax.m4.
91463
91464         Module chown.
91465         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91466         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91467
91468         Module dup2.
91469         * m4/dup2.m4: New file.
91470
91471         Module ftruncate.
91472         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91473         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91474
91475         Module getgroups.
91476         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91477         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91478
91479         Module gettimeofday.
91480         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91481         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91482         gl_PREREQ_GETTIMEOFDAY.
91483
91484         Module mkdir.
91485         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91486         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91487
91488         Module mkstemp.
91489         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91490         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91491         jm_AC_TYPE_UINTMAX_T.
91492         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91493
91494         Module stat.
91495         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91496         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91497
91498         Module lstat.
91499         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91500         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91501
91502         Module timespec.
91503         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91504         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91505         * m4/st_mtim.m4: Indentation.
91506
91507         Module nanosleep.
91508         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91509         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91510         gl_PREREQ_NANOSLEEP.
91511
91512         Module regex.
91513         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91514         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91515         (gl_REGEX): New macro.
91516
91517         Module rename.
91518         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91519         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91520
91521         Module rmdir.
91522         * m4/rmdir.m4: New file.
91523
91524         Module utime.
91525         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91526         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91527         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91528
91529         Module dirname.
91530         * m4/dirname.m4: New file.
91531
91532         Module getopt.
91533         * m4/getopt.m4: New file.
91534
91535         Module unistd-safer.
91536         * m4/unistd-safer.m4: New file.
91537
91538         Module fnmatch.
91539         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91540         declaration.
91541         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91542         (gl_FUNC_FNMATCH_POSIX): New macro.
91543         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91544         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91545         simply fnmatch.
91546
91547         Module exclude.
91548         * m4/exclude.m4: New file.
91549
91550         Module human.
91551         * m4/human.m4: New file.
91552
91553         Module acl.
91554         * m4/acl.m4: Nop.
91555
91556         Module backupfile.
91557         * m4/backupfile.m4: New file.
91558         * m4/d-ino.m4: Indentation.
91559
91560         Module fsusage.
91561         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91562         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91563         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91564
91565         Module dirfd.
91566         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91567         requirements.
91568
91569         Module euidaccess.
91570         * m4/euidaccess.m4: New file.
91571
91572         Module file-type.
91573         * m4/file-type.m4: New file.
91574
91575         Module fileblocks.
91576         * m4/fileblocks.m4: New file.
91577
91578         Module filemode.
91579         * m4/filemode.m4: New file.
91580
91581         Module isdir.
91582         * m4/isdir.m4: New file.
91583
91584         Module lchown.
91585         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91586         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91587
91588         Module makepath.
91589         * m4/makepath.m4: New file.
91590
91591         Module modechange.
91592         * m4/modechange.m4: New file.
91593
91594         Module mountlist.
91595         * m4/mountlist.m4: New file.
91596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91597         Indentation.
91598
91599         Module path-concat.
91600         * m4/path-concat.m4: New file.
91601
91602         Module pathmax.
91603         * m4/pathmax.m4: New file.
91604
91605         Module same.
91606         * m4/same.m4: New file.
91607
91608         Module save-cwd.
91609         * m4/save-cwd.m4: New file.
91610
91611         Module savedir.
91612         * m4/savedir.m4: New file.
91613
91614         Module xgetcwd.
91615         * m4/xgetcwd.m4: New file.
91616         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91617
91618         Module xreadlink.
91619         * m4/xreadlink.m4: New file.
91620
91621         Module safe-read.
91622         * m4/safe-read.m4: New file.
91623
91624         Module safe-write.
91625         * m4/safe-write.m4: New file.
91626
91627         Module closeout.
91628         * m4/closeout.m4: New file.
91629
91630         Module stdio-safer.
91631         * m4/stdio-safer.m4: New file.
91632
91633         Module getpass.
91634         * m4/getpass.m4: New file.
91635
91636         Module getugroups.
91637         * m4/getugroups.m4: New file.
91638
91639         Module group-member.
91640         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91641         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91642
91643         Module idcache.
91644         * m4/idcache.m4: New file.
91645
91646         Module userspec.
91647         * m4/userspec.m4: New file.
91648
91649         Module gettime.
91650         * m4/clock_time.m4: New file.
91651         * m4/gettime.m4: New file.
91652
91653         Module settime.
91654         * m4/settime.m4: New file.
91655
91656         Module posixtm.
91657         * m4/posixtm.m4: New file.
91658
91659         Module gethostname.
91660         * m4/gethostname.m4: New file.
91661
91662         Module canon-host.
91663         * m4/canon-host.m4: New file.
91664
91665         Module gettext.
91666         * m4/codeset.m4: New file, from gettext-0.11.5.
91667         * m4/gettext.m4: New file, from gettext-0.11.5.
91668         * m4/glibc21.m4: New file, from gettext-0.11.5.
91669         * m4/iconv.m4: New file, from gettext-0.11.5.
91670         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91671         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91672         * m4/inttypes.m4: New file, from gettext-0.11.5.
91673         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91674         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91675         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91676         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91677         * m4/lib-link.m4: New file, from gettext-0.11.5.
91678         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91679         * m4/progtest.m4: New file, from gettext-0.11.5.
91680         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91681         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91682         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91683
91684         Module localcharset.
91685         * m4/localcharset.m4: New file.
91686
91687         Module hard-locale.
91688         * m4/hard-locale.m4: New file.
91689
91690         Module mbswidth.
91691         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91692         onceonly macros.
91693         * m4/mbrtowc.m4: Add comment.
91694
91695         Module memcasecmp.
91696         * m4/memcasecmp.m4: New file.
91697
91698         Module memcoll.
91699         * m4/memcoll.m4: New file.
91700
91701         Module unicodeio.
91702         * m4/unicodeio.m4: New file.
91703
91704         Module rpmatch.
91705         * m4/rpmatch.m4: New file.
91706
91707         Module yesno.
91708         * m4/yesno.m4: New file.
91709
91710         Module exitfail.
91711         * m4/exitfail.m4: New file.
91712
91713         Module c-stack.
91714         * m4/c-stack.m4 (gl_C_STACK): New macro.
91715         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91716
91717         Module error.
91718         * m4/error.m4 (gl_ERROR): New macro.
91719         (jm_PREREQ_ERROR): Use onceonly macros.
91720
91721         Module fatal.
91722         * m4/fatal.m4: New file.
91723
91724         Module getloadavg.
91725         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91726         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91727
91728         Module getpagesize.
91729         * m4/getpagesize.m4: New file.
91730
91731         Module getusershell.
91732         * m4/getusershell.m4: New file.
91733
91734         Module physmem.
91735         * m4/physmem.m4: New file.
91736
91737         Module posixver.
91738         * m4/posixver.m4: New file.
91739
91740         Module quotearg.
91741         * m4/quotearg.m4: New file.
91742
91743         Module quote.
91744         * m4/quote.m4: New file.
91745
91746         Module readutmp.
91747         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91748
91749         Module sig2str.
91750         * m4/sig2str.m4: New file.
91751
91752         Other.
91753         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91754         ulonglong.m4.
91755         * m4/intmax_t.m4: New file.
91756         * m4/d-type.m4: Indentation.
91757         * m4/jm-macros.m4: Update.
91758         * m4/prereq.m4 (jm_PREREQ): Update.
91759         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91760         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91761         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91762         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91763         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91764         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91765         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91766         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91767         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91768         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91769         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91770         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91771         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91772         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91773         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91774         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91775         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91776         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91777         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91778
91779 2002-12-24  Bruno Haible  <bruno@clisp.org>
91780
91781         * MODULES.txt: Update according to m4/ changes.
91782
91783         Module gettext.
91784         * config.rpath: New file, from gettext-0.11.5.
91785
91786         * modules/*: New module descriptions.
91787         * gnulib-tool: New file.
91788         * MODULES.html.sh: New file.
91789
91790 2002-12-21  Karl Berry  <karl@gnu.org>
91791
91792         * doc/fdl.texi: update to version 1.2.
91793
91794 2002-12-19  Karl Berry  <karl@gnu.org>
91795
91796         * config/config.guess: update from prep.
91797
91798 2002-12-18  Bruno Haible  <bruno@clisp.org>
91799
91800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91801         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91802
91803 2002-12-17  Bruno Haible  <bruno@clisp.org>
91804
91805         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91806         stdlib.h, string.h.
91807
91808 2002-12-17  Bruno Haible  <bruno@clisp.org>
91809
91810         * lib/canon-host.c (strdup): Remove unused declaration.
91811
91812         * lib/fsusage.c: Include full_read.h.
91813         (get_fs_usage): Use full_read instead of safe_read.
91814
91815         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91816
91817 2002-12-12  Karl Berry  <karl@gnu.org>
91818
91819         * config/config.guess: update from prep.
91820
91821 2002-12-11  Bruno Haible  <bruno@clisp.org>
91822
91823         * m4/setenv.m4: New file, from gettext-0.11.5.
91824
91825 2002-12-11  Bruno Haible  <bruno@clisp.org>
91826
91827         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91828         not unsetenv().
91829         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91830         modifications:
91831
91832         2002-12-11  Bruno Haible  <bruno@clisp.org>
91833
91834                 * setenv.c (alloca): Fall back to malloc.
91835                 (freea): New macro.
91836                 (setenv): Use freea() to free memory allocated with alloca().
91837
91838         2002-11-13  Bruno Haible  <bruno@clisp.org>
91839
91840                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91841                 function declarations.
91842                 * unsetenv.c (unsetenv): Likewise.
91843
91844         2002-03-04  Bruno Haible  <bruno@clisp.org>
91845
91846                 Portability to AIX 4.3.3.
91847                 * unsetenv.c: New file, extracted from setenv.c.
91848                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91849
91850         2001-12-20  Bruno Haible  <bruno@clisp.org>
91851
91852                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91853                 use malloc instead. For SunOS 4.
91854
91855         2001-12-11  Bruno Haible  <bruno@clisp.org>
91856
91857                 * setenv.c: Declare alloca.
91858                 (compar_fn_t): New typedef.
91859                 (KNOWN_VALUE, STORE_VALUE): Use it.
91860
91861         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91862         setenv.h.
91863
91864 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91865
91866         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91867         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91868         Choose values that are less likely to collide with system fnmatch
91869         options.
91870         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91871         defined (e.g., a pure POSIX system).
91872         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91873         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91874
91875 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91876
91877         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91878         a pain in practice to deal with generated m4 files.  This change
91879         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91880
91881         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91882         and jm-glibc-io.m4, as they are no longer a special case.
91883         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91884         kludge and the auto-generation stuff.  Check only whether the
91885         functions are declared, not whether they exist, since older hosts
91886         that don't declare the functions can't use the optimization anyway.
91887
91888 2002-12-06  Jim Meyering  <jim@meyering.net>
91889
91890         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91891
91892         Merge in changes from libc's misc/error.c, in preparation
91893         for the merge of gnulib's changes back into libc.
91894
91895         * lib/error.c (_): Define only if not already defined.
91896         Move definition to follow all #include directives.
91897         Include unlocked-io.h only if !_LIBC.
91898         [_LIBC]: Include <libio/libioP.h>.
91899         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91900         (fflush): Tweak definition to use INTUSE.
91901         (putc): Define.
91902
91903 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91904
91905         * lib/alloca.c [defined emacs]: Include "lisp.h".
91906         (xalloc_die) [defined emacs]: New macro.
91907         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91908         [! defined emacs]: Include <xalloc.h>.
91909         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91910         (pointer): Typedef to POINTER_TYPE *.
91911         (malloc): Remove decl; we now always use xmalloc.
91912         (alloca): Use old-style definition, since Emacs needs this.
91913         Check for arithmetic overflow when computing combined size.
91914
91915 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91916
91917         Do not generate unlocked-io.h automatically, since it's easier to
91918         maintain it by hand.
91919
91920         * lib/unlocked-io.h: New file, from GNU diffutils,
91921         but with proper copyright notice and attribution.
91922         * lib/gen-uio: Remove.
91923         * lib/Makefile.am: Add copyright notice.
91924         (libfetish_a_SOURCES): Add unlocked-io.h.
91925         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91926         (DISTCLEANFILES, io_functions): Remove macros.
91927         (EXTRA_DIST): Remove gen_uio.
91928         (unlocked-io.h): Remove rule.
91929
91930 2002-12-04  Jim Meyering  <jim@meyering.net>
91931
91932         Reflect the fact that stat.c and lstat.c are no longer generated.
91933         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91934         (DISTCLEANFILES): Likewise.
91935         (EXTRA_DIST): Likewise.
91936         (all_local): Don't depend on stat.c or lstat.c.
91937         (stat.c, lstat.c): Remove rules.
91938         (EXTRA_DIST): Remove xstat.in.
91939
91940         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91941         * lib/stat.c: New file.  Contents mostly from xstat.in.
91942         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91943         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91944
91945         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91946         too.
91947         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91948
91949 2002-12-03  Jim Meyering  <jim@meyering.net>
91950
91951         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91952         but not semantics, to minimize the differences between these two files.
91953         (safe_read): Change comment to mention SAFE_READ_ERROR.
91954
91955         * lib/safe-read.c (IS_EINTR): Define.
91956         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91957
91958 2002-12-02  Jim Meyering  <jim@meyering.net>
91959
91960         * lib/safe-read.c (EINTR): Define.
91961         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91962         (INT_MAX): Provide fallback.
91963         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91964
91965         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91966
91967 2002-12-02  Bruno Haible  <bruno@clisp.org>
91968
91969         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91970         Define, taken from safe-read.c.
91971         (INT_MAX): Provide fallback.
91972         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91973         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91974
91975         * lib/safe-read.c (EINTR): Remove definition.
91976         (safe_read): Don't use EINTR if it is absent.
91977
91978 2002-12-01  Jim Meyering  <jim@meyering.net>
91979
91980         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91981         zero.
91982         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91983
91984 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91985
91986         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91987         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91988         with `if (! (value < limit)) abort ();', for readability.
91989
91990 2002-11-26  Karl Berry  <karl@gnu.org>
91991
91992         * lib/strdup.c: copy from libc again, with jim's ok.
91993         * lib/.cppi-disable: re-add strdup.c
91994
91995 2002-11-25  Karl Berry  <karl@gnu.org>
91996
91997         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91998         instead of "strtol.c".
91999
92000 2002-11-25  Karl Berry  <karl@gnu.org>
92001
92002         * config/install-sh: update from automake for variable quoting, $0 in
92003         error msgs, etc.
92004
92005         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92006         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92007         entry.
92008
92009 2002-11-25  Jim Meyering  <jim@meyering.net>
92010
92011         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92012
92013 2002-11-24  Karl Berry  <karl@gnu.org>
92014
92015         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92016         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92017
92018 2002-11-24  Jim Meyering  <jim@meyering.net>
92019
92020         Update from coreutils:
92021
92022         * lib/mktime.c: Merge in changes from libc.
92023
92024         Avoid a link-time failure on some Linux systems.
92025         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92026         (otherwise).
92027         (__mon_yday): Declare with the STATIC attribute.
92028         (__mktime_internal): Likewise.
92029         Based on a report from Greg Schafer.
92030
92031 2002-11-23  Jim Meyering  <jim@meyering.net>
92032
92033         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92034         Use `unsigned', not `int', as type of index.
92035
92036         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92037
92038         * lib/fsusage.c: Remove unneeded parentheses around operands of
92039         `defined'.
92040
92041 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92042
92043         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92044         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92045         so that we can be included first.
92046         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92047         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92048         No need to include stddef.h or sys/types.h any more.
92049         Surround local include files with "", not "<>".
92050         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92051         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92052         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92053         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92054         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92055         (ISPRINT): Remove; no longer needed now that we assume C89.
92056
92057         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92058         Preserve errno.
92059
92060         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92061         quotearg_char): Use SIZE_MAX rather than
92062         (size_t) -1 when we are talking about "infinity".
92063
92064         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92065
92066 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92067
92068         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92069         hint that one should use `if (! x) abort ();' rather than `assert
92070         (x);', and anyway it's one less thing to worry about configuring.
92071         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92072         hash_rehash, hash_insert): Use abort rather than assert.
92073
92074 2002-11-22  Bruno Haible  <bruno@clisp.org>
92075
92076         * lib/safe-read.h: Assume C89. Add comments.
92077         (safe_read): Change return type to size_t.
92078         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92079         byte counts > SSIZE_MAX correctly.
92080         * lib/safe-write.h: New file.
92081         * lib/safe-write.c: New file.
92082         * lib/full-read.h: New file.
92083         * lib/full-read.c: New file.
92084         * lib/full-write.h: Assume C89. Add comments.
92085         * lib/full-write.c: Include safe-write.h.
92086         (full_write): Rewritten to use safe_write.
92087         Suggested by Jim Meyering and Paul Eggert.
92088
92089 2002-11-21  Jim Meyering  <jim@meyering.net>
92090
92091         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92092
92093         Merge in changes from the coreutils.
92094
92095         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92096         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92097         <stdint.h>.
92098         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92099         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92100         int.  Work more efficiently if X is the same width as uintmax_t.
92101         Do not compare X to -1, to avoid bogus compiler warning.
92102         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92103         Don't assume that f_frsize and f_bsize are the same type.
92104
92105         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92106         warning on FreeBSD.
92107
92108         * lib/makepath.c (make_path): Restore umask *before* creating the final
92109         component.
92110         (make_path): Minor reformatting.
92111
92112         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92113         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92114         HAVE_MALLOC/HAVE_REALLOC.
92115
92116         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92117         dummy ones.  At least on GNU/Linux systems, `auto' means something
92118         else.
92119         From Michael Stone.
92120
92121 2002-11-21  Bruno Haible  <bruno@clisp.org>
92122
92123         Remove case insensitive option matching.
92124         * lib/argmatch.h (argcasematch): Remove declaration.
92125         (ARGCASEMATCH): Remove macro.
92126         (__xargmatch_internal): Remove case_sensitive argument.
92127         (XARGMATCH): Update.
92128         (XARGCASEMATCH): Remove macro.
92129         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92130         case_sensitive argument.
92131         (argcasematch): Remove function.
92132         (__xargmatch_internal): Remove case_sensitive argument.
92133         (main): Use XARGMATCH instead of XARGCASEMATCH.
92134
92135         * lib/xmalloc.c: Change compile-time error message. Add comment about
92136         required autoconf version.
92137
92138 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92139
92140         Merge argmatch cleanups from Bison.  Assume C89.
92141
92142         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92143         Include stdlib.h, for EXIT_FAILURE.
92144         Always include <string.h>, since we assume C89.
92145         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92146         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92147         Include <stddef.h> instead, since it's all we need for size_t.
92148         (PARAMS): Remove.  All uses removed.
92149         (ARRAY_CARDINALITY): Do not bother to #undef.
92150         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92151         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92152         Remove unnecessary parentheses.
92153         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92154         Insert necessary parentheses.
92155         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92156         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92157
92158 2002-11-19  Bruno Haible  <bruno@clisp.org>
92159
92160         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92161         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92162
92163         * lib/mbswidth.h (PARAMS): Remove macro.
92164         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92165         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92166
92167         * lib/gcd.h (PARAMS): Remove macro.
92168         (gcd): Use ANSI C function declarations.
92169         * lib/gcd.c (gcd): Likewise.
92170
92171 2002-11-15  Bruno Haible  <bruno@clisp.org>
92172
92173         * lib/strcspn.c: Include <stddef.h>.
92174         (strcspn): Use ANSI C function declaration. Change return type to
92175         size_t. Use NULL.
92176         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92177         (strpbrk): Use NULL.
92178         * lib/strpbrk.h (PARAMS): Remove macro.
92179         (strpbrk): Use ANSI C function declaration.
92180         * lib/strstr.c: Don't include <sys/types.h>.
92181         * lib/strstr.h (PARAMS): Remove macro.
92182         (strstr): Use ANSI C function declarations.
92183
92184 2002-11-14  Karl Berry  <karl@gnu.org>
92185
92186         * config/mkinstalldirs: `do' on separate line, instead of
92187         `for var; do'.
92188
92189 2002-11-06  Bruno Haible  <bruno@clisp.org>
92190
92191         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92192         * lib/gcd.c (gcd): Likewise.
92193
92194 2002-11-05  Bruno Haible  <bruno@clisp.org>
92195
92196         * lib/gcd.h: New file, from gettext-0.11.5.
92197         * lib/gcd.c: New file, from gettext-0.11.5.
92198
92199 2002-11-05  Bruno Haible  <bruno@clisp.org>
92200
92201         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92202         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92203         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92204         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92205
92206         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92207         <libintl.h>.
92208         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92209         <libintl.h>.
92210
92211         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92212         * lib/human.c: Include gettext.h instead of <libintl.h>.
92213         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92214         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92215         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92216         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92217         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92218         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92219         (textdomain): Remove definition.
92220         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92221
92222         * lib/long-options.c: Remove include of <libintl.h> and definition of
92223         _.
92224         * lib/same.c: Remove include of <libintl.h> and definition of _.
92225
92226 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92227
92228         * lib/config.charset: A few additions for Solaris.
92229
92230 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92231
92232         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92233         * lib/localcharset.c (locale_charset): Declare as extern "C".
92234
92235 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92236
92237         * lib/config.charset: msdos in uk_UA uses CP1125.
92238
92239 2002-11-04  Bruno Haible  <bruno@clisp.org>
92240
92241         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92242         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92243         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92244         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92245         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92246
92247 2002-11-04  Bruno Haible  <bruno@clisp.org>
92248
92249         * lib/localcharset.c (locale_charset): Don't return an empty string.
92250
92251 2002-11-04  Bruno Haible  <bruno@clisp.org>
92252
92253         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92254         aliases.
92255
92256 2002-11-04  Bruno Haible  <bruno@clisp.org>
92257
92258         * lib/config.charset: Update for newest glibc. Add canonical names
92259         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92260
92261 2002-11-04  Bruno Haible  <bruno@clisp.org>
92262
92263         * lib/config.charset: Add support for NetBSD.
92264
92265 2002-11-04  Bruno Haible  <bruno@clisp.org>
92266
92267         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92268
92269 2002-11-01  Bruno Haible  <bruno@clisp.org>
92270
92271         * configure.in: Add AC_CONFIG_AUX_DIR call.
92272         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92273         test/Makefile.
92274         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92275
92276 2002-09-28  Karl Berry  <karl@gnu.org>
92277
92278         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92279         installed automake until the next release, since changes have been
92280         made.
92281
92282 2002-09-25  Karl Berry  <karl@gnu.org>
92283
92284         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92285         * lib/getopt*: copy from libc/posix.
92286         * lib/gettext.h: copy from gettext.
92287         * lib/.cppi-disable: add strdup.c, gettext.h.
92288
92289 2002-09-25  Karl Berry  <karl@gnu.org>
92290
92291         * config/srclist.txt: enable gettext.h check.
92292         * config/config.{guess,sub}: update from prep.
92293         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92294                 from automake 1.6.3.
92295         See srclist*.
92296
92297 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92298
92299         * regex.c (PATFETCH): Remove the translating fetch.
92300         (PATFETCH_RAW): Rename to PATFETCH.
92301         (set_image_of_range): New fun.
92302         (SET_RANGE_TABLE_WORK_AREA): Use it.
92303         (regex_compile): Don't translate the pattern chars so eagerly.
92304         Only do it when inserting an `exactn' bytecode or when handling
92305         a char-range.
92306         (mutually_exclusive_p): Avoid empty statement.
92307
92308 2002-07-06  Jim Meyering  <meyering@lucent.com>
92309
92310         * m4/README: Don't mention Makefile.am.in.
92311         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92312
92313 2002-07-01  Jim Meyering  <meyering@lucent.com>
92314
92315         * lib/c-stack.c: Include sys/time.h.
92316         From Volker Borchert.
92317
92318 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92319
92320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92321
92322 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92323
92324         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92325         New macro.  Use it uniformly instead of
92326         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92327         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92328         reported by Vin Shelton.
92329
92330 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92331
92332         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92333         Do not assume SA_SIGINFO behavior.
92334         Bug reported by Jim Meyering on NetBSD 1.5.2.
92335
92336 2002-06-22  Jim Meyering  <meyering@lucent.com>
92337
92338         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92339         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92340
92341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92342         now that configure.ac uses AC_GNU_SOURCE.
92343         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92344         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92345
92346         Update to latest tools.  Suggestions from Paul Eggert.
92347         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92348         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92349         * m4/fnmatch.m4: Likewise.
92350         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92351         to AC_HEADER_STDBOOL
92352
92353 2002-06-22  Jim Meyering  <meyering@lucent.com>
92354
92355         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92356         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92357
92358 2002-06-22  Jim Meyering  <meyering@lucent.com>
92359
92360         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92361
92362         * lib/exitfail.c, exitfail.h: Likewise.
92363         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92364
92365         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92366         of fnmatch.h.
92367         (EXTRA_DIST): Add fnmatch_loop.c.
92368         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92369
92370         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92371         * lib/fnmatch.c: Update from diffutils-2.8.2.
92372         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92373         * lib/fnmatch.h: Remove file.
92374
92375 2002-06-21  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92378         * m4/mbrtowc.m4: Likewise.
92379
92380         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92381         * m4/mbswidth.m4: Reflect name change:
92382         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92383         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92384
92385         * m4/lib-link.m4: Update from gettext-0.11.2.
92386         * m4/gettext.m4: Likewise.
92387
92388         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92389         From Alfred M. Szmidt.
92390
92391 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92392
92393         * lib/file-type.h: Report an error if neither S_ISREG nor
92394         S_IFREG is defined, instead of using a test specific to glibc
92395         2.2.  This should be safe, since POSIX requires S_ISREG and
92396         Unix Version 7 had S_IFREG.  We don't need to check for
92397         <sys/types.h> since we don't use any symbols that it defines.
92398
92399 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92400
92401         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92402         $@-t, so that each temporary file name is unique and valid in the first
92403         8 characters, for operation under DOS.
92404
92405 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92406
92407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92408
92409 2002-06-15  Jim Meyering  <meyering@lucent.com>
92410
92411         Work even with DJGPP 2.03, which lacks support for symlinks.
92412         From Richard Dawe.
92413         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92414         is defined.
92415         * lib/lchown.c (S_ISLNK): Likewise.
92416
92417 2002-06-15  Jim Meyering  <meyering@lucent.com>
92418
92419         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92420         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92421         have been included before this file.
92422
92423 2002-06-14  Jim Meyering  <meyering@lucent.com>
92424
92425         * lib/file-type.h: Use the version from diffutils-2.8.2.
92426         * lib/file-type.c: Likewise.
92427
92428 2002-06-07  Jim Meyering  <meyering@lucent.com>
92429
92430         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92431         They're needed at least for NetBSD 1.5.2.
92432         ($statxfs_includes): Include those same headers.
92433         ($statxfs_includes): Include sys/vfs.h if available.
92434         ($statxfs_includes): Likewise for sys/statvfs.h.
92435         Check for the following members in both structs statfs and statvfs:
92436         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92437
92438 2002-06-01  Jim Meyering  <meyering@lucent.com>
92439
92440         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92441         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92442
92443 2002-05-28  Jim Meyering  <meyering@lucent.com>
92444
92445         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92446         Reported by Volker Borchert.
92447
92448 2002-05-27  Jim Meyering  <meyering@lucent.com>
92449
92450         Fix a problem seen only on nonconforming systems whereby ls.c's
92451         use of localtime, and then of gettimeofday would cause trouble:
92452         the localtime call used to initialize rpl_gettimeofday's save
92453         mechanism would clobber ls's current local time information so
92454         that in any long listing the first file would always be listed
92455         with date 1970-01-01.  Analysis by Volker Borchert.
92456
92457         * lib/gettimeofday.c (localtime): Undefine.
92458         (rpl_localtime): New function.
92459
92460 2002-05-27  Jim Meyering  <meyering@lucent.com>
92461
92462         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92463         localtime.
92464
92465         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92466         use the replacement function; it wouldn't resolve at link time.
92467         Reported by Volker Borchert.
92468
92469 2002-05-22  Jim Meyering  <meyering@lucent.com>
92470
92471         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92472         file-type.h.
92473         * lib/file-type.h: New file.
92474         * lib/file-type.c (file_type): New file/function.  Extracted from
92475         diffutils.
92476
92477 2002-04-30  Jim Meyering  <meyering@lucent.com>
92478
92479         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92480
92481 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92482
92483         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92484
92485 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92486
92487         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92488         Do not check for alloca.h (no longer used) or stdbool.h (was never
92489         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92490
92491 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92494
92495 2002-04-29  Jim Meyering  <meyering@lucent.com>
92496
92497         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92498         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92499         Use AC_FUNC_STRNLEN here instead.
92500
92501         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92502         With autoconf-2.53a, it's part of AC_PROG_CC.
92503
92504 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92505
92506         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92508
92509 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92510
92511         * lib/sig2str.h, lib/sig2str.c: New files.
92512         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92513
92514 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92515
92516         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92517         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92518         of 127, since 64 is the largest conceivable number for ancient
92519         nonstandard hosts.
92520         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92521
92522 2002-04-28  Jim Meyering  <meyering@lucent.com>
92523
92524         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92525
92526 2002-04-24  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92529         (jm_PREREQ): Use it.
92530
92531         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92532         mach/mach.h fcntl.h.
92533         Check for this function: setlocale.
92534
92535 2002-04-24  Jim Meyering  <meyering@lucent.com>
92536
92537         * lib/gettext.h: New file, from Gettext.
92538         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92539         (libfetish_a_SOURCES): Add gettext.h.
92540
92541 2002-04-16  Jim Meyering  <meyering@lucent.com>
92542
92543         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92544         ut_pid, ut_id, ut_exit.
92545
92546 2002-04-16  Jim Meyering  <meyering@lucent.com>
92547
92548         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92549         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92550         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92551
92552 2002-04-12  Jim Meyering  <meyering@lucent.com>
92553
92554         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92555         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92556         existence of the getmntinfo function.  Needed for Darwin 5.3.
92557
92558         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92559         This is necessary at least on Darwin 5.3.
92560
92561         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92562         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92563         strnlen.o in the library, and that makes some versions of ranlib
92564         object.
92565
92566 2002-04-12  Jim Meyering  <meyering@lucent.com>
92567
92568         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92569
92570 2002-04-09  Jim Meyering  <meyering@lucent.com>
92571
92572         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92573         to be more precise.  Rather than saying we're checking whether the
92574         function `works', say what we're testing.
92575         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92576         Reported by Bruno Haible.
92577
92578 2002-03-10  Jim Meyering  <meyering@lucent.com>
92579
92580         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92581         Suggestion from Santiago Vila.
92582
92583 2002-03-08  Jim Meyering  <meyering@lucent.com>
92584
92585         * lib/rename.c: Mention that this wrapper is needed also on
92586         mips-dec-ultrix4.4 systems.
92587
92588 2002-03-02  Jim Meyering  <meyering@lucent.com>
92589
92590         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92591         not HAVE_CLOCK_SETTIME.
92592
92593 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92594
92595         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92596         Check for clock_settime.
92597
92598 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92599
92600         * lib/nanosleep.h: Rename to....
92601         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92602
92603         * lib/gettime.c: New file.
92604         * lib/settime.c: New file.
92605         * lib/stime.c: Remove.
92606
92607         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92608         timespec.h.  Remove nanosleep.h.
92609
92610 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92611
92612         * m4/acl.m4: New file.
92613         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92614         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92615
92616 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92617
92618         * lib/acl.c, lib/acl.h: New files.
92619         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92620
92621 2002-02-24  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92624         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92625         cause trouble.  Reported by Nelson Beebe.
92626
92627 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92628
92629         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92630         compilers that don't know that xalloc_die never returns.
92631
92632 2002-02-20  Jim Meyering  <meyering@lucent.com>
92633
92634         * lib/getdate.c: Regenerate using bison-1.33.
92635
92636 2002-02-17  Jim Meyering  <meyering@lucent.com>
92637
92638         * config/config.guess (main): Don't use `head -1'; it's no longer
92639         portable. Use `sed 1q' instead.
92640
92641 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92642
92643         * m4/codeset.m4: Upgrade to gettext-0.11.
92644         * m4/gettext.m4: Upgrade to gettext-0.11.
92645         * m4/glibc21.m4: Upgrade to gettext-0.11.
92646         * m4/iconv.m4: Upgrade to gettext-0.11.
92647         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92648         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92649         * m4/lib-ld.m4: New file, from gettext-0.11.
92650         * m4/lib-link.m4: New file, from gettext-0.11.
92651         * m4/lib-prefix.m4: New file, from gettext-0.11.
92652         * m4/progtest.m4: Upgrade to gettext-0.11.
92653
92654 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92655
92656         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92657         (jm_PREREQ): Use it.
92658
92659 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92660
92661         * lib/posixver.c, lib/posixver.h: New files.
92662         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92663
92664 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92665             Bruno Haible  <bruno@clisp.org>
92666
92667         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92668         (fwrite_success_callback): New declaration.
92669         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92670         print_unicode_char. Call failure callback instead of error.
92671         (fwrite_success_callback): New function.
92672         (exit_failure_callback): New function.
92673         (fallback_failure_callback): New function.
92674         (print_unicode_char): Call unicode_to_mb.
92675
92676 2002-01-26  Jim Meyering  <meyering@lucent.com>
92677
92678         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92679         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92680
92681 2002-01-26  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92684
92685 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92686
92687         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92688
92689 2002-01-22  Jim Meyering  <meyering@lucent.com>
92690
92691         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92692         Otherwise, some versions of automake would omit the rule that makes
92693         Makefile from Makefile.in.
92694
92695 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92696
92697         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92698         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92699         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92700         (memcoll): Set errno to zero if there is no error.
92701
92702         * lib/quotearg.c (quotearg_buffer_restyled):
92703         Fix bug with quoting buffers containing NUL when backslashing escapes.
92704         This bug was exposed by the other changes in this patch.
92705         (quotearg_n_options): New arg ARGSIZE.
92706         All callers changed.
92707         (quoting_options_from_style): New function.
92708         (quotearg_n_style): Use it.
92709         (quotearg_n_style_mem): New function.
92710
92711         * lib/quotearg.h (quotearg_n_style_mem): New function.
92712
92713 2002-01-19  Jim Meyering  <meyering@lucent.com>
92714
92715         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92716         Remove useless quotes: DF_PROG="df".
92717         * m4/strnlen.m4: New file.
92718
92719 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92720
92721         * lib/backupfile.c (ISDIGIT): Comment fix.
92722         * lib/getdate.y (ISDIGIT): Likewise.
92723         * lib/posixtm.c (ISDIGIT, year): Likewise.
92724         * lib/strverscmp.c (ISDIGIT): Likewise.
92725         * lib/userspec.c (ISDIGIT): Likewise.
92726
92727 2002-01-16  Jim Meyering  <meyering@lucent.com>
92728
92729         * lib/getdate.y: Add three semicolons, each just before a closing
92730         brace. Bison (as of version 1.31) no longer papers over that mistake.
92731
92732 2002-01-05  Jim Meyering  <meyering@lucent.com>
92733
92734         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92735
92736 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92737
92738         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92739         not silently exit merely because the output buffer happens to
92740         have nothing pending.
92741
92742 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92743
92744         See the big note in ../ChangeLog.
92745         * lib/human.c (suffixes): Prefer K to k for 1024.
92746         (generate_suffix_backwards): New function.
92747         (human_readable_inexact): Use it.
92748         * lib/xstrtol.c (__xstrtol): If there is no number but there
92749         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92750         Accept 'K' as well as 'k'.
92751
92752 2001-12-15  Jim Meyering  <meyering@lucent.com>
92753
92754         * lib/regex.h (__restrict_arr): Update from libc.
92755
92756         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92757         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92758         (STREQ): Define.
92759
92760 2001-12-14  Jim Meyering  <meyering@lucent.com>
92761
92762         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92763         Suggestion from Bruno Haible.
92764
92765 2001-12-10  Jim Meyering  <meyering@lucent.com>
92766
92767         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92768         xrealloc, Instead, include "xalloc.h".
92769         (initbuffer): Don't cast xmalloc return value to char*.
92770         (readline): Reword comment.
92771         Don't cast xrealloc return value to char*
92772         Return NULL, not 0.
92773
92774 2001-12-09  Jim Meyering  <meyering@lucent.com>
92775
92776         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92777         about `signed and unsigned type in conditional expression'.
92778         * lib/posixtm.c (posix_time_parse): Likewise.
92779
92780         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92781
92782         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92783         to avoid a pedantic warning.
92784
92785         * lib/getstr.c: Don't include assert.h.
92786         (getstr): Remove warning-evoking assertions.
92787         Return -1 if offset parameter is out of bounds.
92788         Change the type of a local from int to size_t.
92789
92790         * lib/strftime.c (my_strftime_localtime_r): Include this function
92791         definition in the `#if ! HAVE_TM_GMTOFF' block.
92792
92793         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92794         Include xalloc.h instead.
92795
92796 2001-12-02  Jim Meyering  <meyering@lucent.com>
92797
92798         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92799         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92800         included.
92801
92802         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92803         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92804
92805 2001-11-30  Akim Demaille  <akim@epita.fr>
92806
92807         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92808         before being defined.
92809
92810 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92811
92812         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92813         First arg is int, not unsigned.
92814         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92815         (SIZE_MAX, UINT_MAX): New macros.
92816         (quotearg_n_options): Abort if N is negative.
92817         Avoid overflow check on hosts where size_t is 64 bits and int
92818         is 32 bits, as overflow is impossible there.
92819         Fix off-by-one typo that caused unnecessary reallocation.
92820
92821 2001-11-27  Jim Meyering  <meyering@lucent.com>
92822
92823         * lib/tempname.c: Merge with version from libc.
92824         * lib/regex.c: Likewise.
92825
92826         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92827         systems for which STDC_HEADERS is 0, it was not included, resulting in
92828         a warning about an integer-to-pointer conversion problem with getenv.
92829         Reported by Volker Borchert.
92830
92831 2001-11-26  Jim Meyering  <meyering@lucent.com>
92832
92833         * lib/gtod.h: Remove file.
92834         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92835         * lib/gettimeofday.c: Don't include gtod.h.
92836         (GTOD_init): Remove function.
92837         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92838         Suggestion from Volker Borchert.
92839
92840 2001-11-23  Jim Meyering  <meyering@lucent.com>
92841
92842         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92843         it.
92844         * lib/hash.c (struct hash_table): Define it here instead.
92845
92846 2001-11-22  Jim Meyering  <meyering@lucent.com>
92847
92848         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92849
92850 2001-11-20  Jim Meyering  <meyering@lucent.com>
92851
92852         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92853         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92854
92855 2001-11-19  Jim Meyering  <meyering@lucent.com>
92856
92857         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92858         directory.  Use "conftestXXXXXX" as the template.
92859         Suggestion from Paul Eggert.
92860
92861         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92862         immediately, so the test doesn't mistakenly hit the max-open-files
92863         limit.
92864
92865 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92866
92867         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92868         (TEMPORARIES): New macro.
92869         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92870         removes an artificial limitation (e.g. HP-UX 10.20, where
92871         TMP_MAX is 17576).
92872
92873 2001-11-18  Jim Meyering  <meyering@lucent.com>
92874
92875         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92876
92877 2001-11-18  Jim Meyering  <meyering@lucent.com>
92878
92879         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92880         on SunOS 4.
92881
92882         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92883         files will be created before anything else.
92884
92885 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92886
92887         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92888         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92889
92890 2001-11-17  Jim Meyering  <meyering@lucent.com>
92891
92892         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92893         Prompted by a report from Bob Proulx.
92894
92895         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92896         Instead, require UTILS_FUNC_MKSTEMP.
92897
92898 2001-11-17  Jim Meyering  <meyering@lucent.com>
92899
92900         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92901         Now, that's done as part of AC_FUNC_STRTOD.
92902
92903 2001-11-17  Jim Meyering  <meyering@lucent.com>
92904
92905         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92906         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92907         rather than group writable.  Patch by Juan F. Codagnone.
92908
92909         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92910         xrealloc, Instead, include "xalloc.h".
92911
92912         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92913         Remove explicit declarations of xmalloc, xrealloc,
92914         and xstrdup.  Instead, include "xalloc.h".
92915
92916         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92917         unlocked-io.h.
92918         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92919         Likewise.
92920         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92921
92922         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92923         Reported by Padraig Brady.
92924
92925         * lib/mkstemp.c: #undef mkstemp.
92926         Include config.h.
92927         (rpl_mkstemp): Rename from mkstemp.
92928         Protoize.
92929
92930 2001-11-16  Jim Meyering  <meyering@lucent.com>
92931
92932         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92933         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92934         determine the amount of total physical memory, use pstat_getstatic.
92935         HPUX-11 doesn't define _SC_PHYS_PAGES.
92936         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92937         If sysconf couldn't be used to determine the amount of available
92938         physical memory, use both pstat_getstatic and pstat_getdynamic.
92939         Based on a patch from Bob Proulx.
92940
92941 2001-11-10  Jim Meyering  <meyering@lucent.com>
92942
92943         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92944         (jm_PREREQ): Use it.
92945
92946 2001-11-09  Jim Meyering  <meyering@lucent.com>
92947
92948         * m4/jm-macros.m4: Require autoconf-2.52f.
92949         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92950         Use these AC_-prefixed names, not the AM_-prefixed ones.
92951
92952         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92953
92954 2001-11-05  Jim Meyering  <meyering@lucent.com>
92955
92956         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92957
92958 2001-11-04  Jim Meyering  <meyering@lucent.com>
92959
92960         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92961         $DEFS.
92962
92963 2001-11-03  Jim Meyering  <meyering@lucent.com>
92964
92965         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92966         of AC_DEFUN.
92967
92968         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92969         know the name of the variable in the macro definition.
92970
92971 2001-11-03  Jim Meyering  <meyering@lucent.com>
92972
92973         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92974         in argmatch_to_argument call.
92975
92976         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92977         argument.
92978
92979         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92980         e.g., a fault due to an attempt to free a NULL pointer.
92981
92982 2001-11-01  Jim Meyering  <meyering@lucent.com>
92983
92984         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92985         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92986
92987 2001-11-01  Jim Meyering  <meyering@lucent.com>
92988
92989         * lib/dirfd.c, lib/dirfd.h: New files.
92990         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92991
92992         * lib/hash.c (hash_print) [TESTING]: Clean up.
92993
92994 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92995
92996         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92997         to avoid a warning if -Wall.
92998
92999 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93000
93001         * README: New file
93002         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93003         (per RMS's instructions, this is now the canonical source)
93004         * lgpl/, gpl/: New directories.
93005
93006 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93007
93008         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93009
93010 2001-10-21  Jim Meyering  <meyering@lucent.com>
93011
93012         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93013         this code would end up calling gettext even in packages built
93014         with --disable-nls.
93015         * lib/getopt.c (_): Likewise.
93016         * lib/regex.c (_): Likewise.
93017
93018 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93019
93020         * m4/error.m4 (jm_PREREQ_ERROR):
93021         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93022         AC_FUNC_STRERROR_R does that.
93023         Check for strerror declaration.
93024
93025         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93026         are supposed to have them these days.
93027         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93028         Merge changes from latest Autoconf CVS.
93029         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93030         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93031         POSIX decided to standardize on the int flavor of strerror_r.
93032
93033 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93034
93035         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93036         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93037         Use strerror_r that is only a macro, even if it is not a function.
93038         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93039         (private_strerror): Use prototypes, not old-style function definition.
93040         (print_errno_message): New function.
93041         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93042         char*-flavored one.
93043         (error_tail, error, error_at_line): Use it.
93044
93045 2001-10-11  Jim Meyering  <meyering@lucent.com>
93046
93047         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93048         and quote_n (1, ... to avoid clobbering a buffer.
93049
93050 2001-10-05  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93053         hash-pjw.h.
93054         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93055         * lib/hash-pjw.h: New file.
93056
93057 2001-09-30  Jim Meyering  <meyering@lucent.com>
93058
93059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93060         `struct fsstat' has the `f_fstypename' member.
93061         Use that to define FS_TYPE, which is now used to make
93062         the getfsstat link test tighter.
93063
93064 2001-09-30  Jim Meyering  <meyering@lucent.com>
93065
93066         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93067         Include <sys/ucred.h>, for Apple Darwin.
93068         Include sys/mount.h and sys/fs_types.h only if available.
93069         (FS_TYPE): Define.
93070         (read_filesystem_list): Use FS_TYPE.
93071
93072 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93073
93074         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93075         a boolean context.
93076
93077 2001-09-29  Jim Meyering  <meyering@lucent.com>
93078
93079         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93080         [one-argument getmntent function]): Include stdio.h before mntent.h.
93081         SunOS 4.1.x needs it for the declaration of `FILE'.
93082         Patch by Volker Borchert.
93083
93084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93085         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93086         sys/fs_types.h, and make the link-test for getfsstat guard #include
93087         directives with appropriate #if HAVE_*_H tests so that we can
93088         detect getfsstat on Apple Darwin1.3.7 systems.
93089         Reported by Nelson Beebe.
93090         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93091
93092 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93093
93094         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93095         #defines strtoimax.  Also treat the other strto* functions
93096         like strtoimax.
93097
93098         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93099         Check for strtoul and strtoumax,
93100         as those declarations are made even in the signed case.
93101         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93102         Likewise, for strtol and strtoimax.
93103
93104 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93105
93106         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93107         #defines strtoimax.  Also treat the other strto* functions
93108         like strtoimax.
93109
93110         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93111         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93112         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93113
93114 2001-09-26  Jim Meyering  <meyering@lucent.com>
93115
93116         Most macros in unlocked-io.h had the wrong number of arguments.
93117         * lib/gen-uio: New script.
93118         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93119         * lib/unlocked-io.hin: Remove file.
93120         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93121         rather than trying to embed it here.
93122         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93123         Reported by Padraig Brady.
93124
93125 2001-09-25  Volker Borchert  <bt@teknon.de>
93126
93127         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93128         `result'.
93129
93130 2001-09-24  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93133
93134 2001-09-23  Jim Meyering  <meyering@lucent.com>
93135
93136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93137         instead of the mere test for existence of mntent.h.  The latter
93138         would get a false-positive on AIX 3.4 systems.
93139         In the outer getmntent if-block, don't die if neither of the getmntent
93140         tests succeeds.  Instead, just fall through and continue with the
93141         remaining tests.
93142
93143 2001-09-23  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/mountlist.c: Remove useless parentheses in #if directives.
93146         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93147         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93148
93149 2001-09-22  Jim Meyering  <meyering@lucent.com>
93150
93151         * m4/gettext.m4: New file.  From gettext.
93152         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93153         * m4/progtest.m4: Likewise
93154         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93155         * m4/glibc21.m4: Likewise.
93156
93157         * m4/libintl.m4: Remove.  No longer used.
93158
93159 2001-09-22  Jim Meyering  <meyering@lucent.com>
93160
93161         * lib/localcharset.c: Update from latest gettext.
93162         * lib/config.charset: Likewise.
93163
93164 2001-09-20  Jim Meyering  <meyering@lucent.com>
93165
93166         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93167         strtoimax.
93168         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93169         strtoumax.
93170
93171 2001-09-20  Jim Meyering  <meyering@lucent.com>
93172
93173         * lib/xstrtol.c (strtoimax): Guard declaration with
93174         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93175         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93176         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93177         (strtoumax): Likewise, for completeness (it wasn't necessary).
93178
93179 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93180
93181         * lib/strtoimax.c (HAVE_LONG_LONG):
93182         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93183         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93184         to work around bug in IBM C compiler.
93185
93186 2001-09-17  Jim Meyering  <meyering@lucent.com>
93187
93188         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93189         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93190         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93191         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93192         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93193         whenever the right hand side need not be expanded by the shell.
93194
93195 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93196
93197         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93198         library.  It's not correct, as some older glibcs are buggy.
93199         fnmatch wasn't fixed until glibc 2.2.
93200
93201         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93202         special shell magic here.
93203
93204 2001-09-16  Jim Meyering  <meyering@lucent.com>
93205
93206         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93207         * m4/jm-macros.m4: Require it.
93208
93209 2001-09-16  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/mkdir.c: New file.
93212
93213 2001-09-15  Jim Meyering  <meyering@lucent.com>
93214
93215         * m4/jm-macros.m4: Check for help2man.
93216
93217 2001-09-11  Jim Meyering  <meyering@lucent.com>
93218
93219         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93220         The body, by Paul Eggert, was moved here from configure.in.
93221         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93222
93223 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93224
93225         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93226         (jm_PREREQ): Use it.
93227
93228 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93229
93230         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93231         Use ssize_t, not int, to store result of readlink.
93232         Check for ssize_t overflow as well as size_t overflow,
93233         as POSIX says the result of readlink is implementation-defined
93234         when ssize_t overflows.
93235         Remove unnecessary cast to char*.
93236         Use free+malloc instead of realloc, as the storage doesn't need
93237         to be preserved and it's clearer and can be more efficient that way.
93238         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93239         * lib/xreadlink.h (xreadlink): Update prototype.
93240
93241 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93242
93243         * lib/xgetcwd.c: Revert some of the previous change; intead,
93244         fix the HAVE_GETCWD_NULL code to behave more like the
93245         !HAVE_GETCWD_NULL code used to.
93246
93247         Include "xalloc.h".
93248         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93249         invoke xalloc_die.
93250
93251 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93252
93253         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93254         sys/param.h, as pathmax.h includes them.
93255
93256 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93257
93258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93259         (jm_PREREQ_XGETCWD): New macro.
93260
93261         * m4/getcwd.m4: New file.
93262
93263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93264
93265         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93266         like the HAVE_GETCWD_NULL code.
93267         Include pathmax.h if not HAVE_GETCWD.
93268         Do not include xalloc.h.
93269         (INITIAL_BUFFER_SIZE): New symbol.
93270         Do not use xmalloc / xrealloc, since the caller is responsible for
93271         handling errors.  Preserve errno around `free' during failure.
93272         Do not overrun buffer when using getwd.
93273
93274 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93275
93276         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93277         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93278         getcwd (NULL, 0).
93279
93280 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93281
93282         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93283         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93284         spotted by Jim Meyering.
93285
93286 2001-09-03  Jim Meyering  <meyering@lucent.com>
93287
93288         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93289         failure.
93290
93291 2001-09-02  Jim Meyering  <meyering@lucent.com>
93292
93293         * lib/error.c: Update from GNU libc.
93294
93295 2001-09-01  Jim Meyering  <meyering@lucent.com>
93296
93297         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93298         Used by df.
93299
93300 2001-09-01  Jim Meyering  <meyering@lucent.com>
93301
93302         * lib/xreadlink.c: New file.
93303         * lib/xreadlink.h: New file.
93304         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93305         xreadlink.h.
93306
93307         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93308         doesn't conflict with sparc Solaris 7's definition in
93309         /usr/include/sys/int_types.h.
93310
93311         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93312         files.
93313         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93314         and strncasecmp as r-values.  Unixware didn't have declarations.
93315
93316 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93317
93318         * lib/xstrtol.h: Add copyright notice.
93319         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93320         LONGINT_INVALID_SUFFIX_CHAR.
93321
93322 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93323
93324         * lib/xstrtol.c (strtoimax): New decl.
93325
93326 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93327
93328         * lib/xgetcwd.c: Don't include pathmax.h.
93329         Include stdlib.h and unistd.h if available.
93330         Include xalloc.h.
93331         (xmalloc, xstrdup, free): Remove decls.
93332         (xgetcwd): Don't assume sizes fit in unsigned.
93333         Check for overflow when computing sizes.
93334         Simplify reallocation code.
93335
93336 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93337
93338         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93339         a directory's st_size can have an arbitrary value, so the old
93340         usage could waste an arbitrary amount of memory.  All uses
93341         changed.
93342         * lib/savedir.h: Update prototype.
93343
93344 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93345
93346         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93347
93348         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93349         old strtoimax.c.
93350
93351         Also, make the following further changes to make this file's
93352         configuration more similar to that of strtol.c:
93353         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93354         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93355         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93356         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93357         changed to signed values.
93358
93359         And make the following changes as well:
93360         Fix copyright notice, as 1999 was missing.
93361         (verify): New macro.
93362         (strtoimax): Check sizes at compile-time, not run-time.
93363         Prefer strtol to strtoll if both work.
93364         (main): Remove; it was not that useful and was a pain to maintain.
93365
93366         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93367
93368 2001-08-31  Jim Meyering  <meyering@lucent.com>
93369
93370         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93371         Use an initial, malloc'd, buffer of length 128 rather than
93372         a statically allocated one of length 1024.
93373
93374 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93375
93376         Simplify code, partly by assuming autoconf 2.52 semantics.
93377
93378         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93379
93380         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93381         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93382         All uses removed.
93383         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93384         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93385         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93386         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93387         jm_AC_HEADER_INTTYPES_H.
93388         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93389
93390         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93391
93392         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93393         Quote first arg of AC_DEFUN.
93394         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93395         since they are needed to parse the include file even if we need
93396         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93398         but with opposite signedness.
93399
93400 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93401
93402         Merge 'exclude' changes from tar 1.13.22.
93403         This fixes one or two unlikely storage allocation overflow bugs,
93404         but doesn't change user-visible behavior otherwise.
93405
93406 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93407
93408         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93409         (jm_PREREQ_EXCLUDE): New macro.
93410
93411 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93412
93413         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93414         tm to be declared.
93415
93416 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93417
93418         * lib/hash.c: Remove '2001' from copyright notice.
93419
93420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93421
93422         * lib/full-write.h: New file.
93423         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93424         * lib/full-write.c: Correct credits, as cccp.c no longer
93425         exists and anyway it was so heavily changed from the old cccp
93426         code as to be unrecognizable.  Include full-write.h.
93427         (full_write): Return size_t, with short writes meaning failure.
93428         All callers changed.  This fixes a bug with large buffers
93429         on 64-bit hosts.
93430         * lib/utime.c: Include full-write.h.
93431
93432 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93433
93434         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93435         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93436         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93437         Include if available.
93438         (<xalloc.h>): Include
93439         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93440         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93441         collide with FNM macros.
93442         (struct patopts): New struct.
93443         (struct exclude): Use it, as exclude patterns now come with options.
93444         (new_exclude): Support above changes.
93445         (new_exclude, add_exclude_file):
93446         Initial size must now be a power of two to simplify overflow checking.
93447         (free_exclude, fnmatch_no_wildcards): New function.
93448         (excluded_filename): No longer requires options arg, as the options
93449         are determined by add_exclude.  Now returns bool, not int.
93450         (excluded_filename, add_exclude):
93451         Add support for the fancy new exclusion options.
93452         (add_exclude, add_exclude_file): Now takes int options arg.
93453         Check for arithmetic overflow when computing sizes.
93454         (add_exclude_file): xrealloc might modify errno, so don't
93455         realloc until after errno might be used.
93456
93457         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93458         New macros.
93459         (free_exclude): New decl.
93460         (add_exclude, add_exclude_file): Now takes int options arg.
93461         (excluded_filename): No longer requires options arg, as the options
93462         are determined by add_exclude.  Now returns bool, not int.
93463
93464 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93465
93466         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93467
93468 2001-08-27  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93471
93472         * lib/version-etc.c (N_): Remove definition.
93473         Revert most of last change.
93474         Instead, simply don't mark the `Copyright...' string for translation.
93475         Based on advice from Paul Eggert.
93476
93477         * lib/strtoxmax.c: Tweak comment.
93478
93479 2001-08-26  Jim Meyering  <meyering@lucent.com>
93480
93481         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93482
93483         * m4/xstrtoimax.m4: New file.
93484         * m4/xstrtoumax.m4: Add comments explaining why we
93485         AC_REPLACE_FUNCS(strtol).
93486
93487 2001-08-26  Jim Meyering  <meyering@lucent.com>
93488
93489         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93490         of copyright with `%s' so translators don't get an untranslated
93491         message in 2002.
93492         (COPYRIGHT_YEAR): Define.
93493         (version_etc): Use fprintf rather than fputs.
93494         Suggestion from Ulrich Drepper.
93495
93496         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93497
93498         * lib/strtoll.c: New file, from GNU libc.
93499         * lib/xstrtoimax.c: New file.
93500
93501         * lib/xstrtol.h: Add xstrtoimax.
93502         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93503         * lib/strtoimax.c: New file.  Likewise, but first define
93504         STRTOUXMAX_SIGNED.
93505
93506         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93507         ...
93508         * lib/strtoxmax.c: ... then renamed to this.
93509
93510 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93511
93512         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93513         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93514         (jm_AC_TYPE_INTMAX_T): New macro.
93515         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93516
93517         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93518
93519         * m4/longlong.m4: Renamed from ulonglong.m4.
93520         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93521         * m4/uintmax_t.m4: Removed.
93522
93523 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93524
93525         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93526         Port to Solaris 8, where 'sed' requires a space after the 'r'
93527         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93528         Redirect output to $tmp just once.
93529
93530 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93531
93532         * lib/addext.c (<errno.h>): Include.
93533         (errno): Declare if not defined.
93534         (addext): Work correctly when pathconf returns -1 and leaves
93535         errno alone because there is no limit.  Also, work even if
93536         pathconf returns a value greater than SIZE_MAX.
93537
93538 2001-08-12  Jim Meyering  <meyering@lucent.com>
93539
93540         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93541         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93542         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93543         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93544         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93545         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93546         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93547         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93548         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93549         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93550         utime.m4, utimes.m4, xstrtoumax.m4:
93551         Quote the first argument in each use of AC_DEFUN.
93552
93553 2001-08-12  Jim Meyering  <meyering@lucent.com>
93554
93555         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93556         Simply `return getcwd (NULL, 0);'.
93557         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93558         Use 1300 as initial value for length, not PATH_MAX.
93559
93560         * lib/pathmax.h: Clean up cpp syntax.
93561
93562 2001-08-12  Jim Meyering  <meyering@lucent.com>
93563
93564         * lib/gettimeofday.c: New file.
93565         * lib/gtod.h: New file.
93566         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93567
93568 2001-08-05  Jim Meyering  <meyering@lucent.com>
93569
93570         * m4/jm-macros.m4: Require autoconf-2.52.
93571
93572 2001-08-04  Jim Meyering  <meyering@lucent.com>
93573
93574         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93575         stmt, to get in sync with glibc.
93576
93577 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93578
93579         The following changes are from gettext 0.10.39 as maintained by
93580         Bruno Haible.
93581
93582         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93583         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93584         with inverted sense.  All uses changed.
93585
93586         * lib/mbswidth.c: Don't include <limits.h>.
93587         Include <stdlib.h> and <string.h> unconditionally.
93588         (iswcntrl, mbsinit, ISCNTRL): New macros.
93589         (mbsnwidth): Use K&R style function declarations.
93590         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93591         can optimize it when MB_CUR_MAX == 1.
93592         The width of control characters is zero, not 1.
93593
93594 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93595
93596         The following changes are from gettext 0.10.39 as maintained by
93597         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93598
93599         * m4/codeset.m4: Upgrade to serial AM1.
93600         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93601         all uses changed.  Quote first arg of AC_DEFUN.
93602         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93603
93604         * m4/iconv.m4: Upgrade to serial AM2.
93605         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93606         Add --with-libconv-prefix.
93607         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93608         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93609         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93610         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93611         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93612
93613         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93614         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93615         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93616         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93617         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93618         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93619         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93620         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93621         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93622
93623         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93624         string.h any more.
93625
93626         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93627         not the default value.
93628
93629         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93630         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93631         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93632         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93633         Also check for iswcntrl, used for wcwidth fallback.
93634         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93635         to Autoconf 2.13.
93636
93637 2001-08-03  Jim Meyering  <meyering@lucent.com>
93638
93639         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93640         as it was in the original.  Reported by Paul Eggert.
93641
93642 2001-07-16  Jim Meyering  <meyering@lucent.com>
93643
93644         * m4/gettimeofday.m4: New file.
93645         Prompted by a report from Bernhard Baehr.
93646
93647 2001-07-15  Jim Meyering  <meyering@lucent.com>
93648
93649         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93650         stuff. Now it's in ../Makefile.cfg.
93651
93652 2001-07-15  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93655         (BUILT_SOURCES): Add unlocked-io.h.
93656         (io_functions): Define.
93657         (unlocked-io.h): New rule.
93658         (DISTCLEANFILES): Add unlocked-io.h.
93659         (all-local): Depend on unlocked-io.h, to ensure it is created.
93660
93661         * lib/unlocked-io.hin: New file
93662
93663         * lib/regex.c: Update from glibc.
93664
93665 2001-07-05  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93668         recommendation.
93669         (libfetish_a_SOURCES): Put all .h files here instead.
93670         Remove a thus-exposed (better checks in automake) duplicate and
93671         two unnecessary .h files.
93672
93673 2001-07-04  Jim Meyering  <meyering@lucent.com>
93674
93675         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93676         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93677         distcheck failure.
93678
93679 2001-07-02  Jim Meyering  <meyering@lucent.com>
93680
93681         The following changes were prompted by suggestions from Bruno Haible.
93682
93683         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93684         is now generated.
93685         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93686         definition of EXTRA_DIST.
93687         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93688         ensure that the generated file is created/updated whenever the list
93689         of $(unlocked_functions) is changed.
93690         (jm-glibc-io.m4): New rule.
93691         (unlocked-io.h): New rule -- currently unused.
93692
93693 2001-06-24  Jim Meyering  <meyering@lucent.com>
93694
93695         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93696         unmatched right bracket, rather than kludging it with an extra,
93697         falsely-matching quote in a comment.  Patch by Akim Demaille.
93698
93699 2001-06-11  Jim Meyering  <meyering@lucent.com>
93700
93701         * lib/regex.c: Update from GNU libc.
93702
93703 2001-05-27  Jim Meyering  <meyering@lucent.com>
93704
93705         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93706         Check for ut_type in struct utmp.
93707
93708 2001-05-27  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/readutmp.h (UT_TYPE): Define.
93711
93712 2001-05-24  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/argmatch.c: Include "quote.h".
93715         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93716         quote function.  Reported by Göran Uddeborg.
93717
93718 2001-05-22  Jim Meyering  <meyering@lucent.com>
93719
93720         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93721         now that we use the package-supplied version unconditionally.
93722         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93723
93724 2001-05-21  Jim Meyering  <meyering@lucent.com>
93725
93726         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93727         shell syntax errors.
93728
93729 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93730
93731         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93732
93733 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93734
93735         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93736         Don't bother to check library strftime, since
93737         we'll be using our own my_strftime function anyway.
93738         Define my_strftime instead of strftime.
93739
93740 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93741
93742         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93743         which is not yet declared.
93744
93745 2001-05-15  Jim Meyering  <meyering@lucent.com>
93746
93747         * m4/regex.m4: Use proper quoting so brackets appear in the test
93748         program.
93749         Reported by, and with help from, Bruno Haible.
93750
93751 2001-05-13  Jim Meyering  <meyering@lucent.com>
93752
93753         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93754         undefined.
93755
93756 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93757
93758         dirname code cleanup.  base_name now behaves more compatibly
93759         with POSIX basename when given file names that have trailing
93760         slashes, and similarly for dir_name.  Add new primitives
93761         base_len and dir_len.  Put the directory-name-related decls
93762         into dirname.h.
93763
93764         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93765         * lib/backupfile.c (base_name): Likewise.
93766         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93767         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93768         * lib/makepath.c (strip_trailing_slashes): Likewise.
93769         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93770         ISSLASH): Likewise.
93771         * lib/rename.c (strip_trailing_slashes): Likewise.
93772         * lib/same.c (base_name): Likewise.
93773         * lib/stripslash.c (ISSLASH): Likewise.
93774
93775         * lib/addext.c: Include <dirname.h> after size_t is defined.
93776         * lib/backupfile.c: Likewise.
93777
93778         * lib/addext.c (addext): Use base_len to trim redundant
93779         trailing slashes instead of doing it ourselves.
93780         But do not trim the last slash if it is not redundant.
93781
93782         * lib/backupfile.c (find_backup_file_name,
93783         max_backup_version): Use base_len instead of rolling it ourselves.
93784         Handle the case of "" and (on DOS) "C:" correctly.
93785
93786         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93787         needed. Include <string.h>, <dirname.h>.
93788         (base_name): Allow file names ending in slashes, other than names
93789         that are all slashes.  In this case, return the basename followed
93790         by the slashes.  This is more general, and can be used in places
93791         where the original base_name purposely had an assertion failure.
93792         (base_len): New function.
93793
93794         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93795         Do not include <assert.h>; no longer needed.
93796         Include xalloc.h.
93797         (memrchr): Remove decl.
93798         (dir_name_r): Remove.
93799         (dir_len): Renamed from dirlen.  All callers changed.
93800         Rewrite in terms of base_name, for simplicity and consistency.
93801         (dir_name): Never return NULL.  All callers changed.
93802         Do not include <stdlib.h> in test program; no longer needed.
93803         return 0; is fine for test program.
93804
93805         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93806         New macros.
93807         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93808
93809         * lib/path-concat.c (path_concat): Use base_len to compute
93810         base length, not strlen; this means we cannot rely on memcpy
93811         to null-terminate.
93812
93813         * lib/same.c (STREQ): Remove.
93814         (same_name): Handle the case where the basename ends in trailing '/'.
93815
93816         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93817         a slash was stripped.  Do not strip the last slash after a
93818         file system prefix.
93819
93820 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93821
93822         * lib/Makefile.am (libfetish_a_SOURCES):
93823         Add strftime.c, since we now compile it on all hosts.
93824
93825         * lib/strftime.c (my_strftime):
93826         Define to nstrftime if emacs, but only if my_strftime is not defined.
93827         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93828         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93829         Add one more extra argument: a nanoseconds value.
93830         All uses changed.
93831         (ns): New macro.
93832         (my_strftime function): Add %N format.
93833         (emacs_strftimeu): Renamed from emacs_strftime,
93834         with extra ut argument.
93835
93836 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93837
93838         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93839
93840 2001-04-21  Jim Meyering  <meyering@lucent.com>
93841
93842         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93843         doesn't interfere.
93844
93845 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93846
93847         * m4/ftruncate.m4: Check for chsize.
93848         Link with ftruncate.o unconditionally if ftruncate is missing.
93849         This was required when cross-compiling to i586-mingw32msvc.
93850
93851 2001-04-08  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93854         recomputed; that's necessary when the offset spans a DST transition.
93855         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93856
93857 2001-04-02  Jim Meyering  <meyering@lucent.com>
93858
93859         * lib/regex.h, regex.c: Update from GNU libc.
93860
93861 2001-03-24  Jim Meyering  <meyering@lucent.com>
93862
93863         * m4/jm-macros.m4: Require autoconf-2.49d.
93864
93865 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93866
93867         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93868
93869 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93870
93871         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93872
93873 2001-03-17  Jim Meyering  <meyering@lucent.com>
93874
93875         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93876         now that the version in autoconf is equivalent.
93877         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93878
93879         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93880         Suggestion from Akim Demaille.
93881
93882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93883         (jm_PREREQ_TEMPNAME): New function.
93884
93885 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93886
93887         * lib/tempname.c (uint64_t): Define to uintmax_t if
93888         not defined, and if UINT64_MAX is not defined.
93889         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93890         Reported by John David Anglin.
93891
93892 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93893
93894         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93895         resolve alias if codeset is empty.
93896         * lib/config.charset (BeOS): Use wildcard syntax.
93897
93898 2001-03-13  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/path-concat.c (path_concat)
93901         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93902         concatenating e.g., `C:' and `foo'.
93903         From Bruno Haible.
93904
93905 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93906
93907         * lib/localcharset.c (locale_charset): Don't use
93908         setlocale(LC_CTYPE,NULL). Don't return NULL.
93909         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93910
93911 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93912
93913         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93914         support for DOS/DJGPP.
93915
93916 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93917
93918         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93919         lacks mkstemp.  Compile our own tempname.c if we compile our own
93920         mkstemp.c, as mkstemp relies on tempname.
93921
93922 2001-03-01  Jim Meyering  <meyering@lucent.com>
93923
93924         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93925         AH_VERBATIM really does output its argument verbatim.
93926
93927 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93928
93929         * lib/Makefile.am (libfetish_a_SOURCES):
93930         Add dup-safer.c, fopen-safer.c.
93931         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93932
93933         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93934         * lib/unistd-safer.h: New files.
93935
93936 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93937
93938         The mkstemp replacement is taken from glibc 2.2.2, with some
93939         portability fixes for use outside glibc, as follows:
93940
93941         * lib/tempname.c (struct_stat64): New macro.
93942         (direxists, __gen_tempname): Use it.
93943         This avoids a portability problem with Solaris 8.
93944
93945         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93946         (<stddef.h>, <stdint.h>, <string.h>):
93947         Include only if STDC_HEADERS || _LIBC.
93948         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93949         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93950         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93951         (__set_errno): Define this macro if <errno.h> doesn't.
93952         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93953         Define these macros if <stdio.h> doesn't.
93954         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93955         Define these macros if <sys/stat.h>
93956         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93957         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93958         __xstat64): Define if not _LIBC.
93959         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93960         (__gen_tempname): Invoke gettimeofday only if
93961         HAVE_GETTIMEOFDAY || _LIBC;
93962         otherwise, fall back on plain "time".
93963         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93964
93965         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93966
93967         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93968
93969 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93970
93971         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93972
93973 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93974
93975         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93976         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93977         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93978         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93979
93980 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93981
93982         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93983         Remove workaround macros for hosts that have mbrtowc but not
93984         mbstate_t, as we now insist on proper declarations for both
93985         before using mbrtowc.
93986
93987 2001-02-17  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93990         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93991         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93992         UnixWare 7.1.1.
93993
93994         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93995         rather than AC_CACHE_VAL.
93996
93997 2001-02-17  Jim Meyering  <meyering@lucent.com>
93998
93999         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94000         around included file name.
94001
94002         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94003
94004         * lib/strftime.c: Update from GNU libc (the only changes were to
94005         comments).
94006
94007 2001-02-17  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/regex.c: Update from libc.
94010
94011 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94012
94013         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94014         clash.
94015
94016 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94017
94018         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94019         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94020         Reported by Mark Hounschell via Paul Eggert.
94021
94022 2001-02-07  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94025
94026 2001-02-05  Jim Meyering  <meyering@lucent.com>
94027
94028         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94029         it includes the patch required for `large file' support with at least
94030         HP-UX's 10.20 /bin/cc.
94031
94032 2001-02-03  Jim Meyering  <meyering@lucent.com>
94033
94034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94035         AS_IF, now that it works once again (mysteriously).
94036         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94037
94038 2001-01-30  Jim Meyering  <meyering@lucent.com>
94039
94040         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94041         * m4/chown.m4: Rename conftestchown to conftest.chown.
94042         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94043         s/conftestdir2/conftest.d2/.
94044         * m4/utimes.m4: s/conftestdata/conftest.data/
94045         Inspired by Pavel Roskin's change in autoconf.
94046
94047 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94048
94049         * lib/config.charset: Update for FreeBSD 4.2.
94050
94051 2001-01-27  Jim Meyering  <meyering@lucent.com>
94052
94053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94054         a use of AS_IF.
94055         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94056
94057 2001-01-26  Jim Meyering  <meyering@lucent.com>
94058
94059         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94060         quotearg.c includes it.
94061
94062 2001-01-26  Jim Meyering  <meyering@lucent.com>
94063
94064         * lib/quotearg.c: Include stddef.h.
94065         * lib/quote.c: Include stddef.h.
94066         Reported by Axel Kittenberger.
94067
94068         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94069         line in double quotes so that it evokes a better diagnostic.
94070         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94071         Reported by Axel Kittenberger.
94072
94073 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94074
94075         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94076         as if it was a `charset'.
94077
94078 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94079
94080         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94081         has const.
94082
94083 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94084
94085         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94086         to avoid a warning.  Add back 'const' to inptr.
94087
94088 2001-01-20  Jim Meyering  <meyering@lucent.com>
94089
94090         Be sure that headers are checked before used in code compiled
94091         for the type checks.
94092         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94093         In place of that, invoke jm_CHECK_ALL_TYPES.
94094         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94095         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94096         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94097         The check for ssize_t was mistakenly run before the test for unistd.h.
94098
94099         The configure-time check for stdbool.h was missing.
94100         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94101         (jm_PREREQ_HASH): New function.
94102
94103 2001-01-17  Jim Meyering  <meyering@lucent.com>
94104
94105         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94106         for autoconf-2.49c.
94107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94108
94109 2001-01-16  Jim Meyering  <meyering@lucent.com>
94110
94111         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94112         From Bruno Haible.
94113
94114 2001-01-14  Jim Meyering  <meyering@lucent.com>
94115
94116         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94117         foo and bar.  Create conftestdir/ in the script, not in the C code.
94118         Remove directories in the script, not in the C code.
94119         Remove conftestdir{,2} before trying to create the directory.
94120         Make the entire configure script fail if the mkdir fails.
94121
94122 2001-01-14  Jim Meyering  <meyering@lucent.com>
94123
94124         * lib/rename.c: New file.  From Volker Borchert.
94125         Include stdlib.h, string.h or strings.h, and xalloc.h.
94126         Use strip_trailing_slashes rather than open-coding it.
94127
94128 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94129
94130         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94131
94132 2001-01-03  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94135         of local `inptr' to avoid warning with some system declarations of
94136         iconv.
94137
94138 2001-01-02  Volker Borchert  <bt@teknon.de>
94139
94140         * m4/rename.m4: New file.
94141         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94142
94143 2001-01-01  Jim Meyering  <meyering@lucent.com>
94144
94145         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94146         even on systems with utmpx.h.  It's necessary for the declaration of
94147         utmp's ut_user member.  Reported by Andreas Jaeger.
94148
94149         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94150         available. They are required for the declarations of getgrgid and
94151         getpwuid resp.
94152         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94153         Reported by Andreas Jaeger.
94154
94155 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94156
94157         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94158         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94159         so `make install' also works in VPATH builds.
94160
94161 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94162
94163         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94164         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94165         can be used in subdirectories.
94166
94167 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94168
94169         * lib/modechange.c: Do not assume that mode_t uses the
94170         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94171         the other-execute bit of FOO even if S_IXOTH != 1.
94172
94173         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94174         WOTH, XOTH, ALLM): New macros.
94175         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94176          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94177         Use them.
94178         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94179         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94180         (mode_compile):
94181         No need to use uintmax_t; unsigned long is long enough.
94182         Don't bother to get suffix since we don't use it.
94183
94184 2000-12-26  Jim Meyering  <meyering@lucent.com>
94185
94186         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94187         better with autoheader.
94188
94189 2000-12-24  Jim Meyering  <meyering@lucent.com>
94190
94191         * lib/hash.c (is_prime): Return explicit boolean values.
94192         (hash_get_first): Return NULL to appease Irix5.6's 89.
94193         Reported by Nelson Beebe.
94194
94195 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94196
94197         * lib/localcharset.c (locale_charset): Add support for Win32.
94198
94199 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94200
94201         * lib/physmem.h, lib/physmem.c: New files.
94202
94203         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94204         (noinst_HEADERS): Add physmem.h.
94205
94206         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94207         't' for compatibility with Solaris 8 sort.
94208
94209 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94210
94211         * lib/config.charset: Add support for BeOS.
94212
94213 2000-12-17  Jim Meyering  <meyering@lucent.com>
94214
94215         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94216         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94217
94218 2000-12-16  Jim Meyering  <meyering@lucent.com>
94219
94220         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94221         N and M) would have treated it like `chown N:N FILE'.
94222
94223         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94224
94225 2000-12-16  Jim Meyering  <meyering@lucent.com>
94226
94227         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94228         SHELLS_FILE to a file name that's useful on djgpp systems.
94229         Include stdlib.h.
94230         (ADDITIONAL_DEFAULT_SHELLS): Define.
94231         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94232         Based mostly on a patch from Prashant TR.
94233
94234 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94235
94236         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94237         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94238         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94239
94240 2000-12-08  Andreas Schwab  <schwab@suse.de>
94241
94242         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94243         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94244
94245 2000-12-07  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/stripslash.c (ISSLASH): Define.
94248         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94249         `/'.
94250         From Prashant TR.
94251
94252         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94253         (dir_name_r): Declare this function as static.
94254         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94255         manifest itself on a name containing a mix of slashes and
94256         backslashes.
94257         Make this function work with names starting with a DOS-style
94258         drive letter and colon prefix.
94259         (dir_name): Append `.' if necessary.
94260         Based mostly on patches from Prashant TR and Eli Zaretskii.
94261
94262         * lib/dirname.h (dir_name_r): Remove prototype.
94263
94264 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94265
94266         * m4/off_t-format.m4: Remove this file.
94267         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94268
94269 2000-12-06  Jim Meyering  <meyering@lucent.com>
94270
94271         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94272         replacement strtoull, we may well need the replacement strtoul, too.
94273         Check for declarations of strtoul and strtoull.
94274         Check for strtol.  Mainly as a cue to cause automake to include
94275         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94276         Check for limits.h -- strtol.c needs it.
94277
94278 2000-12-05  Jim Meyering  <meyering@lucent.com>
94279
94280         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94281
94282 2000-12-04  Jim Meyering  <meyering@lucent.com>
94283
94284         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94285         Also include memory.h, stdlib.h, unistd.h if appropriate.
94286         Reported by Andreas Jaeger (conflicting declaration of malloc).
94287
94288 2000-12-02  Jim Meyering  <meyering@lucent.com>
94289
94290         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94291         * m4/jm-macros.m4 (jm_MACROS): require it.
94292
94293 2000-12-02  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94296
94297 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94298
94299         * lib/memrchr.c: Include <config.h> before any system include file.
94300
94301 2000-11-30  Jim Meyering  <meyering@lucent.com>
94302
94303         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94304
94305 2000-11-30  Jim Meyering  <meyering@lucent.com>
94306
94307         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94308
94309 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94310
94311         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94312
94313 2000-11-26  Jim Meyering  <meyering@lucent.com>
94314
94315         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94316
94317 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94318
94319         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94320         size of (size_t) -1; it's not portable.
94321
94322 2000-11-17  Jim Meyering  <meyering@lucent.com>
94323
94324         * lib/strstr.c: Update from GNU libc.
94325
94326 2000-11-17  Akim Demaille  <akim@epita.fr>
94327
94328         * lib/obstack.h: Formatting changes.
94329         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94330         prevent type checking.
94331         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94332         cast the value to (void *): assigning a `foo *' to a `void *'
94333         variable is valid.
94334         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94335
94336 2000-11-16  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94339
94340 2000-11-11  Jim Meyering  <meyering@lucent.com>
94341
94342         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94343
94344 2000-11-10  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/obstack.h: Update from GNU libc.
94347         * lib/obstack.c: Likewise.
94348
94349 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94350
94351         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94352
94353 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94354
94355         * lib/getusershell.c (setusershell): Use rewind rather than
94356         fseek/fseeko, to avoid configuration hassles with fseeko.
94357         Don't bother opening SHELLS_FILE if shellstream is NULL;
94358         it's not necessary.
94359
94360 2000-11-05  Jim Meyering  <meyering@lucent.com>
94361
94362         * lib/makepath.h (make_dir): Declare.
94363         * lib/makepath.c (make_dir): Remove `static' attribute.
94364         Tweak a comment.
94365
94366 2000-11-04  Jim Meyering  <meyering@lucent.com>
94367
94368         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94369
94370 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94371
94372         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94373         last one in a bucket, advance to the next bucket.
94374
94375 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94376
94377         * lib/fnmatch.c: Do not comment out all the code if we are using
94378         the GNU C library, because in some cases we are replacing buggy
94379         code in the GNU C library itself.
94380
94381 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94382
94383         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94384         (regex_compile): Catch bogus \(\1\).
94385
94386 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94387
94388         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94389         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94390         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94391
94392 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94393
94394         * lib/error.h, getline.h, modechange.h:
94395         Remove "2000" from Copyright line, as the file hasn't been
94396         changed this year other than in the copyright notice.
94397
94398         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94399         was changed this year.
94400
94401 2000-10-29  Jim Meyering  <meyering@lucent.com>
94402
94403         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94404         renaming.
94405         * m4/ls-mntd-fs.m4: Likewise
94406
94407 2000-10-29  Jim Meyering  <meyering@lucent.com>
94408
94409         * lib/xstat.in: Fix grammar in comment.
94410
94411 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94412
94413         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94414         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94415         doesn't define __restrict_arr.
94416
94417 2000-10-28  Jim Meyering  <meyering@lucent.com>
94418
94419         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94420         (jm_PREREQ_MEMCHR): New function.
94421
94422 2000-10-28  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/memchr.c: Update from libc.
94425         Adjust for portability:
94426         [HAVE_STDLIB_H]: Include stdlib.h.
94427         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94428         Undef __memchr, too.
94429         [!weak_alias]: Define __memchr to memchr.
94430
94431         * lib/regex.c: Update from libc.
94432         * lib/regex.h: Likewise.
94433         * lib/getopt1.c: Likewise.
94434         * lib/memcmp.c: Likewise.
94435
94436         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94437         Avoid using fseek, when possible -- it's broken by design.
94438         Patch by Ulrich Drepper.
94439
94440 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94441
94442         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94443         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94444         Giving in to popular pressure to shut up the compiler with casts.
94445
94446 2000-10-26  Jim Meyering  <meyering@lucent.com>
94447
94448         * lib/strftime.c: Update from libc.
94449
94450 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94451
94452         * regex.c: More `unsigned char' -> `re_char' changes.
94453         Also change several `int' into `re_wchar_t'.
94454         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94455         (PUSH_FAILURE_POINTER): Don't cast any more.
94456         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94457         We want GCC to complain, since this piece of code makes
94458         re_match non-reentrant, which *should* be fixed.
94459         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94460         (EXTEND_BUFFER): Use RETALLOC.
94461         (SET_LIST_BIT): Don't cast.
94462         (re_wchar_t): New type.
94463         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94464         that those two functions will always properly return.
94465         (IMMEDIATE_QUIT_CHECK): Cast to void.
94466         (analyse_first): Use recursion rather than an explicit stack.
94467         (re_compile_fastmap): Can't fail anymore.
94468         (re_search_2): Don't check re_compile_fastmap for failure.
94469         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94470         Now also sets the new value (passed in a new argument).
94471         (re_match_2_internal): Use it.
94472         Also, use a new var `reg' of type size_t when looping through regs
94473         rather than reuse the inappropriate `mcnt'.
94474
94475 2000-10-25  Jim Meyering  <meyering@lucent.com>
94476
94477         * lib/obstack.c: Update from libc.
94478
94479 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94480
94481         * regex.c (regex_compile): Change the way of handling a range from
94482         a char less than 256 to a char not less than 256.
94483
94484 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94485
94486         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94487         NT-Emacs only.
94488         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94489         so that re_search functions only quit when callers expect them to.
94490
94491 2000-10-23  Jim Meyering  <meyering@lucent.com>
94492
94493         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94494         wrong.  That set_locale call must not have any side effects.
94495         From Paul Eggert.
94496
94497 2000-10-22  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94500         [CYCLIC]: Remove now-unused definition.
94501
94502         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94503         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94504         Suggestion from Ulrich Drepper.
94505
94506 2000-10-21  Jim Meyering  <meyering@lucent.com>
94507
94508         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94509         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94511
94512 2000-10-21  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/dirname.c (memrchr): Declare if necessary.
94515         (dir_name): Remove the restriction that there be no
94516         trailing slashes.  Now, this code skips past them, effectively
94517         ignoring them.
94518         [TEST_DIRNAME] (main): New unit tests.
94519
94520         * lib/memrchr.c: New file from GNU libc.
94521         Undef __memrchr, too.
94522         [!weak_alias]: Define __memrchr to memrchr.
94523         Guard weak_alias use with `#ifdef weak_alias'.
94524
94525 2000-10-21  Jim Meyering  <meyering@lucent.com>
94526
94527         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94528         (dir_name): Use dir_name_r.
94529         * lib/dirname.h (dir_name_r): Declare it.
94530
94531 2000-10-17  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/quote.h (PARAMS): Define and use.
94534         Reported by Akim Demaille.
94535
94536         * lib/getopt.c: Update from libc.
94537
94538 2000-10-16  Jim Meyering  <meyering@lucent.com>
94539
94540         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94541         setlocale.
94542         From Jan Fedak.
94543
94544 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94545
94546         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94547
94548 2000-09-25  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/md5.h (rol): Define (from GnuPG).
94551
94552         * lib/sha.c: Give credit (GnuPG) where due.
94553         (M): Use rol rather than open-coding it.
94554         Add a FIXME comment.
94555
94556 2000-09-21  Jim Meyering  <meyering@lucent.com>
94557
94558         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94559         Reported by Michael Stone.
94560
94561 2000-09-20  Jim Meyering  <meyering@lucent.com>
94562
94563         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94564         (noinst_HEADERS): Add sha.h.
94565         Based on code from Scott G. Miller and from GnuPG.
94566
94567 2000-09-18  Jim Meyering  <meyering@lucent.com>
94568
94569         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94570         LIBS. Otherwise, everyone ends up linking with -lelf for some
94571         configurations.
94572         Reported by Mike Stone.
94573
94574 2000-09-15  Jim Meyering  <meyering@lucent.com>
94575
94576         * lib/regex.c: Update from libc.
94577
94578 2000-09-10  Jim Meyering  <meyering@lucent.com>
94579
94580         * lib/getopt.c (_getopt_internal): Update from glibc.
94581
94582 2000-09-09  Jim Meyering  <meyering@lucent.com>
94583
94584         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94585         think it should be used as a general replacement for isascii.
94586         * lib/fnmatch.c: Likewise.
94587         * lib/mbswidth.c: Likewise
94588         * lib/regex.c: Likewise.
94589
94590         Don't use atoi.
94591         * lib/userspec.c: Include sys/param.h and limits.h.
94592         Include xstrtol.h.
94593         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94594         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94595         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94596         UID, GID.  Check range.
94597
94598 2000-09-06  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/getopt.c (_getopt_internal): Update from glibc.
94601
94602 2000-08-30  Jim Meyering  <meyering@lucent.com>
94603
94604         * lib/strftime.c: Merge in changes from GNU libc.
94605
94606 2000-08-26  Jim Meyering  <meyering@lucent.com>
94607
94608         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94609         * m4/fpending.m4: New file.
94610
94611 2000-08-26  Jim Meyering  <meyering@lucent.com>
94612
94613         * lib/closeout.c: Include "__fpending.h".
94614         (close_stdout_status): Return right away if there's nothing to flush.
94615
94616         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94617         * lib/__fpending.c: New file.
94618         * lib/__fpending.h: New file.
94619
94620 2000-08-20  Jim Meyering  <meyering@lucent.com>
94621
94622         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94623         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94624         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94625
94626 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94627
94628         Improve fileutils installation on systems where running
94629         programs (like install) can't be unlinked.
94630         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94631         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94632
94633 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94634
94635         Standardize on "memory exhausted" instead of "Memory exhausted"
94636         or "virtual memory exhausted".
94637         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94638         "virtual memory exhausted".
94639         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94640         our own message.
94641         * lib/userspec.c (parse_user_spec): Likewise.
94642         * lib/bumpalloc.h: comment fix
94643         * lib/same.c, userspec.c: Include xalloc.h.
94644
94645         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94646         not char *const and pointing to a constant array.
94647         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94648         (xrealloc): Comment fix.
94649
94650         * lib/userspec.c (parse_user_spec):
94651         Don't translate a message until just before returning,
94652         to avoid unnecessary translation.
94653
94654 2000-08-07  Jim Meyering  <meyering@lucent.com>
94655
94656         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94657         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94658         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94659         getgroups.c, gethostname.c, getopt.h, group-member.c,
94660         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94661         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94662         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94663         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94664         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94665         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94666         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94667         yesno.c: Back out Copyright date changes for each file with no change
94668         this year.  This eases coordination with other programs using the same
94669         source code modules.  From Paul Eggert.
94670
94671 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94672
94673         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94674         not char, for compatibility with glibc 2.1.3 strftime.c.
94675
94676 2000-08-03  Greg McGary  <greg@mcgary.org>
94677
94678         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94679         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94680         (EXTEND_BUFFER): Use them.
94681
94682 2000-08-01  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/dirname.c (ISSLASH): Define.
94685         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94686         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94687         both `\' and `/' may be use as path separators.
94688         Based on a patch from Prashant TR.
94689
94690 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94691
94692         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94693         slot vector a constant, since it might get modified.
94694
94695 2000-07-31  Jim Meyering  <meyering@lucent.com>
94696
94697         * lib/xmalloc.c: Use `virtual memory exhausted', not
94698         `Memory exhausted'.
94699         * lib/obstack.c (print_and_abort): Likewise.
94700
94701 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94702
94703         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94704         buffer, so that the caller can always quote one small
94705         component of a "memory exhausted" message in slot 0.
94706         From a suggestion by Jim Meyering.
94707
94708 2000-07-30  Jim Meyering  <meyering@lucent.com>
94709
94710         * lib/makepath.c (make_path): Quote the other instance, too.
94711
94712         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94713         (STATIC_BUF_SIZE): Define.
94714         (quotearg_n_options): Use only statically allocated storage when
94715         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94716         than STATIC_BUF_SIZE.
94717
94718 2000-07-29  Jim Meyering  <meyering@lucent.com>
94719
94720         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94721         * lib/dirname.c (dir_name): Likewise.
94722
94723         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94724         `/'.
94725
94726         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94727         (dir_name): Assert that there are no trailing slashes.
94728
94729 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94730
94731         * lib/mbswidth.h (mbswidth): Add a flags argument.
94732         (mbswidth): New declaration.
94733         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94734         * lib/mbswidth.c (mbswidth): Add a flags argument.
94735         (mbsnwidth): New function.
94736
94737 2000-07-24  Jim Meyering  <meyering@lucent.com>
94738
94739         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94740
94741 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94742
94743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94744
94745 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94746
94747         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94748         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94749         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94750         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94751         invoke multibyte primitives.
94752
94753 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94754
94755         * lib/quotearg.c:
94756         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94757         so that mbstate_t is always defined.
94758
94759         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94760         be 1 in at least one GCC installation, and this configuration
94761         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94762         performance on hosts that have mbrtowc but have only unibyte
94763         locales, but I assume these hosts are rare.
94764
94765 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94766
94767         * lib/mbswidth.c (_XOPEN_SOURCE):
94768         Don't define; this causes problems on Solaris 7.
94769         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94770
94771 2000-07-23  Jim Meyering  <meyering@lucent.com>
94772
94773         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94774         too: getgrgid, getpwuid, getuid.
94775
94776 2000-07-23  Jim Meyering  <meyering@lucent.com>
94777
94778         * lib/basename.c (base_name): Add an assertion.
94779
94780 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94781
94782         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94783         shadow its mbsinit function.
94784
94785 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94786
94787         * lib/mbswidth.h: New file.
94788         * lib/mbswidth.c: New file.
94789         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94790         (noinst_HEADERS): Add mbswidth.h.
94791
94792 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94793
94794         * lib/config.charset: Add support for FreeBSD. Improve support for
94795         HP-UX and IRIX 6.
94796
94797 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94798
94799         * m4/mbswidth.m4: New file.
94800         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94801
94802 2000-07-15  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/makepath.c: Include quote.h.
94805         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94806         corresponding argument in a `quote (...)' call.
94807         Give better diagnostics.
94808
94809         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94810         (noinst_HEADERS): Add quote.h.
94811
94812         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94813         from tar's src/misc.c.
94814         * lib/quote.h: New file.  Prototypes for same.
94815
94816 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94817
94818         From a suggestion by Bruno Haible.
94819         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94820         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94821         to decide whether to define the BeOS workaround macro;
94822         this adjusts to the change to AC_MBSTATE_T.
94823
94824 2000-07-14  Jim Meyering  <meyering@lucent.com>
94825
94826         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94827         jm_AC_TYPE_UINTMAX_T.
94828
94829 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94830
94831         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94832
94833         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94834         quotearg_buffer_restyled): Add support for
94835         clocale_quoting_style.  Undo previous change to
94836         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94837         and "{RIGHT QUOTATION MARK}" msgids.
94838
94839 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94840
94841         From a suggestion by Bruno Haible.
94842         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94843         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94844         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94845         and mbstate_t, to a single-part test that simply defines mbstate_t.
94846         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94847         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94848
94849 2000-07-10  Jim Meyering  <meyering@lucent.com>
94850
94851         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94852
94853         * m4/gnu-source.m4: Output to confdefs.h directly.
94854         Suggestion from Akim Demaille.
94855
94856 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94857
94858         The old behavior of quoting `like this' doesn't look good with
94859         newer, ISO-style fonts.  See:
94860         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94861
94862         Instead, quote "like this" by default.  Let the translator
94863         tailor the locale-specific quoting behavior by providing
94864         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94865
94866         * lib/quotearg.c (N_): New macro.
94867         (gettext_default): New function.
94868         (quotearg_buffer_restyled): Use
94869         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94870         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94871
94872 2000-07-09  Jim Meyering  <meyering@lucent.com>
94873
94874         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94875         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94876
94877         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94879
94880 2000-07-09  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/Most files: Update copyright dates to include 2000.
94883
94884 2000-07-08  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94887         if not defined.
94888         (xgethostname): Remove now-unnecessary #ifdef.
94889         Move declaration of `err' into loop where it's used.
94890
94891 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94892         and Bruno Haible  <haible@clisp.cons.org>
94893
94894         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94895         only if the test for an object-type mbstate_t fails.  This
94896         prevents us from mistakenly reporting that mbstate_t is a
94897         system object type after we "#define mbstate_t int" to work
94898         around its lack.
94899
94900 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94901         and Bruno Haible  <haible@clisp.cons.org>
94902
94903         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94904
94905 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94906
94907         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94908         to strerror_r.
94909         Include <ctype.h> for use of isalpha.
94910
94911 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94912
94913         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94914         by allocating a larger buffer. Test the gethostname return value for
94915         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94916         returns an error and ENAMETOOLONG isn't defined.
94917
94918 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94919
94920         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94921         dimension.
94922
94923 2000-07-04  Jim Meyering  <meyering@lucent.com>
94924
94925         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94926         of the deprecated AC_CHECKING.
94927
94928 2000-07-04  Jim Meyering  <meyering@lucent.com>
94929
94930         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94931         Reported by Bruno Haible.
94932
94933 2000-07-04  Jim Meyering  <meyering@lucent.com>
94934
94935         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94936         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94937         lacks mbrtowc.
94938
94939 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94940
94941         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94942         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94943
94944 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94945         and Bruno Haible  <haible@clisp.cons.org>
94946
94947         * lib/quotearg.c (mbrtowc):
94948         Assign to *pwc, and return 1 only if result is nonzero.
94949         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94950
94951 2000-07-03  Jim Meyering  <meyering@lucent.com>
94952
94953         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94954
94955 2000-07-03  Jim Meyering  <meyering@lucent.com>
94956
94957         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94958         This is necessary to get a definition of e.g., UTMP_FILE on
94959         HP-UX 10.20.
94960         From Bob Proulx.
94961
94962 2000-07-02  Jim Meyering  <meyering@lucent.com>
94963
94964         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94965
94966         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94967         AC_LIBOBJ(function_name).
94968         * m4/chown.m4: Likewise.
94969         * m4/fnmatch.m4: Likewise.
94970         * m4/ftruncate.m4: Likewise.
94971         * m4/getgroups.m4: Likewise.
94972         * m4/getline.m4: Likewise.
94973         * m4/group-member.m4: Likewise.
94974         * m4/jm-macros.m4: Likewise.
94975         * m4/lstat.m4: Likewise.
94976         * m4/malloc.m4: Likewise.
94977         * m4/memcmp.m4: Likewise.
94978         * m4/nanosleep.m4: Likewise.
94979         * m4/putenv.m4: Likewise.
94980         * m4/realloc.m4: Likewise.
94981         * m4/regex.m4: Likewise.
94982         * m4/stat.m4: Likewise.
94983         * m4/strftime.m4: Likewise.
94984
94985 2000-07-02  Jim Meyering  <meyering@lucent.com>
94986
94987         * lib/quotearg.c (mbstate_t): Don't define here.
94988
94989 2000-07-02  Jim Meyering  <meyering@lucent.com>
94990
94991         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94992
94993 2000-07-01  Jim Meyering  <meyering@lucent.com>
94994
94995         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94996
94997 2000-07-01  Jim Meyering  <meyering@lucent.com>
94998
94999         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95000         problem.
95001
95002 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95003
95004         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95005         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95006
95007 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95008
95009         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95010         per change in ../m4/ls-mntd-fs.m4.
95011         (read_filesystem_list): Ignore symbolic links.
95012
95013 2000-06-29  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95016         for declaration of strcmp.
95017
95018         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95019
95020         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95021         Avoid warning by casting result to `char *' to remove `const'.
95022
95023 2000-06-28  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95026         included by quotearg.c, for which we perform this test.  From
95027         Bruno Haible.
95028
95029 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95030
95031         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95032         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95033         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95034
95035 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95036
95037         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95038
95039 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95040
95041         savedir now sets errno on failure and invokes xmalloc to get memory.
95042         Fix a couple of other minor bugs while we're at it.
95043
95044         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95045         (NAMLEN): Remove macro.
95046         (malloc, realloc): Remove decls.
95047         (stpcpy): Likewise.
95048         ("xalloc.h"): Include.
95049         (NAME_SIZE_DEFAULT): New macro.
95050         (savedir): Use xmalloc / xrealloc to allocate memory.
95051         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95052         Skip "" directory entries.
95053         Use strlen to calculate directory entry length, since the old method
95054         is rarely used these days and isn't worth supporting.
95055         Don't use a pointer after freeing it.
95056         Check for integer overflow when calculating allocation size.
95057         Use memcpy to copy entries, instead of stpcpy.
95058         Set errno properly when returning NULL.
95059         Check for readdir error.
95060
95061 2000-06-26  Jim Meyering  <meyering@lucent.com>
95062
95063         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95064
95065 2000-06-25  Jim Meyering  <meyering@lucent.com>
95066
95067         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95068         Linux header bug when _XOPEN_SOURCE is defined to 500.
95069
95070 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95071
95072         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95073         deficiency.
95074
95075 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95076
95077         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95078         Include xalloc.h.
95079         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95080
95081 2000-06-24  Jim Meyering  <meyering@lucent.com>
95082
95083         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95084         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95085         for which strerror does return char*, but which lacks a conveniently
95086         accessible declaration of the function.  If the compile-test says
95087         strerror_r doesn't work, then resort to a `run'-test that works on
95088         BeOS and segfaults on DEC Unix.
95089
95090 2000-06-24  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95093
95094 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95095
95096         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95098
95099 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95100
95101         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95102         (mbrtowc, mbstate_t): Define substitutes if
95103         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95104         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95105         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95106
95107 2000-06-23  Jim Meyering  <meyering@lucent.com>
95108
95109         * m4/afs.m4: Add missing AC_MSG_RESULT.
95110         Reported by Bruno Haible.
95111
95112         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95113         Suggestion from Bruno Haible.
95114
95115 2000-06-23  Jim Meyering  <meyering@lucent.com>
95116
95117         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95118
95119 2000-06-21  Jim Meyering  <meyering@lucent.com>
95120
95121         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95122
95123 2000-06-21  Jim Meyering  <meyering@lucent.com>
95124
95125         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95126         (noinst_HEADERS): Add getstr.h.
95127
95128         * lib/getline.c (getstr): Move into a separate file.
95129         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95130         the following changes: new parameter, delim2; both delim[12]
95131         parameters have type `int', not `char'.  The latter would lose
95132         with 8-bit delimiters.
95133         * lib/getstr.h: New file.
95134
95135 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95136
95137         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95138         than 1024, return a memory chunk of least possible size, instead
95139         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95140         Use free/xmalloc instead of xrealloc to avoid copying for very long
95141         paths.
95142
95143 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95144
95145         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95146         the empty string.
95147
95148 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95149
95150         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95151         address, not strdup.  Include <stdlib.h> and don't declare free().
95152
95153 2000-06-19  Jim Meyering  <meyering@lucent.com>
95154
95155         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95156
95157 2000-06-18  Jim Meyering  <meyering@lucent.com>
95158
95159         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95160
95161         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95162         `checking whether...' message to be consistent with that of the
95163         lstat test.
95164
95165 2000-06-18  Jim Meyering  <meyering@lucent.com>
95166
95167         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95168         Besides, these days every porting target provides a mkdir function.
95169
95170         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95171         needed. (this snippet comes from src/system.h).
95172
95173 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95174
95175         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95176
95177 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95178
95179         * lib/human.c (adjust_value): New function.
95180         (human_readable_inexact): Apply rounding style even when
95181         printing approximate values.
95182
95183 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95184
95185         * lib/human.c (human_readable_inexact): Allow an input block
95186         size that is not a multiple of the output block size, and vice versa.
95187         Reported by Piergiorgio Sartor.
95188
95189 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95190
95191         * lib/getdate.y (get_date): Apply relative times after time
95192         zone indicator, not before.  Reported by Todd A. Jacobs.
95193
95194 2000-06-13  Jim Meyering  <meyering@lucent.com>
95195
95196         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95197
95198         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95199
95200 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95201
95202         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95203
95204 2000-06-12  Jim Meyering  <meyering@lucent.com>
95205
95206         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95207         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95208         optional argument.
95209         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95210         the optional argument, `lib'.
95211
95212 2000-06-08  Jim Meyering  <meyering@lucent.com>
95213
95214         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95215
95216 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95217
95218         Rewrite largefile configuration so that we don't need to run
95219         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95220         AC_CANONICAL_HOST in configure.in -- jmm]
95221
95222         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95223         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95224         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95225         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95226         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95227         All uses changed.
95228         Instead of inspecting the output of getconf, try to compile the
95229         test program without and with the macro definition.
95230         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95231         for getconf.  Instead, check for the needed flags by compiling
95232         test programs.
95233
95234 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95235
95236         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95237
95238 2000-06-04  Jim Meyering  <meyering@lucent.com>
95239
95240         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95241         SunOS 4.1.4 for which gid_t is an unsigned type.
95242
95243 2000-06-03  Jim Meyering  <meyering@lucent.com>
95244
95245         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95246         now that autoconf requires that.
95247
95248         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95249         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95250         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95251
95252 2000-06-03  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95255
95256 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95257
95258         * m4/glibc21.m4: New file.
95259         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95260
95261 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95262
95263         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95264         newer, don't install charset.alias.
95265         * lib/config.charset: Change the Linux/glibc rules so they become empty
95266         on glibc-2.1 or newer.
95267
95268 2000-06-02  Jim Meyering  <meyering@lucent.com>
95269
95270         * lib/mountlist.c: Back out last change.  Instead, do this...
95271         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95272         me_dummy member using the same `ignore'-testing code.
95273         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95274         fs_type strings.
95275         From Mark D. Roth.
95276
95277 2000-05-29  Jim Meyering  <meyering@lucent.com>
95278
95279         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95280         mounts with the `ignore' attribute.  Based on a patch from
95281         Mark D. Roth.
95282
95283 2000-05-28  Jim Meyering  <meyering@lucent.com>
95284
95285         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95286         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95287         * m4/stat.m4: Likewise.
95288         * m4/lstat.m4: Likewise.
95289         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95290
95291         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95292         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95293
95294 2000-05-26  Jim Meyering  <meyering@lucent.com>
95295
95296         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95297
95298 2000-05-24  Jim Meyering  <meyering@lucent.com>
95299
95300         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95301         autoconf requires that.
95302         * m4/lib-check.m4: Likewise.
95303         * m4/jm-macros.m4: Likewise.
95304         * m4/strftime.m4: Likewise.
95305
95306         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95307         AC_CHECK_DECLS, now that autoconf requires that.
95308
95309 2000-05-22  Jim Meyering  <meyering@lucent.com>
95310
95311         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95312         * m4/lstat.m4: Likewise.
95313
95314 2000-05-22  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95317
95318 2000-05-20  Jim Meyering  <meyering@lucent.com>
95319
95320         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95321         (jm_PREREQ): Use it.
95322
95323 2000-05-18  Jim Meyering  <meyering@lucent.com>
95324
95325         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95326         back, too, since it may have been modified by allocate_entry.
95327         (hash_delete): Rewrite to use neither the assignment operator
95328         nor the comma operator in an if-expression.
95329
95330 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95331
95332         * lib/closeout.c:
95333         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95334         Remove; no longer needed.
95335         "quotearg.h": Add include.
95336         (file_name): Do not bother to explicitly initialize to NULL; it's less
95337         efficient on some hosts.
95338         (close_stdout_status): Remove test as to whether stdout was already
95339         closed; it breaks for the case "echo x | sort >&-".
95340         Quote file name colons.
95341         Do not assume that _("write error") lacks format strings.
95342
95343 2000-05-15  Jim Meyering  <meyering@lucent.com>
95344
95345         * lib/version-etc.c (version_etc_copyright): Update the copyright
95346         string used in all --version output.
95347
95348 2000-05-14  Jim Meyering  <meyering@lucent.com>
95349
95350         * lib/closeout.c (close_stdout_set_file_name): New function.
95351         (close_stdout_status): Use new file-scoped global.
95352         Return right away if fstat says the stdout file descriptor is invalid.
95353         * lib/closeout.h (close_stdout_set_file_name): Declare.
95354
95355 2000-05-10  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95358         (close_stdout_set_status): New function.
95359         * lib/closeout.h (close_stdout_set_status): Declare.
95360
95361 2000-05-09  Jim Meyering  <meyering@lucent.com>
95362
95363         * m4/gettext.m4: Rename this...
95364         * m4/libintl.m4: ...to this.
95365
95366 2000-05-08  Jim Meyering  <meyering@lucent.com>
95367
95368         * lib/long-options.c: Don't include closeout.h.
95369         (parse_long_options): Don't call close_stdout for --version.
95370
95371 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95372
95373         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95374         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95375         2.1.3 bug.  This avoids a clash when files like regex.c define
95376         _GNU_SOURCE.
95377
95378 2000-05-06  Jim Meyering  <meyering@lucent.com>
95379
95380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95381         (AC_REPLACE_FUNCS): Add strnlen.
95382
95383         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95384         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95385
95386         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95387         AC_SEARCH_LIBS call for nanosleep.
95388         (LIB_NANOSLEEP): Set and AC_SUBST.
95389
95390 2000-05-06  Jim Meyering  <meyering@lucent.com>
95391
95392         * lib/strnlen.c: Undefine __strnlen and strnlen.
95393         [!weak_alias]: Define __strnlen to strnlen.
95394
95395         * lib/atexit.c: New file, from libiberty.
95396
95397 2000-05-06  Jim Meyering  <meyering@lucent.com>
95398
95399         * lib/closeout.c (close_stdout_status): Also check for errors on the
95400         stderr stream.
95401
95402 2000-05-05  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95405         AC_SEARCH_LIBS call for clock_gettime.
95406         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95407
95408         * m4/search-libs.m4: Update from autoconf.
95409
95410         su doesn't work on Solaris 2.6.
95411         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95412         <shadow.h>.  Reported by Dragos Harabor.
95413
95414 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95415
95416         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95417         memcpy instead of xmalloc, xrealloc, path_concat.
95418         (locale_charset): Treat empty environment variables as absent.
95419         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95420
95421 2000-05-04  Jim Meyering  <meyering@lucent.com>
95422
95423         * lib/getopt.c: Update from glibc.
95424         * lib/obstack.c: Likewise.
95425         * lib/obstack.h: Likewise.
95426         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95427         file
95428
95429         * lib/regex.h: Likewise.
95430         * lib/strndup.c: Likewise.
95431         * lib/strnlen.c: New file, from glibc.
95432
95433 2000-05-03  Jim Meyering  <meyering@lucent.com>
95434
95435         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95436
95437 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95438
95439         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95440         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95441         compile-time test, rather than inspecting host and OS, to
95442         decide whether to define _LARGEFILE_SOURCE.
95443
95444 2000-05-01  Jim Meyering  <meyering@lucent.com>
95445
95446         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95447
95448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95449         Based on a patch from Bruno Haible.
95450
95451 2000-05-01  Jim Meyering  <meyering@lucent.com>
95452
95453         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95454
95455 2000-04-29  Jim Meyering  <meyering@lucent.com>
95456
95457         * lib/path-concat.c: Declare strdup only if it's not defined.
95458         * lib/canon-host.c: Likewise.
95459
95460 2000-04-28  Jim Meyering  <meyering@lucent.com>
95461
95462         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95463         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95464         is included first, then limits.h is included by locale.h by libintl.h.
95465         From John David Anglin.
95466
95467 2000-04-25  Jim Meyering  <meyering@lucent.com>
95468
95469         * lib/makepath.c (S_IRWXUGO): Define.
95470         (make_path): Always perform explicit chmod if MODE specifies any
95471         of the `special' permission bits.  Prompted by a bug report against
95472         install from Mate Wierdl and Joost van Baal.
95473
95474 2000-04-18  Jim Meyering  <meyering@lucent.com>
95475
95476         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95477         (jm_PREREQ): Use it.
95478
95479 2000-04-18  Jim Meyering  <meyering@lucent.com>
95480
95481         * lib/README: New file.
95482
95483         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95484         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95485
95486 2000-04-17  Jim Meyering  <meyering@lucent.com>
95487
95488         Get it right :-)
95489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95490         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95491         Suggestion from Akim Demaille.
95492
95493 2000-04-17  Jim Meyering  <meyering@lucent.com>
95494
95495         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95496         the definition of it to rpl_strftime also defined-away the system's
95497         declaration.
95498
95499 2000-04-15  Jim Meyering  <meyering@lucent.com>
95500
95501         Use `C' to denote so-called `contiguous' files, the same way
95502         that tar does.
95503         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95504         (ftypelet): Use S_ISCTG.
95505         From Michael Deutschmann.
95506
95507 2000-04-14  Jim Meyering  <meyering@lucent.com>
95508
95509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95510         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95511         clobbered.
95512
95513 2000-04-14  Jim Meyering  <meyering@lucent.com>
95514
95515         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95516
95517 2000-04-13  Jim Meyering  <meyering@lucent.com>
95518
95519         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95520         AH_VERBATIM to insert required #ifndef into config.h.in.
95521         Suggestion from Akim Demaille.
95522
95523 2000-04-12  Jim Meyering  <meyering@lucent.com>
95524
95525         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95526         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95527         Christian Krackowizer.
95528
95529         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95530         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95531         (AC_SYS_LARGEFILE): Require.
95532         (AM_C_PROTOTYPES): Require.
95533
95534 2000-04-08  Jim Meyering  <meyering@lucent.com>
95535
95536         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95537         names don't conflict.  Reported by Eli Zaretskii.
95538
95539 2000-04-07  Jim Meyering  <meyering@lucent.com>
95540
95541         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95542         sys/types.h, to work around system header problems on AIX 3.2.5.
95543         From Bruno Haible.
95544
95545 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95546
95547         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95548         bug.  Deal with the different error behavior of Irix iconv.
95549
95550 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95551
95552         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95553         IRIX if the installer said otherwise.
95554
95555 2000-04-05  Jim Meyering  <meyering@lucent.com>
95556
95557         Portability tweaks required for ultrix4.3.
95558         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95559         (jm_CHECK_DECLS): Add getutent to the list of functions.
95560         (_jm_DECL_HEADERS): Add utmpx.h.
95561         From John David Anglin.
95562
95563         * m4/strftime.m4: Back out the 2000-04-02 change.
95564         Instead of that change, simply undefine putenv in the test program.
95565
95566 2000-04-05  Jim Meyering  <meyering@lucent.com>
95567
95568         Portability tweaks required for ultrix4.3.
95569         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95570         getutent.
95571         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95572         * lib/canon-host.c: Declare strdup.
95573         * lib/path-concat.c: Likewise.
95574         From John David Anglin.
95575
95576 2000-04-04  Jim Meyering  <meyering@lucent.com>
95577
95578         Be more DOS 8.3-friendly.
95579         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95580         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95581         * lib/Makefile.am: Reflect renaming.
95582         Reported by Eli Zaretskii.
95583
95584         Use a temporary file name that won't clash with `charset.alias'
95585         in the DOS 8.3 name space.
95586         * lib/Makefile.am (charset_tmp): Define.
95587         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95588         (uninstall-local): Likewise.
95589         Reported by Eli Zaretskii.
95590
95591 2000-04-03  Jim Meyering  <meyering@lucent.com>
95592
95593         * m4/gettext.m4: Fix typo in comment.
95594
95595         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95596         textutils/configure.in).  Suggestion from Paul Eggert.
95597         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95598
95599 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95600
95601         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95602         variable in the shell rather than using putenv, which isn't
95603         portable.  This avoids the configure-time inter-test dependency
95604         on the potentially-renamed putenv function.
95605
95606 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95607
95608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95609         before checking struct stat.st_blksize, so that
95610         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95611
95612 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95613
95614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95615         since strftime.c uses HAVE_STRFTIME to decide whether to use
95616         the underlying strftime.
95617
95618 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95619
95620         * lib/time/strftime.c (my_strftime): Make sure we call the system
95621         strftime, not ourselves, when invoking the underlying strftime.
95622
95623 2000-03-24  Jim Meyering  <meyering@lucent.com>
95624
95625         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95626         (charset_alias): Define.
95627         (install-exec-local): Factor out common code.
95628         (uninstall-local): Split lines longer than 80.
95629         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95630         (SUFFIXES): Define.
95631         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95632         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95633
95634 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95635
95636         * lib/config.charset: Output a line containing "Packages using this
95637         file".
95638         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95639         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95640         ref-del.sed): New rules.
95641
95642 2000-03-17  Jim Meyering  <meyering@lucent.com>
95643
95644         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95645         Otherwise, include <strings.h>
95646
95647 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95648
95649         * lib/unicodeio.c (utf8_wctomb): New function.
95650         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95651         format instead of in UCS-4 with platform dependent endianness.
95652
95653 2000-03-10  Jim Meyering  <meyering@lucent.com>
95654
95655         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95656         From Marco Franzen.
95657
95658 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95659
95660         * lib/savedir.c (savedir): Work even if directory size is
95661         negative; this can happen with some screwy NFS configurations.
95662
95663 2000-03-06  Jim Meyering  <meyering@lucent.com>
95664
95665         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95666         if it's NULL (because we ran out of memory).  From Bruno Haible.
95667
95668 2000-03-05  Jim Meyering  <meyering@lucent.com>
95669
95670         * lib/localcharset.c ("path-concat.h"): Include.
95671         (get_charset_aliases): Use path_concat instead of ANSI string
95672         concatenation.
95673
95674         * lib/unicodeio.h (PARAMS): Define.
95675         Use it to guard prototype.
95676
95677 2000-03-04  Jim Meyering  <meyering@lucent.com>
95678
95679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95680         for lib/localcharset.c.
95681
95682 2000-03-04  Jim Meyering  <meyering@lucent.com>
95683
95684         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95685         installing into it.
95686         (uninstall-local): Uncomment this rule so `make distcheck' works
95687         once again.
95688
95689         * lib/unicodeio.c (<errno.h>): Include it.
95690         (errno): Declare if not defined.
95691
95692         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95693
95694         * lib/config.charset: New version, incorporating remarks from a linux
95695         i18n mailing list.  From Bruno Haible.
95696
95697 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95698
95699         * m4/codeset.m4: New file.
95700         * m4/iconv.m4: New file.
95701         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95702
95703 2000-03-03  Jim Meyering  <meyering@lucent.com>
95704
95705         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95706
95707 2000-03-02  Jim Meyering  <meyering@lucent.com>
95708
95709         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95710         the messages come out on separate lines.
95711
95712         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95713         rather than jm_CHECK_DECLARATIONS.
95714         * m4/decl.m4: Remove now-unused file.
95715
95716         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95717         geteuid.
95718
95719 2000-03-02  Jim Meyering  <meyering@lucent.com>
95720
95721         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95722
95723 2000-03-01  Jim Meyering  <meyering@lucent.com>
95724
95725         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95726         * lib/unicodeio.c: Likewise.
95727
95728 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95729
95730         * lib/config.charset: New file.
95731         * lib/localcharset.c: New file.
95732         * lib/unicodeio.h, lib/unicodeio.c: New files.
95733         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95734         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95735         (noinst_HEADERS): Add unicodeio.h.
95736         (all-local, install-exec-local, charset.alias): New targets.
95737
95738 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95739
95740         * lib/quotearg.c (ALERT_CHAR): New macro.
95741         (quotearg_buffer_restyled): Use it.
95742
95743 2000-02-27  Jim Meyering  <meyering@lucent.com>
95744
95745         * m4/check-decl.m4: Add getenv to the list.
95746
95747 2000-02-27  Jim Meyering  <meyering@lucent.com>
95748
95749         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95750         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95751
95752         * lib/backupfile.c: Guard inclusion of stdlib.h with
95753         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95754         Declare malloc if needed.
95755
95756         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95757         `#ifndef HAVE_DECL..'
95758         now that autoconf always defines the HAVE_DECL_ symbols.
95759         * lib/human.c: Likewise.
95760         * lib/same.c: Likewise.
95761         * lib/strtoumax.c: Likewise.
95762
95763         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95764         declaration check was not run.
95765         * lib/hash.c: Likewise.
95766         * lib/human.c: Likewise.
95767         * lib/same.c: Likewise.
95768         * lib/strtoumax.c: Likewise.
95769
95770         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95771         `.', then first look up the entire `.'-containing string as a login
95772         name.
95773
95774 2000-02-23  Jim Meyering  <meyering@lucent.com>
95775
95776         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95777         in place of my hack.
95778
95779 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95780
95781         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95782         (textint): New typedef.
95783         (parser_control): Member year changed from int to textint.
95784         All uses changed.
95785         (YYSTYPE): Removed; replaced by %union with int and textint members.
95786         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95787         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95788         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95789         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95790         (date, number, to_year): Use width of number in digits, not its value,
95791         to determine whether it's a 2-digit year, or a 2-digit time.
95792         (yylex): Store number of digits of numeric tokens.
95793         Reported by John Kendall.
95794
95795         (parser_control): Changed from struct parser_control to typedef (for
95796         consistency).  All uses changed.
95797
95798         (tID): Removed; not used.
95799         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95800
95801 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95802
95803         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95804         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95805
95806 2000-02-12  Jim Meyering  <meyering@lucent.com>
95807
95808         * lib/userspec.c (ISDIGIT): Define it.
95809         (isdigit): Remove definition.
95810         (is_number): Use ISDIGIT, not isdigit.
95811         <libintl.h>: Include.
95812         (_ and N_): Define.
95813         (parse_user_spec): Mark translatable strings.
95814
95815 2000-02-10  Jim Meyering  <meyering@lucent.com>
95816
95817         With these changes, nanosleep.[ch] are finally enough like the other
95818         lib/* replacement files to compile on a few more losing systems.
95819
95820         * lib/nanosleep.h: Don't include config.h.
95821         Remove prototype from declaration of nanosleep.
95822         (PARAMS): Remove now-unneeded definition.
95823         * lib/nanosleep.c: #undef nanosleep.
95824         (rpl_nanosleep): Rename from nanosleep.
95825
95826 2000-02-10  Jim Meyering  <meyering@lucent.com>
95827
95828         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95829         gnu_nanosleep to rpl_nanosleep.
95830
95831 2000-02-09  Jim Meyering  <meyering@lucent.com>
95832
95833         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95834         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95835
95836 2000-02-08  Akim Demaille  <akim@epita.fr>
95837
95838         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95839         `[' and `]' and remove uses of `changequote'.
95840         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95841         (AC_SYS_LARGEFILE): Likewise.
95842         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95843         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95844         of changequote.
95845         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95846         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95847         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95848         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95849
95850 2000-02-05  Jim Meyering  <meyering@lucent.com>
95851
95852         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95853         Remove explicit use of AC_HEADER_TIME.  It is required by
95854         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95855         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95856         in autoconf whereby the expansion of the latter ended up preceding
95857         the expansion of its prerequisite, AC_HEADER_TIME.
95858         Reported by Volker Borchert.
95859
95860 2000-02-03  Jim Meyering  <meyering@lucent.com>
95861
95862         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95863
95864 2000-02-03  Jim Meyering  <meyering@lucent.com>
95865
95866         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95867         rather than with `#if HAVE_UTMPNAME'.
95868
95869 2000-02-02  Jim Meyering  <meyering@lucent.com>
95870
95871         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95872         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95873         Reported by Eli Zaretskii.
95874
95875 2000-02-01  Jim Meyering  <meyering@lucent.com>
95876
95877         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95878
95879 2000-01-31  Jim Meyering  <meyering@lucent.com>
95880
95881         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95882         functions.  Add the time.h and sys/time.h headers along with the
95883         AC_REQUIRE'ment of AC_HEADER_TIME.
95884
95885 2000-01-31  Jim Meyering  <meyering@lucent.com>
95886
95887         * lib/nanosleep.h (nanosleep): Guard declaration with
95888         `#if ! HAVE_DECL_NANOSLEEP'.
95889         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95890         the declaration in that vendor's sys/timers.h.
95891         Reported by Christian Krackowizer.
95892
95893         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95894         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95895         (ISPRINT): Likewise.
95896         Reported by Tom Tromey.
95897
95898 2000-01-30  Jim Meyering  <meyering@lucent.com>
95899
95900         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95901
95902         * m4/prereq.m4 (utmp_includes): Define.
95903         Check for ut_user and ut_name members in both struct utmpx
95904         and struct utmp.
95905
95906 2000-01-30  Jim Meyering  <meyering@lucent.com>
95907
95908         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95909         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95910         header files where only utmpx.ut_user is declared.
95911
95912         * lib/readutmp.h (UT_USER): Define.
95913
95914 2000-01-29  Jim Meyering  <meyering@lucent.com>
95915
95916         * m4/lib-check.m4: New file containing library-related checks from
95917         fileutils and sh-utils (textutils had none).
95918
95919 2000-01-28  Jim Meyering  <meyering@lucent.com>
95920
95921         * m4/perl.m4: Change format of warning message to look more like that
95922         from the missing script.  Suggestion from François Pinard.
95923
95924 2000-01-25  Jim Meyering  <meyering@lucent.com>
95925
95926         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95927         well as time.h in the compile check.
95928         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95929         Fix typo in cross-compiling case: s/yes/no/.
95930
95931 2000-01-23  Jim Meyering  <meyering@lucent.com>
95932
95933         * m4/jm-macros.m4: Move df-related tests here from
95934         fileutils/configure.in
95935
95936         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95937         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95938
95939         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95940         s/space/ac_fsusage_space/.
95941         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95942
95943         * m4/ftruncate.m4: New file (derived from part of
95944         fileutils/configure.in).
95945         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95946         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95947
95948         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95949         AC_SUBST these here, rather than just in sh-util/configure.in, so
95950         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95951         all the same.
95952         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95953         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95954         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95955         (AC_SUBST(POW_LIBM)): Likewise.
95956         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95957
95958 2000-01-23  Jim Meyering  <meyering@lucent.com>
95959
95960         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95961         obstack.c.
95962
95963 2000-01-22  Jim Meyering  <meyering@lucent.com>
95964
95965         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95966
95967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95968
95969         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95970         configure.in
95971         (AC_CHECK_HEADERS): Likewise for sh-utils.
95972         (AC_CHECK_HEADERS): Likewise for textutils.
95973         Merge the three lists of headers.
95974
95975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95976         from fileutils' configure.in.
95977
95978         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95979         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95980         check-decl.m4.
95981
95982         * m4/check-decl.m4: Use #if rather than #ifdef.
95983         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95984         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95985         (_jm_DECL_HEADERS): Define new function.
95986         (jm_CHECK_DECLARATIONS): Require it.
95987
95988 2000-01-22  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95991         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95992         Required for some AIX systems.  Reported by Christian Krackowizer.
95993         [TESTING] (main): New function.
95994
95995         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95996         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95997         letters.
95998
95999         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96000         iswprint.
96001
96002         * lib/strverscmp.c (ISDIGIT): Define.
96003         (strverscmp): Use ISDIGIT, not isdigit.
96004
96005 2000-01-19  Jim Meyering  <meyering@lucent.com>
96006
96007         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96008         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96009         defines `struct timespec' in <sys/time.h>
96010
96011         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96012         Thanks to Akim for explaining.
96013
96014 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96015
96016         * lib/nanosleep.c (nanosleep):
96017         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96018         POSIX.1 doesn't require SA_INTERRUPT and some systems
96019         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96020         it's been part of POSIX.1 since day 1 (in 1988).
96021
96022 2000-01-17  Jim Meyering  <meyering@lucent.com>
96023
96024         * lib/interlock: Remove unused file.  Reported by François Pinard.
96025
96026 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96027
96028         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96029         alert, backslash, formfeed, and vertical tab unnecessarily in
96030         shell quoting style.
96031
96032 2000-01-16  Jim Meyering  <meyering@lucent.com>
96033
96034         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96035         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96036         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96037         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96038
96039 2000-01-16  Jim Meyering  <meyering@lucent.com>
96040
96041         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96042         because the latter didn't work.
96043
96044 2000-01-15  Jim Meyering  <meyering@lucent.com>
96045
96046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96047         (AC_REPLACE_FUNCS): Add memcpy and memset.
96048         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96049         Add strpbrk.
96050         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96051
96052 2000-01-12  Jim Meyering  <meyering@lucent.com>
96053
96054         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96055         (jm_PREREQ): Use it.
96056         (jm_PREREQ_READUTMP): New macro.
96057         (jm_PREREQ): Use it.
96058
96059 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96060
96061         Quote multibyte characters correctly.
96062         * m4/c-bs-a.m4: New file.
96063         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96064         (jm_PREREQ): Use it.
96065
96066 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96067
96068         * m4/uintmax_t.m4: Port to autoconf 2.13.
96069
96070 2000-01-08  Jim Meyering  <meyering@ascend.com>
96071
96072         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96073         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96074
96075 2000-01-04  Jim Meyering  <meyering@ascend.com>
96076
96077         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96078         jm_STRUCT_DIRENT_D_TYPE.
96079         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96080         jm_STRUCT_DIRENT_D_INO.
96081         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96082         jm_STRUCT_UTIMBUF.
96083         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96084         renamings.
96085         * m4/utime.m4: Likewise.
96086
96087         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96088         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96089
96090 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96091
96092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96093         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96094
96095 2000-01-02  Jim Meyering  <meyering@ascend.com>
96096
96097         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96098         remember if this is necessary.
96099
96100 1999-12-26  Jim Meyering  <meyering@ascend.com>
96101
96102         * m4/jm-macros.m4: Use it here.
96103         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96104
96105 1999-12-23  Jim Meyering  <meyering@ascend.com>
96106
96107         * m4/jm-macros.m4: Check for clock_gettime (moved from
96108         fileutils/configure.in)
96109         Check for gettimeofday.
96110
96111 1999-12-20  Jim Meyering  <meyering@ascend.com>
96112
96113         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96114         autoconf-2.14a-1999-12-20.
96115
96116 1999-12-19  Jim Meyering  <meyering@ascend.com>
96117
96118         * m4/lstat-slash.m4: New file.
96119         * m4/jm-macros.m4: Use the new macro:
96120         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96121
96122 1999-12-07  Jim Meyering  <meyering@ascend.com>
96123
96124         * m4/perl.m4: Require that File::Compare be available, too.
96125         Too many systems seem to lack it.
96126
96127         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96128         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96129
96130 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96131
96132         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96133         problem with the QNX 4.25 shell, which doesn't propagate exit
96134         status of failed commands inside shell assignments.
96135
96136 1999-11-17  Jim Meyering  <meyering@ascend.com>
96137
96138         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96139
96140 1999-11-07  Jim Meyering  <meyering@ascend.com>
96141
96142         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96143
96144 1999-11-06  Jim Meyering  <meyering@ascend.com>
96145
96146         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96147         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96148
96149 1999-11-05  Jim Meyering  <meyering@ascend.com>
96150
96151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96152         configure.in of textutils, fileutils, and sh-utils into this one
96153         (shared between those packages) file.
96154         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96155         AC_STRUCT_ST_BLKSIZE.
96156
96157 1999-11-03  Jim Meyering  <meyering@ascend.com>
96158
96159         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96160         of AC_CHECK_TYPE checks includes unistd.h.
96161         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96162         Suggestion from Akim Demaille.
96163
96164 1999-10-30  Jim Meyering  <meyering@ascend.com>
96165
96166         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96167         m4-quoted string.
96168         * m4/ls-mntd-fs.m4: Likewise.
96169         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96170         * m4/jm-winsz1.m4: Likewise.
96171
96172         * m4/const.m4: Remove file, since the fix made it into the experimental
96173         version of autoconf.
96174         * m4/mktime.m4: Likewise.
96175
96176         * m4/check-type.m4: Remove file, now that the latest version of
96177         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96178
96179         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96180         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96181         AC_CHECK_TYPE.
96182
96183 1999-10-04  Jim Meyering  <meyering@ascend.com>
96184
96185         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96186
96187 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96188
96189         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96190         2.95.1 bug with HP-UX 10.20.
96191
96192 1999-09-17  Jim Meyering  <meyering@ascend.com>
96193
96194         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96195         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96196         due to missing strdup (against sh-utils-2.0).
96197
96198 1999-08-29  Jim Meyering  <meyering@ascend.com>
96199
96200         * m4/jm-macros.m4: Require jm_BISON.
96201         * m4/bison.m4: New file.
96202
96203 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96204
96205         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96206         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96207
96208 1999-08-05  Jim Meyering  <meyering@ascend.com>
96209
96210         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96211         to avoid conflicts with `conftest' on 8+3 filesystems.
96212         Suggestion from Eli Zaretskii.
96213
96214 1999-08-04  Jim Meyering  <meyering@ascend.com>
96215
96216         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96217         fileutils and sh-utils (textutils's getline test was inadequate).
96218         (AM_FUNC_GETLINE): Run this test.
96219         (AC_CHECK_FUNCS): Check for getdelim.
96220         Reported by Bob Proulx.
96221
96222 1999-08-02  Jim Meyering  <meyering@ascend.com>
96223
96224         * m4/jm-macros.m4: Add a comment.
96225
96226 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96227
96228         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96229         <inttypes.h> defines strtoumax as a macro (and not as a
96230         function).
96231
96232 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96233
96234         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96235         that we can shift, multiply and divide unsigned long long
96236         values; Ultrix cc can't do it.
96237
96238 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/mktime.m4: New file, which is a preview of what should appear
96241         in the next public autoconf release.
96242
96243 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96244
96245         * m4/lfs.m4: Remove this file.
96246         * m4/largefile.m4: New file.  It contains the old contents of
96247         lfs.m4, except that all names with prefix AC_LFS have been
96248         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96249         compatible with future autoconf versions.  Also, some minor m4
96250         quoting problems have been fixed.
96251
96252 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96253
96254         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96255         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96256         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96257         and simplify the shell code.
96258
96259 1999-08-01  Jim Meyering  <meyering@ascend.com>
96260
96261         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96262         m4.
96263
96264 1999-07-20  Jim Meyering  <meyering@ascend.com>
96265
96266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96267
96268 1999-07-15  Jim Meyering  <meyering@ascend.com>
96269
96270         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96271
96272 1999-05-22  Jim Meyering  <meyering@ascend.com>
96273
96274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96275
96276 1999-05-20  Jim Meyering  <meyering@ascend.com>
96277
96278         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96279         Add a colon after each `then' in case $4 is empty.
96280
96281 1999-05-16  Jim Meyering  <meyering@ascend.com>
96282
96283         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96284
96285 1999-05-10  Jim Meyering  <meyering@ascend.com>
96286
96287         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96288
96289         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96290         AC_FUNC_MKTIME.
96291
96292 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96293
96294         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96295
96296 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96297
96298         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96299         not CPPFLAGS, so that linking works correctly in IRIX.
96300
96301 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96302
96303         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96304
96305 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96306
96307         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96308         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96309         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96310         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96311         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96312
96313         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96314
96315 1999-04-20  Jim Meyering  <meyering@ascend.com>
96316
96317         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96318         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96319         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96320
96321 1999-04-18  Jim Meyering  <meyering@ascend.com>
96322
96323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96324         * m4/jm-macros.m4: Use it.
96325
96326 1999-04-06  Jim Meyering  <meyering@ascend.com>
96327
96328         * m4/strftime.m4: Remove test for %f.
96329
96330 1999-03-29  Jim Meyering  <meyering@ascend.com>
96331
96332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96333         superset of the AC_TYPE_* checks in the textutils, fileutils,
96334         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96335         AC_TYPE_PID_T.
96336
96337 1999-03-28  Jim Meyering  <meyering@ascend.com>
96338
96339         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96340         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96341         replaced e.g., in the *.sh files of the sh-utils.
96342
96343 1999-03-20  Jim Meyering  <meyering@ascend.com>
96344
96345         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96346         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96347         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96348
96349 1999-03-19  Jim Meyering  <meyering@ascend.com>
96350
96351         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96352
96353 1999-03-12  Jim Meyering  <meyering@ascend.com>
96354
96355         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96356
96357 1999-03-07  Jim Meyering  <meyering@ascend.com>
96358
96359         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96360         declared.
96361
96362 1999-02-17  Jim Meyering  <meyering@ascend.com>
96363
96364         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96365         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96366
96367 1999-02-07  Jim Meyering  <meyering@ascend.com>
96368
96369         * m4/group-member.m4: New file -- extracted from sh-utils'
96370         configure.in.
96371
96372         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96373         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96374
96375 1999-02-06  Jim Meyering  <meyering@ascend.com>
96376
96377         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96378         * m4/fnmatch.m4: Likewise.
96379         * m4/getgroups.m4: Likewise.
96380         * m4/lstat.m4: Likewise.
96381         * m4/malloc.m4: Likewise.
96382         * m4/putenv.m4: Likewise.
96383         * m4/realloc.m4: Likewise.
96384         * m4/regex.m4: Likewise.
96385         * m4/stat.m4: Likewise.
96386         * m4/strftime.m4: Likewise.
96387         Suggestion from Alain Magloire.
96388
96389         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96390         * m4/fnmatch.m4: Likewise.
96391         * m4/getgroups.m4: Likewise.
96392         * m4/getline.m4: Likewise.
96393         * m4/lstat.m4: Likewise.
96394         * m4/malloc.m4: Likewise.
96395         * m4/memcmp.m4: Likewise.
96396         * m4/putenv.m4: Likewise.
96397         * m4/realloc.m4: Likewise.
96398         * m4/regex.m4: Likewise.
96399         * m4/stat.m4: Likewise.
96400         * m4/strftime.m4: Likewise.
96401         Suggestion from Alain Magloire.
96402
96403         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96404         an argument.
96405
96406         * m4/regex.m4: Add a run-time Test for proper operation of
96407         re_compile_pattern.
96408
96409 1999-01-31  Jim Meyering  <meyering@ascend.com>
96410
96411         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96412
96413 1999-01-30  Jim Meyering  <meyering@ascend.com>
96414
96415         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96416
96417         * m4/jm-mktime.m4: Make this a wrapper around the official
96418         AM_FUNC_MKTIME rather than my private copy, now that the official one
96419         is up to date.
96420         * m4/mktime.m4: Remove file.
96421
96422         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96423         * m4/uptime.m4: Likewise.
96424         * m4/uintmax_t.m4: Likewise.
96425
96426 1999-01-28  Jim Meyering  <meyering@ascend.com>
96427
96428         * m4/jm-macros.m4: Use jm_AFS.
96429         * m4/afs.m4: New file (from fileutils' configure.in).
96430
96431         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96432         * m4/chown.m4: Likewise.
96433         * m4/d-ino.m4: Likewise.
96434         * m4/d-type.m4: Likewise.
96435         * m4/fnmatch.m4: Likewise.
96436         * m4/getgroups.m4: Likewise.
96437         * m4/gettext.m4: Likewise.
96438         * m4/jm-mktime.m4: Likewise.
96439         * m4/jm-winsz2.m4: Likewise.
96440         * m4/lcmessage.m4: Likewise.
96441         * m4/ls-mntd-fs.m4: Likewise.
96442         * m4/malloc.m4: Likewise.
96443         * m4/memcmp.m4: Likewise.
96444         * m4/putenv.m4: Likewise.
96445         * m4/realloc.m4: Likewise.
96446         * m4/st_mtim.m4: Likewise.
96447         * m4/strftime.m4: Likewise.
96448
96449 1999-01-16  Jim Meyering  <meyering@ascend.com>
96450
96451         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96452         (ARGMATCH_DIE_DECL): Define.
96453
96454 1999-01-12  Jim Meyering  <meyering@ascend.com>
96455
96456         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96457         Reported by Lars Hecking.
96458
96459 1999-01-10  Jim Meyering  <meyering@ascend.com>
96460
96461         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96462         gross kludge.
96463         * m4/inttypes_h.m4: Likewise.
96464         * m4/lstat.m4: Likewise.
96465         * m4/malloc.m4: Likewise.
96466         * m4/readdir.m4: Likewise.
96467         * m4/realloc.m4: Likewise.
96468         * m4/st_dm_mode.m4: Likewise.
96469         * m4/stat.m4: Likewise.
96470         * m4/utimbuf.m4: Likewise.
96471         * m4/utimes.m4: Likewise.
96472
96473         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96474         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96475         comments in config.h.in are meaningful.
96476
96477         * m4/jm-macros.m4: Require autoconf-2.13 here.
96478
96479         * m4/regex.m4: By default, don't use the included regex.c on systems
96480         with glibc 2.  Suggestion from Uli Drepper.
96481
96482 1999-01-02  Jim Meyering  <meyering@ascend.com>
96483
96484         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96485
96486 1998-12-18  Jim Meyering  <meyering@ascend.com>
96487
96488         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96489         Based on a suggestion from Lars Hecking.
96490
96491 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96492
96493         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96494
96495 1998-11-16  Jim Meyering  <meyering@ascend.com>
96496
96497         * m4/lfs.m4: Double-quote the `uname...` expression.
96498
96499 1998-11-14  Jim Meyering  <meyering@ascend.com>
96500
96501         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96502         * m4/stat.m4: Likewise.
96503
96504 1998-11-03  Jim Meyering  <meyering@ascend.com>
96505
96506         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96507         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96508
96509 1998-10-18  Jim Meyering  <meyering@ascend.com>
96510
96511         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96512
96513 1998-10-17  Jim Meyering  <meyering@ascend.com>
96514
96515         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96516         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96517         calls for those previously hard-coded headers.  Instead, take a new
96518         parameter.
96519         (jm_CHECK_DECLARATIONS): Reflect interface change.
96520         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96521         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96522
96523         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96524
96525 1998-10-14  Jim Meyering  <meyering@ascend.com>
96526
96527         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96528         instead of "TZ=America/Vancouver".  From Paul Eggert.
96529
96530 1998-10-11  Jim Meyering  <meyering@ascend.com>
96531
96532         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96533         This adds a test for a recently added compatibility fix for mktime.c.
96534         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96535
96536 1998-09-27  Jim Meyering  <meyering@ascend.com>
96537
96538         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96539
96540         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96541         ../configure.in, including a change from Gordon Matzigkeit to allow
96542         cross-compiling for the Hurd.
96543
96544         * m4/glibc.m4: New file/macro to test for the GNU C Library
96545         versions 1 and 2.  From Gordon Matzigkeit.
96546         Indent.
96547
96548 1998-09-21  Jim Meyering  <meyering@ascend.com>
96549
96550         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96551
96552 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96553
96554         Port nanosecond-resolution times to UnixWare 2.1.2 and
96555         pedantic Solaris 2.6.
96556
96557         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96558         AC_STRUCT_ST_MTIM.
96559         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96560         Generate name of ns member, instead of just 1 or undef.
96561         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96562
96563 1998-08-15  Jim Meyering  <meyering@ascend.com>
96564
96565         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96566         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96567         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96568         instead of jm_TYPE_SSIZE_T.
96569
96570 1998-08-12  Jim Meyering  <meyering@ascend.com>
96571
96572         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96573
96574 1998-08-02  Jim Meyering  <meyering@ascend.com>
96575
96576         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96577         in acconfig.h manually.
96578
96579 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96580
96581         * m4/st_mtim.m4: New file.
96582
96583 1998-07-28  Jim Meyering  <meyering@ascend.com>
96584
96585         * m4/utimes.m4: Undef stat.
96586
96587 1998-07-25  Jim Meyering  <meyering@ascend.com>
96588
96589         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96590         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96591
96592 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96593
96594         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96595         uid and gid actually remain unchanged.
96596
96597 1998-07-07  Jim Meyering  <meyering@ascend.com>
96598
96599         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96600
96601 1998-07-04  Jim Meyering  <meyering@ascend.com>
96602
96603         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96604         to prove that this macro can be used in packages without regex.c.
96605
96606 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96607
96608         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96609         is to be used.
96610
96611 1998-07-03  Jim Meyering  <meyering@ascend.com>
96612
96613         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96614
96615         * m4/gettext.m4: New file -- from gettext-0.10.35.
96616         * m4/lcmessage.m4: Likewise.
96617         * m4/progtest.m4: Likewise.
96618
96619         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96620         * m4/jm-macros.m4: Require the new macro.
96621
96622 1998-06-29  Jim Meyering  <meyering@ascend.com>
96623
96624         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96625         for the definition of NGROUPS (used in a system header included
96626         by sys/mount.h).
96627
96628 1998-06-28  Jim Meyering  <meyering@ascend.com>
96629
96630         * m4/ls-mntd-fs.m4: New file.
96631         * m4/fstypename.m4: New file.
96632
96633         * m4/jm-macros.m4: Require the new macro.
96634         * m4/jm-glibc-io.m4: New file.
96635
96636 1998-05-19  Jim Meyering  <meyering@ascend.com>
96637
96638         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96639         * m4/lchown.m4: New file.
96640
96641         * m4/Makefile.am.in: New file.
96642         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96643
96644 1998-05-14  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/Makefile.am (EXTRA_DIST): Add them.
96647         * m4/jm-macros.m4: New file.
96648         * m4/utimbuf.m4: New file.
96649
96650 1998-05-12  Jim Meyering  <meyering@ascend.com>
96651
96652         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96653
96654 1998-05-11  Jim Meyering  <meyering@ascend.com>
96655
96656         * m4/isc-posix.m4: New file.
96657
96658 1998-05-10  Jim Meyering  <meyering@ascend.com>
96659
96660         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96661
96662 1998-05-09  Jim Meyering  <meyering@ascend.com>
96663
96664         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96665         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96666         with automake.
96667
96668         * m4/ssize_t.m4: New file.
96669         * m4/mktime.m4: Remove file -- the new automake has this now.
96670
96671 1998-04-26  Jim Meyering  <meyering@ascend.com>
96672
96673         * m4/assert.m4: New file.
96674         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96675
96676 1998-04-05  Jim Meyering  <meyering@ascend.com>
96677
96678         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96679         (jm_PREREQ): Use it here.
96680
96681 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96682
96683         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96684         in acconfig.h.
96685
96686 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96687
96688         * m4/prereq.m4: New file.
96689         * m4/error.m4: New file.
96690         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96691
96692 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96693
96694         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96695         cache-check for the same variable -- that defeated the purpose of
96696         the test; the test program was never run.  This was a problem only
96697         on systems with losing getline functions -- HP-UX 10.20 is one.
96698         Reported by Bjorn Helgaas.
96699
96700 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96701
96702         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96703
96704 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96705
96706         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96707
96708         * m4/const.m4: New file.  Use an initializer in this declaration
96709         typedef int charset[2]; const charset x;
96710         Reported by Bob Glickstein.
96711
96712 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96713
96714         * m4/chown.m4: Fix reversed types on -1 args to chown.
96715         From Kaveh Ghazi.
96716
96717 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96718
96719         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96720         Add lseek and memchr.
96721
96722         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96723         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96724         have a 20-character limit on names.
96725
96726 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96727
96728         * m4/inttypes_h.m4: New file.
96729         * m4/uintmax_t.m4: New file.
96730         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96731
96732
96733         -----
96734
96735         Local Variables:
96736         coding: utf-8
96737         End:
96738
96739         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96740
96741         Copying and distribution of this file, with or without
96742         modification, are permitted provided the copyright notice
96743         and this notice are preserved.